1、新增预警规则需求卡

2、修复组织结构新增时提示无租户号的bug
This commit is contained in:
2026-07-29 15:42:31 +08:00
parent ff91e8dbd7
commit 17df5e8cbe
4 changed files with 435 additions and 1 deletions

View File

@@ -249,6 +249,7 @@ export default {
this.$refs.crud.rowAdd();
},
rowSave(row, done, loading) {
row.tenantId = row.tenantId || this.userInfo.tenantId || website.tenantId;
row.leaderId = func.join(row.leaderId);
add(row).then(
res => {
@@ -271,6 +272,7 @@ export default {
);
},
rowUpdate(row, index, done, loading) {
row.tenantId = row.tenantId || this.userInfo.tenantId || website.tenantId;
row.leaderId = func.join(row.leaderId);
update(row).then(
() => {
@@ -352,9 +354,13 @@ export default {
this.$refs.crud.toggleSelection();
},
beforeOpen(done, type) {
if (['add', 'edit'].includes(type)) {
if (type === 'add') {
this.form.tenantId = this.form.tenantId || this.userInfo.tenantId || website.tenantId;
this.initData(this.form.tenantId);
}
if (type === 'edit') {
this.initData(this.form.tenantId || this.userInfo.tenantId || website.tenantId);
}
if (['edit', 'view'].includes(type)) {
getDept(this.form.id).then(res => {
this.form = Object.assign(res.data.data, {