杂务:新增声明级注释覆盖率
This commit is contained in:
@@ -115,6 +115,10 @@
|
||||
*/
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
/**
|
||||
* Purpose: MessageHubPushConfigVO supports MessageHubPushConfigsView.vue by holding or executing the message hub push config vo page or API role.
|
||||
* Usage: import, call, read, or update this type from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
import { adminMessageHubPushConfigApi, adminSystemParameterConfigApi, type MessageHubPushConfigVO } from '@/api/admin'
|
||||
|
||||
/** loading is a reactive state variable used by the template and event handlers. */
|
||||
@@ -127,15 +131,47 @@ const testing = ref(false)
|
||||
const formOpen = ref(false)
|
||||
/** testOpen is a reactive state variable used by the template and event handlers. */
|
||||
const testOpen = ref(false)
|
||||
/**
|
||||
* Purpose: editingId supports MessageHubPushConfigsView.vue by holding or executing the editing id page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const editingId = ref<any>()
|
||||
/**
|
||||
* Purpose: testingId supports MessageHubPushConfigsView.vue by holding or executing the testing id page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const testingId = ref<any>()
|
||||
/** testPhone is a reactive state variable used by the template and event handlers. */
|
||||
const testPhone = ref('')
|
||||
/**
|
||||
* Purpose: configs supports MessageHubPushConfigsView.vue by holding or executing the configs page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const configs = ref<MessageHubPushConfigVO[]>([])
|
||||
/**
|
||||
* Purpose: savingMap supports MessageHubPushConfigsView.vue by holding or executing the saving map page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const savingMap = ref(false)
|
||||
/**
|
||||
* Purpose: mapEnabled supports MessageHubPushConfigsView.vue by holding or executing the map enabled page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const mapEnabled = ref(true)
|
||||
/**
|
||||
* Purpose: mapProvider supports MessageHubPushConfigsView.vue by holding or executing the map provider page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const mapProvider = ref<'TENCENT' | 'AMAP'>('TENCENT')
|
||||
/**
|
||||
* Purpose: mapRemark supports MessageHubPushConfigsView.vue by holding or executing the map remark page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const mapRemark = ref('地图渠道由平台管理员选择;高德 Web Key 与高德小程序 Key 分开填写。')
|
||||
/**
|
||||
* Purpose: createMapForm supports MessageHubPushConfigsView.vue by holding or executing the create map form page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const createMapForm = (configKey: string, configName: string, remark: string) => ({
|
||||
configGroup: 'MAP',
|
||||
configKey,
|
||||
@@ -144,6 +180,10 @@ const createMapForm = (configKey: string, configName: string, remark: string) =>
|
||||
enabled: 1,
|
||||
remark
|
||||
})
|
||||
/**
|
||||
* Purpose: mapForms supports MessageHubPushConfigsView.vue by holding or executing the map forms page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const mapForms = reactive({
|
||||
provider: createMapForm('MAP_PROVIDER', '当前地图渠道', 'TENCENT 或 AMAP;决定后台店铺选点默认使用哪个地图渠道'),
|
||||
tencentWeb: createMapForm('TENCENT_MAP_KEY', '腾讯 Web Key', '用于后台腾讯地图选点和 Web 展示'),
|
||||
@@ -151,6 +191,10 @@ const mapForms = reactive({
|
||||
amapMini: createMapForm('AMAP_MINI_KEY', '高德小程序 Key', '用于后续小程序端高德 SDK / API 调用')
|
||||
})
|
||||
|
||||
/**
|
||||
* Purpose: sceneOptions supports MessageHubPushConfigsView.vue by holding or executing the scene options page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const sceneOptions = [
|
||||
{ label: '用户注册验证码', value: 'USER_REGISTER_SMS_CODE' },
|
||||
{ label: '手机号登录验证码', value: 'USER_LOGIN_SMS_CODE' },
|
||||
@@ -160,11 +204,19 @@ const sceneOptions = [
|
||||
{ label: '修改密码验证码', value: 'USER_CHANGE_PASSWORD_SMS_CODE' }
|
||||
]
|
||||
|
||||
/**
|
||||
* Purpose: sendMethodOptions supports MessageHubPushConfigsView.vue by holding or executing the send method options page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const sendMethodOptions = [
|
||||
{ label: 'SPUG', value: 'SPUG' },
|
||||
{ label: 'OTHER', value: 'OTHER' }
|
||||
]
|
||||
|
||||
/**
|
||||
* Purpose: form supports MessageHubPushConfigsView.vue by holding or executing the form page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const form = reactive<any>({
|
||||
sceneCode: 'USER_LOGIN_SMS_CODE',
|
||||
sceneName: '手机号登录验证码',
|
||||
@@ -179,6 +231,10 @@ const form = reactive<any>({
|
||||
remark: ''
|
||||
})
|
||||
|
||||
/**
|
||||
* Purpose: columns supports MessageHubPushConfigsView.vue by holding or executing the columns page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const columns = [
|
||||
{ title: '业务场景', key: 'scene' },
|
||||
{ title: 'MessageHub', key: 'messagehub' },
|
||||
@@ -214,6 +270,10 @@ const load = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Purpose: saveMapConfig supports MessageHubPushConfigsView.vue by holding or executing the save map config page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const saveMapConfig = async () => {
|
||||
savingMap.value = true
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user