From 1f238ae264c0dfca87bba9ea9da5456153991eaa Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 04 七月 2023 17:22:03 +0800 Subject: [PATCH] 修改system服务部分接口 --- Source/UBCS-WEB/src/views/code/code.vue | 40 ++++++++++++++++++++++------------------ 1 files changed, 22 insertions(+), 18 deletions(-) diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue index bd8d6b1..ecb6eac 100644 --- a/Source/UBCS-WEB/src/views/code/code.vue +++ b/Source/UBCS-WEB/src/views/code/code.vue @@ -418,6 +418,8 @@ append-to-body style="height: 115vh; margin-top: -13vh; overflow: hidden" destroy-on-close + lock-scroll + :close-on-click-modal="false" @close="clearBasicAddForm"> <!-- 绗竴灞傚璇濇,娣诲姞鐮佹淇℃伅瀵硅瘽妗嗕腑鐨勫唴瀹� --> @@ -527,7 +529,7 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="琛ヤ綅鏃剁殑瀛楃:" :label-width="rightFormLabelWidth"> + <el-form-item v-if="form.codeFillType!='code_fill_none'" label="琛ヤ綅鏃剁殑瀛楃:" :label-width="rightFormLabelWidth"> <el-select v-model="form.codeFillSeparator" @blur="inputSelectBlur" filterable placeholder="璇烽�夋嫨" :disabled="basicSecOnlyRead"> <el-option v-for="item in enumParam.codeFillSeparator" @@ -575,7 +577,7 @@ </el-option> </el-select> </el-form-item> - <el-form-item id="ShowOrHide" v-mode="showCutLength" v-if="showCutLength==true" label="鍊兼埅鍙栭暱搴�:" :label-width="rightFormLabelWidth"> + <el-form-item id="ShowOrHide" v-if="form.valueCutType!='code_cut_none'" label="鍊兼埅鍙栭暱搴�:" :label-width="rightFormLabelWidth"> <el-input v-model.number="form.valueCutLength" ref="valueCutLength" :readonly="basicSecOnlyRead"></el-input> </el-form-item> <el-form-item label="鍙栧�肩被鍨�:" :label-width="rightFormLabelWidth"> @@ -667,7 +669,7 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="琛ヤ綅鏃剁殑瀛楃:" :label-width="rightFormLabelWidth"> + <el-form-item v-if="form.codeFillType!='code_fill_none'" label="琛ヤ綅鏃剁殑瀛楃:" :label-width="rightFormLabelWidth"> <el-select v-model="form.codeFillSeparator" filterable @blur="inputSelectBlur" placeholder="璇烽�夋嫨" :disabled="basicSecOnlyRead"> <el-option v-for="item in enumParam.codeFillSeparator" @@ -838,7 +840,6 @@ total: 0 }, selectionList: [], - showCutLength: false, /*缂栫爜瑙勫垯琛ㄦ牸閰嶇疆*/ optionRule: optionRule, data: [], @@ -1094,6 +1095,9 @@ }, watch:{ + }, + mounted(){ + this.loadTotalEnum(); }, methods: { @@ -1678,20 +1682,15 @@ this.loadBasic(this.selectionList[0]); }else{ // 鍙兘鍙傜収寮曠敤鐨勪笟鍔$被鍨嬩細鍙戠敓鏀瑰彉鎵�浠ヨ繖鍎跨洿鎺ュreferConfig鐨刯son杩涜鏀瑰彉 - if(this.form.referConfig != undefined){ + if(this.form.referConfig === "coderefersec" || this.form.referConfig != undefined){ let referConfig = JSON.parse(this.form.referConfig); referConfig.referType = this.form.referBtmId; referConfig.referTypeName = this.form.referBtmName; this.form.referConfig = JSON.stringify(referConfig); - } - if(this.form.referValueInfo != undefined){ let referValueInfo = JSON.parse(this.form.referValueInfo); referValueInfo.referType = this.form.referBtmId; - this.form.referValueInfo = JSON.stringify(referValueInfo); } editSave(this.form).then(() => { - // 鍏抽棴瀵硅瘽妗� - this.addBasicCodeSettingBox = false this.$message({ type: "success", message: "鎿嶄綔鎴愬姛!" @@ -1700,6 +1699,8 @@ window.console.log(error); }); this.loadBasic(this.selectionList[0]); + // 鍏抽棴瀵硅瘽妗� + this.addBasicCodeSettingBox = false } }, // 鍥犱负elementui鐨勮〃鍗曟牎楠岃缃笉涓婃墍浠ラ噰鐢ㄥ垽鏂殑鏂瑰紡鏉ュ仛琛ㄥ崟妫�楠屾柟寮� @@ -2292,6 +2293,7 @@ }, // 娣诲姞 rowSave(row, done, loading) { + console.log(row); add(row).then(() => { this.onLoad(this.page); this.$message({ @@ -2389,13 +2391,11 @@ }, changeCutType(value){ if (value != 'code_cut_none'){ - this.showCutLength = true; if(this.form.valueCutLength == ''){ this.form.valueCutLength = 1; } }else{ this.form.valueCutLength = ''; - this.showCutLength = false; } }, // 鍗曞嚮缂栫爜瑙勫垯瀹炵幇琛岄�夋嫨 @@ -2607,12 +2607,6 @@ valueCutLength: row!=null&&row.valueCutLength != '' ? row.valueCutLength:'', // codeGetValueType: row!=null&&row.codeGetValueType != '' ? row.codeGetValueType:'code_get_value_all_up', //鍙栧�肩被鍨� 鏋氫妇鏌ヨ }); - if(this.form.valueCutType === 'code_cut_none'){ - this.showCutLength = false; - }else{ - this.showCutLength = true; - } - this.loadCodeLevelType(); this.loadCodeCutType(); this.loadCodeGetValueType(); @@ -2664,6 +2658,16 @@ } return enumCach; }, + // 缁熶竴鍔犺浇鎵�鏈夋灇涓炬煡璇紝涓昏鏄负閬垮厤鍒囨崲鐮佹绫诲瀷鏃惰繕鏈姞杞藉畬鎴愮殑鎯呭喌 + loadTotalEnum(){ + this.loadCodeSecType(); + this.loadCodeSecLength(); + this.loadCodeFillType(); + this.loadCodeFillSeparator(); + this.loadCodeLevelType(); + this.loadCodeCutType(); + this.loadCodeGetValueType(); + }, //鏋氫妇鍜屽彲杈撳彲閫夊唴瀹规煡璇� loadCodeSecType(){ this.enumParam.secTypeList = this.getLocalStorageEnum("codeSecType"); -- Gitblit v1.9.3