|
|
@@ -67,12 +67,16 @@
|
|
|
<template v-if="column.key === 'action'">
|
|
|
<TableAction
|
|
|
:actions="[
|
|
|
+ {
|
|
|
+ auth: 'bizSys:wardInfo:edit',
|
|
|
+ icon: 'icon-xt-details_edit_default|iconfont',
|
|
|
+ tooltip: '编辑',
|
|
|
+ onClick: handleEdit.bind(null, record),
|
|
|
+ },
|
|
|
{
|
|
|
auth: 'bizSys:wardInfo:status',
|
|
|
- icon: 'icon-minus-square|iconfont',
|
|
|
+ icon: 'icon-xt-details_delete_default|iconfont',
|
|
|
tooltip: '停用',
|
|
|
- label: '',
|
|
|
- color: 'error',
|
|
|
ifShow: record.disable == 0,
|
|
|
popConfirm: {
|
|
|
title: '是否确认停用',
|
|
|
@@ -86,20 +90,12 @@
|
|
|
tooltip: '启用',
|
|
|
label: '',
|
|
|
ifShow: record.disable == 1,
|
|
|
- color: 'error',
|
|
|
popConfirm: {
|
|
|
title: '是否确认启用',
|
|
|
placement: 'left',
|
|
|
confirm: handleChangeState.bind(null, record),
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- auth: 'bizSys:wardInfo:edit',
|
|
|
- icon: 'icon-edit|iconfont',
|
|
|
- tooltip: '编辑',
|
|
|
- label: '',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
]"
|
|
|
/>
|
|
|
</template>
|
|
|
@@ -115,7 +111,7 @@
|
|
|
<Card title="工作日配置" style="height: 680px">
|
|
|
<template #extra
|
|
|
><Button shape="circle" v-auth="['bizSys:workday:edit']" @click="handleEditWorkDay">
|
|
|
- <Icon icon="icon-edit|iconfont" :size="14" /></Button
|
|
|
+ <Icon icon="icon-xt-details_edit_default|iconfont" :size="14" /></Button
|
|
|
></template>
|
|
|
<Row v-for="(item, index) in workDays" :key="index">
|
|
|
<div class="wrak-day">{{ item.label }}</div>
|
|
|
@@ -127,7 +123,7 @@
|
|
|
<Card title="班次配置" style="height: 680px">
|
|
|
<template #extra
|
|
|
><Button v-auth="['bizSys:wardInfo:add']" @click="handleAddSailing" shape="circle"
|
|
|
- ><Icon icon="icon-edit|iconfont" :size="14" /></Button
|
|
|
+ ><Icon icon="icon-xt-details_edit_default|iconfont" :size="14" /></Button
|
|
|
></template>
|
|
|
<BasicTable @register="registerSailingsTable">
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
@@ -139,6 +135,13 @@
|
|
|
<template v-if="column.key === 'action'">
|
|
|
<TableAction
|
|
|
:actions="[
|
|
|
+ {
|
|
|
+ auth: 'bizSys:wardInfo:edit',
|
|
|
+ icon: 'icon-xt-details_edit_default|iconfont',
|
|
|
+ tooltip: '编辑',
|
|
|
+ label: '',
|
|
|
+ onClick: handleEdit.bind(null, record),
|
|
|
+ },
|
|
|
{
|
|
|
auth: 'bizSys:wardInfo:status',
|
|
|
icon: 'icon-minus-square|iconfont',
|
|
|
@@ -165,13 +168,6 @@
|
|
|
confirm: handleChangeState.bind(null, record),
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- auth: 'bizSys:wardInfo:edit',
|
|
|
- icon: 'icon-edit|iconfont',
|
|
|
- tooltip: '编辑',
|
|
|
- label: '',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
]"
|
|
|
/>
|
|
|
</template>
|
|
|
@@ -329,15 +325,9 @@
|
|
|
// 停用启用病区方法
|
|
|
async function handleChangeState(record) {
|
|
|
const notes = record.disable == 0 ? '停用' : '启用';
|
|
|
- createConfirm({
|
|
|
- content: '是否确定要' + notes + '此病区',
|
|
|
- iconType: 'warning',
|
|
|
- onOk: async () => {
|
|
|
- await changeStatus(record.id);
|
|
|
- createMessage.success('病区' + notes + '成功!');
|
|
|
- reload();
|
|
|
- },
|
|
|
- });
|
|
|
+ await changeStatus(record.id);
|
|
|
+ createMessage.success('病区' + notes + '成功!');
|
|
|
+ reload();
|
|
|
}
|
|
|
|
|
|
// 保存成功回调事件
|
|
|
@@ -495,4 +485,8 @@
|
|
|
color: #000a18;
|
|
|
line-height: 20px;
|
|
|
}
|
|
|
+
|
|
|
+ ::v-deep(.ant-btn-link) {
|
|
|
+ color: rgb(61 65 85 / 100%);
|
|
|
+ }
|
|
|
</style>
|