字段信息管理
This commit is contained in:
parent
1dc8b7d8ff
commit
ec41b6db53
@ -222,21 +222,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
|
||||||
label="字段排序"
|
|
||||||
:rules="rules.labelFieldInfoList.fieldSort"
|
|
||||||
:prop="`labelFieldInfoList.${index}.fieldSort`"
|
|
||||||
>
|
|
||||||
<el-input-number
|
|
||||||
v-model="aitem.fieldSort"
|
|
||||||
controls-position="right"
|
|
||||||
:min="0"
|
|
||||||
placeholder="请输入字段排序"
|
|
||||||
style="width: 210px"
|
|
||||||
/>
|
|
||||||
<!-- <el-input v-model="aitem.fieldSort" placeholder="请输入字段排序" oninput="value=value.replace(/[^\d]/g,'')"
|
|
||||||
maxlength="5"/> -->
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="任务类型" prop="taskTypeId">
|
<el-form-item label="任务类型" prop="taskTypeId">
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
@ -293,6 +279,21 @@
|
|||||||
>{{ aitem.taskPartitionDictName }}</el-button
|
>{{ aitem.taskPartitionDictName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="字段排序"
|
||||||
|
:rules="rules.labelFieldInfoList.fieldSort"
|
||||||
|
:prop="`labelFieldInfoList.${index}.fieldSort`"
|
||||||
|
>
|
||||||
|
<el-input-number
|
||||||
|
v-model="aitem.fieldSort"
|
||||||
|
controls-position="right"
|
||||||
|
:min="0"
|
||||||
|
placeholder="请输入字段排序"
|
||||||
|
style="width: 210px"
|
||||||
|
/>
|
||||||
|
<!-- <el-input v-model="aitem.fieldSort" placeholder="请输入字段排序" oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
|
maxlength="5"/> -->
|
||||||
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="字段编码"
|
label="字段编码"
|
||||||
:rules="rules.labelFieldInfoList.fieldCode"
|
:rules="rules.labelFieldInfoList.fieldCode"
|
||||||
@ -308,7 +309,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字段备注信息" prop="fieldRemark">
|
<el-form-item label="字段备注信息" prop="fieldRemark">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 210px"
|
style="width: 530px"
|
||||||
v-model="aitem.fieldRemark"
|
v-model="aitem.fieldRemark"
|
||||||
placeholder="请输入字段备注信息"
|
placeholder="请输入字段备注信息"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -375,14 +376,33 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字段排序" prop="fieldSort">
|
<el-form-item label="任务类型" prop="taskTypeId">
|
||||||
<el-input-number
|
<el-button
|
||||||
v-model="form.fieldSort"
|
type=""
|
||||||
controls-position="right"
|
v-if="form.taskTypeName == '请选择任务类型'"
|
||||||
:min="0"
|
@click="clicktypexg()"
|
||||||
placeholder="请输入字段排序"
|
style="
|
||||||
style="width: 210px"
|
width: 210px;
|
||||||
/>
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
color: #c0c4cc;
|
||||||
|
overflow: hidden;
|
||||||
|
"
|
||||||
|
>{{ form.taskTypeName }}</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
@click="clicktypexg()"
|
||||||
|
type=""
|
||||||
|
v-else
|
||||||
|
style="
|
||||||
|
width: 210px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
padding-left: -10px;
|
||||||
|
overflow: hidden;
|
||||||
|
"
|
||||||
|
>{{ form.taskTypeName }}</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="任务细分" prop="taskPartitionDictId">
|
<el-form-item label="任务细分" prop="taskPartitionDictId">
|
||||||
<el-button
|
<el-button
|
||||||
@ -412,6 +432,15 @@
|
|||||||
>{{ form.taskPartitionDictName }}</el-button
|
>{{ form.taskPartitionDictName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="字段排序" prop="fieldSort">
|
||||||
|
<el-input-number
|
||||||
|
v-model="form.fieldSort"
|
||||||
|
controls-position="right"
|
||||||
|
:min="0"
|
||||||
|
placeholder="请输入字段排序"
|
||||||
|
style="width: 210px"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="字段编码" prop="fieldCode">
|
<el-form-item label="字段编码" prop="fieldCode">
|
||||||
<el-input
|
<el-input
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
@ -423,7 +452,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="字段备注信息" prop="fieldRemark">
|
<el-form-item label="字段备注信息" prop="fieldRemark">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 210px"
|
style="width: 530px"
|
||||||
v-model="form.fieldRemark"
|
v-model="form.fieldRemark"
|
||||||
placeholder="请输入字段备注信息"
|
placeholder="请输入字段备注信息"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -595,7 +624,7 @@
|
|||||||
:data="taskTypeList"
|
:data="taskTypeList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -663,7 +692,7 @@ export default {
|
|||||||
queryParamstask: {
|
queryParamstask: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|
||||||
taskTypeId: null,
|
taskTypeId: null,
|
||||||
taskTypeName: null,
|
taskTypeName: null,
|
||||||
taskPartitionName: null,
|
taskPartitionName: null,
|
||||||
@ -675,13 +704,13 @@ export default {
|
|||||||
},
|
},
|
||||||
nnerVisibleindex: '',
|
nnerVisibleindex: '',
|
||||||
taskPartitionDictId: '',
|
taskPartitionDictId: '',
|
||||||
taskTypeId:'',
|
taskTypeId: '',
|
||||||
maxTableHeight: undefined,
|
maxTableHeight: undefined,
|
||||||
totaltask: 0,
|
totaltask: 0,
|
||||||
// 任务类型
|
// 任务类型
|
||||||
innertype: false,
|
innertype: false,
|
||||||
totaltype:0,
|
totaltype: 0,
|
||||||
taskTypeList:[],
|
taskTypeList: [],
|
||||||
|
|
||||||
queryType: {
|
queryType: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -849,22 +878,38 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 任务类型弹框
|
// 任务类型弹框
|
||||||
clicktype(aitem, index){
|
clicktype(aitem, index) {
|
||||||
console.log(aitem,'0000000')
|
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.taskPartitionDictName = '请选择任务细分';
|
||||||
this.form.taskPartitionDictId='';
|
this.form.taskPartitionDictId = '';
|
||||||
|
|
||||||
},
|
},
|
||||||
// 任务细分弹框
|
// 任务细分弹框
|
||||||
clickinnerVisible(aitem, index) {
|
clickinnerVisible(aitem, index) {
|
||||||
|
if (this.taskTypeId == '') {
|
||||||
|
this.$modal.msgError("请先选择任务类型");
|
||||||
|
} else {
|
||||||
|
this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : '';
|
||||||
|
this.nnerVisibleindex = index;
|
||||||
|
this.innerVisible = true;
|
||||||
|
}
|
||||||
// this.getListpartit();
|
// this.getListpartit();
|
||||||
this.taskTypeId = aitem.taskTypeId ? aitem.taskTypeId : '';
|
|
||||||
this.nnerVisibleindex = index;
|
},
|
||||||
this.innerVisible = true;
|
// 修改任务类型
|
||||||
|
clicktypexg() {
|
||||||
|
if (this.form.taskTypeId) {
|
||||||
|
this.taskTypeId = this.form.taskTypeId
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
this.getListType();
|
||||||
|
this.innertype = true;
|
||||||
|
|
||||||
},
|
},
|
||||||
// 修改任务细分弹框
|
// 修改任务细分弹框
|
||||||
clickinnerVisiblexg() {
|
clickinnerVisiblexg() {
|
||||||
@ -883,11 +928,10 @@ export default {
|
|||||||
innerVisiblecancel() {
|
innerVisiblecancel() {
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
},
|
},
|
||||||
typeecancel(){
|
typeecancel() {
|
||||||
this.innertype = false;
|
this.innertype = false;
|
||||||
},
|
},
|
||||||
nurseclickzx(row) {
|
nurseclickzx(row) {
|
||||||
|
|
||||||
if (this.title == '添加标签字段信息') {
|
if (this.title == '添加标签字段信息') {
|
||||||
this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName =
|
this.form.labelFieldInfoList[this.nnerVisibleindex].taskPartitionDictName =
|
||||||
row.taskPartitionName;
|
row.taskPartitionName;
|
||||||
@ -903,8 +947,8 @@ 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.getListpartit()
|
this.getListpartit()
|
||||||
if (this.title == '添加标签字段信息') {
|
if (this.title == '添加标签字段信息') {
|
||||||
this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName =
|
this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName =
|
||||||
@ -913,8 +957,9 @@ export default {
|
|||||||
row.id;
|
row.id;
|
||||||
} else if (this.titleup == '修改标签字段信息') {
|
} else if (this.titleup == '修改标签字段信息') {
|
||||||
this.form.taskTypeName = row.taskTypeName;
|
this.form.taskTypeName = row.taskTypeName;
|
||||||
this.form.taskTypeId =
|
this.form.taskTypeId =row.id;
|
||||||
row.id;
|
this.form.taskPartitionDictName = "请选择任务细分";
|
||||||
|
this.form.taskPartitionDictId ='';
|
||||||
}
|
}
|
||||||
this.innertype = false;
|
this.innertype = false;
|
||||||
},
|
},
|
||||||
@ -937,8 +982,8 @@ export default {
|
|||||||
fieldSort: undefined,
|
fieldSort: undefined,
|
||||||
taskPartitionDictName: '请选择任务细分',
|
taskPartitionDictName: '请选择任务细分',
|
||||||
taskPartitionDictId: '',
|
taskPartitionDictId: '',
|
||||||
taskTypeName:'请选择任务类型',
|
taskTypeName: '请选择任务类型',
|
||||||
taskTypeId:'',
|
taskTypeId: '',
|
||||||
fieldCode: null,
|
fieldCode: null,
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -979,8 +1024,8 @@ export default {
|
|||||||
updateTime: null,
|
updateTime: null,
|
||||||
taskPartitionDictName: null,
|
taskPartitionDictName: null,
|
||||||
taskPartitionDictId: null,
|
taskPartitionDictId: null,
|
||||||
taskTypeId:null,
|
taskTypeId: null,
|
||||||
taskTypeName:null,
|
taskTypeName: null,
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -1024,8 +1069,8 @@ export default {
|
|||||||
fieldSort: undefined,
|
fieldSort: undefined,
|
||||||
taskPartitionDictName: '请选择任务细分',
|
taskPartitionDictName: '请选择任务细分',
|
||||||
taskPartitionDictId: '',
|
taskPartitionDictId: '',
|
||||||
taskTypeName:'请选择任务类型',
|
taskTypeName: '请选择任务类型',
|
||||||
taskTypeId:'',
|
taskTypeId: '',
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -1045,14 +1090,20 @@ export default {
|
|||||||
if (!this.form.taskPartitionDictName || this.form.taskPartitionDictName == "") {
|
if (!this.form.taskPartitionDictName || this.form.taskPartitionDictName == "") {
|
||||||
this.form.taskPartitionDictName = '请选择任务细分'
|
this.form.taskPartitionDictName = '请选择任务细分'
|
||||||
}
|
}
|
||||||
|
if (!this.form.taskTypeName || this.form.taskTypeName == "") {
|
||||||
|
this.form.taskTypeName = '请选择任务类型'
|
||||||
|
}
|
||||||
|
if (this.form.taskTypeId) {
|
||||||
|
this.queryParamstask.taskTypeId = this.form.taskTypeId
|
||||||
|
this.getListpartit();
|
||||||
|
}
|
||||||
|
|
||||||
this.openup = true;
|
this.openup = true;
|
||||||
this.titleup = "修改标签字段信息";
|
this.titleup = "修改标签字段信息";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
|
||||||
console.log(this.form)
|
|
||||||
// return
|
// return
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
var obj = JSON.parse(JSON.stringify(this.form))
|
var obj = JSON.parse(JSON.stringify(this.form))
|
||||||
@ -1060,21 +1111,29 @@ export default {
|
|||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
if (obj.taskPartitionDictName == '请选择任务细分') {
|
if (obj.taskPartitionDictName == '请选择任务细分') {
|
||||||
obj.taskPartitionDictName = ""
|
obj.taskPartitionDictName = ""
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log(obj, 'obj')
|
if (obj.taskTypeName == '请选择任务类型') {
|
||||||
// return
|
obj.taskTypeName = ""
|
||||||
|
}
|
||||||
|
|
||||||
updateLabelfieldinfo(obj).then(response => {
|
updateLabelfieldinfo(obj).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.openup = false;
|
this.openup = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
obj.labelFieldInfoList.forEach(e => {
|
obj.labelFieldInfoList.forEach(e => {
|
||||||
if (e.taskPartitionDictName == '请选择任务细分') {
|
if (e.taskPartitionDictName == '请选择任务细分') {
|
||||||
e.taskPartitionDictName = ""
|
e.taskPartitionDictName = ""
|
||||||
}
|
}
|
||||||
|
if (e.taskTypeName == '请选择任务类型') {
|
||||||
|
e.taskTypeName = ""
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
console.log(obj, 'obj')
|
||||||
|
// return
|
||||||
addLabelfieldinfo(obj).then(response => {
|
addLabelfieldinfo(obj).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user