fix : 修复详情页面移动端适配

This commit is contained in:
2024-06-24 13:25:34 +08:00
parent f66a570f00
commit 6f320a47bb
8 changed files with 436 additions and 40 deletions

View File

@@ -45,7 +45,7 @@
<el-button color="#DED0B2" v-else-if="mode === 'resubmit'" @click="handleSubmit">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div>
<el-dialog title="前置流程" v-model="showPreTable" width="80%">
<el-dialog title="前置流程" v-model="showPreTable" width="80%" style="margin-top: 6vh">
<el-form :model="preProcessForm" inline>
<el-form-item label="请求名称">
<el-input v-model="preProcessForm.requestName" placeholder="请输入请求名称" clearable>
@@ -62,19 +62,20 @@
<el-table-column prop="requestId" label="请求id"></el-table-column>
<el-table-column prop="requestName" label="请求名称"></el-table-column>
<el-table-column prop="lastOperatorName" label="最后操作人名称"></el-table-column>
<el-table-column prop="lastOperateTime" label="最后操作时间"></el-table-column>
<el-table-column prop="lastOperateTime" label="最后操作时间" width="165px"></el-table-column>
<el-table-column prop="currentNodeName" label="当前节点"></el-table-column>
<el-table-column prop="creatorName" label="创建人"></el-table-column>
<el-table-column prop="createTime" label="创建时间"></el-table-column>
<el-table-column label="操作" align="center">
<el-table-column prop="createTime" label="创建时间" width="165px"></el-table-column>
<el-table-column label="操作" align="center" width="90px">
<template #default="scope">
<!-- <el-button type="primary" @click="choosePreProcess(scope.row)" link>选择</el-button>-->
<a :href="scope.row.baseUrl" target="_blank" style="color: #2a99ff;margin-left: 10px">查看流程</a>
</template>
</el-table-column>
</el-table>
<paging :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :page-sizes="[10, 20, 30, 40,50]"
:total="total" @changeSize="handleSizeChange" @goPage="handleCurrentChange"/>
<el-pagination layout="prev, pager, next" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange"/>
<!-- <paging :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :page-sizes="[10, 20, 30, 40,50]"-->
<!-- :total="total" @changeSize="handleSizeChange" @goPage="handleCurrentChange"/>-->
<div class="oper">
<el-button color="#DED0B2" @click="choosePreProcess">确定</el-button>
<el-button @click="handleCancel">取消</el-button>
@@ -148,7 +149,7 @@ const pageInfo = reactive({
const rules = reactive({
requestName: [{required: true, message: '请选择前置流程', trigger: 'blur'}],
})
const tagsViewStore = useTagsView()
// const tagsViewStore = useTagsView()
const processStore = useProcessStore()
const otherFileList = ref([])
const localFormData = ref({
@@ -212,7 +213,7 @@ const getPreProcessList = () => {
})
total.value = searchArray.length
currentList.value = searchArray
preProcessList.value = currentList.value.slice(0, 10)
preProcessList.value = currentList.value.slice(0, 5)
})
}
const choosePreProcess = () => {
@@ -360,20 +361,21 @@ const handleSubmit = async () => {
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
if (props.step === '20') {
await router.push({
name: 'Initiation'
})
} else if (props.step === '40') {
await router.push({
name: 'Implementation'
})
} else if (props.step === '50') {
await router.push({
name: 'Filing'
})
}
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
location.reload()
// if (props.step === '20') {
// await router.push({
// name: 'Initiation'
// })
// } else if (props.step === '40') {
// await router.push({
// name: 'Implementation'
// })
// } else if (props.step === '50') {
// await router.push({
// name: 'Filing'
// })
// }
}
}
const init = async () => {
@@ -426,4 +428,10 @@ onMounted(async () => {
display: flex;
justify-content: flex-end;
}
:deep(.el-upload-list) {
width: auto;
}
:deep(.el-overlay-dialog ){
left: 0!important;
}
</style>