浏览代码

风险评估填写后保存和提交报错bug

shenqilong 11 月之前
父节点
当前提交
904a52de15
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/platform/risk/riskDetail.vue

+ 3 - 3
src/views/platform/risk/riskDetail.vue

@@ -236,7 +236,7 @@
                             label="残余风险(是否接受)"
                             label="残余风险(是否接受)"
                             width="120"
                             width="120"
                         >
                         >
-                        <!-- 选择风险不接受,开风险控制评价表流程 -->
+                            <!-- 选择风险不接受,开风险控制评价表流程 -->
                             <template slot-scope="{row}">
                             <template slot-scope="{row}">
                                 <el-select v-model="row.feng_xian_ying_du" placeholder="请选择" :disabled="readonly" size="mini">
                                 <el-select v-model="row.feng_xian_ying_du" placeholder="请选择" :disabled="readonly" size="mini">
                                     <el-option
                                     <el-option
@@ -514,7 +514,7 @@ export default {
             // console.log(this.params)
             // console.log(this.params)
             if (!this.params.id_) return
             if (!this.params.id_) return
             // const sql = `select * from t_fxsbpgb2 where parent_id_ = '${this.params.id_}' and find_in_set(bian_zhi_ren_, '${this.readonly ? this.rowParams.bian_zhi_ren_ : this.userId}')`
             // const sql = `select * from t_fxsbpgb2 where parent_id_ = '${this.params.id_}' and find_in_set(bian_zhi_ren_, '${this.readonly ? this.rowParams.bian_zhi_ren_ : this.userId}')`
-            const params = [this.readonly ? this.rowParams.bian_zhi_ren_ : this.userId]
+            const params = [this.params.id_, this.readonly ? this.rowParams.bian_zhi_ren_ : this.userId]
             const { variables: { data }} = await this.$common.request('query', {
             const { variables: { data }} = await this.$common.request('query', {
                 key: 'getFxsbpgb2ByUid',
                 key: 'getFxsbpgb2ByUid',
                 params
                 params
@@ -714,7 +714,7 @@ export default {
                                 }
                                 }
                             }
                             }
                         }
                         }
-console.log('row.feng_xian_ying_du', row.feng_xian_ying_du, degree)
+                        // console.log('row.feng_xian_ying_du', row.feng_xian_ying_du, degree)
                         this.$set(row, 'feng_xian_ying_du', (!row.feng_xian_ying_du && degree === '低') ? '风险接受' : '风险不接受')
                         this.$set(row, 'feng_xian_ying_du', (!row.feng_xian_ying_du && degree === '低') ? '风险接受' : '风险不接受')
                         row.feng_xian_zhi_shu = rate + ''
                         row.feng_xian_zhi_shu = rate + ''
                         row.feng_xian_deng_ji = degree
                         row.feng_xian_deng_ji = degree