Browse Source

删除冗余

duwendi 1 year ago
parent
commit
b424ae8beb

+ 1 - 5
src/pages/index/components/equipment_running.vue

@@ -87,14 +87,10 @@ export default {
87 87
       modelData2: [],
88 88
       modelPieColor3: ["#2E8B57","#9078f8"],
89 89
       modelData3: [],
90
-
91 90
       tableData: [],
92 91
       total: 0,
93 92
       pageSize: 10,
94 93
       pageNum: 1,
95
-      radio: '2',
96
-      dialogVisible: false,
97
-      selRow: {},
98 94
     }
99 95
   },
100 96
   mounted() {
@@ -118,7 +114,7 @@ export default {
118 114
     },
119 115
     getTableData() {
120 116
       const {pageNum, pageSize} = this
121
-      api1.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
117
+      api.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
122 118
         this.tableData = res.data.records || []
123 119
         this.total = res.data.total
124 120
       })

+ 8 - 9
src/pages/index/components/static_resource.vue

@@ -117,8 +117,7 @@
117 117
   </div>
118 118
 </template>
119 119
 <script>
120
-import api from "@/api/audit.js";
121
-import api1 from "@/api/article_z";
120
+import api from "@/api/article_z";
122 121
 
123 122
 export default {
124 123
   components: {},
@@ -292,48 +291,48 @@ export default {
292 291
     },
293 292
     getTableData() {
294 293
       const {pageNum, pageSize, searchWords} = this
295
-      api1.getStaticResource_Cccx({current:pageNum, size:pageSize, carParkName: searchWords}).then(res => {
294
+      api.getStaticResource_Cccx({current:pageNum, size:pageSize, carParkName: searchWords}).then(res => {
296 295
         this.tableData =  res.data.records || []
297 296
         this.total = res.data.total
298 297
       })
299 298
     },
300 299
     getTableData2() {
301
-      api1.getStaticResource_Bwcx({current: this.pageNum2, size:this.pageSize2, berthCode: this.searchWords2}).then(res => {
300
+      api.getStaticResource_Bwcx({current: this.pageNum2, size:this.pageSize2, berthCode: this.searchWords2}).then(res => {
302 301
         this.tableData2 =  res.data.records || []
303 302
         this.total2 = res.data.total
304 303
       })
305 304
     },
306 305
 
307 306
     getTableData3() {
308
-      api1.getStaticResource_Jkcx({current: this.pageNum3, size:this.pageSize3, deviceCode: this.searchWords3}).then(res => {
307
+      api.getStaticResource_Jkcx({current: this.pageNum3, size:this.pageSize3, deviceCode: this.searchWords3}).then(res => {
309 308
         this.tableData3 =  res.data.records || []
310 309
         this.total3 = res.data.total
311 310
       })
312 311
     },
313 312
 
314 313
     getTableData4() {
315
-      api1.getStaticResource_Sbcx({current: this.pageNum4, size:this.pageSize4, deviceCode: this.searchWords4}).then(res => {
314
+      api.getStaticResource_Sbcx({current: this.pageNum4, size:this.pageSize4, deviceCode: this.searchWords4}).then(res => {
316 315
         this.tableData4 =  res.data.records || []
317 316
         this.total4 = res.data.total
318 317
       })
319 318
     },
320 319
 
321 320
     getTableData5() {
322
-      api1.getStaticResource_Dwcx({current: this.pageNum5, size:this.pageSize5, unitName: this.searchWords5}).then(res => {
321
+      api.getStaticResource_Dwcx({current: this.pageNum5, size:this.pageSize5, unitName: this.searchWords5}).then(res => {
323 322
         this.tableData5 =  res.data.records || []
324 323
         this.total5 = res.data.total
325 324
       })
326 325
     },
327 326
 
328 327
     getTableData6() {
329
-      api1.getStaticResource_Bazycx({current: this.pageNum6, size:this.pageSize6, unitName: this.searchWords6}).then(res => {
328
+      api.getStaticResource_Bazycx({current: this.pageNum6, size:this.pageSize6, unitName: this.searchWords6}).then(res => {
330 329
         this.tableData6 =  res.data.records || []
331 330
         this.total6 = res.data.total
332 331
       })
333 332
     },
334 333
 
335 334
     getTableData7() {
336
-      api1.getStaticResource_Pczycx({current: this.pageNum7, size:this.pageSize7, carParkName: this.searchWords7}).then(res => {
335
+      api.getStaticResource_Pczycx({current: this.pageNum7, size:this.pageSize7, carParkName: this.searchWords7}).then(res => {
337 336
         this.tableData7 =  res.data.records || []
338 337
         this.total7 = res.data.total
339 338
       })

+ 5 - 6
src/pages/index/components/support.vue

@@ -46,8 +46,7 @@
46 46
   </div>
47 47
 </template>
48 48
 <script>
49
-import api from "@/api/audit.js";
50
-import api1 from "@/api/article_z";
49
+import api from "@/api/article_z";
51 50
 
52 51
 export default {
53 52
   components: {},
@@ -105,7 +104,7 @@ export default {
105 104
       this.dialogVisible = true
106 105
     },
107 106
     deleteRow (record) {
108
-      api1.deleteSupport_delete({id: record.id}).then(res => {
107
+      api.deleteSupport_delete({id: record.id}).then(res => {
109 108
         if (res.code === 200) {
110 109
           this.$message({type: 'success', message: '删除成功!'})
111 110
           this.getTableData()
@@ -120,7 +119,7 @@ export default {
120 119
     },
121 120
     handleConfirm() {
122 121
       if (this.title === '修改技术支持') {
123
-        api1.addSupport_save({id: this.formLabelAlign.id, requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
122
+        api.addSupport_save({id: this.formLabelAlign.id, requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
124 123
           if(res.code === 200) {
125 124
             this.dialogVisible = false
126 125
             this.$message({
@@ -131,7 +130,7 @@ export default {
131 130
           }
132 131
         })
133 132
       }else {
134
-        api1.addSupport_save({requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
133
+        api.addSupport_save({requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
135 134
           if(res.code === 200) {
136 135
             this.dialogVisible = false
137 136
             this.$message({
@@ -146,7 +145,7 @@ export default {
146 145
     },
147 146
     getTableData() {
148 147
       const {pageNum, pageSize} = this
149
-      api1.getSupport_get({current: pageNum, size: pageSize}).then(res => {
148
+      api.getSupport_get({current: pageNum, size: pageSize}).then(res => {
150 149
         this.tableData =  res.data.records || []
151 150
         this.total = res.data.total
152 151
       })