From f86cdf1a67342fb7aa78384702f4509f7f8988b0 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 28 六月 2023 13:19:32 +0800 Subject: [PATCH] 提交引用码段参照配置修改 --- Source/UBCS-WEB/src/views/code/code.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue index 9962d0a..11a0b9a 100644 --- a/Source/UBCS-WEB/src/views/code/code.vue +++ b/Source/UBCS-WEB/src/views/code/code.vue @@ -1113,18 +1113,18 @@ /* 寮曠敤鐮佹鍙傜収閰嶇疆,瀛愮粍浠跺~瀹屽弬鐓ч厤缃箣鍚庡唴瀹瑰洖鏄炬椂璋冪敤 */ echoReferConfig(content){ // console.log(content.referTypeName); - this.form.referBtmId = content.referType; - this.form.referBtmName = content.referTypeName; + this.form.referBtmId = content.referType || ''; + this.form.referBtmName = content.referTypeName || content.referType; //杞崲鎴怞SON瀛楃涓茶繘琛岀埗缁勪欢鍥炴樉 let submitFormJson = JSON.stringify(content); - this.form.referConfig = submitFormJson; - this.form.referValueInfo = submitFormJson; + this.form.referConfig = submitFormJson || ''; + this.form.referValueInfo = submitFormJson || ''; }, /** 寮曠敤鐮佹涓恒�愬弬鐓у紩鐢ㄧ殑涓氬姟绫诲瀷銆戦�夊彇鍊间箣鍚庣殑鍐呭鍥炴樉鏃惰皟鐢� */ echoReferBtmType(content){ // 瀹炵幇鍥炴樉 - this.form.referBtmId = content.id; - this.form.referBtmName = content.name; + this.form.referBtmId = content.id || ''; + this.form.referBtmName = content.name || content.id; }, /** 鐖跺垎绫婚�夋嫨瀵硅瘽妗嗭紝绗簩灞傚祵濂楀璇濇锛屽強鍏剁浉鍏虫柟娉� */ @@ -1651,7 +1651,7 @@ this.addBasicCodeSettingBox = true; }, // 鏂板鍩虹鐮佹 - saveOrEditBasicCode(){ + async saveOrEditBasicCode(){ if(this.selectionList[0].oid == null || this.selectionList[0].oid == ''){ this.$message.warning('缂哄け蹇呰鍙傛暟锛岃閲嶆柊閫夋嫨缂栫爜瑙勫垯鍚庡啀璇�!'); return; @@ -1659,7 +1659,7 @@ this.form.pkCodeRule = this.selectionList[0].oid; if(this.form.oid == '' || this.form.oid == null){ if(this.checkForm()){ - addSave(this.form).then(() => { + await addSave(this.form).then(() => { this.$message({ type: "success", message: "鎿嶄綔鎴愬姛!" @@ -2645,7 +2645,13 @@ this.enumParam.codeFillType = this.getLocalStorageEnum("codeFillType"); }, loadCodeFillSeparator(){ - this.enumParam.codeFillSeparator = this.getLocalStorageEnum("codeFillSeparator"); + let enumCach = JSON.parse(localStorage.getItem("codeFillSeparator")); + if(enumCach == null) { + getDictionary("codeFillSeparator").then(res=>{ + this.enumParam.codeFillSeparator = res.data.data; + localStorage.setItem(key,JSON.stringify(res.data.data)); + }) + } }, loadCodeLevelType(){ this.enumParam.codeLevelType = this.getLocalStorageEnum("codeLevelType"); -- Gitblit v1.9.3