字段信息管理

This commit is contained in:
shidongli 2024-07-02 14:09:57 +08:00
parent abda5eaa0a
commit 9cc6086399

View File

@ -885,33 +885,32 @@ export default {
}, },
// //
clicktype(aitem, index) { clicktype(aitem, index) {
console.log(aitem, '0000000')
this.getListType(); this.getListType();
this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : ''; this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : '';
this.nnerVisibleindex = index; this.nnerVisibleindex = index;
this.innertype = true; this.innertype = true
this.form.taskPartitionDictName = '请选择任务细分';
this.form.taskPartitionDictId = '';
}, },
// //
clickinnerVisible(aitem, index) { clickinnerVisible(aitem, index) {
if (this.taskTypeId == '') { if (this.taskTypeId == ''|| !aitem.taskTypeId) {
this.$modal.msgError("请先选择任务类型"); this.$modal.msgError("请先选择任务类型");
} else { } else {
this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : '';
this.nnerVisibleindex = index; this.nnerVisibleindex = index;
this.taskPartitionDictId = aitem.taskPartitionDictId ? aitem.taskPartitionDictId : '';
this.innerVisible = true; this.innerVisible = true;
} }
// this.getListpartit(); if(aitem.taskTypeId){
this.queryParamstask.taskTypeId=aitem.taskTypeId
}
this.getListpartit();
}, },
// //
clicktypexg() { clicktypexg() {
if (this.form.taskTypeId) { if (this.form.taskTypeId) {
this.taskTypeId = this.form.taskTypeId this.taskTypeId = this.form.taskTypeId
} }
this.getListType(); this.getListType();
this.innertype = true; this.innertype = true;
@ -938,6 +937,7 @@ export default {
this.innertype = false; this.innertype = false;
}, },
nurseclickzx(row) { nurseclickzx(row) {
this.taskPartitionDictId = row.id
if (this.title == '添加标签字段信息') { if (this.title == '添加标签字段信息') {
this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName = this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName =
row.taskPartitionName; row.taskPartitionName;
@ -955,18 +955,23 @@ export default {
nurseclicktype(row) { nurseclicktype(row) {
console.log(row, 'row') console.log(row, 'row')
this.queryParamstask.taskTypeId = row.id this.queryParamstask.taskTypeId = row.id
this.taskTypeId=this.queryParamstask.taskTypeId this.taskTypeId = this.queryParamstask.taskTypeId
this.getListpartit() // this.getListpartit()
if (this.title == '添加标签字段信息') { if (this.title == '添加标签字段信息') {
this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName = this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName =
row.taskTypeName; row.taskTypeName;
this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeId = this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeId =
row.id; row.id;
this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName ='请选择任务细分',
this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictId = '';
// this.form.taskPartitionDictName = '',
this.taskPartitionDictId = '';
} else if (this.titleup == '修改标签字段信息') { } else if (this.titleup == '修改标签字段信息') {
this.form.taskTypeName = row.taskTypeName; this.form.taskTypeName = row.taskTypeName;
this.form.taskTypeId =row.id; this.form.taskTypeId = row.id;
this.form.taskPartitionDictName = "请选择任务细分"; this.form.taskPartitionDictName = "请选择任务细分";
this.form.taskPartitionDictId =''; this.form.taskPartitionDictId = '';
} }
this.innertype = false; this.innertype = false;
}, },
@ -994,6 +999,7 @@ export default {
fieldCode: null, fieldCode: null,
}; };
this.taskTypeId=''
if (this.form.labelFieldInfoList.length == 5) { if (this.form.labelFieldInfoList.length == 5) {
this.$message.error("最多批量添加5条"); this.$message.error("最多批量添加5条");
} else { } else {
@ -1059,7 +1065,7 @@ export default {
this.handleQuerytask(); this.handleQuerytask();
}, },
// //
handleQuerytype(){ handleQuerytype() {
this.queryType.pageNum = 1; this.queryType.pageNum = 1;
this.getListType(); this.getListType();
@ -1078,24 +1084,24 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.taskTypeId='', this.taskTypeId = '',
this.taskPartitionDictId='', this.taskPartitionDictId = '',
this.form = { this.form = {
labelFieldInfoList: [ labelFieldInfoList: [
{ {
fieldType: null, fieldType: null,
fieldName: null, fieldName: null,
fieldRemark: null, fieldRemark: null,
fieldSort: undefined, fieldSort: undefined,
taskPartitionDictName: '请选择任务细分', taskPartitionDictName: '请选择任务细分',
taskPartitionDictId: '', taskPartitionDictId: '',
taskTypeName: '请选择任务类型', taskTypeName: '请选择任务类型',
taskTypeId: '', taskTypeId: '',
}, },
], ],
}; };
this.open = true; this.open = true;
this.title = "添加标签字段信息"; this.title = "添加标签字段信息";
}, },
@ -1116,7 +1122,6 @@ export default {
this.queryParamstask.taskTypeId = this.form.taskTypeId this.queryParamstask.taskTypeId = this.form.taskTypeId
this.getListpartit(); this.getListpartit();
} }
this.openup = true; this.openup = true;
this.titleup = "修改标签字段信息"; this.titleup = "修改标签字段信息";
}); });
@ -1151,7 +1156,6 @@ export default {
} }
}); });
console.log(obj, 'obj')
// return // return
addLabelfieldinfo(obj).then(response => { addLabelfieldinfo(obj).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");