SunZehao 2 年 前
コミット
8ab93b103c
2 ファイル変更24 行追加24 行削除
  1. 22 22
      src/components/assessment/evaluationStartPage.vue
  2. 2 2
      src/utils/baseUrl.js

+ 22 - 22
src/components/assessment/evaluationStartPage.vue

@@ -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'
+                        });
                     }
                 }
             })

+ 2 - 2
src/utils/baseUrl.js

@@ -9,9 +9,9 @@ const baseUrl = {
 switch (process.env.NODE_ENV) { 
     case 'development': 
         baseUrl.ROOT = "/api"  //开发环境url
-        baseUrl.URL = "http://10.65.59.67:28800"
+        // baseUrl.URL = "http://10.65.59.67:28800"
         // baseUrl.URL = "http://123.60.219.66:28800"
-        // baseUrl.URL = "http://10.65.78.23:28800"
+        baseUrl.URL = "http://10.65.78.23:28800"
         break
  
     case 'production':