fix: 修复二次确认按钮换行
This commit is contained in:
parent
5eccbc9758
commit
01d3a0939d
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<template v-if="isPermission">
|
<template v-if="isPermission">
|
||||||
<template v-if="popConfirm">
|
<template v-if="popConfirm">
|
||||||
<j-popconfirm v-bind="popConfirm" :disabled="!isPermission || props.disabled">
|
<j-popconfirm :overlayStyle='{minWidth: "180px"}' v-bind="popConfirm" :disabled="!isPermission || props.disabled">
|
||||||
<j-tooltip v-if="tooltip" v-bind="tooltip">
|
<j-tooltip v-if="tooltip" v-bind="tooltip">
|
||||||
<slot v-if="noButton"></slot>
|
<slot v-if="noButton"></slot>
|
||||||
<j-button v-else v-bind="props" :disabled="_isPermission" :style="props.style">
|
<j-button v-else v-bind="props" :disabled="_isPermission" :style="props.style">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<CardSelect v-model:value="formModel.type" :options="options"/>
|
<CardSelect v-model:value="formModel.type" :options="options.filter(item => !(item.value === 'delay' && parallel))"/>
|
||||||
</j-form-item>
|
</j-form-item>
|
||||||
<ActionTypeComponent
|
<ActionTypeComponent
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
|
@ -69,36 +69,36 @@ const props = defineProps({
|
||||||
const emit = defineEmits(['cancel', 'save']);
|
const emit = defineEmits(['cancel', 'save']);
|
||||||
|
|
||||||
const options = [
|
const options = [
|
||||||
{
|
{
|
||||||
label: '设备输出',
|
label: '设备输出',
|
||||||
value: 'device',
|
value: 'device',
|
||||||
iconUrl: getImage('/scene/device-type.png'),
|
iconUrl: getImage('/scene/device-type.png'),
|
||||||
subLabel: '配置设备调用功能、读取属性、设置属性规则',
|
subLabel: '配置设备调用功能、读取属性、设置属性规则',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '消息通知',
|
label: '消息通知',
|
||||||
value: 'notify',
|
value: 'notify',
|
||||||
iconUrl: getImage('/scene/message-type.png'),
|
iconUrl: getImage('/scene/message-type.png'),
|
||||||
subLabel: '配置向指定用户发邮件、钉钉、微信、短信等通知',
|
subLabel: '配置向指定用户发邮件、钉钉、微信、短信等通知',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '延迟执行',
|
label: '延迟执行',
|
||||||
value: 'delay',
|
value: 'delay',
|
||||||
iconUrl: getImage('/scene/delay-type.png'),
|
iconUrl: getImage('/scene/delay-type.png'),
|
||||||
subLabel: '等待一段时间后,再执行后续动作',
|
subLabel: '等待一段时间后,再执行后续动作',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '触发告警',
|
label: '触发告警',
|
||||||
value: 'trigger',
|
value: 'trigger',
|
||||||
iconUrl: getImage('/scene/trigger-type.png'),
|
iconUrl: getImage('/scene/trigger-type.png'),
|
||||||
subLabel: '配置触发告警规则,需配合“告警配置”使用',
|
subLabel: '配置触发告警规则,需配合“告警配置”使用',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '解除告警',
|
label: '解除告警',
|
||||||
value: 'relieve',
|
value: 'relieve',
|
||||||
iconUrl: getImage('/scene/cancel-type.png'),
|
iconUrl: getImage('/scene/cancel-type.png'),
|
||||||
subLabel: '配置解除告警规则,需配合“告警配置”使用',
|
subLabel: '配置解除告警规则,需配合“告警配置”使用',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const actionForm = ref();
|
const actionForm = ref();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<j-modal
|
<j-modal
|
||||||
title="执行动作"
|
title="执行动作"
|
||||||
visible
|
visible
|
||||||
:width="860"
|
:width="800"
|
||||||
@cancel="onCancel"
|
@cancel="onCancel"
|
||||||
@ok="onOk"
|
@ok="onOk"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<pro-search
|
<pro-search
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
target="category"
|
target="category"
|
||||||
@search="(params:any)=>queryParams = {...params}"
|
@search="handleParams"
|
||||||
/>
|
/>
|
||||||
<j-pro-table
|
<j-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
|
@ -119,8 +119,8 @@ const columns = [
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'state',
|
dataIndex: 'status',
|
||||||
key: 'state',
|
key: 'status',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
search: {
|
search: {
|
||||||
|
@ -149,6 +149,10 @@ const columns = [
|
||||||
// 搜索参数
|
// 搜索参数
|
||||||
const queryParams = ref({});
|
const queryParams = ref({});
|
||||||
|
|
||||||
|
const handleParams = (params: any) => {
|
||||||
|
queryParams.value = params
|
||||||
|
}
|
||||||
|
|
||||||
// 表格
|
// 表格
|
||||||
const tableRef = ref<Record<string, any>>({}); // 表格实例
|
const tableRef = ref<Record<string, any>>({}); // 表格实例
|
||||||
const table = reactive({
|
const table = reactive({
|
||||||
|
@ -169,6 +173,7 @@ const table = reactive({
|
||||||
value: props.parentId,
|
value: props.parentId,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
type: 'and'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -3700,8 +3700,8 @@ jetlinks-store@^0.0.3:
|
||||||
|
|
||||||
jetlinks-ui-components@^1.0.5:
|
jetlinks-ui-components@^1.0.5:
|
||||||
version "1.0.5"
|
version "1.0.5"
|
||||||
resolved "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz#8cb5c9e68e46e6e7eebc0d96b1cdaab24828779f"
|
resolved "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz#f5a8ce70859a9c523b2e50b1e3560ae11c21fd0b"
|
||||||
integrity sha512-yIbmplK+twekevr7n+dGMvO8tvyIqguC60TWeJCmx2mUqpwv8dEnr/cwwpJee4PBLWohvGPywsYgmm7KxVBbcw==
|
integrity sha512-raeJHyYE2LLa47FhlO3V7P/86+VDhaABlhB2ShJJZGwpR1mRpr+Y/r+iuW2PDsPST7shgk7lb2xsKrzJ8aZN6A==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@vueuse/core" "^9.12.0"
|
"@vueuse/core" "^9.12.0"
|
||||||
ant-design-vue "^3.2.15"
|
ant-design-vue "^3.2.15"
|
||||||
|
|
Loading…
Reference in New Issue