烬玊 пре 1 година
родитељ
комит
218dce8bc7

+ 10 - 2
src/api/article_liao.js

@@ -156,8 +156,16 @@ export default {
156 156
   },
157 157
   //查询数据对接
158 158
   dashDataDockingPage(params){
159
-    return axios.post('/dash/data/docking/page', params)
160
-  }
159
+    return axios.get('/dash/data/docking/page', {params})
160
+  },
161
+  //从业人员资质管理
162
+  dashEmployeeQualificationQualifications(params){
163
+    return axios.get('/dash/employee/qualification/qualifications', {params})
164
+  },
165
+  //从业人员考核管理
166
+  dashEmployeeQualificationExamine(params){
167
+    return axios.get('/dash/employee/qualification/examine', {params})
168
+  },
161 169
 
162 170
 
163 171
 }

+ 12 - 21
src/pages/index/components/customer_complaint.vue

@@ -13,20 +13,7 @@
13 13
 
14 14
         </el-select>
15 15
       </el-form-item>
16
-      <el-form-item label="路内停车场:">
17
-        <el-select v-model="formInline.region2" placeholder="路内停车场" popper-class="cur-select">
18
-          <el-option label="南街村景区-停车场" value="南街村景区-停车场"></el-option>
19
-          <el-option label="漯河市中医院-地上停车场" value="漯河市中医院-地上停车场"></el-option>
20
-        </el-select>
21
-      </el-form-item>
22
-      <el-form-item label="路外停车场:">
23
-        <el-select v-model="formInline.region3" placeholder="路外停车场" popper-class="cur-select">
24
-          <el-option label="市图书馆停车场" value="市图书馆停车场"></el-option>
25
-          <el-option label="中山公园停车场" value="中山公园停车场"></el-option>
26
-          <el-option label="市中心医院停车场" value="市中心医院停车场"></el-option>
27
-          <el-option label="妇幼保健院停车场" value="妇幼保健院停车场"></el-option>
28
-        </el-select>
29
-      </el-form-item>
16
+
30 17
       <el-button class="btn_save" type="success" @click="handleAdd">客诉登记</el-button>
31 18
     </el-form>
32 19
     <br>
@@ -69,13 +56,14 @@
69 56
       <el-form label-position="left" label-width="80px" :model="formLabelAlign" >
70 57
         <div style="display: flex;justify-content: space-around;">
71 58
         <el-form-item label="">
72
-          <el-select v-model="formInline.region0" placeholder="投诉类型" class="cur-select">
59
+          <el-select v-model="formInline.region1" placeholder="投诉类型" class="cur-select">
73 60
             <el-option label="经营服务类停车问题" value="经营服务类停车问题"></el-option>
74 61
             <el-option label="非法经营停车问题" value="非法经营停车问题"></el-option>
75 62
             <el-option label="不提供税票" value="不提供税票"></el-option>
76 63
 
77 64
           </el-select>
78 65
         </el-form-item>
66
+<<<<<<< Updated upstream
79 67
 <!--        <el-form-item label=":">-->
80 68
 <!--          <el-select v-model="formInline.region2" placeholder="路内停车场" class="cur-select">-->
81 69
 <!--            <el-option label="南街村景区-停车场" value="南街村景区-停车场"></el-option>-->
@@ -90,6 +78,9 @@
90 78
 <!--            <el-option label="妇幼保健院停车场" value="妇幼保健院停车场"></el-option>-->
91 79
 <!--          </el-select>-->
92 80
 <!--        </el-form-item>-->
81
+=======
82
+
83
+>>>>>>> Stashed changes
93 84
         </div>
94 85
 
95 86
         <el-input class="input-wrapper" v-model="searchWords" placeholder="客诉详情">
@@ -104,7 +95,7 @@
104 95
   </div>
105 96
 </template>
106 97
 <script>
107
-import api from "@/api/audit.js";
98
+import api from "@/api/article_liao";
108 99
 import piechart from "@/components/pieChart";
109 100
 import api1 from "@/api/article_z";
110 101
 
@@ -178,7 +169,8 @@ export default {
178 169
       radio: '2',
179 170
       dialogVisible: false,
180 171
       formLabelAlign: {
181
-        ipUrl: ''
172
+        mid: '',
173
+        searchWords:''
182 174
       },
183 175
       selRow: undefined,
184 176
       searchWords: undefined,
@@ -215,14 +207,13 @@ export default {
215 207
       console.log('enter handle cancel apply')
216 208
     },
217 209
     handleConfirm() {
218
-      api.applyResource({idUrl: this.ipUrl}).then(res => {
219
-        if(res.success) {
210
+      api.dashEmployeeQualificationExamine(formInline.region1).then(res => {
211
+        if(res.code === 200) {
220 212
           this.dialogVisible = false
221 213
           this.$message({
222
-            message: '添加成功!',
214
+            message: '修改成功!',
223 215
             type: 'success'
224 216
           })
225
-          this.getTableData()
226 217
         }
227 218
       })
228 219
     },

+ 47 - 19
src/pages/index/components/data_docking.vue

@@ -24,11 +24,46 @@
24 24
   <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
25 25
     <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
26 26
     </el-table-column>
27
+    <el-table-column
28
+      label="操作"
29
+      width="200">
30
+      <template slot-scope="scope" style="display: inline-block">
31
+        <el-button type="primary" @click="handleEdit(scope.row)" slot="reference">修改</el-button>
32
+        <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">
33
+          <el-button type="danger" slot="reference">删除</el-button>
34
+        </el-popconfirm>
35
+      </template>
36
+    </el-table-column>
27 37
   </el-table>
28 38
   <div class="table-pagination">
29 39
     <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
30 40
                    :current-page.sync="pageNum2" :page-size.sync="pageSize2">
31 41
     </el-pagination>
42
+    <el-dialog
43
+      :title="title"
44
+      :visible.sync="dialogVisible"
45
+      width="60%"
46
+      custom-class="audit-dialog">
47
+      <div style="height: 300px">
48
+      <el-form label-position="left" label-width="80px" :model="formLabelAlign">
49
+        <el-form-item label="模块名称">
50
+          <el-input v-model="formLabelAlign.moduleName"></el-input>
51
+        </el-form-item>
52
+        <div style="width: 100%;height: 50px"></div>
53
+        <el-form-item label="接口地址">
54
+          <el-input v-model="formLabelAlign.apiUrl"></el-input>
55
+        </el-form-item>
56
+        <div style="width: 100%;height: 50px"></div>
57
+        <el-form-item label="api秘钥">
58
+          <el-input v-model="formLabelAlign.apiKey"></el-input>
59
+        </el-form-item>
60
+      </el-form>
61
+      </div>
62
+      <span slot="footer" class="dialog-footer">
63
+            <el-button @click="dialogVisible = false">取 消</el-button>
64
+            <el-button type="primary" @click="handleConfirm">确 定</el-button>
65
+        </span>
66
+    </el-dialog>
32 67
   </div>
33 68
   </div>
34 69
 </template>
@@ -64,13 +99,14 @@ export default {
64 99
       pageSize: 10,
65 100
       pageNum: 1,
66 101
       radio: '2',
102
+      title: '',
67 103
       dialogVisible: false,
68 104
       selRow: {},
69 105
       searchWords: undefined,
70 106
     }
71 107
   },
72 108
   mounted() {
73
-    this.getTableData()
109
+    this.dashDataDockingPage()
74 110
   },
75 111
   watch: {
76 112
   },
@@ -85,6 +121,11 @@ export default {
85 121
     handleCancelApply(row) {
86 122
       console.log('enter handle cancel apply')
87 123
     },
124
+    handleEdit(row) {
125
+      this.title = '修改配置'
126
+      this.formLabelAlign = row
127
+      this.dialogVisible = true
128
+    },
88 129
     handleConfirm() {
89 130
       api.dashDataDockingSave({moduleName: this.formLabelAlign.moduleName,apiUrl: this.formLabelAlign.apiUrl,apiKey: this.formLabelAlign.apiKey}).then(res => {
90 131
         if(res.code === 200) {
@@ -93,28 +134,15 @@ export default {
93 134
             message: '添加成功!',
94 135
             type: 'success'
95 136
           })
96
-          this.getTableData()
97 137
         }
98 138
       })
99 139
     },
100
-    submitIntegrationConfig(form1) {
101
-
102
-    },
103
-    getApplyTypeText(val) {
104
-      if (!val){
105
-        return '未申请'
106
-      }
107
-      const textMap = {
108
-        1: '待审批',
109
-        2: '审批通过',
110
-        3: '审批驳回'
111
-      }
112
-      return textMap[val]
140
+    dashDataDockingPage() {
141
+     api.dashDataDockingPage().then(res => {
142
+        this.tableData = res.data.records
143
+       console.log(res.data.records)
144
+      })
113 145
     },
114
-    handleSearch() {
115
-      this.pageNum = 1
116
-      this.getTableData()
117
-    }
118 146
   }
119 147
 }
120 148
 </script>

+ 23 - 40
src/pages/index/components/employee_qualification.vue

@@ -33,7 +33,7 @@
33 33
   </div>
34 34
 </template>
35 35
 <script>
36
-import api from "@/api/audit.js";
36
+import api from "@/api/article_liao";
37 37
 import piechart from "@/components/pieChart";
38 38
 
39 39
 export default {
@@ -45,45 +45,45 @@ export default {
45 45
       columns: [
46 46
         {
47 47
           label: '人员姓名',
48
-          key: 'resourceName'
48
+          key: 'm_name'
49 49
         },
50 50
         {
51 51
           label: '资质名称',
52
-          key: 'resourceType'
52
+          key: 'qualification_name'
53 53
         },
54 54
         {
55 55
           label: '有效时间',
56
-          key: 'resourceType'
56
+          key: 'effective_time'
57 57
         },
58 58
         {
59 59
           label: '考核结果',
60
-          key: 'resourceType'
60
+          key: 'assessment_results'
61 61
         },
62 62
         {
63 63
           label: '考核时间',
64
-          key: 'resourceType'
64
+          key: 'assessment_time'
65 65
         }
66 66
       ],
67 67
       columns2: [
68 68
         {
69 69
           label: '人员姓名',
70
-          key: 'resourceName'
70
+          key: 'staff_name'
71 71
         },
72 72
         {
73 73
           label: '驾驶技术',
74
-          key: 'resourceType'
74
+          key: 'drive_level'
75 75
         },
76 76
         {
77 77
           label: '服务态度',
78
-          key: 'resourceType'
78
+          key: 'server_level'
79 79
         },
80 80
         {
81 81
           label: '沟通能力',
82
-          key: 'resourceType'
82
+          key: 'communicate_level'
83 83
         },
84 84
         {
85 85
           label: '应急处理能力',
86
-          key: 'resourceType'
86
+          key: 'emergency_capability'
87 87
         }
88 88
       ],
89 89
       modelPieColor: ["#2E8B57","#9078f8"],
@@ -104,8 +104,8 @@ export default {
104 104
     }
105 105
   },
106 106
   mounted() {
107
-    this.getTableData()
108
-    this.getTableData2()
107
+    this.dashEmployeeQualificationQualifications()
108
+    this.dashEmployeeQualificationExamine()
109 109
   },
110 110
   watch: {
111 111
   },
@@ -120,35 +120,18 @@ export default {
120 120
     handleCancelApply(row) {
121 121
       console.log('enter handle cancel apply')
122 122
     },
123
-    handleConfirm() {
124
-      const {id} = this.selRow
125
-      api.applyResource({id, applyType: this.radio}).then(res => {
126
-        if(res.success) {
127
-          this.dialogVisible = false
128
-          this.$message({
129
-            message: '审核成功!',
130
-            type: 'success'
131
-          })
132
-          this.getTableData()
133
-        }
134
-      })
135
-    },
136
-    getTableData() {
137
-      const {pageNum, pageSize, searchWords} = this
138
-      api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
139
-        this.tableData = []
140
-        res.data.records.map((item, index) => {
141
-          const newItem = {...item}
142
-          newItem.applyTypeText = this.getApplyTypeText(item.applyType)
143
-          this.tableData.push(newItem)
144
-        })
145
-        this.total = res.data.total
123
+    dashEmployeeQualificationQualifications(){
124
+      api.dashEmployeeQualificationQualifications().then(res => {
125
+        this.tableData = res.data()
126
+        this.pageNum = res.current
127
+        this.pageSize = res.page
146 128
       })
147 129
     },
148
-    getTableData2() {
149
-      api.applyList({}).then(res => {
150
-        this.tableData2 =  res.data.data
151
-        this.total2 = res.data.total
130
+    dashEmployeeQualificationExamine(){
131
+      api.dashEmployeeQualificationExamine().then(res => {
132
+        this.tableData = res.data()
133
+        this.pageNum2 = res.current
134
+        this.pageSize2 = res.page
152 135
       })
153 136
     },
154 137
 

+ 1 - 0
src/pages/index/components/record_query.vue

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3
+
3 4
     <div class="search-card">
4 5
         <el-input class="input-wrapper" v-model="searchWords" placeholder="请输入关键字">
5 6
           <el-button slot="append" icon="el-icon-search"  @click="handleSearch"></el-button>