Bladeren bron

默认参数

zcy 4 jaren geleden
bovenliggende
commit
10cd1e58a7

+ 3 - 3
src/views/catenary/stand/view/fb/CheckAndEditModel.vue

@@ -102,7 +102,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -111,7 +111,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fcr/CheckAndEditModel.vue

@@ -127,7 +127,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -136,7 +136,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -162,7 +162,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/ff/CheckAndEditModel.vue

@@ -102,7 +102,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -111,7 +111,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fh/CheckAndEditModel.vue

@@ -102,7 +102,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -111,7 +111,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fl/CheckAndEditModel.vue

@@ -102,7 +102,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -111,7 +111,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fnh/CheckAndEditModel.vue

@@ -109,7 +109,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -118,7 +118,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -144,7 +144,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fs/CheckAndEditModel.vue

@@ -128,7 +128,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -163,7 +163,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fxs/CheckAndEditModel.vue

@@ -118,7 +118,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -127,7 +127,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -153,7 +153,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 3 - 3
src/views/catenary/stand/view/fyw/CheckAndEditModel.vue

@@ -102,7 +102,7 @@ export default {
   },
   watch: {
     'model.deptId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.lineShow = false
         this.$nextTick(() => {
@@ -111,7 +111,7 @@ export default {
       }
     },
     'model.lineId': {
-      deep: true,
+      immediate: true,
       handler: function(newV, oldV) {
         this.stationShow = false
         this.$nextTick(() => {
@@ -137,7 +137,7 @@ export default {
       })
     },
     add() {
-      this.model = {}
+      this.model = { lineId: null, stationId: null }
       this.visible = true
     },
     edit(record) {

+ 1 - 1
src/views/security/stand/index.vue

@@ -137,7 +137,7 @@ export default {
       treeData: [],
       url: {
         list: '/business/safetool/base/safety/tool/list',
-        delete: '/business/safetool/base/safety/tool/{toolIds}?toolIds=',
+        delete: '/business/safetool/base/safety/tool/',
         exportXlsUrl: '/exportXlsUrl',
         tree: '/system/dept/treeSelect',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`