|
@@ -110,13 +110,13 @@ export default {
|
110
|
110
|
relatedEquipments: "6",// 抽屉数据列表数量-添加关联
|
111
|
111
|
drawer: false,
|
112
|
112
|
equipmentClassificationName: '', //设备分类名称
|
113
|
|
- form: {
|
|
113
|
+ okform: {
|
114
|
114
|
orgCode: JSON.parse(localStorage.getItem("userInfo")).orgCode,
|
115
|
|
- labelCode: '控温设备03',
|
116
|
|
- labelName: '温度计',
|
117
|
|
- labelClass: '控温设备',
|
118
|
|
- labelRefer: '20122200202',
|
119
|
|
- parentId: '',
|
|
115
|
+ labelCode: '',
|
|
116
|
+ labelName: '',
|
|
117
|
+ labelClass: '',
|
|
118
|
+ labelRefer: '',
|
|
119
|
+ parentId: '0',
|
120
|
120
|
deviceId: '',
|
121
|
121
|
id: '',
|
122
|
122
|
},
|
|
@@ -146,7 +146,7 @@ export default {
|
146
|
146
|
},
|
147
|
147
|
list: [
|
148
|
148
|
{
|
149
|
|
- name: 'P001', equipName: '1号仓粮情设备', number: '0', layer: '4', row: '5', col: '9'
|
|
149
|
+
|
150
|
150
|
},
|
151
|
151
|
],
|
152
|
152
|
|
|
@@ -192,8 +192,8 @@ export default {
|
192
|
192
|
this.cities = []
|
193
|
193
|
},
|
194
|
194
|
save () {
|
195
|
|
- let data = JSON.parse(JSON.stringify(this.form))
|
196
|
|
- console.log(data, 'add')
|
|
195
|
+ let data = JSON.parse(JSON.stringify(this.okform))
|
|
196
|
+ console.log(data, '标签新增数据')
|
197
|
197
|
addLabelItem(data).then(res => {
|
198
|
198
|
console.log(res, 'addLabelItem')
|
199
|
199
|
if (res.code == 200) {
|