|
|
@ -81,7 +81,7 @@ |
|
|
|
import AddOrEdit from './addOrEdit.vue'; |
|
|
|
import ScanRule from './scanRule.vue'; |
|
|
|
import OperationGuide from './operationGuide.vue' |
|
|
|
import {getTableList, delParser} from '@/api/plant/processData/technology' |
|
|
|
import {getTableList, delParser, getAttribute, getAttributeValue} from '@/api/plant/processData/technology' |
|
|
|
export default { |
|
|
|
components:{ |
|
|
|
AddOrEdit, |
|
|
@ -99,6 +99,8 @@ export default { |
|
|
|
tableData:[], // table数据源 |
|
|
|
isAddOrEdit: '', // add-添加,edit-修改 |
|
|
|
item:{}, // 当前要编辑的对象 |
|
|
|
attributeList:[], // 属性编码列表 |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
@ -162,7 +164,19 @@ export default { |
|
|
|
this.queryParams.total=count; |
|
|
|
this.tableData=records; |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 属性编码列表 |
|
|
|
getAttribute(){ |
|
|
|
getAttribute().then(({data=[]})=>{ |
|
|
|
this.attributeList=data; |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 属性值列表 |
|
|
|
getAttributeValue(value){ |
|
|
|
getAttributeValue(value).then(({data:{Valst=[]}})=>{ |
|
|
|
this.attrValueList=Valst; |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
this.getTableList(); |
|
|
|