Explorar el Código

内审管审归档静态页bug修复

cfort hace 3 años
padre
commit
a0b178ffc7

+ 11 - 7
src/views/platform/bpmn/bpmInstHis/listType/guangShen.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <ibps-crud ref="crud" :style="{ marginLeft: width + 'px', minHeight: '550px' }" :height="height" :data="listData"
-      :toolbars="listConfig.toolbars" :search-form="listConfig.searchForm" :pk-key="pkKey" displayField="管理评审"
+      :toolbars="listConfig.toolbars" :search-form="listConfig.searchForm" :pk-key="pkKey" :displayField="tableTitle"
       :columns="listConfig.columns" :row-handle="listConfig.rowHandle" :pagination="pagination" :loading="loading"
       :index-row="false" :selection-row="selection" @action-event="handleAction" @sort-change="handleSortChange"
       @column-link-click="handleLinkClick" @pagination-change="handlePaginationChange">
@@ -145,11 +145,6 @@ export default {
     IbpsCustomDialog,
     'ibps-attachment': IbpsAttachment
   },
-  props: {
-    reportAll: Array,
-    tableTitle: String,
-    typeId: String
-  },
   mixins: [FixHeight, getCont, GetReport],
   data() {
     return {
@@ -206,11 +201,15 @@ export default {
         }
       },
       // 不符合项内容
-      options: []
+      options: [],
+      reportAll: [],
+      tableTitle: '管理评审',
+      typeId: '859879751135789056'
     }
   },
   created() {
     this.loadData()
+    this.getConfig()
     let roleArr = this.$store.getters.userInfo.role
     // console.log(roleArr)
     for (let i = 0; i < roleArr.length; i++) {
@@ -222,6 +221,11 @@ export default {
     }
   },
   methods: {
+    getConfig() {
+      curdPost('select', this.packNameWhere('t_lcidglbdbb', { '1': '1' })).then(response => {
+        this.reportAll = response.variables.data
+      })
+    },
     // 加载数据
     loadData() {
       this.loading = true

+ 11 - 7
src/views/platform/bpmn/bpmInstHis/listType/neiShen.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <ibps-crud ref="crud" :style="{ marginLeft: width + 'px', minHeight: '550px' }" :height="height" :data="listData"
-      :toolbars="listConfig.toolbars" :search-form="listConfig.searchForm" :pk-key="pkKey" displayField="内部审核"
+      :toolbars="listConfig.toolbars" :search-form="listConfig.searchForm" :pk-key="pkKey" :displayField="tableTitle"
       :columns="listConfig.columns" :row-handle="listConfig.rowHandle" :pagination="pagination" :loading="loading"
       :index-row="false" :selection-row="selection" @action-event="handleAction" @sort-change="handleSortChange"
       @column-link-click="handleLinkClick" @pagination-change="handlePaginationChange">
@@ -148,11 +148,6 @@ export default {
     IbpsCustomDialog,
     'ibps-attachment': IbpsAttachment
   },
-  props: {
-    reportAll: Array,
-    tableTitle: String,
-    typeId: String
-  },
   mixins: [FixHeight, getCont, GetReport],
   data() {
     return {
@@ -207,11 +202,15 @@ export default {
         }
       },
       // 不符合项内容
-      options: []
+      options: [],
+      reportAll: [],
+      tableTitle: '内部审核',
+      typeId: '859879582994530304'
     }
   },
   created() {
     this.loadData()
+    this.getConfig()
     let roleArr = this.$store.getters.userInfo.role
     // console.log(roleArr)
     for (let i = 0; i < roleArr.length; i++) {
@@ -223,6 +222,11 @@ export default {
     }
   },
   methods: {
+    getConfig() {
+      curdPost('select', this.packNameWhere('t_lcidglbdbb', { '1': '1' })).then(response => {
+        this.reportAll = response.variables.data
+      })
+    },
     // 加载数据
     loadData() {
       this.loading = true