|
@@ -271,6 +271,32 @@
|
|
|
console.log(this.forme)
|
|
|
// this.getList();
|
|
|
},
|
|
|
+ /** 新增 修改提交按钮 */
|
|
|
+ submitForm: function() {
|
|
|
+ addbjectSave(this.forme).then(response => {
|
|
|
+ this.msgSuccess("保存成功");
|
|
|
+ this.open = false;
|
|
|
+ // this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 提交反提交
|
|
|
+ antiSubmission(){
|
|
|
+ if (this.formy.status == 1) {
|
|
|
+ // 提交
|
|
|
+ tableSubimt(this.formeanti).then(response => {
|
|
|
+ this.msgSuccess("提交成功");
|
|
|
+ // this.open = false;
|
|
|
+ // this.getList();
|
|
|
+ });
|
|
|
+ } else if(this.formy.status == 2){
|
|
|
+ // 反提交
|
|
|
+ tableSubimtanit(this.formeanti).then(response => {
|
|
|
+ this.msgSuccess("反提交成功");
|
|
|
+ // this.open = false;
|
|
|
+ // this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
};
|