|
@@ -141,17 +141,29 @@
|
|
:placeholder="['-', '-', '-', '-']"
|
|
:placeholder="['-', '-', '-', '-']"
|
|
/>
|
|
/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <a-form-item
|
|
|
|
- :label="t('room.authorize')"
|
|
|
|
- name="scenes"
|
|
|
|
- style="margin-bottom: 2px"
|
|
|
|
- >
|
|
|
|
- <template #slot="label">
|
|
|
|
|
|
+ <a-form-item name="scenes" style="margin-bottom: 2px">
|
|
|
|
+ <div slot="label" style="margin: 10px 0">
|
|
{{ t('room.authorize') }}
|
|
{{ t('room.authorize') }}
|
|
- <a-tooltip title="Tooltip with customize">
|
|
|
|
- <InfoCircleOutlined />
|
|
|
|
- </a-tooltip>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <InfoCircleOutlined
|
|
|
|
+ @click="
|
|
|
|
+ Modal.confirm({
|
|
|
|
+ centered:true,
|
|
|
|
+ title: () => t('room.authTipTitle'),
|
|
|
|
+ icon: () => createVNode(ExclamationCircleOutlined),
|
|
|
|
+ //@ts-ignore
|
|
|
|
+ cancelButtonProps: { style: { display: 'none' } },
|
|
|
|
+ cancelText: false,
|
|
|
|
+ content: () =>
|
|
|
|
+ createVNode(
|
|
|
|
+ 'div',
|
|
|
|
+ { style: 'color:red;' },
|
|
|
|
+ t('room.authTipContent')
|
|
|
|
+ ),
|
|
|
|
+ class: 'test'
|
|
|
|
+ })
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
<a-button
|
|
<a-button
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
@@ -210,7 +222,7 @@
|
|
:rules="[{ required: true, message: t('room.userAccountRequired') }]"
|
|
:rules="[{ required: true, message: t('room.userAccountRequired') }]"
|
|
>
|
|
>
|
|
<a-input
|
|
<a-input
|
|
- v-model:value="authformState.userName"
|
|
|
|
|
|
+ v-model:value.trim="authformState.userName"
|
|
:placeholder="t('room.userAccountRequired')"
|
|
:placeholder="t('room.userAccountRequired')"
|
|
/>
|
|
/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -240,11 +252,13 @@ import {
|
|
defineComponent,
|
|
defineComponent,
|
|
reactive,
|
|
reactive,
|
|
computed,
|
|
computed,
|
|
- unref
|
|
|
|
|
|
+ unref,
|
|
|
|
+ createVNode
|
|
} from 'vue'
|
|
} from 'vue'
|
|
|
|
+
|
|
import { createRoom, useRoomStore } from '@/store/modules/room'
|
|
import { createRoom, useRoomStore } from '@/store/modules/room'
|
|
import { props } from './props'
|
|
import { props } from './props'
|
|
-import { message } from 'ant-design-vue'
|
|
|
|
|
|
+import { message, Modal } from 'ant-design-vue'
|
|
import { mainURL } from '@/env'
|
|
import { mainURL } from '@/env'
|
|
import EditScenes from './scene-list.vue'
|
|
import EditScenes from './scene-list.vue'
|
|
import unScenePng from '@/assets/images/un-scene.png'
|
|
import unScenePng from '@/assets/images/un-scene.png'
|
|
@@ -255,6 +269,7 @@ import { useI18n } from '@/hook/useI18n'
|
|
import { useLocale } from '@/locales/useLocale'
|
|
import { useLocale } from '@/locales/useLocale'
|
|
import dayjs, { Dayjs } from 'dayjs'
|
|
import dayjs, { Dayjs } from 'dayjs'
|
|
import { addAuthUser } from '@/api'
|
|
import { addAuthUser } from '@/api'
|
|
|
|
+import {ExclamationCircleOutlined} from '@ant-design/icons-vue'
|
|
|
|
|
|
// const titleValidator = ref({
|
|
// const titleValidator = ref({
|
|
// validator: (_, value) =>
|
|
// validator: (_, value) =>
|
|
@@ -361,15 +376,13 @@ export default defineComponent({
|
|
)
|
|
)
|
|
console.log('isExist', isExist === -1)
|
|
console.log('isExist', isExist === -1)
|
|
if (isExist === -1) {
|
|
if (isExist === -1) {
|
|
- const dup = structuredClone(toRaw(authformState));
|
|
|
|
- console.log('dup',dup);
|
|
|
|
|
|
+ const dup = structuredClone(toRaw(authformState))
|
|
current.userObjList?.push(dup)
|
|
current.userObjList?.push(dup)
|
|
}
|
|
}
|
|
|
|
|
|
authvisible.value = false
|
|
authvisible.value = false
|
|
console.log('current', current)
|
|
console.log('current', current)
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
message.error(t('room.authUserError'))
|
|
message.error(t('room.authUserError'))
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -417,7 +430,10 @@ export default defineComponent({
|
|
isRoomEnd,
|
|
isRoomEnd,
|
|
handleAssistantUseDelete,
|
|
handleAssistantUseDelete,
|
|
disabledDate,
|
|
disabledDate,
|
|
- disabledTime
|
|
|
|
|
|
+ disabledTime,
|
|
|
|
+ createVNode,
|
|
|
|
+ Modal,
|
|
|
|
+ ExclamationCircleOutlined
|
|
// authTargetUser,
|
|
// authTargetUser,
|
|
// authTargetUserTime
|
|
// authTargetUserTime
|
|
}
|
|
}
|