Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
PaoPao
/
adminWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6a30e212
...
6a30e21223c8c13e32edf5cb7a235e81c0e3be7f
authored
2024-05-27 16:48:52 +0800
by
杨俊
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(master): 创建歌曲
1 parent
2b54f850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
33 deletions
src/views/audition/activity/index.vue
src/views/audition/activity/index.vue
View file @
6a30e21
...
...
@@ -69,9 +69,6 @@
<a-link
v-if=
"record.status === 5 && checkPermission('edit')"
class=
"link-hover"
:hoverable=
"false"
@
click=
"onSend(record)"
>
编辑发行
</a-link>
<!--
<a-link
v-if=
"record.status === 1 && checkPermission('push')"
class=
"link-hover"
:hoverable=
"false"
@
click=
"onNotify(record)"
>
-->
<!-- 推送-->
<!--
</a-link>
-->
<!--
<delete-button
v-if=
"record.status === 2"
:index=
"rowIndex"
:on-delete=
"() => onDelete(record.id)"
:row=
"record"
/>
-->
</
template
>
</space-table-column>
...
...
@@ -92,7 +89,6 @@
import
DateTableColumn
from
'@/components/filter/date-table-column.vue'
;
import
ActivityTableColumn
from
'@/components/filter/activity-table-column.vue'
;
import
FormContent
from
'@/views/audition/activity-audit/components/form-content.vue'
;
import
NotifyContent
from
'@/views/audition/activity-audit/components/step4-form-content.vue'
;
import
{
createFormVNode
,
createInputFormItemVNode
,
createInputVNode
,
createModalVNode
}
from
'@/utils/createVNode'
;
import
{
useSelectionStore
}
from
'@/store'
;
...
...
@@ -200,7 +196,7 @@
const
onShow
=
(
record
:
TableData
)
=>
openNewTab
(
router
,
'audition-activity-show'
,
{
id
:
record
.
id
});
const
onCreate
=
()
=>
{
const
formVal
=
{
is_push
:
1
,
created_form
:
1
,
song_type
:
1
,
...
props
.
createProp
?.
initValue
};
const
formVal
=
{
is_push
:
0
,
created_form
:
1
,
song_type
:
1
,
...
props
.
createProp
?.
initValue
};
const
dialog
=
createModalVNode
(
()
=>
createVNode
(
FormContent
,
{
...
...
@@ -299,34 +295,6 @@
}
);
};
const
onNotify
=
(
record
:
TableData
)
=>
{
const
{
loading
:
submitLoading
,
setLoading
}
=
useLoading
(
false
);
const
formValue
=
ref
({
is_push
:
1
,
expand
:
{
push_type
:
[],
push_user
:
[]
}
});
const
formRef
=
ref
();
createModalVNode
(
()
=>
createVNode
(
NotifyContent
,
{
ref
:
formRef
,
modelValue
:
formValue
.
value
,
loading
:
submitLoading
.
value
,
hideMode
:
true
,
disabledTag
:
false
,
}),
{
title
:
'推送'
,
titleAlign
:
'start'
,
width
:
'680px'
,
onBeforeOk
:
()
=>
{
return
formRef
.
value
?.
onValid
(()
=>
{
setLoading
(
true
);
notify
(
record
.
id
,
formValue
.
value
.
expand
).
finally
(()
=>
setLoading
(
false
));
});
},
}
);
};
</
script
>
<
style
scoped
></
style
>
...
...
Please
register
or
sign in
to post a comment