Jelajahi Sumber

机构类型接口更换

yaoyao 2 tahun lalu
induk
melakukan
a782441f45

+ 1 - 1
src/http/moudules/dept.js

@@ -250,7 +250,7 @@ export const sysDeptInternalAgentQueryPage = (data) => {
 // 机构类型
 export const sysDeptInternalAgentType = (data) => {
     return axios({
-        url: '/sysDict/dictDetails/sysDeptInternalAgentType',
+        url: '/dict/dictListByType?type=sysDeptInternalAgentType',
         method: 'get',
         data
     })

+ 6 - 6
src/views/PeopleManage/Staff/AreaOrganization.vue

@@ -148,9 +148,9 @@
               >
                 <el-option
                   v-for="item in comtypeoptions"
-                  :key="item.dictValue"
-                  :label="item.dictTag"
-                  :value="item.dictValue"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
                 ></el-option>
               </el-select>
             </el-form-item>
@@ -198,7 +198,7 @@ export default {
   created() {
     this.findTreeData(); // 获取左边机构树数据
     this.$api.dept.sysDeptInternalAgentType().then(res => {
-      this.comtypeoptions = res.data.ddList
+      this.comtypeoptions = res.data
     })
   },
   data() {
@@ -404,8 +404,8 @@ export default {
       let comtype = row.comtype;
       return CommonUtil.getDataName({
         dataList: this.comtypeoptions,
-        value: "dictValue",
-        label: "dictTag",
+        value: "label",
+        label: "value",
         data: comtype,
       });
     },