From 101532b8f8beab566fc0a92c066416c5bdcbfd6c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 29 十一月 2023 14:52:48 +0800 Subject: [PATCH] 整合代码 --- Source/UBCS-WEB/src/views/code/code.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue index 023dbcb..9668e7d 100644 --- a/Source/UBCS-WEB/src/views/code/code.vue +++ b/Source/UBCS-WEB/src/views/code/code.vue @@ -886,14 +886,10 @@ :referConfig="this.referConfig || {}" :display="true" :value="form.customCodeSerialClass" - :text="form.customCodeSerialClass" + :text="form.customCodeSerialClassText" + :serialType="form.serialType" @setReferValue="setReferValue" ></vciWebRefer> -<!-- <el-input--> -<!-- v-model="form.customCodeSerialClass"--> -<!-- :readonly="basicSecOnlyRead"--> -<!-- @focus="streamFocusHandler"--> -<!-- ></el-input>--> </template> @@ -1369,13 +1365,15 @@ title: '鑷畾涔夋祦姘村弬鐓�', showField: 'customCodeSerialClassText', field: 'customCodeSerialClass', - fieldMap: {}, + fieldMap: { + serialType:"serialType" + }, placeholder:'璇烽�夋嫨鑷畾涔夋祦姘�', options: { // 璁剧疆榛樿鐨勫睘鎬� url: 'api/ubcs-code/codeSerialAlgorithmController/gridCodeSerialAlgorithm', + textField:'name', valueField:'classFullName', - textField:'classFullName', isMuti: false, type: "grid", method: 'get', @@ -1387,7 +1385,8 @@ cols: [ {title: '绠楁硶缂栧彿', field: 'id', width: 200}, {title: '绠楁硶鍚嶇О', field: 'name', width: 150}, - {title: '绫诲叏璺緞', field: 'classFullName', width: 300}, + {title: '鑷畾涔夋祦姘碆ean', field: 'classFullName', width: 300}, + {title: '绫诲瀷', field: 'serialType', width: 300}, {title: '鎻忚堪', field: 'description'} ], queryColumns: [ @@ -1717,10 +1716,11 @@ methods: { //鑷畾涔夋祦姘村け鐒� setReferValue(data){ - console.log(data) if(data.field){ this.form[data.field] = data.value || ""; - // this.form[data.showField] = data.text || ""; + this.form[data.showField] = data.text || ""; + this.form.serialType = data.rawData[0].serialType || ""; + } }, /** 杞Щ瑙勫垯鎵�鏈夎�呭璇濇 */ @@ -3670,7 +3670,7 @@ .right { /* float: right; */ - margin-right: 2vw; + /* margin-right: 1vw; */ height: 100%; width: auto; } -- Gitblit v1.9.3