1、新增预警规则需求卡
2、修复组织结构新增时提示无租户号的bug
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user