zbb 1 anno fa
parent
commit
e37d084a15

+ 32 - 0
src/api/article_z.js

@@ -59,4 +59,36 @@ export default {
59 59
   queryBerthPerationNalysis_Bwzzlfx(params) {
60 60
     return axios.post(`/dash/berth/peration/nalysis/turnover`, params)
61 61
   },
62
+  // 收费价格监管_收费单价分析
63
+  queryChargePrice_Sfdjfx(params) {
64
+    return axios.post(`/dash/charge/price/stat`, params)
65
+  },
66
+  //客户投诉监管_客诉分析
67
+  queryCustomerComplaint_Ksfx(params) {
68
+    return axios.post(`/dash/customer/complaint/stat`, params)
69
+  },
70
+  //设备运行监测_摄像头
71
+  queryEquipmentRunning_Sxt(params) {
72
+    return axios.post(`/dash/equipment/running/stat1`, params)
73
+  },
74
+  //设备运行监测_闸机
75
+  queryEquipmentRunning_Zj(params) {
76
+    return axios.post(`/dash/equipment/running/stat2`, params)
77
+  },
78
+  //设备运行监测_满位显示器
79
+  queryEquipmentRunning_Mwxsq(params) {
80
+    return axios.post(`/dash/equipment/running/stat3`, params)
81
+  },
82
+  //技术支持功能_查询
83
+  getSupport_get(params) {
84
+    return axios.get(`/dash/support/page`, params)
85
+  },
86
+  //技术支持功能_添加
87
+  addSupport_save(params) {
88
+    return axios.post(`/dash/support/save`, params)
89
+  },
90
+  //技术支持功能_删除
91
+  deleteSupport_delete(params) {
92
+    return axios.post(`/dash/support/delete`, params)
93
+  },
62 94
 }

+ 1 - 0
src/api/audit.js

@@ -159,4 +159,5 @@ export default {
159 159
   applyResource(params) {
160 160
     return axios.post('/resourceApply/approveApply', params);
161 161
   }
162
+
162 163
 }

+ 15 - 3
src/pages/index/components/charge_price.vue

@@ -8,8 +8,8 @@
8 8
       </el-table-column>
9 9
     </el-table>
10 10
     <div class="table-pagination">
11
-      <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
12
-                     :current-page.sync="pageNum5" :page-size.sync="pageSize5">
11
+      <el-pagination :background="false" layout="total, prev, pager, next" :total="total2" @current-change="handlePageChange"
12
+                     :current-page.sync="pageNum2" :page-size.sync="pageSize2">
13 13
       </el-pagination>
14 14
     </div>
15 15
     <br>
@@ -50,6 +50,7 @@
50 50
 <script>
51 51
 import api from "@/api/audit.js";
52 52
 import piechart from "@/components/pieChart";
53
+import api1 from "@/api/article_z";
53 54
 
54 55
 export default {
55 56
   components: {
@@ -103,6 +104,12 @@ export default {
103 104
       dialogVisible: false,
104 105
       selRow: {},
105 106
       searchWords: undefined,
107
+      total2: 0,
108
+      pageSize2: 10,
109
+      pageNum2: 1,
110
+      radio2: '2',
111
+      dialogVisible2: false,
112
+      selRow2: {},
106 113
       searchWords2: undefined,
107 114
     }
108 115
   },
@@ -110,6 +117,7 @@ export default {
110 117
     this.getTableData()
111 118
     this.getTableData2()
112 119
     this.getTableData3()
120
+    this.getModelDataData()
113 121
   },
114 122
   watch: {
115 123
   },
@@ -164,7 +172,11 @@ export default {
164 172
         this.total3 = res.data.total
165 173
       })
166 174
     },
167
-
175
+    getModelDataData(){
176
+      api1.queryChargePrice_Sfdjfx().then(res=>{
177
+        this.modelData.list=res.data;
178
+      })
179
+    },
168 180
 
169 181
     getApplyTypeText(val) {
170 182
       if (!val){

+ 8 - 2
src/pages/index/components/customer_complaint.vue

@@ -106,6 +106,7 @@
106 106
 <script>
107 107
 import api from "@/api/audit.js";
108 108
 import piechart from "@/components/pieChart";
109
+import api1 from "@/api/article_z";
109 110
 
110 111
 export default {
111 112
   components: {
@@ -169,8 +170,6 @@ export default {
169 170
       modelData: {
170 171
         list: [{name: '服务态度', value: 100}, {name: '收费乱', value: 100},{name: '设备部灵敏', value: 100}, {name: '环境差', value: 100}]
171 172
       },
172
-      linedata: [{month: '11', lastYearAmount: 20, thisYearAmount: 30}, {month: '12', lastYearAmount: 40, thisYearAmount: 50}],
173
-      bardata: [{month: '01', hs: 100, cs: 200},{month: '02', hs: 300, cs: 200},{month: '03', hs: 400, cs: 200},],
174 173
       tableData: [],
175 174
       tableData2: [],
176 175
       total: 0,
@@ -182,17 +181,24 @@ export default {
182 181
         ipUrl: ''
183 182
       },
184 183
       selRow: undefined,
184
+      searchWords: undefined,
185 185
       title: ''
186 186
     }
187 187
   },
188 188
   mounted() {
189 189
     this.getTableData()
190 190
     this.getTableData2()
191
+    this.getModelDataData()
191 192
   },
192 193
   watch: {
193 194
   },
194 195
   methods: {
195 196
 
197
+    getModelDataData(){
198
+      api1.queryCustomerComplaint_Ksfx().then(res=>{
199
+        this.modelData.list=res.data;
200
+      })
201
+    },
196 202
     handlePageChange() {
197 203
       this.getTableData()
198 204
     },

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

@@ -59,6 +59,7 @@
59 59
 <script>
60 60
 import api from "@/api/audit.js";
61 61
 import piechart from "@/components/pieChart";
62
+import api1 from "@/api/article_z";
62 63
 
63 64
 export default {
64 65
   components: {
@@ -106,15 +107,34 @@ export default {
106 107
     this.getTableData2()
107 108
     this.getTableData3()
108 109
     this.getTableData4()
110
+    this.getModelDataData()
111
+    this.getModelData2Data()
112
+    this.getModelData3Data()
109 113
   },
110 114
   watch: {
111 115
   },
112 116
   methods: {
117
+
118
+    getModelDataData(){
119
+      api1.queryEquipmentRunning_Sxt().then(res=>{
120
+        this.modelData.list=res.data;
121
+      })
122
+    },
123
+    getModelData2Data(){
124
+      api1.queryEquipmentRunning_Zj().then(res=>{
125
+        this.modelData2.list=res.data;
126
+      })
127
+    },
128
+    getModelData3Data(){
129
+      api1.queryEquipmentRunning_Mwxsq().then(res=>{
130
+        this.modelData3.list=res.data;
131
+      })
132
+    },
113 133
     handlePageChange() {
114 134
       this.getTableData()
115 135
       this.getTableData2()
116 136
       this.getTableData3()
117
-      this.getTableDat4()
137
+      this.getTableData4()
118 138
     },
119 139
     handleAudit(row) {
120 140
       this.selRow = row

+ 1 - 1
src/pages/index/components/saturation_warning.vue

@@ -144,7 +144,7 @@ export default {
144 144
     lineTooltipFormat(params) {
145 145
       const data = params[0].data;
146 146
       return `<div class="line-tooltip">
147
-        <div style="color: ${params[1].color}">${params[1].seriesName}: ${
147
+        <div style="color: ${params[0].color}">${params[1].seriesName}: ${
148 148
         params[0].data.lastAmount || "--"
149 149
       }(%)</div>
150 150
         <div style="color: red">${params[0].seriesName}: ${

+ 69 - 48
src/pages/index/components/support.vue

@@ -7,6 +7,16 @@
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
8 8
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
9 9
       </el-table-column>
10
+      <el-table-column
11
+        label="操作"
12
+        width="200">
13
+        <template slot-scope="scope" style="display: inline-block">
14
+          <el-button type="success" @click="handleAudit(scope.row)" slot="reference">修改</el-button>
15
+          <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">
16
+            <el-button type="danger" slot="reference">删除</el-button>
17
+          </el-popconfirm>
18
+        </template>
19
+      </el-table-column>
10 20
     </el-table>
11 21
     <div class="table-pagination">
12 22
       <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
@@ -19,7 +29,6 @@
19 29
       width="50%"
20 30
       custom-class="audit-dialog">
21 31
       <div style="height: 100px" class="form-div">
22
-        <el-form label-position="left" label-width="80px" :model="formLabelAlign">
23 32
           <el-form label-position="left" label-width="80px" :model="formLabelAlign">
24 33
             <el-form-item label="申请名称">
25 34
               <el-input v-model="formLabelAlign.requestTitle"></el-input>
@@ -28,17 +37,17 @@
28 37
               <el-input v-model="formLabelAlign.supportChannel"></el-input>
29 38
             </el-form-item>
30 39
           </el-form>
31
-        </el-form>
32 40
       </div>
33 41
       <span slot="footer" class="dialog-footer">
34 42
             <el-button @click="dialogVisible = false">取 消</el-button>
35
-            <el-button type="primary" @click="handleConfirm">确 定</el-button>
43
+            <el-button type="success" @click="handleConfirm">确 定</el-button>
36 44
         </span>
37 45
     </el-dialog>
38 46
   </div>
39 47
 </template>
40 48
 <script>
41 49
 import api from "@/api/audit.js";
50
+import api1 from "@/api/article_z";
42 51
 
43 52
 export default {
44 53
   components: {},
@@ -51,7 +60,7 @@ export default {
51 60
         },
52 61
         {
53 62
           label: '申请时间',
54
-          key: 'requestTime'
63
+          key: 'createTime'
55 64
         },
56 65
         {
57 66
           label: '支持渠道',
@@ -59,22 +68,26 @@ export default {
59 68
         },
60 69
         {
61 70
           label: '受理状态',
62
-          key: 'acceptanceStatus'
71
+          key: 'requestState'
63 72
         }
64 73
       ],
65
-      tableData: [{"requestTitle":'申请更换闸机',"requestTime":'2023-12-25 10:00:00',"supportChannel":'留言板',"acceptanceStatus":'已受理'},
66
-        {"requestTitle":'申请路面整修',"requestTime":'2023-12-30 10:00:00',"supportChannel":'电话沟通',"acceptanceStatus":'未受理'},],
67
-      total: 3,
74
+      tableData: [{"requestTitle":'申请更换闸机',"createTime":'2023-12-25 10:00:00',"supportChannel":'留言板',"requestState":'已受理'},
75
+        {"requestTitle":'申请路面整修',"createTime":'2023-12-30 10:00:00',"supportChannel":'电话沟通',"requestState":'未受理'},],
76
+      total: 0,
68 77
       pageSize: 10,
69 78
       pageNum: 1,
70 79
       radio: '2',
71 80
       dialogVisible: false,
72
-      selRow: {},
81
+      // selRow: {},
73 82
       searchWords: undefined,
74 83
       formLabelAlign: {
84
+        id: '',
75 85
         requestTitle: '',
76
-        supportChannel: ''
86
+        createTime:'',
87
+        supportChannel: '',
88
+        requestState:''
77 89
       },
90
+      title:'',
78 91
     }
79 92
   },
80 93
   mounted() {
@@ -87,11 +100,17 @@ export default {
87 100
       this.getTableData()
88 101
     },
89 102
     handleAudit(row) {
90
-      this.selRow = row
103
+      this.title = '修改技术支持'
104
+      this.formLabelAlign= row
91 105
       this.dialogVisible = true
92 106
     },
93
-    handleCancelApply(row) {
94
-      console.log('enter handle cancel apply')
107
+    deleteRow (record) {
108
+      api1.deleteSupport_delete({id: record.id}).then(res => {
109
+        if (res.code === 200) {
110
+          this.$message({type: 'success', message: '删除成功!'})
111
+          this.getTableData()
112
+        }
113
+      })
95 114
     },
96 115
     handleAdd () {
97 116
       this.title = '技术支持申请'
@@ -100,46 +119,48 @@ export default {
100 119
       this.dialogVisible = true
101 120
     },
102 121
     handleConfirm() {
103
-      const {id} = this.selRow
104
-      console.log('radio', this.radio)
105
-      api.applyResource({id, applyType: this.formLabelAlign.requestTitle}).then(res => {
106
-        if(res.success) {
107
-          this.dialogVisible = false
108
-          this.$message({
109
-            message: '审核成功!',
110
-            type: 'success'
111
-          })
112
-          this.getTableData()
113
-        }
114
-      })
122
+      if (this.title === '修改技术支持') {
123
+        api1.addSupport_save({id: this.formLabelAlign.id, requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
124
+          if(res.code === 200) {
125
+            this.dialogVisible = false
126
+            this.$message({
127
+              message: '修改成功!',
128
+              type: 'success'
129
+            })
130
+            this.getTableData()
131
+          }
132
+        })
133
+      }else {
134
+        api1.addSupport_save({requestTitle: this.formLabelAlign.requestTitle, supportChannel: this.formLabelAlign.supportChannel}).then(res => {
135
+          if(res.code === 200) {
136
+            this.dialogVisible = false
137
+            this.$message({
138
+              message: '添加成功!',
139
+              type: 'success'
140
+            })
141
+            this.getTableData()
142
+          }
143
+        })
144
+      }
145
+
115 146
     },
116 147
     getTableData() {
117
-      const {pageNum, pageSize, searchWords} = this
118
-      api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
119
-        this.tableData = []
120
-        res.data.records.map((item, index) => {
121
-          const newItem = {...item}
122
-          newItem.applyTypeText = this.getApplyTypeText(item.applyType)
123
-          this.tableData.push(newItem)
124
-        })
148
+      const {pageNum, pageSize} = this
149
+      api1.getSupport_get({current: pageNum, size: pageSize,}).then(res => {
150
+        this.tableData =  res.data.records || []
125 151
         this.total = res.data.total
126 152
       })
127 153
     },
128
-    getApplyTypeText(val) {
129
-      if (!val){
130
-        return '未申请'
131
-      }
132
-      const textMap = {
133
-        1: '待审批',
134
-        2: '审批通过',
135
-        3: '审批驳回'
136
-      }
137
-      return textMap[val]
138
-    },
139
-    handleSearch() {
140
-      this.pageNum = 1
141
-      this.getTableData()
142
-    }
154
+    // getCurrentTime() {
155
+    //   //获取当前时间并打印
156
+    //   let yy = new Date().getFullYear();
157
+    //   let mm = new Date().getMonth()+1;
158
+    //   let dd = new Date().getDate();
159
+    //   let hh = new Date().getHours();
160
+    //   let mf = new Date().getMinutes()<10 ? '0'+new Date().getMinutes() : new Date().getMinutes();
161
+    //   let ss = new Date().getSeconds()<10 ? '0'+new Date().getSeconds() : new Date().getSeconds();
162
+    //   return yy+'/'+mm+'/'+dd+' '+hh+':'+mf+':'+ss;
163
+    // }
143 164
   }
144 165
 }
145 166
 </script>