This commit is contained in:
2024-09-02 14:08:37 +08:00
parent c409249f61
commit 4f3a1910bc
82 changed files with 9497 additions and 2733 deletions
@@ -51,10 +51,10 @@ layout("/layouts/platform.html"){
<el-card shadow="never" class="mt20">
<el-table :data="tableData" header-align="center" style="width: 100%">
<el-table-column align="center" label="序号" type="index" :index="indexMethod"></el-table-column>
<el-table-column align="center" label="标题" prop="qtitle" show-overflow-tooltip="true"></el-table-column>
<el-table-column align="center" label="标题" prop="qtitle"></el-table-column>
<el-table-column align="center" label="说明" prop="qsm" show-overflow-tooltip="true">
<template scope="scope">
<div v-if="scope.row.qsm">{{removeHTMLTag(scope.row.qsm)}}</div>
<div v-html="scope.row.qsm" v-if="scope.row.qsm">{{scope.row.qsm}}</div>
<span v-else>暂无</span>
</template>
</el-table-column>
@@ -90,14 +90,13 @@ layout("/layouts/platform.html"){
<template #edit_func>
<el-button @click="doExport" icon="el-icon-printer" type="primary">导出</el-button>
<el-button @click="doExportByUnion" icon="el-icon-printer" type="primary">按分工会导出</el-button>
</template>
<template #edit>
<div class="pl10 pr10">
<el-row class="text-center">
<h2 style="margin: 0">{{viewData.q.qtitle}}</h2>
</el-row>
<el-row class="mb20" style="width: 96%; margin: 20px auto 0;">
<el-row class="mb20">
<div v-html="viewData.q.qsm"></div>
</el-row>
@@ -165,7 +164,7 @@ layout("/layouts/platform.html"){
:visible.sync="tkViewDialogVisible"
custom-class="ViewDialogClass"
title="详细信息"
width="60%"
width="50%"
>
<el-row>
<div class="btn-group tool-button mt5">
@@ -178,56 +177,43 @@ layout("/layouts/platform.html"){
</div>
</el-row>
<el-table
:data="tkTableData"
header-align="center"
size="medium"
style="width: 100%; margin-top: 20px"
>
<el-table-column
align="center"
<el-row class="el-table-container" style="margin-top: 20px;">
<el-table
:data="tkTableData"
header-align="center"
label="序号"
type="index"
size="medium"
style="width: 100%"
>
<template scope="scope">
<span>{{scope.$index+(tkPageForm.pageNumber - 1) * tkPageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column
align="center"
header-align="center"
label="提交时间"
prop="rtime"
width="180px">
</el-table-column>
<el-table-column
align="center"
header-align="center"
label="提交人"
show-overflow-tooltip
prop="username">
</el-table-column>
<el-table-column
align="center"
header-align="center"
label="所属工会"
show-overflow-tooltip
prop="unionname">
</el-table-column>
<el-table-column
header-align="center"
label="文本"
prop="rval"
width="600px">
</el-table-column>
</el-table>
<el-table-column
align="center"
header-align="center"
label="序号"
type="index"
>
<template scope="scope">
<span>{{scope.$index+(tkPageForm.pageNumber - 1) * tkPageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column
align="center"
header-align="center"
label="提交时间"
prop="rtime"
width="200px">
</el-table-column>
<el-table-column
header-align="center"
label="文本"
prop="rval">
</el-table-column>
</el-table>
</el-row>
<el-row class="el-pagination-container">
<el-pagination
:current-page="tkPageForm.pageNumber"
:page-size="tkPageForm.pageSize"
:page-sizes="[10, 20, 30, 50]"
:total="tkPageForm.totalCount"
:total="pageForm.totalCount"
@current-change="(val)=>{tkPageForm.pageNumber = val;tkPageData();}"
@size-change="(val)=>{tkPageForm.pageSize = val;tkPageData();}"
layout="total, prev, pager, next">
@@ -271,9 +257,6 @@ layout("/layouts/platform.html"){
}
},
methods: {
doExportByUnion() {
location.href = loc() + '/doExportByUnion?questionId=' + this.questionId
},
doExport() {
location.href = loc() + '/doExport?questionId=' + this.questionId
},