fix : 修复细节

This commit is contained in:
2024-05-14 17:56:10 +08:00
parent 222ab1bec7
commit 4f4ef2cfde
4 changed files with 20 additions and 22 deletions

View File

@@ -7,6 +7,7 @@
v-for="btn in tableConfig.btns" v-for="btn in tableConfig.btns"
:key="btn.key" :key="btn.key"
:type="btn.type || ''" :type="btn.type || ''"
:color="btn.color || ''"
v-perm="btn.auth || ['*:*:*']" v-perm="btn.auth || ['*:*:*']"
@click="handleClickBtns(btn.key)" @click="handleClickBtns(btn.key)"
> >

View File

@@ -38,7 +38,7 @@
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="tableConfig" :data="formData.fileList" :isSettingCol="false" :pagination="false"> <fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="tableConfig" :data="formData.fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无待办" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
</template> </template>
</fvTable> </fvTable>
<div class="approval-record"> <div class="approval-record">

View File

@@ -39,7 +39,7 @@
<fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="tableConfig"
:data="formData.fileList" :isSettingCol="false" :pagination="false"> :data="formData.fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无待办" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
</template> </template>
</fvTable> </fvTable>
</el-form-item> </el-form-item>

View File

@@ -1,6 +1,10 @@
<template> <template>
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm> <fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick"></fvTable> <fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
<template #empty>
<el-empty description="暂无数据"/>
</template>
</fvTable>
</template> </template>
<script setup lang="jsx"> <script setup lang="jsx">
@@ -107,7 +111,7 @@ const tableConfig = reactive({
api: '/workflow/mosr/requirement', api: '/workflow/mosr/requirement',
btns: [ btns: [
{name: '新增', key: 'add', color: '#DED0B2'}, {name: '新增', key: 'add', color: '#DED0B2'},
{name: '导出', key: 'add', type: ''}, {name: '导出', key: 'export', type: ''},
], ],
params: {} params: {}
}) })
@@ -145,16 +149,9 @@ const headBtnClick = (key) => {
case 'add': case 'add':
handleAdd() handleAdd()
break; break;
case 'edit': case 'export':
handleEdit() handleExport()
break;
case 'detail':
handleDetail()
break; break;
} }
} }
</script> </script>
<style lang="scss" scoped>
</style>