字段信息管理

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