yuwandanmian 1 vuosi sitten
vanhempi
commit
878be19482
3 muutettua tiedostoa jossa 17 lisäystä ja 16 poistoa
  1. 1 1
      src/api/dict.js
  2. 13 12
      src/views/dict/map/components/CreateDialog.vue
  3. 3 3
      src/views/dict/map/index.vue

+ 1 - 1
src/api/dict.js

@@ -21,7 +21,7 @@ export function ssczysAdd(data) {
 // 2.0 转 3.0 编辑
 export function ssczysSave(data) {
   return request({
-    url: '//ssczys/ssczysSave',
+    url: '/ssczys/ssczysSave',
     method: 'post',
     data: data
   })

+ 13 - 12
src/views/dict/map/components/CreateDialog.vue

@@ -89,20 +89,21 @@ export default {
   },
   created() {
     if (this.data.row.id) {
-      const { ssbm,
-        ssmc,
-        ssysbm,
-        ssysmc,
-        sslb,
-        ssnm,
+      const {
+        SSBM,
+        SSMC,
+        SSYSBM,
+        SSYSMC,
+        SSLB,
+        SSNM,
         id } = this.data.row
-      this.ruleForm.ssbm = ssbm
-      this.ruleForm.ssmc = ssmc
-      this.ruleForm.ssysbm = ssysbm
+      this.ruleForm.ssbm = SSBM
+      this.ruleForm.ssmc = SSMC
+      this.ruleForm.ssysbm = SSYSBM
       this.ruleForm.id = id
-      this.ruleForm.ssysmc = ssysmc
-      this.ruleForm.sslb = sslb
-      this.ruleForm.ssnm = ssnm
+      this.ruleForm.ssysmc = SSYSMC
+      this.ruleForm.sslb = SSLB
+      this.ruleForm.ssnm = SSNM
     }
   },
   methods: {

+ 3 - 3
src/views/dict/map/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="app-container">
-    <SearchBoxVue :data="searchData" @search="handleSearch" @export="handleExport" />
-    <TableBoxVue :loading="loading" :data="tableData" style="margin-top: -40px;" @refresh="handleRefresh" />
+    <SearchBoxVue :data="searchData" @search="handleSearch" />
+    <TableBoxVue :loading="loading" :data="tableData" style="margin-top: -40px;" @refresh="handleRefresh" @export="handleExport" />
     <pagination
       :auto-scroll="false"
       :total="paginationData.total"
@@ -83,7 +83,7 @@ export default {
       this.getList()
     },
     handleExport() {
-      ssczysExport(this.this.searchData).then((res) => {
+      ssczysExport(this.searchData).then((res) => {
         const content = res.data // 后台返回二进制数据
         const blob = new Blob([content])
         const fileName = `2.0转3.0.csv`