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
7331c976
Commit
7331c976
authored
Sep 14, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改绑定页面显示
parent
136c06df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
index.vue
src/views/system/activities/index.vue
+15
-10
selectConsumer.vue
src/views/system/activities/selectConsumer.vue
+3
-4
No files found.
src/views/system/activities/index.vue
View file @
7331c976
...
@@ -128,27 +128,30 @@
...
@@ -128,27 +128,30 @@
<!-- 添加或修改分享活动绑定关系对话框 -->
<!-- 添加或修改分享活动绑定关系对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
10
0px"
>
<el-form-item
label=
"上级用户头像"
prop=
"avatar"
v-show=
"false"
>
<el-form-item
label=
"上级用户头像"
prop=
"avatar"
v-show=
"false"
>
<el-input
v-model=
"form.avatar"
placeholder=
"请输入上级用户头像"
/>
<el-input
v-model=
"form.avatar"
placeholder=
"请输入上级用户头像"
/>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="下级用户头像" prop="newAvatar">-->
<!-- <el-form-item label="下级用户头像" prop="newAvatar">-->
<!-- <el-input v-model="form.newAvatar" placeholder="请输入下级用户头像" />-->
<!-- <el-input v-model="form.newAvatar" placeholder="请输入下级用户头像" />-->
<!-- </el-form-item>-->
<!-- </el-form-item>-->
<el-form-item
label=
"上级用户id"
prop=
"group"
>
<el-form-item
label=
"上级用户id"
prop=
"uid"
v-show=
"false"
>
<el-input
@
focus=
"openConsumer()"
v-model=
"form.uid"
placeholder=
"请输入上级用户id"
/>
<el-input
v-model=
"form.uid"
placeholder=
"请输入上级用户id"
/>
</el-form-item>
<el-form-item
label=
"下级用户id"
prop=
"newUid"
v-show=
"false"
>
<el-input
v-model=
"form.newUid"
placeholder=
"请输入上级用户id"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上级用户昵称"
prop=
"group"
>
<el-form-item
label=
"上级用户昵称"
prop=
"group"
>
<el-input
v-model=
"form.nickName"
placeholder=
"请输入上级用户昵称"
/>
<el-input
@
focus=
"openConsumer()"
v-model=
"form.nickName"
placeholder=
"请输入上级用户昵称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"下级用户昵称"
prop=
"newNickName"
>
<el-form-item
label=
"下级用户昵称"
prop=
"newNickName"
>
<el-input
v-model=
"form.newNickName"
placeholder=
"请输入下级用户昵称"
/>
<el-input
v-model=
"form.newNickName"
:disabled=
"true"
placeholder=
"请输入下级用户昵称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上级电话"
prop=
"phone"
>
<el-form-item
label=
"上级电话"
prop=
"phone"
>
<el-input
v-model=
"form.phone"
placeholder=
"请输入上级电话"
/>
<el-input
v-model=
"form.phone"
:disabled=
"true"
placeholder=
"请输入上级电话"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"下级电话"
prop=
"newPhone"
>
<el-form-item
label=
"下级电话"
prop=
"newPhone"
>
<el-input
v-model=
"form.newPhone"
placeholder=
"请输入下级电话"
/>
<el-input
v-model=
"form.newPhone"
:disabled=
"true"
placeholder=
"请输入下级电话"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -295,7 +298,7 @@ export default {
...
@@ -295,7 +298,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateActivities
(
this
.
form
).
then
(
response
=>
{
updateActivities
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
$modal
.
msgSuccess
(
response
.
msg
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -325,8 +328,10 @@ export default {
...
@@ -325,8 +328,10 @@ export default {
...
this
.
queryParams
...
this
.
queryParams
},
`activities_
${
new
Date
().
getTime
()}
.xlsx`
)
},
`activities_
${
new
Date
().
getTime
()}
.xlsx`
)
},
},
selectConsumerId
(
id
)
{
selectConsumerId
(
row
)
{
this
.
form
.
uid
=
id
;
this
.
form
.
uid
=
row
.
id
;
this
.
form
.
phone
=
row
.
phone
;
this
.
form
.
nickName
=
row
.
nickName
},
},
}
}
};
};
...
...
src/views/system/activities/selectConsumer.vue
View file @
7331c976
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<
script
>
<
script
>
import
{
unallocatedUserList
,
authUserSelectAll
}
from
"@/api/system/store"
;
import
{
unallocatedUserList
,
authUserSelectAll
}
from
"@/api/system/store"
;
import
{
listConsumer
}
from
'@/api/system/consumer'
export
default
{
export
default
{
dicts
:
[
'sys_user_sex'
,
'wechat_role_type'
],
dicts
:
[
'sys_user_sex'
,
'wechat_role_type'
],
props
:
{
props
:
{
...
@@ -90,18 +91,16 @@ export default {
...
@@ -90,18 +91,16 @@ export default {
methods
:
{
methods
:
{
// 显示弹框
// 显示弹框
show
()
{
show
()
{
this
.
queryParams
.
storeId
=
this
.
storeId
;
this
.
queryParams
.
position
=
this
.
position
;
this
.
getList
();
this
.
getList
();
this
.
visible
=
true
;
this
.
visible
=
true
;
},
},
clickRow
(
row
)
{
clickRow
(
row
)
{
this
.
$emit
(
'selectConsumerList'
,
row
.
id
);
this
.
$emit
(
'selectConsumerList'
,
row
);
this
.
visible
=
false
;
this
.
visible
=
false
;
},
},
// 查询表数据
// 查询表数据
getList
()
{
getList
()
{
unallocatedUserList
(
this
.
queryParams
).
then
(
res
=>
{
listConsumer
(
this
.
queryParams
).
then
(
res
=>
{
this
.
consumerList
=
res
.
rows
;
this
.
consumerList
=
res
.
rows
;
this
.
total
=
res
.
total
;
this
.
total
=
res
.
total
;
});
});
...
...
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