Parcourir la source

整改计划、整改反馈修改提交

wangxb il y a 9 mois
Parent
commit
2fa55dcc72

+ 32 - 25
src_product/iam/audit/rectplanproject/audit-rectplanproject-list.vue

@@ -307,34 +307,41 @@ export default {
       unitName: '',
     }
   },
-  mounted() {
-    this.initAuditUnit()
-  },
-  methods: {
-    initAuditUnit() {
-      let userInfo = getUserInfo()
-      const params = {
-        orgId: userInfo.deptId,
-      }
+  created() {
+    let userInfo = getUserInfo()
+    const params = {
+      orgId: userInfo.deptId,
+    }
+    axios({
+      url: 'api/xcoa-mobile/v1/iamorg/getCurrentUserGroup',
+      method: 'get',
+    }).then((res) => {
+      userInfo = res.data
+      params.orgId = res.data.id
       axios({
-        url: 'api/xcoa-mobile/v1/iamorg/getCurrentUserGroup',
-        method: 'get',
+        url: 'api/xcoa-mobile/v1/iamorg/findIamOrg',
+        method: 'post',
+        params,
       }).then((res) => {
-        userInfo = res.data
-        params.orgId = res.data.id
-        axios({
-          url: 'api/xcoa-mobile/v1/iamorg/findIamOrg',
-          method: 'post',
-          params,
-        }).then((res) => {
-          const deptCode = userInfo.id.toString()
-          const deptName = res.data.orgName
-          this.rootNode = { code: deptCode, name: deptName, id: res.data.id }
-          this.auditUnit = [this.rootNode]
-          this.initedSteps++
-        })
+        const deptCode = userInfo.id.toString()
+        const deptName = res.data.orgName
+        this.rootNode = { code: deptCode, name: deptName, id: res.data.id }
+        this.auditUnit = [this.rootNode]
+        this.initedSteps++
+        // 审计机构
+        if (this.auditUnit[0] !== undefined) {
+          this.tableExpressions.push({
+            dataType: 'str',
+            name: 'unitName',
+            op: 'like',
+            stringValue: this.auditUnit[0].name,
+          })
+        }
       })
-    },
+    })
+  },
+  mounted() {},
+  methods: {
     export() {
       this.$refs.rectplanprojectExport.exportdata()
     },

+ 1 - 1
src_product/iam/audit/statistics/audit-problem-rect-item.vue

@@ -183,7 +183,7 @@ export default {
         {
           title: '问题分类',
           dataIndex: 'problemType',
-          width: '150px',
+          width: '300px',
         },
         {
           title: '问题类型',