|
|
@ -185,7 +185,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup name="Data">
|
|
|
|
<script setup name="Data">
|
|
|
|
import { listType, getType } from "@/api/system/dict/type";
|
|
|
|
import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type";
|
|
|
|
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
|
|
|
|
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
|
|
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
@ -242,8 +242,8 @@ function getTypes(dictId) {
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询字典类型列表 */
|
|
|
|
/** 查询字典类型列表 */
|
|
|
|
function getTypeList() {
|
|
|
|
function getTypeList() {
|
|
|
|
listType().then(response => {
|
|
|
|
getDictOptionselect().then(response => {
|
|
|
|
typeOptions.value = response.rows;
|
|
|
|
typeOptions.value = response.data;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/** 查询字典数据列表 */
|
|
|
|
/** 查询字典数据列表 */
|
|
|
|