From 62b6a7fac3f2acde70b578431147c4a01f19c182 Mon Sep 17 00:00:00 2001 From: 黎星凯 <13949086503@163.com> Date: 星期一, 15 四月 2024 09:07:05 +0800 Subject: [PATCH] bug修改 --- admin-web/src/views/systemManger/org/index.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/admin-web/src/views/systemManger/org/index.vue b/admin-web/src/views/systemManger/org/index.vue index b7964cd..971c00b 100644 --- a/admin-web/src/views/systemManger/org/index.vue +++ b/admin-web/src/views/systemManger/org/index.vue @@ -38,8 +38,8 @@ import edit from './edit' import * as finsystenant from '@/api/baseSetting/finsystenant' import myImport from '@/views/components/myImport' -import {updStatus} from "@/api/baseSetting/finsystenant"; -import {getBaseUrl, getUploadUrl} from '@/utils/base'; +import {getBaseUrl} from '@/utils/base'; +import {editState} from "@/api/baseSetting/finsystenant"; export default { name: "index", @@ -71,7 +71,7 @@ /* 妯℃澘涓嬭浇 */ templateSettings: { templateName: '瀵煎叆妯℃澘.xls', // 鍚嶇О - templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate' // 涓嬭浇鍦板潃 + templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate?type=tenant' // 涓嬭浇鍦板潃 }, onSuccess: null }, @@ -115,6 +115,7 @@ {title: '缂栧彿', field: 'code', align: 'center', width: '150px'}, {title: '鏈烘瀯鍚嶇О', field: 'name', align: 'left'}, {title: '灞傜骇', field: 'lv', align: 'center', width: '80px'}, + {title: '椤哄簭鍙�', field: 'lv', align: 'center', width: '80px'}, {title: '澶囨敞', field: 'summary', align: 'left', width: '150px'}, { field: 'belongProvince', @@ -155,12 +156,12 @@ this.showAudit(row); }, }, - { - title: '鍒犻櫎', - events: (row) => { - this.del(row); - }, - } + // { + // title: '鍒犻櫎', + // events: (row) => { + // this.del(row); + // }, + // } ], }, paging: { @@ -211,7 +212,8 @@ vm.$modal.confirm('纭瑕�' + text + '"' + row.name + '"鍚楋紵').then(function () { let params = Object.assign({}, row) params.status = row.status == 1 ? 0 : 1 - finsystenant.edit(params).then(res => { + params.isOnlyState = "1" + finsystenant.editState(params).then(res => { if (res) { row.status = row.status === 1 ? 0 : 1 vm.$modal.msgSuccess(text + "鎴愬姛"); @@ -269,7 +271,7 @@ // 鏌ヨtable鍒楄〃 search(pageNum) { if (pageNum != undefined) { - this.$refs.myTable.search(pageNum) + this.$refs.myTable.search({pageNum}) } else { this.$refs.myTable.search() } -- Gitblit v1.9.1