From 503ee07a40f17ec3661e2ddd49650e75de7d46cb Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 28 Jun 2024 18:14:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86+=E7=94=BB=E5=83=8F=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/Portraitedit/index.vue | 7 +- src/views/manage/labelfieldinfo/index.vue | 219 ++++++++++++++++++++-- 2 files changed, 208 insertions(+), 18 deletions(-) diff --git a/src/views/manage/Portraitedit/index.vue b/src/views/manage/Portraitedit/index.vue index 7f3b9b5..5eb9d0f 100644 --- a/src/views/manage/Portraitedit/index.vue +++ b/src/views/manage/Portraitedit/index.vue @@ -32,7 +32,7 @@ taskid == ulitem.taskPartitionDictId ? 'allactive' : 'all' " > - {{ ulitem.taskPartitionDictName }} + {{ulitem.taskTypeName}}|{{ ulitem.taskPartitionDictName }} @@ -384,6 +384,11 @@ export default { width: 100%; height: 50px; border-bottom: 1px solid #dcdfe6; + .spanitme{ + padding: 10px; + color: #A8A8A8; + + } .count { display: inline-block; diff --git a/src/views/manage/labelfieldinfo/index.vue b/src/views/manage/labelfieldinfo/index.vue index 0ae0e59..a7b1046 100644 --- a/src/views/manage/labelfieldinfo/index.vue +++ b/src/views/manage/labelfieldinfo/index.vue @@ -237,6 +237,34 @@ + + {{ aitem.taskTypeName }} + {{ aitem.taskTypeName }} + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + @@ -531,6 +649,8 @@ import { listLabelfieldinfo, getLabelfieldinfo, delLabelfieldinfo, addLabelfieldinfo, updateLabelfieldinfo } from "@/api/manage/labelfieldinfo"; import { listPartition } from "@/api/system/partition"; import { getAgencytype } from "@/api/system/agency"; +import { listTaskType } from "@/api/system/taskType"; + export default { name: "Labelfieldinfo", @@ -543,6 +663,7 @@ export default { queryParamstask: { pageNum: 1, pageSize: 10, + taskTypeId: null, taskTypeName: null, taskPartitionName: null, @@ -554,8 +675,22 @@ export default { }, nnerVisibleindex: '', taskPartitionDictId: '', + taskTypeId:'', maxTableHeight: undefined, totaltask: 0, + // 任务类型 + innertype: false, + totaltype:0, + taskTypeList:[], + + queryType: { + pageNum: 1, + pageSize: 10, + taskTypeName: null, + taskTypeCode: null, + taskTypeSort: null, + taskTypeRemark: null, + }, // 遮罩层 loading: true, // 选中数组 @@ -646,12 +781,12 @@ export default { }, ], fieldCode: [ - { - required: true, - message: "请输入字段编码", - trigger: "blur", - }, - ], + { + required: true, + message: "请输入字段编码", + trigger: "blur", + }, + ], fieldSort: [ { required: true, @@ -695,6 +830,15 @@ export default { this.options = res.data; }); }, + /** 查询任务类型字典列表 */ + getListType() { + this.loading = true; + listTaskType(this.queryType).then(response => { + this.taskTypeList = response.rows; + this.totaltype = response.total; + this.loading = false; + }); + }, // 任务细分列表 getListpartit() { this.loading = true; @@ -704,10 +848,21 @@ export default { this.loading = false; }); }, + // 任务类型弹框 + clicktype(aitem, index){ + console.log(aitem,'0000000') + this.getListType(); + this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : ''; + this.nnerVisibleindex = index; + this.innertype = true; + this.form.taskPartitionDictName= '请选择任务细分'; + this.form.taskPartitionDictId=''; + + }, // 任务细分弹框 clickinnerVisible(aitem, index) { - this.getListpartit(); - this.taskPartitionDictId = aitem.taskPartitionDictId ? aitem.taskPartitionDictId : ''; + // this.getListpartit(); + this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : ''; this.nnerVisibleindex = index; this.innerVisible = true; }, @@ -716,6 +871,10 @@ export default { if (this.form.taskPartitionDictId) { this.taskPartitionDictId = this.form.taskPartitionDictId } + if (this.form.taskTypeId) { + this.taskTypeId = this.form.taskTypeId + } + this.getListpartit(); this.innerVisible = true; }, @@ -724,22 +883,41 @@ export default { innerVisiblecancel() { this.innerVisible = false; }, + typeecancel(){ + this.innertype = false; + }, nurseclickzx(row) { - console.log(row) + if (this.title == '添加标签字段信息') { this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName = row.taskPartitionName; this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = row.id; } else if (this.titleup == '修改标签字段信息') { - this.form.taskPartitionDictName =row.taskPartitionName; + this.form.taskPartitionDictName = row.taskPartitionName; this.form.taskPartitionDictId = row.id; } - this.innerVisible = false; }, + // 任务类型 + nurseclicktype(row) { + console.log(row,'row') + this.queryParamstask.taskTypeId=row.id + this.getListpartit() + if (this.title == '添加标签字段信息') { + this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName = + row.taskTypeName; + this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeId = + row.id; + } else if (this.titleup == '修改标签字段信息') { + this.form.taskTypeName = row.taskTypeName; + this.form.taskTypeId = + row.id; + } + this.innertype = false; + }, /** 查询标签字段信息列表 */ getList() { @@ -759,8 +937,10 @@ export default { fieldSort: undefined, taskPartitionDictName: '请选择任务细分', taskPartitionDictId: '', - fieldCode:null, - + taskTypeName:'请选择任务类型', + taskTypeId:'', + fieldCode: null, + }; if (this.form.labelFieldInfoList.length == 5) { this.$message.error("最多批量添加5条"); @@ -799,6 +979,8 @@ export default { updateTime: null, taskPartitionDictName: null, taskPartitionDictId: null, + taskTypeId:null, + taskTypeName:null, }; @@ -842,6 +1024,9 @@ export default { fieldSort: undefined, taskPartitionDictName: '请选择任务细分', taskPartitionDictId: '', + taskTypeName:'请选择任务类型', + taskTypeId:'', + }, ],