From f8cb7da6f7f906428c09baf9560e98e248849d54 Mon Sep 17 00:00:00 2001 From: shanao Date: Sat, 19 Oct 2024 17:35:10 +0800 Subject: [PATCH] 11111 --- .../keyprojects/hidden/components/list.vue | 45 +++++-------------- .../inspection/components/list.vue | 2 + .../keyprojects/meteorological/index.vue | 9 ++-- .../keyprojects/meteorologicalinfo/index.vue | 4 +- .../personBaseInfo/index.vue | 4 +- .../inspection/components/confirm.vue | 14 +++--- .../inspection/components/list.vue | 5 ++- src/views/xgf/licensed_server/index.vue | 4 +- 8 files changed, 38 insertions(+), 49 deletions(-) diff --git a/src/views/keyprojects/hidden/components/list.vue b/src/views/keyprojects/hidden/components/list.vue index a33fc66..9bc565b 100644 --- a/src/views/keyprojects/hidden/components/list.vue +++ b/src/views/keyprojects/hidden/components/list.vue @@ -50,9 +50,6 @@ 重置 - - 删除 - @@ -70,13 +67,8 @@ border fit highlight-current-row - @selection-change="handleSelectionChange" + > - - + @@ -145,8 +140,6 @@ export default { ISCHECK: '', ISPUNISH: '', varList: [], - /** 当前选中行 */ - multipleSelection: [], stateList: [ // { ID: '0', NAME: '未申请' }, // { ID: '1', NAME: '申请中' }, @@ -234,28 +227,18 @@ export default { this.$parent.activeName = 'Info' }, /** - * 批量删除 + * 删除 */ - handleBatchDel() { - // 获取选中的行数据 - const selectedRows = this.multipleSelection - // 如果没有选中任何行,则提示用户 - if (this.multipleSelection === '' || selectedRows.length === 0) { - this.$message.warning('请选择要删除的行') - return - } + handleBatchDel(HIDDEN_ID) { // 弹出确认框 - this.$confirm('确定要删除这些记录吗?', '提示', { + this.$confirm('确定要删除吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { - // 获取所有选中行的 ID - let ids = '' - selectedRows.forEach(row => { ids += row.HIDDEN_ID + ',' }) // 发送批量删除请求 - const url = '/keyprojectcheck/delete/hidden/all' - requestFN(url, { DATA_IDS: ids }).then((response) => { + const url = '/keyprojectcheck/delete/hidden/id/' + HIDDEN_ID + requestFN(url).then((response) => { // 删除成功后的处理 this.$message.success('删除成功') this.getList() @@ -269,12 +252,6 @@ export default { message: '已取消删除' }) }) - }, - /** - * 表格行选择器处理 - */ - handleSelectionChange(val) { - this.multipleSelection = val } } } diff --git a/src/views/keyprojects/inspection/components/list.vue b/src/views/keyprojects/inspection/components/list.vue index 351de04..6565c4e 100644 --- a/src/views/keyprojects/inspection/components/list.vue +++ b/src/views/keyprojects/inspection/components/list.vue @@ -137,6 +137,8 @@ export default { this.KEYWORDS = '' this.STATE = '' this.OUTSOURCED_NAME = '' + this.UNITS_PIC_NAME = '' + this.UNITS_PHONE = '' this.getQuery() }, // 获取列表 diff --git a/src/views/keyprojects/meteorological/index.vue b/src/views/keyprojects/meteorological/index.vue index d6b61af..b41d958 100644 --- a/src/views/keyprojects/meteorological/index.vue +++ b/src/views/keyprojects/meteorological/index.vue @@ -1,6 +1,8 @@ @@ -13,13 +15,14 @@ export default { components: { List: List, meteorologicalList: meteorologicalList, - meteorologicalHistory: meteorologicalHistory, + meteorologicalHistory: meteorologicalHistory }, data() { return { activeName: 'List', CORPINFO_ID: '', - CODE: '' + CODE: '', + KEYWORDS: '' } } } diff --git a/src/views/keyprojects/meteorologicalinfo/index.vue b/src/views/keyprojects/meteorologicalinfo/index.vue index e8be846..b42b849 100644 --- a/src/views/keyprojects/meteorologicalinfo/index.vue +++ b/src/views/keyprojects/meteorologicalinfo/index.vue @@ -1,6 +1,8 @@ diff --git a/src/views/relativeUnitPerson/personBaseInfo/index.vue b/src/views/relativeUnitPerson/personBaseInfo/index.vue index 09506bd..1a8d750 100644 --- a/src/views/relativeUnitPerson/personBaseInfo/index.vue +++ b/src/views/relativeUnitPerson/personBaseInfo/index.vue @@ -1,5 +1,7 @@