Преглед изворни кода

修复纸质运行记录附件显示异常问题

cfort пре 1 година
родитељ
комит
79d94f9fa1
1 измењених фајлова са 21 додато и 17 уклоњено
  1. 21 17
      src/views/infosManage/fileIE.vue

+ 21 - 17
src/views/infosManage/fileIE.vue

@@ -43,8 +43,23 @@
                         @action-event="handleAction"
                         @pagination-change="handlePaginationChange"
                     >
-                        <!-- 查阅具名插槽 -->
                         <template
+                            v-if="scope.row.fu_jian_"
+                            slot="file"
+                            slot-scope="scope"
+                        >
+                            <ibps-attachment
+                                v-model="scope.row.fu_jian_"
+                                allow-download
+                                download
+                                multiple
+                                accept="*"
+                                store="id"
+                                readonly
+                            />
+                        </template>
+                        <template
+                            v-if="scope.row.file_info_"
                             slot="wenjinachayue"
                             slot-scope="scope"
                         >
@@ -224,16 +239,13 @@ export default {
         IbpsTypeTree,
         BpmnFormrender,
         'ibps-attachment': IbpsAttachment,
-        'file-lookup': fileTraining,
-        IbpsAttachment: () => import('@/business/platform/file/attachment/selector')
+        'file-lookup': fileTraining
     },
     mixins: [FixHeight],
     data () {
         const depArrs = []
         var fileDownloadAuthority = false
         const { deptList, role } = this.$store.getters
-        console.log('deptList', deptList)
-        console.log('role', role)
         for (var i of deptList) {
             depArrs.push(`wj.bian_zhi_bu_men_ like '${i.positionId}'`)
         }
@@ -385,17 +397,16 @@ export default {
         }
         if (this.$route.name === 'wjkzgl-ywyxjlsc' || this.$route.name === 'ywtxyxjl') {
             this.listConfig.searchForm.forms = [
-                { prop: 'nian_du_', label: '年度:', fieldType: 'date', dateType: 'year', width: 50 },
-                { prop: 'bian_zhi_shi_jian', label: '上传时间:', fieldType: 'daterange', width: 200 }
+                { prop: 'nian_du_', label: '记录月份', fieldType: 'date', dateType: 'year', width: 50 },
+                { prop: 'bian_zhi_shi_jian', label: '上传时间', fieldType: 'daterange', width: 200 }
             ]
             this.listConfig.columns = [
                 // { prop: 'fen_lei_', label: '表单分类', width: 120 },
-                { prop: 'nian_du_', label: '年度', width: 100 },
+                { prop: 'nian_du_', label: '记录月份', width: 100 },
                 { prop: 'org_name', label: '部门', width: 100 },
                 { prop: 'biao_dan_ming_che', label: '表单名称', width: 210 },
                 { prop: 'shi_wu_shuo_ming_', label: '事务说明', minWidth: 250 },
-                { prop: 'fu_jian_', label: '附件', slotName: 'wenjinachayue', width: 250 },
-
+                { prop: 'fu_jian_', label: '附件', slotName: 'file', width: 250 },
                 { prop: 'bian_zhi_shi_jian', label: '上传时间', width: 120 },
                 { prop: 'ry_name', label: '上传人', width: 70 }
             ]
@@ -505,8 +516,6 @@ export default {
                         let orSql = ''
                         // eslint-disable-next-line no-redeclare
                         for (const i in positionsDatas) {
-                            console.log('i', i)
-                            console.log('i12121', positionsDatas[i])
                             if (i === '0') {
                                 orSql = `wj.quan_xian_xin_xi_ LIKE '%${positionsDatas[i].id}%'`
                             } else {
@@ -632,11 +641,8 @@ export default {
                 this.listConfig.columns = this.removeColumnByProp(this.listConfig.columns, 'cao_zuo')
             }
             this.show = 'detail'
-            console.log('nodeData', nodeData)
-            console.log('nodeId', nodeId)
             this.addDataCont = { fenLei: nodeData.name, fenLeiId: nodeId }
             const fileTypes = []
-            console.log(this.oldorgId === nodeId)
             if (this.oldorgId === nodeId && (nodeData.name !== '文件分类')) {
                 return
             }
@@ -644,7 +650,6 @@ export default {
             const noHadNext = nodeData.children === undefined
             if (noHadNext && this.pageKey === 'wjkzgl-ywyxjlsc') {
                 const chongfu = this.listConfig.toolbars.filter(el => {
-                    console.log('this.listConfig', this.listConfig)
                     return el.key === 'add'
                 })
                 if (chongfu.length === 0 && this.depth !== 0) {
@@ -698,7 +703,6 @@ export default {
             this.sqlWhere = {
                 fileType: fileTypes.join(',')
             }
-            console.log('this.sqlWhere', this.sqlWhere)
             this.getDatas()
         },
         // 开启表单页面