feat(master): 创建歌曲
Showing
1 changed file
with
1 additions
and
33 deletions
... | @@ -69,9 +69,6 @@ | ... | @@ -69,9 +69,6 @@ |
69 | <a-link v-if="record.status === 5 && checkPermission('edit')" class="link-hover" :hoverable="false" @click="onSend(record)"> | 69 | <a-link v-if="record.status === 5 && checkPermission('edit')" class="link-hover" :hoverable="false" @click="onSend(record)"> |
70 | 编辑发行 | 70 | 编辑发行 |
71 | </a-link> | 71 | </a-link> |
72 | <!-- <a-link v-if="record.status === 1 && checkPermission('push')" class="link-hover" :hoverable="false" @click="onNotify(record)">--> | ||
73 | <!-- 推送--> | ||
74 | <!-- </a-link>--> | ||
75 | <!-- <delete-button v-if="record.status === 2" :index="rowIndex" :on-delete="() => onDelete(record.id)" :row="record" />--> | 72 | <!-- <delete-button v-if="record.status === 2" :index="rowIndex" :on-delete="() => onDelete(record.id)" :row="record" />--> |
76 | </template> | 73 | </template> |
77 | </space-table-column> | 74 | </space-table-column> |
... | @@ -92,7 +89,6 @@ | ... | @@ -92,7 +89,6 @@ |
92 | import DateTableColumn from '@/components/filter/date-table-column.vue'; | 89 | import DateTableColumn from '@/components/filter/date-table-column.vue'; |
93 | import ActivityTableColumn from '@/components/filter/activity-table-column.vue'; | 90 | import ActivityTableColumn from '@/components/filter/activity-table-column.vue'; |
94 | import FormContent from '@/views/audition/activity-audit/components/form-content.vue'; | 91 | import FormContent from '@/views/audition/activity-audit/components/form-content.vue'; |
95 | import NotifyContent from '@/views/audition/activity-audit/components/step4-form-content.vue'; | ||
96 | 92 | ||
97 | import { createFormVNode, createInputFormItemVNode, createInputVNode, createModalVNode } from '@/utils/createVNode'; | 93 | import { createFormVNode, createInputFormItemVNode, createInputVNode, createModalVNode } from '@/utils/createVNode'; |
98 | import { useSelectionStore } from '@/store'; | 94 | import { useSelectionStore } from '@/store'; |
... | @@ -200,7 +196,7 @@ | ... | @@ -200,7 +196,7 @@ |
200 | const onShow = (record: TableData) => openNewTab(router, 'audition-activity-show', { id: record.id }); | 196 | const onShow = (record: TableData) => openNewTab(router, 'audition-activity-show', { id: record.id }); |
201 | 197 | ||
202 | const onCreate = () => { | 198 | const onCreate = () => { |
203 | const formVal = { is_push: 1, created_form: 1, song_type: 1, ...props.createProp?.initValue }; | 199 | const formVal = { is_push: 0, created_form: 1, song_type: 1, ...props.createProp?.initValue }; |
204 | const dialog = createModalVNode( | 200 | const dialog = createModalVNode( |
205 | () => | 201 | () => |
206 | createVNode(FormContent, { | 202 | createVNode(FormContent, { |
... | @@ -299,34 +295,6 @@ | ... | @@ -299,34 +295,6 @@ |
299 | } | 295 | } |
300 | ); | 296 | ); |
301 | }; | 297 | }; |
302 | |||
303 | const onNotify = (record: TableData) => { | ||
304 | const { loading: submitLoading, setLoading } = useLoading(false); | ||
305 | const formValue = ref({ is_push: 1, expand: { push_type: [], push_user: [] } }); | ||
306 | const formRef = ref(); | ||
307 | |||
308 | createModalVNode( | ||
309 | () => | ||
310 | createVNode(NotifyContent, { | ||
311 | ref: formRef, | ||
312 | modelValue: formValue.value, | ||
313 | loading: submitLoading.value, | ||
314 | hideMode: true, | ||
315 | disabledTag: false, | ||
316 | }), | ||
317 | { | ||
318 | title: '推送', | ||
319 | titleAlign: 'start', | ||
320 | width: '680px', | ||
321 | onBeforeOk: () => { | ||
322 | return formRef.value?.onValid(() => { | ||
323 | setLoading(true); | ||
324 | notify(record.id, formValue.value.expand).finally(() => setLoading(false)); | ||
325 | }); | ||
326 | }, | ||
327 | } | ||
328 | ); | ||
329 | }; | ||
330 | </script> | 298 | </script> |
331 | 299 | ||
332 | <style scoped></style> | 300 | <style scoped></style> | ... | ... |
-
Please register or sign in to post a comment