Sfoglia il codice sorgente

调拨用途默认值修改

renmy 3 anni fa
parent
commit
75f4265d91

+ 4 - 2
src/views/device/allocation/allocation-modal.vue

@@ -73,9 +73,9 @@ export default {
         id: '',
 				deviceType: 1,
 				usedArr: ['1','2'],
-				used: '',
+				used: '1,2',
 				describeArr: ['1'],
-				describe: '',
+				describe: '1',
 				customId: '',
 				sn: [],
 				event: 0
@@ -127,10 +127,12 @@ export default {
     },
 
 		usedChange(value) {
+			this.dataForm.used = ''
 			this.dataForm.used = value.join(',')
 		},
 
 		disChange(value) {
+			this.dataForm.describe = ''
 			this.dataForm.describe = value.join(',')
 		},
     

+ 4 - 2
src/views/device/allocation/allocationBatch-modal.vue

@@ -73,9 +73,9 @@ export default {
         id: '',
 				deviceType: 1,
 				usedArr: ['1','2'],
-				used: '',
+				used: '1,2',
 				describeArr: ['1'],
-				describe: '',
+				describe: '1',
 				customId: '',
 				batchNum: [],
 				event: 0
@@ -128,10 +128,12 @@ export default {
     },
 
 		usedChange(value) {
+			this.dataForm.used = ''
 			this.dataForm.used = value.join(',')
 		},
 
 		disChange(value) {
+			this.dataForm.describe = ''
 			this.dataForm.describe = value.join(',')
 		},