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
fd447dc7
authored
Apr 11, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REVIEW 公众号选择的下拉框
parent
129766fc
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
16 deletions
+18
-16
.env.front
+1
-1
.vscode/launch.json
+1
-1
src/views/mp/autoReply/index.vue
+2
-1
src/views/mp/components/WxMpSelect.vue
+2
-3
src/views/mp/components/wx-account-select/main.vue
+3
-3
src/views/mp/draft/index.vue
+2
-1
src/views/mp/freePublish/index.vue
+1
-0
src/views/mp/material/index.vue
+1
-4
src/views/mp/menu/index.vue
+2
-1
src/views/mp/tag/index.vue
+2
-1
src/views/mp/user/index.vue
+1
-0
No files found.
.env.front
View file @
fd447dc7
...
...
@@ -19,7 +19,7 @@ VITE_API_URL=/admin-api
VITE_BASE_PATH=/
# 项目本地运行端口号, 与.vscode/launch.json配合
VITE_PORT=
5173
VITE_PORT=
80
# 是否删除debugger
VITE_DROP_DEBUGGER=false
...
...
.vscode/launch.json
View file @
fd447dc7
...
...
@@ -8,7 +8,7 @@
"type"
:
"msedge"
,
"request"
:
"launch"
,
"name"
:
"Launch Edge against localhost"
,
"url"
:
"http://localhost
:5173
"
,
"url"
:
"http://localhost"
,
"webRoot"
:
"${workspaceFolder}/src"
,
"sourceMaps"
:
true
}
...
...
src/views/mp/autoReply/index.vue
View file @
fd447dc7
...
...
@@ -3,7 +3,8 @@
<!-- 搜索工作栏 -->
<ContentWrap>
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
/>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"accountChanged"
/>
</ContentWrap>
<!-- tab 切换 -->
...
...
src/views/mp/components/WxMpSelect.vue
View file @
fd447dc7
...
...
@@ -19,13 +19,12 @@ const emit = defineEmits<{
(
e
:
'change'
,
id
:
number
|
undefined
):
void
}
>
()
onMounted
(
async
()
=>
{
onMounted
(()
=>
{
handleQuery
()
})
const
handleQuery
=
async
()
=>
{
const
data
=
await
MpAccountApi
.
getSimpleAccountList
()
accountList
.
value
=
data
accountList
.
value
=
await
MpAccountApi
.
getSimpleAccountList
()
// 默认选中第一个
if
(
accountList
.
value
.
length
>
0
)
{
accountId
.
value
=
accountList
.
value
[
0
].
id
...
...
src/views/mp/components/wx-account-select/main.vue
View file @
fd447dc7
<
template
>
<el-form
class=
"-mb-15px"
ref=
"queryFormRef"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"公众号"
prop=
"accountId"
>
<!-- TODO 芋艿:需要将 el-form 和 el-select 解耦 -->
<el-select
v-model=
"accountId"
placeholder=
"请选择公众号"
...
...
@@ -24,13 +25,12 @@ const queryFormRef = ref()
const
emit
=
defineEmits
([
'change'
])
onMounted
(
async
()
=>
{
onMounted
(()
=>
{
handleQuery
()
})
const
handleQuery
=
async
()
=>
{
const
data
=
await
MpAccountApi
.
getSimpleAccountList
()
accountList
.
value
=
data
accountList
.
value
=
await
MpAccountApi
.
getSimpleAccountList
()
// 默认选中第一个
if
(
accountList
.
value
.
length
>
0
)
{
accountId
.
value
=
accountList
.
value
[
0
].
id
...
...
src/views/mp/draft/index.vue
View file @
fd447dc7
...
...
@@ -3,7 +3,8 @@
<!-- 搜索工作栏 -->
<ContentWrap>
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"accountChanged"
>
<template
#
actions
>
<el-button
type=
"primary"
plain
@
click=
"handleAdd"
v-hasPermi=
"['mp:draft:create']"
>
<Icon
icon=
"ep:plus"
/>
新增
...
...
src/views/mp/freePublish/index.vue
View file @
fd447dc7
...
...
@@ -3,6 +3,7 @@
<!-- 搜索工作栏 -->
<ContentWrap>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
/>
</ContentWrap>
...
...
src/views/mp/material/index.vue
View file @
fd447dc7
...
...
@@ -4,10 +4,7 @@
<ContentWrap>
<el-form
class=
"-mb-15px"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"公众号"
prop=
"accountId"
>
<WxMpSelect
@
change=
"(accountId) => accountChange(accountId)"
/>
</el-form-item>
<el-form-item>
<slot
name=
"actions"
></slot>
<WxMpSelect
@
change=
"accountChange"
/>
</el-form-item>
</el-form>
</ContentWrap>
...
...
src/views/mp/menu/index.vue
View file @
fd447dc7
...
...
@@ -2,7 +2,8 @@
<doc-alert
title=
"公众号菜单"
url=
"https://doc.iocoder.cn/mp/menu/"
/>
<!-- 搜索工作栏 -->
<ContentWrap>
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
/>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"accountChanged"
/>
</ContentWrap>
<!-- 列表 -->
...
...
src/views/mp/tag/index.vue
View file @
fd447dc7
...
...
@@ -3,7 +3,8 @@
<!-- 搜索工作栏 -->
<ContentWrap>
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"accountChanged"
>
<template
#
actions
>
<el-button
type=
"primary"
plain
@
click=
"openForm('create')"
v-hasPermi=
"['mp:tag:create']"
>
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
新增
...
...
src/views/mp/user/index.vue
View file @
fd447dc7
...
...
@@ -3,6 +3,7 @@
<!-- 搜索工作栏 -->
<ContentWrap>
<!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
<WxAccountSelect
@
change=
"(accountId) => accountChanged(accountId)"
>
<template
#
actions
>
<el-button
type=
"success"
plain
@
click=
"handleSync"
v-hasPermi=
"['mp:user:sync']"
>
...
...
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