Browse Source

考评目标修订启动增加修改状态功能;

SunZehao 1 year ago
parent
commit
af2160463e
2 changed files with 34 additions and 3 deletions
  1. 8 0
      src/api/api.js
  2. 26 3
      src/components/assessment/evaluationAmendmentPage.vue

+ 8 - 0
src/api/api.js

@@ -414,6 +414,14 @@ export function apiGetdeptresponsibilitygenerate(params) {
         params: params
     })
 }
+//------考评启动-修改状态
+export function apievaluationrevisiontargetStart(params) {
+    return httpRequest({
+        url: 'evaluation-revision/targetStart',
+        method: 'post',
+        params: params
+    })
+}
 //------单位考评启动-详情
 export function apiGetdeptresponDetail(params) {
     return httpRequest({

+ 26 - 3
src/components/assessment/evaluationAmendmentPage.vue

@@ -173,7 +173,7 @@
 import startFromList from './evaluationAmendmentNewFrom.vue'
 import btns from '../elbuttonS.vue'
 import seachs from '../seachGroup.vue'
-import {apiGetevaluationrevisionList, apiGetdeptresponsibilitySave,apiGetdoAction,apiGetworkflowgetOpinion,
+import {apiGetevaluationrevisionList, apiGetdeptresponsibilitySave,apiGetdoAction,apiGetworkflowgetOpinion,apievaluationrevisiontargetStart,
 apiGetdeptresponsibilitygenerate, apiGetdatadictionaryList, apiPostresponsiDelete} from '../../api/api'
 export default {
     components: {
@@ -370,8 +370,7 @@ export default {
                                 message: '考评修订已启动',
                                 type: 'success'
                             });
-                            that.getevaluAmendmentList()
-                            // that.getDeptresponsibility(row)
+                            that.getrevisiontargetStart(row)
                         } else {
                             that.$message({
                                 message: datas.data.msg,
@@ -384,6 +383,30 @@ export default {
                 // that.getDeptresponsibility(row)
             }
         },
+        // 修改状态
+        getrevisiontargetStart(row) {
+            let that = this
+            let params = {
+                id: row.id,
+                stage: row.stage
+            }
+            apievaluationrevisiontargetStart(params).then(datas =>{
+                if (datas && datas.data) {
+                    if (!datas.success) {
+                        that.$message({
+                            message: datas.message,
+                            type: 'error'
+                        });
+                    } else {
+                        that.$message({
+                            message: '考评目标已启动',
+                            type: 'success'
+                        });
+                    }
+                    that.getevaluAmendmentList()
+                }
+            })
+        },
         // 生成目标责任书
         getDeptresponsibility(row) {
             let that = this