|
@@ -58,12 +58,6 @@
|
|
|
>{{ row.file_info_ }}</el-tag>
|
|
>{{ row.file_info_ }}</el-tag>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-if="showUpdateFile" slot="caozuo" slot-scope="scope">
|
|
|
|
|
- <div style="color:#1E90FF; " class="hover-hand" @click="updateDate(scope)">
|
|
|
|
|
- <i class="el-icon-edit-outline" style="cursor: pointer;" />
|
|
|
|
|
- <span style="cursor: pointer;"> 更新</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template> -->
|
|
|
|
|
</ibps-crud>
|
|
</ibps-crud>
|
|
|
</ibps-container>
|
|
</ibps-container>
|
|
|
|
|
|
|
@@ -153,20 +147,18 @@ export default {
|
|
|
{ prop: 'cha_yue_jie_zhi_s', label: '查阅截止日期', width: 120 },
|
|
{ prop: 'cha_yue_jie_zhi_s', label: '查阅截止日期', width: 120 },
|
|
|
{ prop: 'file_info_', label: '文件附件', slotName: 'fileInfo', minWidth: 200 }
|
|
{ prop: 'file_info_', label: '文件附件', slotName: 'fileInfo', minWidth: 200 }
|
|
|
],
|
|
],
|
|
|
- rowHandle: {
|
|
|
|
|
- effect: 'display',
|
|
|
|
|
- actions: [
|
|
|
|
|
- {
|
|
|
|
|
- key: 'updateFile',
|
|
|
|
|
- label: '更新',
|
|
|
|
|
- type: 'primary',
|
|
|
|
|
- icon: 'ibps-icon-update',
|
|
|
|
|
- hidden: (row, index) => {
|
|
|
|
|
- return !this.showUpdateFile
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ rowHandle: undefined
|
|
|
|
|
+ },
|
|
|
|
|
+ rowHandle: {
|
|
|
|
|
+ effect: 'display',
|
|
|
|
|
+ actions: [
|
|
|
|
|
+ {
|
|
|
|
|
+ key: 'updateFile',
|
|
|
|
|
+ label: '更新',
|
|
|
|
|
+ type: 'primary',
|
|
|
|
|
+ icon: 'ibps-icon-update'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
pagination: {},
|
|
pagination: {},
|
|
|
sorts: {},
|
|
sorts: {},
|
|
@@ -217,9 +209,9 @@ export default {
|
|
|
ActionUtils.handleListData(this, {
|
|
ActionUtils.handleListData(this, {
|
|
|
dataResult: data,
|
|
dataResult: data,
|
|
|
pageResult: rest
|
|
pageResult: rest
|
|
|
- }).catch(() => {
|
|
|
|
|
- this.loading = false
|
|
|
|
|
})
|
|
})
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ this.loading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getData ({ pageNo, limit, ...rest }) {
|
|
getData ({ pageNo, limit, ...rest }) {
|
|
@@ -270,6 +262,10 @@ export default {
|
|
|
return node ? node.name : ''
|
|
return node ? node.name : ''
|
|
|
})
|
|
})
|
|
|
this.showUpdateFile = pathNameList.includes('外部文件') && this.isSuper
|
|
this.showUpdateFile = pathNameList.includes('外部文件') && this.isSuper
|
|
|
|
|
+ this.listConfig.rowHandle = this.showUpdateFile ? this.rowHandle : undefined
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs['crud']?.doLayout()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
this.fileRights = {
|
|
this.fileRights = {
|
|
|
common: [],
|
|
common: [],
|
|
@@ -373,7 +369,7 @@ export default {
|
|
|
params: [fileIds.join(',')]
|
|
params: [fileIds.join(',')]
|
|
|
})
|
|
})
|
|
|
this.fileHisList = data.map(item => {
|
|
this.fileHisList = data.map(item => {
|
|
|
- const f = fileData.find(i => i.id_ === (item.gai_zhang_fu_jian || item.wen_jian_fu_jian_))
|
|
|
|
|
|
|
+ const f = fileData.find(i => i.ID_ === (item.gai_zhang_fu_jian || item.wen_jian_fu_jian_))
|
|
|
return {
|
|
return {
|
|
|
id: item.id_,
|
|
id: item.id_,
|
|
|
FILE_NAME_: item.wen_jian_ming_che,
|
|
FILE_NAME_: item.wen_jian_ming_che,
|
|
@@ -391,6 +387,7 @@ export default {
|
|
|
xiu_ding_fu_jian_: item.xiu_ding_fu_jian_
|
|
xiu_ding_fu_jian_: item.xiu_ding_fu_jian_
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ // console.log(this.fileHisList)
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
},
|
|
},
|
|
|
handleUpdate (fileId, time) {
|
|
handleUpdate (fileId, time) {
|