fix: 修改发布状态显示的问题

This commit is contained in:
张洋川 2024-04-24 09:31:20 +08:00
parent 7c5b4657e1
commit c58996930a

View File

@ -94,37 +94,48 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="publishList" @selection-change="handleSelectionChange">
<el-table-column align="center" type="selection" width="55"/> <el-table-column :show-overflow-tooltip="true" align="center" type="selection" width="55"/>
<el-table-column align="center" label="APP名称" prop="appName"/> <el-table-column :show-overflow-tooltip="true" align="center" label="APP名称" prop="appName"/>
<el-table-column align="center" label="版本号" prop="version"/> <el-table-column :show-overflow-tooltip="true" align="center" label="版本号" prop="version"/>
<el-table-column align="center" label="系统" prop="systemType"/> <el-table-column :show-overflow-tooltip="true" align="center" label="系统" prop="systemType"/>
<el-table-column align="center" label="公开版" prop="publicVersion" width="180"> <el-table-column align="center" label="公开版" prop="publicVersion" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.publicVersion" :active-value="1" :inactive-value="0" class="drawer-switch" <el-switch v-model="scope.row.publicVersion" :active-value="1" :inactive-value="0" class="drawer-switch"
disabled disabled
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="强制更新" prop="forceUpdate" width="180"> <el-table-column :show-overflow-tooltip="true" align="center" label="强制更新" prop="forceUpdate" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.forceUpdate" :active-value="1" :inactive-value="0" class="drawer-switch" <el-switch v-model="scope.row.forceUpdate" :active-value="1" :inactive-value="0" class="drawer-switch"
disabled disabled
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="上传时间" prop="updateTime" width="180"> <el-table-column :show-overflow-tooltip="true" align="center" label="上传时间" prop="updateTime" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.updateTime) }}</span> <span>{{ parseTime(scope.row.updateTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="发布环境" prop="publishEnvironment" width="180"> <el-table-column :show-overflow-tooltip="true" align="center" label="发布环境" prop="publishEnvironment"
width="180"
>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="environmentList" :value="scope.row.publishEnvironment"/> <dict-tag :options="environmentList" :value="scope.row.publishEnvironment"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="安装包编号" prop="apkId"/>
<el-table-column align="center" label="版本说明" prop="versionDesc"/> <el-table-column :show-overflow-tooltip="true" align="center" label="发布状态" prop="publishEnvironment"
<el-table-column align="center" label="公开时间" prop="createTime" width="180"> width="180"
>
<template slot-scope="scope">
<dict-tag :options="dict.type.release_status" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" align="center" label="安装包编号" prop="apkId"/>
<el-table-column :show-overflow-tooltip="true" align="center" label="版本说明" prop="versionDesc"/>
<el-table-column :show-overflow-tooltip="true" align="center" label="公开时间" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
@ -137,14 +148,23 @@
min-width="80" min-width="80"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.quickMark">
<el-image
v-if="scope.row.status!=2"
:preview-src-list="[scope.row.quickMark]"
:src="scope.row.quickMark"
style="width: 80px; height: 80px"
>
</el-image>
<el-image
v-else
:src="scope.row.quickMark"
style="width: 80px; height: 80px"
>
</el-image>
</template>
<el-image
v-if="scope.row.quickMark"
:preview-src-list="[scope.row.quickMark]"
:src="scope.row.quickMark"
style="width: 80px; height: 80px"
>
</el-image>
<div v-else>/</div> <div v-else>/</div>
<!-- <el-popover--> <!-- <el-popover-->
<!-- v-if="scope.row.qrCode && scopeC.row.status !== '20'"--> <!-- v-if="scope.row.qrCode && scopeC.row.status !== '20'"-->
@ -164,6 +184,7 @@
<el-table-column align="center" class-name="small-padding fixed-width" label="操作"> <el-table-column align="center" class-name="small-padding fixed-width" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.status===1"
icon="el-icon-bottom" icon="el-icon-bottom"
size="mini" size="mini"
type="text" type="text"
@ -171,6 +192,7 @@
>下架 >下架
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.status==2 || scope.row.status==0"
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
type="text" type="text"
@ -194,6 +216,7 @@
>下载安装包 >下载安装包
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.status===2"
v-hasPermi="['deployment:publish:edit']" v-hasPermi="['deployment:publish:edit']"
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
@ -202,6 +225,7 @@
>修改 >修改
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.status===2"
v-hasPermi="['deployment:publish:remove']" v-hasPermi="['deployment:publish:remove']"
icon="el-icon-delete" icon="el-icon-delete"
size="mini" size="mini"
@ -373,7 +397,7 @@ import { getApplicationName } from '@/utils/application'
export default { export default {
name: 'Publish', name: 'Publish',
dicts: ['release_environment', 'sys_yes_no', 'release_strategy', 'release_user_type'], dicts: ['release_environment', 'sys_yes_no', 'release_strategy', 'release_user_type', 'release_status'],
components: { components: {
AddPack, AddPack,
DetailModal DetailModal