1、基础数据修复bug
2、客商模块修复bug
This commit is contained in:
@@ -250,7 +250,7 @@ export default {
|
||||
viewBtn: true,
|
||||
labelWidth: 'auto',
|
||||
searchLabelWidth: 160,
|
||||
menuWidth: 160,
|
||||
menuWidth: 320,
|
||||
dialogWidth: 600,
|
||||
dialogClickModal: false,
|
||||
column: [
|
||||
@@ -466,7 +466,7 @@ export default {
|
||||
});
|
||||
},
|
||||
rowSave(row, done, loading) {
|
||||
add(row).then(
|
||||
add(this.withTenantId(row)).then(
|
||||
() => {
|
||||
this.onLoad(this.page);
|
||||
this.$message({
|
||||
@@ -482,7 +482,7 @@ export default {
|
||||
);
|
||||
},
|
||||
rowUpdate(row, index, done, loading) {
|
||||
update(row).then(
|
||||
update(this.withTenantId(row)).then(
|
||||
() => {
|
||||
this.onLoad(this.page);
|
||||
this.$message({
|
||||
@@ -497,6 +497,12 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
withTenantId(row) {
|
||||
return {
|
||||
...row,
|
||||
tenantId: row.tenantId || this.userInfo.tenantId || website.tenantId,
|
||||
};
|
||||
},
|
||||
rowDel(row) {
|
||||
this.$confirm('确定将选择数据删除?', {
|
||||
confirmButtonText: '确定',
|
||||
|
||||
Reference in New Issue
Block a user