|
|
@@ -530,6 +530,7 @@ export default {
|
|
|
createTime: null,
|
|
|
id: null,
|
|
|
//机构补充信息
|
|
|
+ extendId: null,
|
|
|
orgType: 1,
|
|
|
weatherAreaCode: null,
|
|
|
premisesArea: null,
|
|
|
@@ -544,10 +545,10 @@ export default {
|
|
|
wallPenetratingEquipment: 2,
|
|
|
platformBrand: null,
|
|
|
platformSupplierBrand: null,
|
|
|
- constructionTime:null,
|
|
|
- lastUpdateTime:null,
|
|
|
+ constructionTime: null,
|
|
|
+ lastUpdateTime: null,
|
|
|
//机构建设数据
|
|
|
-
|
|
|
+
|
|
|
// 遮罩层
|
|
|
orgloading: true,
|
|
|
// 选中数组
|
|
|
@@ -650,7 +651,7 @@ export default {
|
|
|
|
|
|
getExtendInfo() {
|
|
|
getExtendByOrgId(this.$route.params.id).then((data) => {
|
|
|
- // console.log(data.data);
|
|
|
+ console.log(data.data);
|
|
|
if (data.data != null) {
|
|
|
this.orgType = data.data.orgType;
|
|
|
this.weatherAreaCode = data.data.weatherAreaCode;
|
|
|
@@ -662,6 +663,7 @@ export default {
|
|
|
this.selfServiceBank = data.data.selfServiceBank;
|
|
|
this.lobbyEquipment = data.data.lobbyEquipment;
|
|
|
this.wallPenetratingEquipment = data.data.wallPenetratingEquipment;
|
|
|
+ this.extendId = data.data.id;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -669,7 +671,7 @@ export default {
|
|
|
this.orgloading = true;
|
|
|
let dat = { orgId: this.$route.params.id };
|
|
|
listOrgPhysicalDefenseConstruction(dat).then((data) => {
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
this.constructionList = data.rows;
|
|
|
this.orgloading = false;
|
|
|
});
|
|
|
@@ -678,7 +680,7 @@ export default {
|
|
|
this.bankloading = true;
|
|
|
let dat = { orgId: this.$route.params.id };
|
|
|
listBankPhysicalDefenseConstruction(dat).then((data) => {
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
this.BankPhysicalDefenseConstructionList = data.rows;
|
|
|
this.bankloading = false;
|
|
|
});
|
|
|
@@ -853,23 +855,38 @@ export default {
|
|
|
orgType: this.orgType,
|
|
|
weatherAreaCode: this.weatherAreaCode,
|
|
|
premisesArea: this.premisesArea,
|
|
|
- ownership: this.ownership,
|
|
|
- outsideArea: this.outsideArea,
|
|
|
- askari: this.askari,
|
|
|
+ ownership: this.ownership ? 1 : 0,
|
|
|
+ outsideArea: this.outsideArea ? 1 : 0,
|
|
|
+ askari: this.askari ? 1 : 0,
|
|
|
businessLibraryType: this.businessLibraryType,
|
|
|
dutyMode: this.dutyMode,
|
|
|
- remoteControl: this.remoteControl,
|
|
|
- selfServiceBank: this.selfServiceBank,
|
|
|
+ remoteControl: this.remoteControl ? 1 : 0,
|
|
|
+ selfServiceBank: this.selfServiceBank ? 1 : 0,
|
|
|
lobbyEquipment: this.lobbyEquipment,
|
|
|
wallPenetratingEquipment: this.wallPenetratingEquipment,
|
|
|
platformBrand: this.platformBrand,
|
|
|
platformSupplierBrand: this.platformSupplierBrand,
|
|
|
constructionTime: this.constructionTime,
|
|
|
lastUpdateTime: this.lastUpdateTime,
|
|
|
+ orgId: this.$route.params.id,
|
|
|
+ id: this.extendId,
|
|
|
};
|
|
|
- console.log(dat);
|
|
|
+ if(this.extendId){
|
|
|
+ updateExtend(dat).then((res) => {
|
|
|
+ this.$modal.msgSuccess("保存成功");
|
|
|
+ this.$router.go(-1);
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ addExtend(dat).then((res) => {
|
|
|
+ this.$modal.msgSuccess("保存成功");
|
|
|
+ this.$router.go(-1);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ nosaveExtend() {
|
|
|
+ this.$router.go(-1);
|
|
|
},
|
|
|
- nosaveExtend() {},
|
|
|
},
|
|
|
fillter: {},
|
|
|
};
|