Преглед изворни кода

修改配合部门不为必填

master
yangzhou-cyber пре 3 година
родитељ
комит
ace84243d2
5 измењених фајлова са 53 додато и 31 уклоњено
  1. +1
    -1
      src/utils/mixin.js
  2. +1
    -0
      src/views/second/segmentation/reward.vue
  3. +17
    -10
      src/views/second/taskSummary/basicTable.vue
  4. +17
    -10
      src/views/second/taskSummary/constraint.vue
  5. +17
    -10
      src/views/second/taskSummary/reward.vue

+ 1
- 1
src/utils/mixin.js Прегледај датотеку

@@ -16,7 +16,7 @@ export let base = {
methods: {
reduceData(data) {
try {
let arr = data;
let arr = JSON.parse(JSON.stringify(data));
let year, code, quota1;
return arr.map((item, index) => {
if (item.quota1.trim() != quota1 && (code == undefined || item.code.trim() == code) && (item.year.trim() == year || year == undefined)) {

+ 1
- 0
src/views/second/segmentation/reward.vue Прегледај датотеку

@@ -170,6 +170,7 @@ export default {
},
mixins: [
mergeSpan([
// {name:"specialPowerId",col:[]},
{ name: "quota1", col: [1] },
{ name: "quota2", col: [2] },
{ name: "content", col: [3, 13] },

+ 17
- 10
src/views/second/taskSummary/basicTable.vue Прегледај датотеку

@@ -559,10 +559,10 @@ export default {
"points",
"leaderDept",
"leaderPrincipal",
"otherDept",
"otherPrincipal",
"cooperateDept",
"cooperatePrincipal",
// "otherDept",
// "otherPrincipal",
// "cooperateDept",
// "cooperatePrincipal",
];
for (let param of params) {
if (Array.isArray(form[param])) {
@@ -618,12 +618,19 @@ export default {
editApi
.editItem(Object.assign({}, form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
if (res.data.code == 0) {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
} else {
this.$message({
type: "error",
message: res.data.msg
});
}
})
.catch((e) => {
this.showEdit = false;

+ 17
- 10
src/views/second/taskSummary/constraint.vue Прегледај датотеку

@@ -553,10 +553,10 @@ export default {
"points",
"leaderDept",
"leaderPrincipal",
"otherDept",
"otherPrincipal",
"cooperateDept",
"cooperatePrincipal",
// "otherDept",
// "otherPrincipal",
// "cooperateDept",
// "cooperatePrincipal",
];
for (let param of params) {
if (Array.isArray(form[param])) {
@@ -609,12 +609,19 @@ export default {
editApi
.editItem(Object.assign({}, form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
if (res.data.code == 0) {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
} else {
this.$message({
type: "error",
message: res.data.msg,
});
}
})
.catch((e) => {
this.showEdit = false;

+ 17
- 10
src/views/second/taskSummary/reward.vue Прегледај датотеку

@@ -559,10 +559,10 @@ export default {
"points",
"leaderDept",
"leaderPrincipal",
"otherDept",
"otherPrincipal",
"cooperateDept",
"cooperatePrincipal",
// "otherDept",
// "otherPrincipal",
// "cooperateDept",
// "cooperatePrincipal",
];
for (let param of params) {
if (Array.isArray(form[param])) {
@@ -616,12 +616,19 @@ export default {
editApi
.editItem(Object.assign({}, form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
if (res.data.code == 0) {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
} else {
this.$message({
type: "error",
message: res.data.msg,
});
}
})
.catch((e) => {
this.showEdit = false;

Loading…
Откажи
Сачувај