Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
036c9b33
authored
Apr 22, 2023
by
dhb52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mp模块的一些小修复
parent
f848f3ba
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
20 deletions
+11
-20
src/views/mp/components/wx-music/main.vue
+2
-2
src/views/mp/draft/components/CoverSelect.vue
+3
-3
src/views/mp/draft/components/NewsForm.vue
+1
-1
src/views/mp/draft/index.vue
+4
-13
src/views/mp/menu/index.vue
+1
-1
No files found.
src/views/mp/components/wx-music/main.vue
View file @
036c9b33
...
@@ -55,6 +55,6 @@ defineExpose({
...
@@ -55,6 +55,6 @@ defineExpose({
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.sc
c
*/
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.sc
ss
*/
@import
url('../wx-msg/card.scss')
;
@import
'../wx-msg/card.scss'
;
</
style
>
</
style
>
src/views/mp/draft/components/CoverSelect.vue
View file @
036c9b33
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
>
>
<WxMaterialSelect
<WxMaterialSelect
type=
"image"
type=
"image"
:account-id=
"accountId"
:account-id=
"accountId
!
"
@
select-material=
"onMaterialSelected"
@
select-material=
"onMaterialSelected"
/>
/>
</el-dialog>
</el-dialog>
...
@@ -93,11 +93,11 @@ const showImageDialog = ref(false)
...
@@ -93,11 +93,11 @@ const showImageDialog = ref(false)
const
fileList
=
ref
<
UploadFiles
>
([])
const
fileList
=
ref
<
UploadFiles
>
([])
interface
UploadData
{
interface
UploadData
{
type
:
UploadType
type
:
UploadType
accountId
:
number
|
undefined
accountId
:
number
}
}
const
uploadData
:
UploadData
=
reactive
({
const
uploadData
:
UploadData
=
reactive
({
type
:
UploadType
.
Image
,
type
:
UploadType
.
Image
,
accountId
:
accountId
accountId
:
accountId
!
})
})
/** 素材选择完成事件*/
/** 素材选择完成事件*/
...
...
src/views/mp/draft/components/NewsForm.vue
View file @
036c9b33
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</el-container>
</el-container>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
name=
"NewsForm"
>
import
{
Editor
}
from
'@/components/Editor'
import
{
Editor
}
from
'@/components/Editor'
import
{
createEditorConfig
}
from
'../editor-config'
import
{
createEditorConfig
}
from
'../editor-config'
import
CoverSelect
from
'./CoverSelect.vue'
import
CoverSelect
from
'./CoverSelect.vue'
...
...
src/views/mp/draft/index.vue
View file @
036c9b33
...
@@ -76,7 +76,7 @@ import {
...
@@ -76,7 +76,7 @@ import {
const
message
=
useMessage
()
// 消息
const
message
=
useMessage
()
// 消息
const
accountId
=
ref
<
number
>
(
0
)
const
accountId
=
ref
<
number
>
(
-
1
)
provide
(
'accountId'
,
accountId
)
provide
(
'accountId'
,
accountId
)
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
...
@@ -90,16 +90,7 @@ interface QueryParams {
...
@@ -90,16 +90,7 @@ interface QueryParams {
const
queryParams
:
QueryParams
=
reactive
({
const
queryParams
:
QueryParams
=
reactive
({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
accountId
:
0
accountId
:
accountId
})
interface
UploadData
{
type
:
'image'
|
'video'
|
'audio'
accountId
:
number
}
const
uploadData
:
UploadData
=
reactive
({
type
:
'image'
,
accountId
:
0
})
})
// ========== 草稿新建 or 修改 ==========
// ========== 草稿新建 or 修改 ==========
...
@@ -126,8 +117,8 @@ const onBeforeDialogClose = async (onDone: () => {}) => {
...
@@ -126,8 +117,8 @@ const onBeforeDialogClose = async (onDone: () => {}) => {
// ======================== 列表查询 ========================
// ======================== 列表查询 ========================
/** 设置账号编号 */
/** 设置账号编号 */
const
setAccountId
=
(
id
:
number
)
=>
{
const
setAccountId
=
(
id
:
number
)
=>
{
queryParams
.
accountId
=
id
accountId
.
value
=
id
uploadData
.
accountId
=
id
// queryParams
.accountId = id
}
}
/** 查询列表 */
/** 查询列表 */
...
...
src/views/mp/menu/index.vue
View file @
036c9b33
...
@@ -339,7 +339,7 @@ div {
...
@@ -339,7 +339,7 @@ div {
.left
{
.left
{
position
:
relative
;
position
:
relative
;
display
:
inline-
block
;
display
:
block
;
float
:
left
;
float
:
left
;
width
:
350px
;
width
:
350px
;
height
:
715px
;
height
:
715px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment