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