| | |
| | | > |
| | | <el-option |
| | | v-for="item in enumParam.codeFillSeparator" |
| | | :key="item.itemValue" |
| | | :label="item.itemName" |
| | | :value="item.itemValue" |
| | | :key="item.dictKey" |
| | | :label="item.dictValue" |
| | | :value="item.dictValue" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | saveCodeClassifyValueOrder, |
| | | } from "@/api/code/codeClassifyValue"; |
| | | import { getDictionary } from "@/api/omd/enum"; |
| | | import { getDictionaryBiz } from "@/api/system/dictbiz"; |
| | | import optionBasic from "@/const/code/codebasic"; |
| | | import optionRule from "@/const/code/mdmrule"; |
| | | import attrOption from "@/const/code/selectAttrOptionDialog"; |
| | |
| | | this.$refs.crud.doLayout(); |
| | | this.$refs.crudBasic.doLayout(); |
| | | }); |
| | | }, |
| | | // 生命钩子函数 |
| | | beforeDestroy() { |
| | | // 清除指定缓存 |
| | | localStorage.removeItem('codeSecType'); |
| | | localStorage.removeItem('codeSecLength'); |
| | | localStorage.removeItem('codeFillType'); |
| | | localStorage.removeItem('codeLevelType'); |
| | | localStorage.removeItem('codeCutType'); |
| | | localStorage.removeItem('codeGetValueType'); |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | this.enumParam.codeFillType = this.getLocalStorageEnum("codeFillType") || []; |
| | | }, |
| | | loadCodeFillSeparator() { |
| | | let enumCach = JSON.parse(localStorage.getItem("codeFillSeparator")); |
| | | if (enumCach == null) { |
| | | getDictionary("codeFillSeparator").then((res) => { |
| | | this.enumParam.codeFillSeparator = res.data.data; |
| | | localStorage.setItem( |
| | | "codeFillSeparator", |
| | | JSON.stringify(res.data.data) |
| | | ); |
| | | }); |
| | | } |
| | | //let enumCach = JSON.parse(localStorage.getItem("codeFillSeparator")); |
| | | //if (enumCach == null) { |
| | | getDictionaryBiz({code:"codeFillSeparator"}).then((res) => { |
| | | this.enumParam.codeFillSeparator = res.data.data; |
| | | //console.log(this.enumParam.codeFillSeparator); |
| | | localStorage.setItem( |
| | | "codeFillSeparator", |
| | | JSON.stringify(res.data.data) |
| | | ); |
| | | }); |
| | | //} |
| | | }, |
| | | loadCodeLevelType() { |
| | | this.enumParam.codeLevelType = this.getLocalStorageEnum("codeLevelType") || []; |