bug fix
This commit is contained in:
@ -86,7 +86,7 @@
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
:disabled="single || ids[0].initialized === '1'"
|
||||
:disabled="single || isInit(ids[0])"
|
||||
icon="Refresh"
|
||||
plain
|
||||
type="primary"
|
||||
@ -493,12 +493,7 @@ import {
|
||||
} from "@/api/tenant/tenant";
|
||||
import {getCurrentInstance, reactive, ref, toRefs} from "vue";
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
import {
|
||||
database_type_dict,
|
||||
initStatusDict,
|
||||
tenantModeDict,
|
||||
tenantStatusDict,
|
||||
} from "@/constant/dict";
|
||||
import {database_type_dict, initStatusDict, tenantModeDict, tenantStatusDict,} from "@/constant/dict";
|
||||
import DictTag from "@/components/DictTag/index.vue";
|
||||
import {cloneDeep} from "lodash-es";
|
||||
import {ArrowRight} from "@element-plus/icons-vue";
|
||||
@ -615,6 +610,13 @@ const {
|
||||
} = toRefs(data);
|
||||
const datasource = ref([]);
|
||||
|
||||
const isInit = (tenantId) => {
|
||||
console.log(tenantId)
|
||||
console.log((tenantList.value.find(el => el.tenantId === tenantId)?.initialized === '1'))
|
||||
return (tenantList.value.find(el => el.tenantId === tenantId)?.initialized === '1')
|
||||
}
|
||||
|
||||
|
||||
/** 查询租户列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
@ -854,7 +856,8 @@ function handleDelete(row) {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {
|
||||
});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
|
Reference in New Issue
Block a user