From 52f21c9b7cdcf76cd474f61c0031930557c16f84 Mon Sep 17 00:00:00 2001 From: shidongli Date: Mon, 15 Jul 2024 14:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/labelfieldinfo/index.vue | 43 ++++++++++++++++++----- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/src/views/manage/labelfieldinfo/index.vue b/src/views/manage/labelfieldinfo/index.vue index e7440da..93ddfda 100644 --- a/src/views/manage/labelfieldinfo/index.vue +++ b/src/views/manage/labelfieldinfo/index.vue @@ -330,13 +330,23 @@ label="字段编码" :rules="rules.labelFieldInfoList.fieldCode" :prop="`labelFieldInfoList.${index}.fieldCode`" + > - --> + + @@ -476,9 +486,10 @@ @@ -888,7 +899,7 @@ export default { fieldCode: [ { required: true, - message: "请输入字段编码", + message: "请输入字段编码,只支持字母", trigger: "blur", }, ], @@ -920,7 +931,7 @@ export default { fieldCode: [ { required: true, - message: "请输入字段编码", + message: "请输入字段编码,只支持字母", trigger: "blur", }, ], @@ -955,6 +966,18 @@ export default { }, methods: { + validateInput(aitem) { + aitem.fieldCode = aitem.fieldCode.toUpperCase(); + + + }, + // 修改校验 + validateInputup(){ + this.form.fieldCode = this.form.fieldCode.toUpperCase(); + + }, + + // 全部点击事件 allclick() { this.itemid = '' @@ -1082,13 +1105,17 @@ export default { this.innertype = false; }, nurseclickzx(row) { + console.log(this.titleup) this.taskPartitionDictId = row.id if (this.title == '添加标签字段信息') { + console.log('添加') + this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName = row.taskPartitionName; this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = row.id; - } else if (this.titleup == '修改标签字段信息') { + } else{ + console.log('修改') this.form.taskPartitionDictName = row.taskPartitionName; this.form.taskPartitionDictId = row.id; @@ -1111,8 +1138,7 @@ export default { this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = ''; // this.form.taskPartitionDictName = '请选择任务细分', this.taskPartitionDictId = ''; - - } else if (this.titleup == '修改标签字段信息') { + } else{ this.form.taskTypeName = row.taskTypeName; this.form.taskTypeId = row.id; this.form.taskPartitionDictName = "请选择任务细分"; @@ -1310,6 +1336,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.getListleft(); }); } }