diff --git a/src/views/manage/labelfieldinfo/index.vue b/src/views/manage/labelfieldinfo/index.vue index 4c4e04a..d3177be 100644 --- a/src/views/manage/labelfieldinfo/index.vue +++ b/src/views/manage/labelfieldinfo/index.vue @@ -590,7 +590,7 @@ :before-close="typeecancel" > 搜索 - 重置 @@ -668,7 +668,7 @@ :total="totaltype" :pageSize="queryType.pageSize" :indexFromWrap="queryType.pageNum" - @updateCPage="updateCPagetwo" + @updateCPage="updateCPagetype" > @@ -853,6 +853,12 @@ export default { this.queryParamstask.pageSize = size this.getListpartit(); }, + updateCPagetype(index, size) { + this.queryType.pageNum = index + this.queryType.pageSize = size + this.getListType(); + }, + infolistword() { var dictType = "field_type"; getAgencytype(dictType).then((res) => { @@ -949,6 +955,7 @@ export default { nurseclicktype(row) { console.log(row, 'row') this.queryParamstask.taskTypeId = row.id + this.taskTypeId=this.queryParamstask.taskTypeId this.getListpartit() if (this.title == '添加标签字段信息') { this.form.labelFieldInfoList[this.nnerVisibleindex].taskTypeName = @@ -1041,6 +1048,7 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, + // 细分 handleQuerytask() { this.queryParamstask.pageNum = 1; this.getListpartit(); @@ -1050,6 +1058,16 @@ export default { this.resetForm("queryForm"); this.handleQuerytask(); }, + // 类型 + handleQuerytype(){ + this.queryType.pageNum = 1; + this.getListType(); + + }, + resetQuerytype() { + this.resetForm("queryForm"); + this.handleQuerytype(); + }, // 多选框选中数据 handleSelectionChange(selection) { @@ -1060,6 +1078,8 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); + this.taskTypeId='', + this.taskPartitionDictId='', this.form = { labelFieldInfoList: [ { @@ -1081,7 +1101,6 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - this.reset(); this.infolistword(); const id = row.id || this.ids