集中培训签到列表,集中培训查询参数

This commit is contained in:
Yjhon 2022-02-24 10:23:35 +08:00
parent b0132426a1
commit 463c488e8c
2 changed files with 8 additions and 11 deletions

View File

@ -16,7 +16,7 @@
</a-descriptions> </a-descriptions>
<br /> <br />
<div style="width: 100%; height: 32px; margin-bottom: 8px"> <div style="width: 100%; height: 32px; margin-bottom: 8px">
<a-button v-if="hasPerm('terminal:train:edit')" type="primary" @click="editInfo()"> </a-button> <a-button v-if="hasPerm('terminal:train:edit') && detailData.status == 1" type="primary" @click="editInfo()"> </a-button>
<a-button v-if="hasPerm('terminal:train:list')" type="primary" @click="signInfo()">会议签到信息</a-button> <a-button v-if="hasPerm('terminal:train:list')" type="primary" @click="signInfo()">会议签到信息</a-button>
</div> </div>
</a-card> </a-card>

View File

@ -5,12 +5,9 @@
:form="queryParam" :form="queryParam"
:list="queryOptions" :list="queryOptions"
@search="handleRefresh" @search="handleRefresh"
@reset=" @reset="() => {;(queryParam = {}), handleRefresh()}"
() => {
;(queryParam = {}), handleRefresh()
}
"
></SearchCom> ></SearchCom>
<br/>
<a-space class="table-operator" direction="horizontal"> <a-space class="table-operator" direction="horizontal">
<a-button v-if="hasPerm('project:edit')" type="primary" icon="plus" @click="handledCreate">新增项目</a-button> <a-button v-if="hasPerm('project:edit')" type="primary" icon="plus" @click="handledCreate">新增项目</a-button>
</a-space> </a-space>
@ -33,18 +30,18 @@
<a-icon type="down" /> <a-icon type="down" />
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item v-if="hasPerm('terminal:train:release')"> <a-menu-item v-if="hasPerm('terminal:train:release') && record.status == 1">
<a href="javascript:;" @click="executeRelease(record)">发布</a> <a href="javascript:;" @click="executeRelease(record)">发布</a>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="hasPerm('terminal:train:list')"> <a-menu-item v-if="hasPerm('terminal:train:list')">
<a href="javascript:;" @click="getDetail(record)">详情</a> <a href="javascript:;" @click="getDetail(record)">详情</a>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="hasPerm('terminal:train:edit')"> <a-menu-item v-if="hasPerm('terminal:train:edit') && record.status == 1">
<a href="javascript:;" @click="executeEdit(record)">编辑</a> <a href="javascript:;" @click="executeEdit(record)">编辑</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a-popconfirm <a-popconfirm
v-if="hasPerm('terminal:train:del')" v-if="hasPerm('terminal:train:del') && record.status == 1"
title="是否删除?" title="是否删除?"
@confirm="() => delTerminalTrain(record)" @confirm="() => delTerminalTrain(record)"
> >
@ -90,7 +87,7 @@ export default {
return record.signNum + ' / ' + record.personNum return record.signNum + ' / ' + record.personNum
}, },
}, },
{ title: '培训类型', width: 'auto', align: 'center', dataIndex: 'projectType', key: 'projectType' }, // { title: '', width: 'auto', align: 'center', dataIndex: 'projectType', key: 'projectType' },
{ title: '项目状态', width: 'auto', align: 'center', dataIndex: 'status', key: 'status', { title: '项目状态', width: 'auto', align: 'center', dataIndex: 'status', key: 'status',
customRender: (text, record, index) => { customRender: (text, record, index) => {
if (text == '1') return '未发布' if (text == '1') return '未发布'
@ -115,7 +112,7 @@ export default {
computed: { computed: {
queryOptions: function () { queryOptions: function () {
return [ return [
{ type: 'input', placeholder: '项目名称', key: 'projectName' }, { type: 'input', placeholder: '项目名称', key: 'name' },
/** 培训状态1-未发布 2-未开始 3-进行中 4-已结束 5-已中止 */ /** 培训状态1-未发布 2-未开始 3-进行中 4-已结束 5-已中止 */
{ {
type: 'select', type: 'select',