diff --git a/pages/common/file/fileUpload/index2.vue b/pages/common/file/fileUpload/index2.vue new file mode 100644 index 0000000..f01d7a9 --- /dev/null +++ b/pages/common/file/fileUpload/index2.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/utils/dict.js b/utils/dict.js new file mode 100644 index 0000000..2b83811 --- /dev/null +++ b/utils/dict.js @@ -0,0 +1,13 @@ + +import { ref } from 'vue' + +import store from '@/store' +import { getDicts } from "@/api/system/dict/data" +const sex_dict = ref([]) + +export const getDictLabelByValue = (dictInfo, state) => { + return getDicts(dictInfo).then(e => { + const dict = e.data.find((dict) => dict.dictValue === state); + return dict ? dict : '未知状态'; + }); + }; \ No newline at end of file