|
@@ -285,40 +285,40 @@ export default {
|
|
|
},
|
|
|
agetdeptresponsibility(row) {
|
|
|
let that = this
|
|
|
- let params = {
|
|
|
- responsibilityIds: row.id
|
|
|
+ let par = {
|
|
|
+ defKey: "kpmbqd",
|
|
|
+ businessKey: row.id,
|
|
|
+ action: "start",
|
|
|
+ opinion: "考评目标启动",
|
|
|
+ iamCode: getToken('code')
|
|
|
}
|
|
|
- apiGetdeptresponsibilitygenerate(params).then(datas =>{
|
|
|
+ apiGetdoAction(par).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
|
- if (!datas.success) {
|
|
|
- that.$message({
|
|
|
- message: datas.message,
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
- } else {
|
|
|
- let par = {
|
|
|
- defKey: "kpmbqd",
|
|
|
- businessKey: row.id,
|
|
|
- action: "start",
|
|
|
- opinion: "考评目标启动",
|
|
|
- iamCode: getToken('code')
|
|
|
+ if (datas.data.isok) {
|
|
|
+ let params = {
|
|
|
+ responsibilityIds: row.id
|
|
|
}
|
|
|
- apiGetdoAction(par).then(datas =>{
|
|
|
+ apiGetdeptresponsibilitygenerate(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
|
- if (datas.data.isok) {
|
|
|
+ if (!datas.success) {
|
|
|
that.$message({
|
|
|
- message: '考评规则已启动',
|
|
|
- type: 'success'
|
|
|
+ message: datas.message,
|
|
|
+ type: 'error'
|
|
|
});
|
|
|
- that.getevaluStartList()
|
|
|
} else {
|
|
|
that.$message({
|
|
|
- message: datas.data.msg,
|
|
|
- type: 'error'
|
|
|
+ message: '考评目标已启动',
|
|
|
+ type: 'success'
|
|
|
});
|
|
|
+ that.getevaluStartList()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ } else {
|
|
|
+ that.$message({
|
|
|
+ message: datas.data.msg,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|