瀏覽代碼

前端:参数定义为局部

baichengfei 4 年之前
父節點
當前提交
e6f8a336b1

+ 4 - 5
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-service/_opera/evaluationlist.vue

@@ -298,16 +298,15 @@
       },
       // 编辑初始数据
       editDatas () {
-        var data = {
+        let params = {
           ContentReviewId: this.evaluateId,
           Category: this.isBusiness == 1 ? 2 : this.category, // 0二级单位发起的评价,1专业处室的评价,2条件评价 3专业处室发起的评价, 4专业处室发起的条件评价
           Type: 1
         }
         this.standardNum = 0
-        api.contractEvaluationTree(data, this.$axios).then(res => {
-          console.log('编辑后的内容list', res)
-          var data = res.data.items
-          var list = []
+        api.contractEvaluationTree(params, this.$axios).then(res => {
+          let data = res.data.items
+          let list = []
           for (var index = 0; index < data.length; index++) {
             data[index].typeStatus = index
             data[index].Score = data[index].Score == undefined || data[index].Score == '' ? '0' : data[index].Score