撤回的状态

This commit is contained in:
NiSen
2023-06-30 14:16:12 +08:00
parent 1752c5a684
commit 168e05fcb4

View File

@@ -42,7 +42,7 @@
<a-space style="padding-right: 10px">
<a-button @click="downloadInfo(record)" type="link">信息下载
</a-button>
<a-button @click="() => handleOper(record, record.pushProgress)" type="link">
<a-button @click="() => handleOper(record, 'withdraw', record.pushProgress)" type="link">
{{ state.status[record.pushProgress] }}
</a-button>
<a-button @click="handleOper(record, 'del')" type="link">删除
@@ -237,16 +237,18 @@ const handle = (record) => ({
});
const handleMsg = {
withdraw: "你确认要撤回此次推送吗?",
del: "你确定要删除这条案例吗?",
1: "你确认要撤回此次推送吗?",
2: "你确认要撤回此次推送吗?",
3: "你确认要撤回此次推送吗?",
4: "您确定要重新推送此案例吗?",
5: "您确定要重新推送此案例吗?",
withdraw1: "你确认要撤回此次推送吗?",
withdraw2: "你确认要撤回此次推送吗?",
withdraw3: "你确认要撤回此次推送吗?",
withdraw4: "您确定要重新推送此案例吗?",
withdraw5: "您确定要重新推送此案例吗?",
};
function handleOper(record, type) {
function handleOper(record, type, status = '') {
if (status) {
type = type + status
}
dialog({ content: handleMsg[type], ok: handle(record)[type] });
}
// 信息下载