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