Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuloulou
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
linlong
9 years ago
Commit
48a61face41160369c238136c46b7d85ed9e4681
1 parent
4a8cd749
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
code/apps/operations/views/salecategory/Index.html
code/static/js.jquery/module/operations/salecategory/Index.js
code/apps/operations/views/salecategory/Index.html
View file @
48a61fa
...
...
@@ -38,13 +38,24 @@
<
/div>
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
是否
BLK
:
<
/label
>
<
div
class
=
"col-sm-8"
>
[[
if
parentId
==
0
]]
<
div
class
=
"col-sm-8"
>
<
select
class
=
"form-control"
id
=
"appType"
value
=
"[[appType]]"
>
<
option
value
=
"0"
>
否
<
/option
>
<
option
value
=
"1"
>
是
<
/option
>
<
/select
>
<
/div
>
[[
/if]
]
[[
if
parentId
>
0
]]
<
div
class
=
"col-sm-8"
>
<
select
class
=
"form-control"
id
=
"appType"
value
=
"[[appType]]"
disabled
>
<
option
value
=
"0"
>
否
<
/option
>
<
option
value
=
"1"
>
是
<
/option
>
<
/select
>
<
/div
>
<
/div>
[[
/if]
]
<
/div>
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
分类名称:
<
/label
>
<
div
class
=
"col-sm-8"
>
...
...
code/static/js.jquery/module/operations/salecategory/Index.js
View file @
48a61fa
...
...
@@ -190,8 +190,9 @@ $(document).on('click', '.add-sub-category', function() {
data
.
curParent
=
res
.
data
.
categoryName
;
data
.
subCategoryName
=
res
.
data
.
categoryName
;
data
.
parentId
=
res
.
data
.
categoryId
;
initForm
(
data
);
data
.
sub
=
"sub"
;
//添加子分类时不允许编辑BLK判断用
initForm
(
data
);
console
.
info
(
data
.
parentId
);
tabTreeArr
=
[];
tabTree
=
new
common
.
tabTree
(
".sortTree"
,
{
status
:
1
,
...
...
Please
register
or
login
to post a comment