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