fix: 修改订阅管理文字提示

This commit is contained in:
100011797 2023-07-24 17:57:05 +08:00
parent 8a3662419f
commit 8d874e27a6
8 changed files with 92 additions and 58 deletions

View File

@ -164,7 +164,7 @@ const deviceList = ref([
label: '网关子设备',
value: 'childrenDevice',
iconUrl: getImage('/device-type-2.png'),
tooltip: '作为网关的子设备,网关代理连接到物联网平台',
tooltip: '作为网关的子设备,网关代理连接到物联网平台',
},
{
label: '网关设备',

View File

@ -6,6 +6,10 @@
@cancel="emit('close')"
@ok="onSave"
>
<div class="alert">
<AIcon type="InfoCircleOutlined" />
通过角色控制{{ name }}的所有的通知方式可被哪些用户订阅
</div>
<Role v-model="_selectedRowKeys" :gridColumn="2" />
</j-modal>
</template>
@ -20,6 +24,10 @@ const props = defineProps({
type: Array as PropType<string[]>,
default: () => [],
},
name: {
type: String,
default: ''
}
});
const _selectedRowKeys = ref<string[]>([]);
@ -32,3 +40,14 @@ const onSave = () => {
emit('save', _selectedRowKeys.value);
};
</script>
<style lang="less" scoped>
.alert {
height: 40px;
padding: 0 20px 0 10px;
margin-bottom: 10px;
color: rgba(0, 0, 0, 0.55);
line-height: 40px;
background-color: #f6f6f6;
}
</style>

View File

@ -22,7 +22,7 @@
<template #title>
<span v-if="!update">暂无权限请联系管理员</span>
<div v-else>
用于配制外层权限<br />未配置外层权限将执行通知方式中配置的权限<br />配置外层权限后将覆盖所有通知方式中配置的权限
通过角色控制{{ data.name }}的所有的通知方式可被哪些用户订阅
</div>
</template>
<j-button
@ -129,6 +129,7 @@
@save="onSave"
:loading="loading"
:provider="provider"
:name="data.name"
/>
<Detail
:data="current"
@ -140,6 +141,7 @@
:data="data?.grant?.role?.idList"
@close="authVisible = false"
@save="onAuthSave"
:name="data.name"
/>
</template>
@ -345,6 +347,9 @@ const onSwitchChange = (e: boolean) => {
let _checked: boolean = e ? _value?.open : _value?.close;
if (_checked) {
onAction(e);
} else {
if (e) {
onAction(e);
} else {
Modal.confirm({
title: e
@ -390,6 +395,7 @@ const onSwitchChange = (e: boolean) => {
onCancel() {},
});
}
}
};
const onSave = (_data: any) => {
@ -489,7 +495,7 @@ const onSave = (_data: any) => {
.box-item-add {
cursor: pointer;
background-color: #F7F8FA;
background-color: #f7f8fa;
width: 54px;
height: 54px;
display: flex;

View File

@ -70,7 +70,7 @@
</j-alert>
</div>
</template>
<j-scrollbar height="400px">
<j-scrollbar :height="gridColumn <= 2 ? '320px' : '250px'">
<j-pro-table
ref="tableRef"
:columns="columns"

View File

@ -20,7 +20,7 @@
<AIcon type="InfoCircleOutlined" />
钉钉群机器人类型的配置在当前页面将被过滤
</div>
<div style="height: 400px; overflow-y: auto">
<div style="max-height: 400px; overflow-y: auto">
<JProTable
:columns="columns"
:request="query"

View File

@ -19,7 +19,7 @@
<AIcon type="InfoCircleOutlined" />
已规定固定收信人的模板在当前页面将被过滤
</div>
<div style="height: 400px; overflow-y: auto">
<div style="max-height: 400px; overflow-y: auto">
<JProTable
:columns="columns"
:request="(e) => handleData(e)"

View File

@ -69,10 +69,12 @@ onMounted(() => {
iconUrl: iconMap.get(item.id),
};
});
emit('update:value', options.value?.[0]?.value);
emit('update:name', options.value?.[0]?.label);
emit('change', {label: options.value?.[0]?.label, value: options.value?.[0]?.value});
}
loading.value = false;
});
notifyType.value = props.value;
});
</script>

View File

@ -11,11 +11,12 @@
<j-step v-for="(item, index) in stepList" :key="item">
<template #title>
{{ item
}}<j-tooltip
v-if="index === 4"
>
}}<j-tooltip v-if="index === 4">
<template #title>
<span>内层权限配置<br />外层权限已配置的情况下将取外层权限与当前页面分配权限的交集向对应角色发送通知<br />外层权限未配置的情况下将按此处配置的权限发送通知</span>
<span>
通过角色控制{{ name }}下的{{ showName }}通知可被哪些用户订阅<br />
注意当前配置会被外层{{ name }}中的权限控制覆盖
</span>
</template>
<AIcon type="QuestionCircleOutlined"
/></j-tooltip>
@ -32,6 +33,7 @@
<template v-if="current === 0">
<NotifyWay
:value="formModel.channelProvider"
v-model:name="showName"
@change="onWayChange"
/>
</template>
@ -161,6 +163,10 @@ const props = defineProps({
type: String,
default: '',
},
name: {
type: String,
default: '',
},
});
const stepList = [
@ -190,14 +196,15 @@ const formModel = reactive<{
});
const variableRef = ref();
const formRef = ref();
const showName = ref<string>('钉钉')
const _getType = computed(() => {
if(['notifier-dingTalk'].includes(props.data?.channelProvider)) {
return ['user', 'tag']
if (['notifier-dingTalk'].includes(props.data?.channelProvider)) {
return ['user', 'tag'];
} else {
return ['user', 'org', 'tag']
return ['user', 'org', 'tag'];
}
})
});
const _variableDefinitions = computed(() => {
return variable.value.filter((item: any) => {