Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_web
Commits
04ad5374
Commit
04ad5374
authored
Jan 25, 2024
by
hayden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统管理-日志管理-短信日志:新增筛选条件门店、房间
parent
0b8a007b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletions
+40
-1
index.vue
src/views/system/smsLog/index.vue
+40
-1
No files found.
src/views/system/smsLog/index.vue
View file @
04ad5374
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"所属门店"
prop=
"storeId"
>
<el-select
v-model=
"queryParams.storeId"
placeholder=
"请选择所属门店"
@
change=
"onGetRoomListByStoreId"
clearable
>
<el-option
v-for=
"item in stores"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"所属房间"
prop=
"roomId"
>
<el-select
v-model=
"queryParams.roomId"
placeholder=
"请选择所属房间"
clearable
>
<el-option
v-for=
"item in rooms"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"手机号码"
prop=
"phone"
>
<el-form-item
label=
"手机号码"
prop=
"phone"
>
<el-input
<el-input
v-model=
"queryParams.phone"
v-model=
"queryParams.phone"
...
@@ -114,12 +135,16 @@
...
@@ -114,12 +135,16 @@
<
script
>
<
script
>
import
{
listLog
,
getLog
,
delLog
,
addLog
,
updateLog
}
from
"@/api/system/smsLog"
;
import
{
listLog
,
getLog
,
delLog
,
addLog
,
updateLog
}
from
"@/api/system/smsLog"
;
import
{
queryRoom
}
from
"@/api/system/room"
;
import
{
allList
}
from
"@/api/system/store"
;
export
default
{
export
default
{
name
:
"SmsLog"
,
name
:
"SmsLog"
,
dicts
:
[
'sms_type'
],
dicts
:
[
'sms_type'
],
data
()
{
data
()
{
return
{
return
{
stores
:
[],
rooms
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -148,7 +173,9 @@ export default {
...
@@ -148,7 +173,9 @@ export default {
content
:
null
,
content
:
null
,
smsType
:
null
,
smsType
:
null
,
result
:
null
,
result
:
null
,
resultParam
:
null
resultParam
:
null
,
roomId
:
null
,
storeId
:
null
}
,
}
,
// 表单参数
// 表单参数
form
:
{
}
,
form
:
{
}
,
...
@@ -166,8 +193,20 @@ export default {
...
@@ -166,8 +193,20 @@ export default {
}
,
}
,
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
onGetAllStoreList
();
}
,
}
,
methods
:
{
methods
:
{
onGetAllStoreList
(){
allList
().
then
(
res
=>
{
this
.
stores
=
res
.
data
}
)
}
,
onGetRoomListByStoreId
(
id
)
{
this
.
queryParams
.
roomId
=
null
;
queryRoom
().
then
(
res
=>
{
this
.
rooms
=
res
.
data
.
filter
(
item
=>
item
.
storeId
===
id
)
}
)
}
,
/** 查询短信日志列表 */
/** 查询短信日志列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
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