Ver código fonte

xiugai1

master
yangzhou-cyber 3 anos atrás
pai
commit
c993ae525e
4 arquivos alterados com 89 adições e 63 exclusões
  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 Ver arquivo

@@ -227,24 +227,31 @@ export default {
this.form.chainIndustryId = row.id;
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: {

+ 22
- 15
src/views/second/coordinationManage/applyCooperation/basicTarget.vue Ver arquivo

@@ -236,23 +236,30 @@ export default {
this.form.leaderDept = row.leaderDept;
},
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: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/constraint.vue Ver arquivo

@@ -229,24 +229,30 @@ export default {
this.form.isApply = 1;
},
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: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/reward.vue Ver arquivo

@@ -236,24 +236,30 @@ export default {
// this.form.isApply = 1
},
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: {

Carregando…
Cancelar
Salvar