Explorar el Código

xiugai1

master
yangzhou-cyber hace 3 años
padre
commit
c993ae525e
Se han modificado 4 ficheros con 89 adiciones y 63 borrados
  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 fichero

@@ -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 fichero

@@ -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 fichero

@@ -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 fichero

@@ -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: {

Cargando…
Cancelar
Guardar