Browse Source

问题修改

SunZehao 1 year ago
parent
commit
913fd0e5ef

+ 2 - 5
src/components/assessment/evaluationDeptBusinessFrom.vue

@@ -279,7 +279,7 @@
                     let obj = {
                         id: item.id,
                         targetName: item.targetName,
-                        targetValue: item.targetValue,
+                        targetValue: encodeURI(item.targetValue),
                         baseScore: item.baseScore.toString(),
                         evaluationCriteria: item.evaluationCriteria,
                         auditStatusKp: item.auditStatusKp,
@@ -289,10 +289,7 @@
                     }
                     params.push(obj)
                 })
-                let objs = {
-                    jsonArr: JSON.stringify(params)
-                }
-                apiGetevaluationdeptplanUpdate(objs).then(datas => {
+                apiGetevaluationdeptplanUpdate(params).then(datas => {
                     if (datas) {
                         if (datas.success) {
                             that.$message({

+ 2 - 5
src/components/assessment/evaluationDeptStartFrom.vue

@@ -395,7 +395,7 @@
                 that.quantifiedList.forEach(item => {
                     let obj = {
                         targetName: item.targetName,
-                        targetValue: item.targetValue,
+                        targetValue: encodeURI(item.targetValue),
                         baseScore: item.baseScore.toString(),
                         evaluationCriteria: item.evaluationCriteria,
                         auditStatus: item.auditStatus,
@@ -410,10 +410,7 @@
                     }
                     params.push(obj)
                 })
-                let objs = {
-                    jsonArr: JSON.stringify(params)
-                }
-                apiGetevaluationdeptplanUpdate(objs).then(datas => {
+                apiGetevaluationdeptplanUpdate(params).then(datas => {
                     if (datas) {
                         if (datas.success) {
                             that.$message({

+ 2 - 5
src/components/taskCenter/taskCenterDeptBusinessFrom.vue

@@ -288,7 +288,7 @@
                     let obj = {
                         id: item.id,
                         targetName: item.targetName,
-                        targetValue: item.targetValue,
+                        targetValue: encodeURI(item.targetValue),
                         baseScore: item.baseScore.toString(),
                         evaluationCriteria: item.evaluationCriteria,
                         auditStatusKp: item.auditStatusKp,
@@ -298,10 +298,7 @@
                     }
                     params.push(obj)
                 })
-                let objs = {
-                    jsonArr: JSON.stringify(params)
-                }
-                apiGetevaluationdeptplanUpdate(objs).then(datas => {
+                apiGetevaluationdeptplanUpdate(params).then(datas => {
                     if (datas) {
                         if (datas.success) {
                             that.$message({

+ 2 - 5
src/components/taskCenter/taskCenterDeptStartFrom.vue

@@ -394,7 +394,7 @@
                 that.quantifiedList.forEach(item => {
                     let obj = {
                         targetName: item.targetName,
-                        targetValue: item.targetValue,
+                        targetValue: encodeURI(item.targetValue),
                         baseScore: item.baseScore.toString(),
                         evaluationCriteria: item.evaluationCriteria,
                         auditStatus: item.auditStatus,
@@ -409,10 +409,7 @@
                     }
                     params.push(obj)
                 })
-                let objs = {
-                    jsonArr: JSON.stringify(params)
-                }
-                apiGetevaluationdeptplanUpdate(objs).then(datas => {
+                apiGetevaluationdeptplanUpdate(params).then(datas => {
                     if (datas) {
                         if (datas.success) {
                             that.$message({