|
@@ -310,7 +310,7 @@ export default {
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
]
|
|
|
- },
|
|
|
+ },
|
|
|
// {
|
|
|
// label: "共享公司",
|
|
|
// prop: "sharedCompany",
|
|
@@ -565,6 +565,11 @@ export default {
|
|
|
this.getAllWorkDicts()
|
|
|
this.getCorpTypeCk()
|
|
|
},
|
|
|
+ activated() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.crud.doLayout()
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 启用或禁用
|
|
|
editEnable() {
|
|
@@ -686,6 +691,7 @@ export default {
|
|
|
}
|
|
|
,
|
|
|
addRow() {
|
|
|
+ console.log('1234');
|
|
|
this.data.push({ $cellEdit: true })
|
|
|
}
|
|
|
,
|
|
@@ -812,6 +818,12 @@ export default {
|
|
|
this.data = res.data.data.corpsAddrList
|
|
|
this.corpsFiles = res.data.data.corpsFilesList
|
|
|
this.getDetail(res.data.data.id);
|
|
|
+ //添加成功后默认启用
|
|
|
+ let data = this.form
|
|
|
+ editenable({ id: res.data.data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then(res => {
|
|
|
+ this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
|
|
|
+
|
|
|
+ })
|
|
|
}).finally(() => {
|
|
|
this.loadingBtn = false;
|
|
|
});
|