guhongwei 5 tahun lalu
induk
melakukan
51afc1b672
2 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 4 4
      src/components/drawer.vue
  2. 1 1
      src/store/otherList.js

+ 4 - 4
src/components/drawer.vue

@@ -4,10 +4,10 @@
     <el-drawer title="选择职位" :visible.sync="drawer" :direction="`btt`" size="40%">
       <el-row v-for="(item, index) in data" :key="index" @click.native="select(item)" class="select__options">
         <el-col :span="20">
-          {{ item.label }}
+          {{ item.name }}
         </el-col>
         <el-col :span="4">
-          <span class="el-icon-check icons" v-if="isSelect(item.label)"></span>
+          <span class="el-icon-check icons" v-if="isSelect(item.name)"></span>
         </el-col>
       </el-row>
     </el-drawer>
@@ -44,7 +44,7 @@ export default {
   methods: {
     select(item) {
       this.$emit('select', { type: this.type, value: this.need ? _.get(item, `${this.need}`) : item });
-      this.$set(this, `label`, item.label);
+      this.$set(this, `label`, item.name);
       this.drawer = false;
     },
     filterData() {
@@ -57,7 +57,7 @@ export default {
         return boo === true ? item : '';
       });
       if (result.length > 0) {
-        this.$set(this, `label`, result[0].label);
+        this.$set(this, `label`, result[0].name);
       }
       return result.length > 0;
     },

+ 1 - 1
src/store/otherList.js

@@ -4,7 +4,7 @@ import _ from 'lodash';
 
 Vue.use(Vuex);
 const api = {
-  dictionary: '/api/code/{type}/items', //type === xzqh:query:level(1/2);parent(无/code)
+  dictionary: '/code/{type}/items', //type === xzqh:query:level(1/2);parent(无/code)
 };
 export const state = () => ({});
 export const mutations = {};