Browse Source

xiugai1

master
yangzhou-cyber 3 years ago
parent
commit
c993ae525e
4 changed files with 89 additions and 63 deletions
  1. +23
    -16
      src/views/chain/coordinationManage/applyCooperation.vue
  2. +22
    -15
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  3. +22
    -16
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  4. +22
    -16
      src/views/second/coordinationManage/applyCooperation/reward.vue

+ 23
- 16
src/views/chain/coordinationManage/applyCooperation.vue View File

this.form.chainIndustryId = row.id; this.form.chainIndustryId = row.id;
this.form.isApply = 2; this.form.isApply = 2;
}, },
save() {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
save(){
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
}); });
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
}); });
}
}, },
}, },
filters: { filters: {

+ 22
- 15
src/views/second/coordinationManage/applyCooperation/basicTarget.vue View File

this.form.leaderDept = row.leaderDept; this.form.leaderDept = row.leaderDept;
}, },
save() { save() {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
}); });
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
}); });
}
}, },
}, },
filters: { filters: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/constraint.vue View File

this.form.isApply = 1; this.form.isApply = 1;
}, },
save() { save() {
console.log(this.form);
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
}); });
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
}); });
}
}, },
}, },
filters: { filters: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/reward.vue View File

// this.form.isApply = 1 // this.form.isApply = 1
}, },
save() { save() {
console.log(this.form);
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
}); });
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
}); });
}
}, },
}, },
filters: { filters: {

Loading…
Cancel
Save