add
This commit is contained in:
@ -50,11 +50,3 @@ export function refreshCache() {
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取字典选择框列表
|
||||
export function optionselect() {
|
||||
return request({
|
||||
url: "/system/dict/type/optionselect",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
@ -238,10 +238,7 @@
|
||||
|
||||
<script setup name="Data">
|
||||
import useDictStore from "@/store/modules/dict";
|
||||
import {
|
||||
optionselect as getDictOptionselect,
|
||||
getType,
|
||||
} from "@/api/system/dict/type";
|
||||
import { getType } from "@/api/system/dict/type";
|
||||
import {
|
||||
listData,
|
||||
getData,
|
||||
@ -308,12 +305,6 @@ function getTypes(dictId) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 查询字典类型列表 */
|
||||
function getTypeList() {
|
||||
getDictOptionselect().then((response) => {
|
||||
typeOptions.value = response.data;
|
||||
});
|
||||
}
|
||||
/** 查询字典数据列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
@ -429,5 +420,4 @@ function handleExport() {
|
||||
}
|
||||
|
||||
getTypes(route.params && route.params.dictId);
|
||||
getTypeList();
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user