Просмотр исходного кода

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

RuoYi лет назад: 4
Родитель
Сommit
103bf66f77
1 измененных файлов с 3 добавлено и 3 удалено
  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 192
 <script>
193 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 196
 export default {
197 197
   name: "Data",
@@ -287,8 +287,8 @@ export default {
287 287
     },
288 288
     /** 查询字典类型列表 */
289 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
     /** 查询字典数据列表 */