字段信息管理修改

This commit is contained in:
shidongli 2024-07-01 14:52:50 +08:00
parent d192d104f2
commit a4f121d618

View File

@ -590,7 +590,7 @@
:before-close="typeecancel" :before-close="typeecancel"
> >
<el-form <el-form
:model="queryParamstask" :model="queryType"
ref="queryForm" ref="queryForm"
size="small" size="small"
:inline="true" :inline="true"
@ -599,7 +599,7 @@
> >
<el-form-item label="任务类型名称" prop="taskTypeName"> <el-form-item label="任务类型名称" prop="taskTypeName">
<el-input <el-input
v-model="queryParams.taskTypeName" v-model="queryType.taskTypeName"
placeholder="请输入任务类型名称" placeholder="请输入任务类型名称"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -610,10 +610,10 @@
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini" size="mini"
@click="handleQuerytask" @click="handleQuerytype"
>搜索</el-button >搜索</el-button
> >
<el-button icon="el-icon-refresh" size="mini" @click="resetQuerytask" <el-button icon="el-icon-refresh" size="mini" @click="resetQuerytype"
>重置</el-button >重置</el-button
> >
</el-form-item> </el-form-item>
@ -668,7 +668,7 @@
:total="totaltype" :total="totaltype"
:pageSize="queryType.pageSize" :pageSize="queryType.pageSize"
:indexFromWrap="queryType.pageNum" :indexFromWrap="queryType.pageNum"
@updateCPage="updateCPagetwo" @updateCPage="updateCPagetype"
></myPagination> ></myPagination>
</el-dialog> </el-dialog>
</div> </div>
@ -853,6 +853,12 @@ export default {
this.queryParamstask.pageSize = size this.queryParamstask.pageSize = size
this.getListpartit(); this.getListpartit();
}, },
updateCPagetype(index, size) {
this.queryType.pageNum = index
this.queryType.pageSize = size
this.getListType();
},
infolistword() { infolistword() {
var dictType = "field_type"; var dictType = "field_type";
getAgencytype(dictType).then((res) => { getAgencytype(dictType).then((res) => {
@ -949,6 +955,7 @@ 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.getListpartit() this.getListpartit()
if (this.title == '添加标签字段信息') { if (this.title == '添加标签字段信息') {
this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName = this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName =
@ -1041,6 +1048,7 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
//
handleQuerytask() { handleQuerytask() {
this.queryParamstask.pageNum = 1; this.queryParamstask.pageNum = 1;
this.getListpartit(); this.getListpartit();
@ -1050,6 +1058,16 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuerytask(); this.handleQuerytask();
}, },
//
handleQuerytype(){
this.queryType.pageNum = 1;
this.getListType();
},
resetQuerytype() {
this.resetForm("queryForm");
this.handleQuerytype();
},
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
@ -1060,6 +1078,8 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.taskTypeId='',
this.taskPartitionDictId='',
this.form = { this.form = {
labelFieldInfoList: [ labelFieldInfoList: [
{ {
@ -1081,7 +1101,6 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
this.infolistword(); this.infolistword();
const id = row.id || this.ids const id = row.id || this.ids