刘璐珈

This commit is contained in:
Vergil
2020-03-18 17:47:47 +08:00
parent 715298cf6c
commit 8151bd6393
7 changed files with 26 additions and 20 deletions

View File

@@ -3,7 +3,7 @@
<el-card>
<el-row style="margin-top: 10px; margin-bottom: 10px">
<span>机床编号:</span>
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1();machineChange()">
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1()">
<el-option
v-for="item in machineNumber"
:key="item.value"
@@ -198,7 +198,12 @@ export default {
})
},
confirmEdit(row) {
editData(row.计划流水号, row.组件流水号, row.组号, row.任务名称, row.计划工时).then(response => {
console.log(row, 999)
let obj = {}
obj = this.groupNum.find((item) => { // 这里的userList就是上面遍历的数据源
return item.value === row.组件流水号// 筛选出匹配数据
})
editData(row.计划流水号, row.组件流水号, obj.label, row.任务名称, row.计划工时).then(response => {
if (response.data[0].result === '1') {
row.edit = false
this.tableData2 = []
@@ -244,7 +249,8 @@ export default {
})
},
addTable() {
if (this.machineNumberValue !== '') {
console.log(this.machineNumberValue, 888)
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) {
addData(this.machineNumberValue, 1).then(response => {
console.log(response)
if (response.data[0].result === '1') {