fix : 调整部门管理演示,优化移动端详情

This commit is contained in:
2024-06-30 22:49:37 +08:00
parent 47a5cd3338
commit 09e2bfc605
11 changed files with 59 additions and 37 deletions

View File

@@ -222,9 +222,6 @@ const singleFileList = ref([])
if (props.formData.fileList !== null && props.formData.fileList?.length > 0) {
allFileList.value = props.formData.fileList
}
watch(() => props.showTable, (newVal) => {
props.showTable = newVal
}, {deep: true})
watch(() => props.showSingleTable, (newVal) => {
props.showSingleTable = newVal
}, {deep: true})
@@ -237,7 +234,7 @@ watch(() => props.formData.fileList, (newVal) => {
}
}, {deep: true})
watch(() => props.otherFileList, (newVal) => {
// console.log('newotherFileList', newVal, props.formData)
// console.log('newotherFileList', newVal)
if (props.preview) {
if (props.formData.fileList === null || props.formData.fileList?.length === 0) {
allFileList.value = newVal
@@ -250,6 +247,10 @@ watch(() => props.otherFileList, (newVal) => {
allFileList.value = newVal
}
}, {deep: true})
watch(() => props.showTable, (newVal) => {
props.showTable = newVal
}, {deep: true})
watch(() => props.singleList, (newVal) => {
// console.log('singleFile', newVal)
singleFileList.value = newVal

View File

@@ -1,5 +1,5 @@
<template>
<!-- <el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>-->
<el-button color="#DED0B2" style="float: right;margin: 0 10px 10px 0" @click="exportTable">导出</el-button>
<el-table ref="table" :data="tableData" style="width: 100%;height: 479px" :show-summary="true" border
:summary-method="getSummaries" v-loading="loading" :header-cell-style="{background:'#f5f7fa'}">
<el-table-column type="index" label="序号" align="center" width="60"/>
@@ -16,7 +16,6 @@
<template #default="scope">
<div v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
<el-tag effect="plain">{{scope.row.researchStage==1?'开发阶段':'研究阶段'}}</el-tag>
<!-- <Tag dictType="research_stage" :value="scope.row.researchStage"/>-->
</div>
<div v-else>--</div>
</template>
@@ -30,6 +29,8 @@
</template>
</el-table-column>
</el-table>
<!-- <Tag dictType="research_stage" :value="scope.row.researchStage"/>-->
</template>
<script setup>

View File

@@ -50,7 +50,7 @@ const tableConfig = reactive({
type: 'index',
label: '序号',
align: 'center',
width: 90,
width: 85,
},
{
prop: 'originalFileName',