| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | v-has="'inspectionCycle:add'" |
| | | >新增</a-button> |
| | | |
| | | <a-button |
| | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{ x: 'calc(1500px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(2000px + 50%)', y: 900 }" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | |
| | | <a |
| | | v-if="record.versionStatus == '2'" |
| | | @click="handleRevise(record)" |
| | | v-has="'inspectionCycle:revise'" |
| | | >升版</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-if="record.versionStatus == '1'" |
| | | @click="handleTakeEffect(record)" |
| | | v-has="'inspectionCycle:takeEffect'" |
| | | >生效</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-if="record.versionStatus == '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'inspectionCycle:edit'" |
| | | >编辑</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm |
| | | v-if="record.versionStatus == '1'" |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'inspectionCycle:delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | dataIndex: 'accordingCalendarName', |
| | | }, |
| | | { |
| | | title: '生效时间', |
| | | align: 'center', |
| | | dataIndex: 'takeEffectTime', |
| | | }, |
| | | { |
| | | title: '失效时间', |
| | | align: 'center', |
| | | dataIndex: 'loseEfficacyTime', |
| | | }, |
| | | { |
| | | title: '创建人', |
| | | align: 'center', |
| | | dataIndex: 'createBy', |
| | | }, |
| | | { |
| | | title: '创建日期', |
| | | align: 'center', |
| | | dataIndex: 'createTime', |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |