Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c933ee9a
authored
Oct 29, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
465195c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
13 deletions
html/employee/add.html
html/employee/index.html
html/merchant/detail.html
html/merchant/edit.html
html/role/add.html
html/employee/add.html
View file @
c933ee9
...
...
@@ -253,6 +253,12 @@
name
:
'merchantName'
,
value
:
'id'
},
model
:
{
label
:
{
type
:
'text'
,
text
:
{}
}
},
name
:
'merchantId'
,
filterable
:
true
,
clickClose
:
true
,
...
...
html/employee/index.html
View file @
c933ee9
...
...
@@ -221,8 +221,13 @@
data
:
[],
on
:
function
(
data
)
{
console
.
log
(
data
)
var
id
=
data
.
change
[
0
].
id
findRoleList
(
id
)
if
(
data
.
isAdd
)
{
var
id
=
data
.
change
[
0
].
id
findRoleList
(
id
)
}
else
{
roleId
.
empty
()
form
.
render
(
'select'
)
}
}
})
...
...
html/merchant/detail.html
View file @
c933ee9
...
...
@@ -730,11 +730,11 @@
function
(
res
)
{
console
.
log
(
res
.
data
)
var
data
=
res
.
data
$
(
'#secondmerchantName'
).
text
(
data
.
merchantName
)
$
(
'#secondmerchantName'
).
text
(
data
.
merchantName
?
data
.
merchantName
:
'-'
)
$
(
'#secondmerchantName'
).
attr
(
'title'
,
data
.
merchantName
)
$
(
'#secondmerchantId'
).
text
(
data
.
merchantNo
)
$
(
'#numberOfSubMerchants'
).
text
(
data
.
numberOfSubMerchants
)
$
(
'#numberOfStores'
).
text
(
data
.
numberOfStores
)
$
(
'#secondmerchantId'
).
text
(
data
.
merchantNo
?
data
.
merchantNo
:
'-'
)
$
(
'#numberOfSubMerchants'
).
text
(
data
.
numberOfSubMerchants
>
0
?
data
.
numberOfSubMerchants
:
0
)
$
(
'#numberOfStores'
).
text
(
data
.
numberOfStores
>
0
?
data
.
numberOfStores
:
0
)
$
(
'#companyName'
).
html
(
data
.
merchantName
)
$
(
'#companyName'
).
attr
(
'title'
,
data
.
merchantName
)
}
...
...
html/merchant/edit.html
View file @
c933ee9
...
...
@@ -541,7 +541,7 @@
// 设置标记,是否要跳转到列表页
var
functionClick
=
false
var
basicClick
=
false
var
basicSubmited
=
false
var
merchantForm
=
{
channelId
:
''
,
merchantName
:
''
,
...
...
@@ -686,7 +686,9 @@
})
form
.
on
(
'submit(handleFirstSubmit)'
,
function
(
data
)
{
console
.
log
(
data
)
var
formData
=
data
.
field
basicSubmited
=
true
var
params
=
{
isloginName
:
0
}
...
...
@@ -928,13 +930,15 @@
btn
:
[
'是'
,
'否'
]
//按钮
},
function
(
index
)
{
element
.
tabChange
(
'editTab'
,
2
)
functionClick
=
true
$
(
'#basicSumit'
).
click
()
step
=
2
// init()
location
.
reload
()
layer
.
close
(
index
)
if
(
basicSubmited
)
{
element
.
tabChange
(
'editTab'
,
2
)
functionClick
=
true
step
=
2
// init()
location
.
reload
()
layer
.
close
(
index
)
}
},
function
()
{
location
.
reload
()
...
...
html/role/add.html
View file @
c933ee9
...
...
@@ -194,6 +194,12 @@
name
:
'merchantName'
,
value
:
'id'
},
model
:
{
label
:
{
type
:
'text'
,
text
:
{}
}
},
name
:
'merchantId'
,
filterable
:
true
,
radio
:
true
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment