零件工艺执行

This commit is contained in:
zhangdingyu
2019-01-26 10:51:57 +08:00
parent ab57170f03
commit 44dd02b55f
3 changed files with 191 additions and 30 deletions

View File

@@ -94,12 +94,12 @@
<el-table-column property="date" label="操作" align="center">
<template slot-scope="scope">
<el-button
v-if="scope.row.调序权限===0"
v-if="scope.row.调序权限==='0'"
size="mini"
type="success"
@click="JurisdictionControl1(scope.row)">开启</el-button>
<el-button
v-if="scope.row.调序权限===1"
v-if="scope.row.调序权限==='1'"
size="mini"
type="danger"
@click="JurisdictionControl2(scope.row)">关闭</el-button>
@@ -165,7 +165,7 @@ export default {
getMachine().then(response => {
this.gridData = response.data
for (let i = 0; i < response.data.length; i++) {
if (response.data[i].调序权限 === 1) { this.count = this.count + 1 }
if (response.data[i].调序权限 === '1') { this.count = this.count + 1 }
}
this.num = this.count
})