| | |
| | | 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", |
| | |
| | | /* 模板下载 */ |
| | | templateSettings: { |
| | | templateName: '导入模板.xls', // 名称 |
| | | templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate' // 下载地址 |
| | | templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate?type=tenant' // 下载地址 |
| | | }, |
| | | onSuccess: null |
| | | }, |
| | |
| | | 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 + "成功"); |
| | |
| | | // 查询table列表 |
| | | search(pageNum) { |
| | | if (pageNum != undefined) { |
| | | this.$refs.myTable.search(pageNum) |
| | | this.$refs.myTable.search({pageNum}) |
| | | } else { |
| | | this.$refs.myTable.search() |
| | | } |