Browse Source

修复字典数据显示不全问题

RuoYi 4 years ago
parent
commit
103bf66f77
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ruoyi-ui/src/views/system/dict/data.vue

+ 3 - 3
ruoyi-ui/src/views/system/dict/data.vue

@@ -191,7 +191,7 @@
191
 
191
 
192
 <script>
192
 <script>
193
 import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
193
 import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
194
-import { listType, getType } from "@/api/system/dict/type";
194
+import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type";
195
 
195
 
196
 export default {
196
 export default {
197
   name: "Data",
197
   name: "Data",
@@ -287,8 +287,8 @@ export default {
287
     },
287
     },
288
     /** 查询字典类型列表 */
288
     /** 查询字典类型列表 */
289
     getTypeList() {
289
     getTypeList() {
290
-      listType().then(response => {
291
-        this.typeOptions = response.rows;
290
+      getDictOptionselect().then(response => {
291
+        this.typeOptions = response.data;
292
       });
292
       });
293
     },
293
     },
294
     /** 查询字典数据列表 */
294
     /** 查询字典数据列表 */