From a56c7f5fbe4b171a82561dce3b3b0ff6c5c30386 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 22 一月 2024 17:30:58 +0800 Subject: [PATCH] 可用字符集,前后缀,应用,可以用字符集接口下拉和正则接口提交 --- Source/UBCS-WEB/src/views/ruleBasic/paddingCharacter.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/views/ruleBasic/paddingCharacter.vue b/Source/UBCS-WEB/src/views/ruleBasic/paddingCharacter.vue index 5285185..74897c3 100644 --- a/Source/UBCS-WEB/src/views/ruleBasic/paddingCharacter.vue +++ b/Source/UBCS-WEB/src/views/ruleBasic/paddingCharacter.vue @@ -19,7 +19,7 @@ :data="tableData" :header-cell-style="{background:'#FAFAFA',color:'#505050'}" border - style="width: 100%;height: calc(100vh - 320px)" + style="width: 100%;height: calc(100vh - 315px)" @cell-click="cellClickHandler"> <el-table-column align="center" @@ -132,7 +132,7 @@ <script> import {getList, addSave, editSave, deleteSave} from "@/api/code/codeCharcter" -import {gridCodeRule} from "@/api/code/codeCharcter" +import {gridCodeRule} from "@/api/code/mdmrule" export default { name: "usableCharacter", @@ -186,6 +186,8 @@ this.characterEditOldValue = row[column.property]; if (this.editValueList.includes(row[column.property])) { this.$message.warning('璇锋鏌ュ瓧绗﹂泦鏄惁鏈夐噸澶嶏紒') + } else if (row[column.property] === undefined || row[column.property] === null) { + this.$message.warning('璇锋鏌ュ瓧绗﹂泦鏄惁鏈夌┖鍊硷紒'); } else { this.editValueList.push(row[column.property]); } @@ -193,7 +195,7 @@ async getCodeRule() { try { // 缂栫爜瑙勫垯宸插彂甯冩暟鎹簮 - const res = await gridCodeRule({["conditionMap" + "[lcStatus_like]"]: "Released"}); + const res = await gridCodeRule(1,-1); this.characterReleasedList = res.data.data.records; this.queryReleasedList = this.characterReleasedList; this.select = this.characterReleasedList[0].oid; @@ -225,7 +227,7 @@ // const targetObject = this.characterReleasedList.find(obj => obj.oid === this.selectValue); // const chartValue = targetObject.name; getList({codeRuleId: this.select, chartType: "fillerChar", chartValue: this.characterValue}).then(res => { - console.log(res.data.data); + // console.log(res.data.data); this.tableData = res.data.data; this.loading = false; }); -- Gitblit v1.9.3