This commit is contained in:
liushuai
2019-03-26 14:10:47 +08:00
parent 2096e2aa6d
commit e0c4dd2d79
2 changed files with 14 additions and 1 deletions

View File

@@ -276,7 +276,7 @@
</div>
</el-dialog>
<el-dialog :visible.sync="dialogParts" :title="title1" center width="400px">
<el-dialog :visible.sync="dialogParts" :title="title1" :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false" center width="400px">
<span>零件图号</span>
<el-input v-model="PartsValueNum" size="small" placeholder="零件图号" style="width: 200px"/>
<!--<el-select v-model="PartsValueNum" filterable size="small" placeholder="零件图号">-->
@@ -288,6 +288,7 @@
<!--</el-select>-->
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submit">提交</el-button>
<el-button type="primary" @click="submitCancel">取消</el-button>
</div>
</el-dialog>
</div>
@@ -465,6 +466,17 @@ export default {
}
})
},
submitCancel() {
this.dialogParts = false
update(this.projectName, this.machineValue, this.Number, 0).then(response => {
if (response.data[0].result === '1') {
this.fetchData()
this.$message.success('取消成功')
} else {
this.$message.error('取消失败')
}
})
},
getGroups() {
this.$emit('machineChange', this.machineValue)
},

View File

@@ -309,6 +309,7 @@ export default {
return item
})
})
console.log(this.tableData)
} else {
const type = this.groupName.indexOf('WG') > -1 ? 2 : 1
this.loadingWB = true