Kaynağa Gözat

风险库设置

zh 6 ay önce
ebeveyn
işleme
4a3d1e8265

+ 1 - 0
src_product/iam/audit/dataMarket/data-market.vue

@@ -112,6 +112,7 @@
                 <a-cascader
                   allow-clear
                   change-on-select
+                  :show-search="true"
                   :options="groupList"
                   :field-names="{ label: 'name', value: 'code', children: 'children' }"
                   placeholder="请选择分类"

+ 6 - 0
src_product/iam/audit/portrait/audit-contrast-view.vue

@@ -218,11 +218,16 @@ export default {
           obj.orgCode = val.org_code
           val.values.map((item1) => {
             const isValue = this.zbName.includes('率')
+            const filterValue = ['99999.99999', '88888.88888', '77777.77777']
+
             if (isValue) {
               obj[`zbz${item1.year}`] = (item1.value * 100).toFixed(2) || ''
             } else {
               obj[`zbz${item1.year}`] = item1.value
             }
+            if (filterValue.includes(item1.index_value + '')) {
+              obj[`zbz${item1.year}`] = ''
+            }
             // 如果是NaN则显示原本的值
             if (isNaN(obj[`zbz${item1.year}`])) {
               obj[`zbz${item1.year}`] = item1.value
@@ -232,6 +237,7 @@ export default {
           return obj
         })
         if (res.data.data.length === 0) {
+          this.initEcharts()
           return message.warning('暂无数据')
         }
 

+ 22 - 19
src_product/iam/audit/riskLibrary/audit-issued-form.vue

@@ -221,7 +221,7 @@
               <sd-form-item-td
                 v-if="logInfo > 2"
                 :input-props="{ disabled: true }"
-                :name="'reviewer'"
+                :name="'checker'"
                 :label="'初审人'"
               >
               </sd-form-item-td>
@@ -636,29 +636,32 @@ export default {
       // 2整改 3初审 4复审
       // http://10.104.32.30/api/framework/v1/task-form-process/inst-logs-process/17733
 
-      // 给整改人G_1_FXWTSJ.7 viewAccount reformDate,初审人G_1_FXWTSJ.2 checker checkDate,复审人G_1_FXWTSJ.4 reviewer reviewDate
+      // 给整改人G_1_FXWTSJ.7 viewAccount reformDate
+      // ,初审人G_1_FXWTSJ.2 checker checkDate,
+      // 复审人G_1_FXWTSJ.4 reviewer reviewDate
       // 现在的阶段
+      let filedName = ''
+      let filedDate = ''
       const isFlag = FlowData.processActiveLogInfo[0]
-      this.logInfo =
-        isFlag?.stepId === 'G_1_FXWTSJ.7' ? 1 : isFlag?.stepId === 'G_1_FXWTSJ.2' ? 2 : 3
-      // 根据阶段给不同的值赋值
-      const filedName =
-        isFlag?.stepId === 'G_1_FXWTSJ.7'
-          ? 'viewAccount'
-          : isFlag?.stepId === 'G_1_FXWTSJ.2'
-          ? 'reviewer'
-          : 'checker'
+      if (isFlag?.stepId === 'G_1_FXWTSJ.7') {
+        this.logInfo = 1
+        filedName = 'viewAccount'
+        filedDate = 'reformDate'
+      }
+      if (isFlag?.stepId === 'G_1_FXWTSJ.2') {
+        this.logInfo = 2
+        filedName = 'checker'
+        filedDate = 'checkDate'
+      }
+      if (isFlag?.stepId === 'G_1_FXWTSJ.4') {
+        this.logInfo = 3
+        filedName = 'reviewer'
+        filedDate = 'reviewDate'
+      }
+
       this.$refs.docform.setFieldValue(filedName, getUserInfo().name)
-      const filedDate =
-        isFlag?.stepId === 'G_1_FXWTSJ.7'
-          ? 'reformDate'
-          : isFlag?.stepId === 'G_1_FXWTSJ.2'
-          ? 'reviewDate'
-          : 'checkDate'
       const strTime = moment().format('YYYY-MM-DD')
-
       this.$refs.docform.setFieldValue(filedDate, strTime)
-
       // 是否只查看
       this.isWebFlow = FlowData.mode !== 'EDIT'
       this.questionFormData.nonQuestionDesc = model.nonQuestionDesc // 将值赋值给问题

+ 33 - 0
src_product/iam/audit/riskLibrary/audit-shsum-list.vue

@@ -134,6 +134,10 @@
             >
               <div slot="action" slot-scope="text, record">
                 <a-button type="link" @click="openRiskDetail(record)">明细</a-button>
+                <!-- handleRecover 已删除的显示恢复 -->
+                <a-button v-if="record.deleted === 1" type="link" @click="handleRecover(record)"
+                  >恢复</a-button
+                >
                 <!-- 模型逻辑 -->
                 <a-button type="link" @click="showModelLogic(record)">模型逻辑</a-button>
               </div>
@@ -722,6 +726,35 @@ export default {
         },
       })
     },
+    // 恢复删除
+    handleRecover(item) {
+      Modal.confirm({
+        title: '提示',
+        content: '是否确认恢复?',
+        onOk: () => {
+          const params = [
+            {
+              modelTypeName: item.modelTypeName,
+              pushDate: item.pushDate,
+              unitCode: item.unitCode,
+              modelId: item.modelId,
+              detailGroupId: item.detailGroupId,
+              status: item.status,
+              bussKey: item.bussKey || null,
+            },
+          ]
+          AuditRiskbraryService.restoreQuestion(params).then((res) => {
+            if (res?.data) {
+              message.success('恢复成功')
+              this.handleSearch()
+            } else {
+              message.warning('恢复失败')
+            }
+          })
+        },
+      })
+    },
+
     // 导出
     fnexport() {
       this.istip = '正在导出请稍等……'

+ 9 - 0
src_product/iam/audit/riskLibrary/riskLibrary.js

@@ -431,5 +431,14 @@ class AuditRiskbraryService {
       url: 'api/xcoa-mobile/v1/iamquestionreform/updateViewFlag?instId=' + instId,
     })
   }
+
+  // iamquestionreform/restoreQuestion 恢复已删除问题
+  restoreQuestion(data) {
+    return axios({
+      method: 'post',
+      url: 'api/xcoa-mobile/v1/iamquestionreform/restoreQuestion',
+      data: data,
+    })
+  }
 }
 export default new AuditRiskbraryService()