|
|
@ -19,7 +19,7 @@ |
|
|
|
<span class="dialog-right-top" /> |
|
|
|
<span class="dialog-left-bottom" /> |
|
|
|
<div class="setting-dialog"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> |
|
|
|
<el-form ref="form" :model="form" size="small" label-width="80px" crud-tag="file"> |
|
|
|
<!-- <el-form-item label="字典名称" prop="dicName"> |
|
|
|
<el-input v-model="form.dicName" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
@ -47,7 +47,7 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" highlight-current-row style="width: 100%;" @selection-change="crud.selectionChangeHandler" @row-click="clickRowHandler"> |
|
|
|
<el-table ref="table" v-loading="crud.loading || getTableDisplayFieldsLoading" :data="crud.data" highlight-current-row style="width: 100%;" crud-tag="file" @selection-change="crud.selectionChangeHandler" @row-click="clickRowHandler"> |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<el-table-column type="index" label="序号" width="55" align="center" /> |
|
|
|
<!-- :align="field.isDisplayAlign" :width="field.isDisplayWidth" --> |
|
|
@ -73,10 +73,11 @@ export default { |
|
|
|
cruds() { |
|
|
|
return [ |
|
|
|
CRUD({ |
|
|
|
debugger: true, |
|
|
|
tag: 'file', |
|
|
|
title: '档案', |
|
|
|
url: 'api/archives/initArchivesView', |
|
|
|
query: { categoryId: '', isdel: false }, |
|
|
|
query: { categoryId: 'FFAFBB1647D459C82080A', isdel: false }, |
|
|
|
crudMethod: { add, edit }, |
|
|
|
optShow: { |
|
|
|
add: true, |
|
|
@ -123,12 +124,13 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
|
beforeCrudRefresh$file() { |
|
|
|
this.getTableDisplayFieldsLoading = true |
|
|
|
// 请求数据 |
|
|
|
getTableDisplayFields().then(data => { |
|
|
|
this.tableDisplayFields = data.queryFields.filter((fields) => { return fields.isDisplay }) |
|
|
|
getTableDisplayFields({ categoryId: 'FFAFBB1647D459C82080A' }).then(data => { |
|
|
|
this.tableDisplayFields = data.filter((fields) => { return fields.isDisplay }) |
|
|
|
this.getTableDisplayFieldsLoading = false |
|
|
|
return true |
|
|
|
}) |
|
|
|
}, |
|
|
|
// [CRUD.HOOK.afterDelete]() { |
|
|
@ -166,7 +168,4 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped> |
|
|
|
::v-deep thead .el-table-column--selection .cell { |
|
|
|
display: none; |
|
|
|
} |
|
|
|
</style> |