|
|
@@ -156,9 +156,9 @@ export default {
|
|
|
*/
|
|
|
onSwitchChange(param) {
|
|
|
if (param.flgValid) {
|
|
|
- this.excuteNoParam(this.$service.factoryService, this.$service.factoryService.enable, [param.postId])
|
|
|
+ this.excuteNoParam(this.$service.factoryService, this.$service.factoryService.enable, [param.ftyId])
|
|
|
} else {
|
|
|
- this.excuteNoParam(this.$service.factoryService, this.$service.factoryService.disable, [param.postId])
|
|
|
+ this.excuteNoParam(this.$service.factoryService, this.$service.factoryService.disable, [param.ftyId])
|
|
|
}
|
|
|
},
|
|
|
/*************************************************一览界面操作end*********************************************/
|
|
|
@@ -170,6 +170,9 @@ export default {
|
|
|
*/
|
|
|
add() {
|
|
|
this.modalTitle = this.setTitle(this.$config.formMode.add, 'fty') // 给modal标题赋值
|
|
|
+ this.modalParams = {
|
|
|
+ button: this.$config.formMode.add,
|
|
|
+ }
|
|
|
this.editAddModal = true
|
|
|
},
|
|
|
/**
|
|
|
@@ -197,12 +200,16 @@ export default {
|
|
|
this.params = this.formData
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 保存数据
|
|
|
+ * @desc : 保存方法
|
|
|
* @author : 周兴
|
|
|
- * @date : 2022年12月13日10:56:56
|
|
|
+ * @date : 2023/1/4 9:25
|
|
|
*/
|
|
|
saveData() {
|
|
|
- return this.excute(this.$service.factoryService, this.$service.factoryService.insert, this.params);
|
|
|
+ if(this.type === this.$config.formMode.add){
|
|
|
+ return this.excute(this.$service.factoryService, this.$service.factoryService.insert, this.params);
|
|
|
+ }else{
|
|
|
+ return this.excute(this.$service.factoryService, this.$service.factoryService.update, this.params);
|
|
|
+ }
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 清空数据
|