瀏覽代碼

修改配合部门不为必填

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…
取消
儲存