|
|
|
@ -15,12 +15,14 @@
@@ -15,12 +15,14 @@
|
|
|
|
|
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
|
|
|
|
* author entfrm开发团队-王翔 |
|
|
|
|
*/ |
|
|
|
|
import { ref, unref } from 'vue'; |
|
|
|
|
import {ref, toRaw, unref} from 'vue'; |
|
|
|
|
import { BasicForm, useForm } from '/@/components/Form/index'; |
|
|
|
|
import { formSchema } from './type.data'; |
|
|
|
|
import { addPushType, editPushType, getPushType } from '/@/api/platform/common/controller/pushType'; |
|
|
|
|
import { BasicModal, ModalProps, useModalInner } from '/@/components/Modal'; |
|
|
|
|
import { getPushConcernFanType, editPushConcernFanType } from '/@/api/platform/common/controller/pushConcernFanType'; |
|
|
|
|
import { listPushRingtone } from '/@/api/platform/common/controller/pushRingtone'; |
|
|
|
|
import { useUserStore } from '/@/store/modules/user'; |
|
|
|
|
|
|
|
|
|
/** 通用变量统一声明区域 */ |
|
|
|
|
const tag = ref<Nullable<string>>(''); |
|
|
|
@ -32,6 +34,8 @@
@@ -32,6 +34,8 @@
|
|
|
|
|
showActionButtonGroup: false, |
|
|
|
|
baseColProps: { span: 24 } |
|
|
|
|
}); |
|
|
|
|
const userStore = useUserStore(); |
|
|
|
|
const userInfoStore = userStore.getUserInfo; |
|
|
|
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data: WindowInnerData = { _tag: '' }) => { |
|
|
|
|
// 处理清除脏数据 |
|
|
|
|
await resetFields(); |
|
|
|
@ -39,7 +43,20 @@
@@ -39,7 +43,20 @@
|
|
|
|
|
// 处理设置数据 |
|
|
|
|
tag.value = data._tag; |
|
|
|
|
const refId = data.record?.id; |
|
|
|
|
const onlineRingtoneCreateId = data.onlineRingtoneCreateId; |
|
|
|
|
const props: Partial<ModalProps> = { confirmLoading: false }; |
|
|
|
|
await updateSchema([ |
|
|
|
|
{ |
|
|
|
|
field: 'onlineRingtone', |
|
|
|
|
componentProps: { |
|
|
|
|
api: listPushRingtone, |
|
|
|
|
params: { |
|
|
|
|
size: 99, |
|
|
|
|
createById: onlineRingtoneCreateId || userInfoStore.id |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
]); |
|
|
|
|
// 采用tag标签区分操作 |
|
|
|
|
switch (unref(tag)) { |
|
|
|
|
case 'add': |
|
|
|
|