diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue index 1c8ceb4f..ea3eb905 100644 --- a/src/views/device/item/index.vue +++ b/src/views/device/item/index.vue @@ -25,7 +25,7 @@ @keyup.enter.native="handleQuery" /> - + + + + + @@ -297,6 +303,23 @@ + + + + + + + + + + + +
@@ -399,7 +422,7 @@ import { Loading } from 'element-ui'; export default { name: "Item", - dicts: ['device_item_type'], + dicts: ['device_item_type','device_loop_type'], data() { return { activePage: 'check', @@ -469,6 +492,9 @@ export default { itemCode: null, itemName: null, itemMethod: null, + itemTools:null, + itemLoop:null, + itemLoopType:null, itemType: null, itemTypeName: null, itemRemark: null, @@ -487,6 +513,8 @@ export default { // 表单参数 form: { itemTools:null, + itemLoop:null, + itemLoopType:null, itemName: null, itemType: null, itemMethod: null, @@ -600,6 +628,8 @@ export default { handleAdd() { this.reset(); this.setTransfer(); + this.form.itemLoop = 1; + this.form.itemLoopType = 'day'; this.activePage = 'check'; this.open = true; this.title = "新增检查项"; @@ -613,7 +643,6 @@ export default { const itemId = row.itemId || this.ids getItem(itemId).then(response => { this.form = response.data; - getEquipmentCodeList(row.itemCode).then(response => { for (let i = 0; i < response.data.length; i++) { this.selectEquipmentList.push(response.data[i]);