Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
6f257893
Commit
6f257893
authored
Jul 22, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a26c676a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
hbrand.vue
src/components/huimai/hbrand.vue
+10
-8
hcategory.vue
src/components/huimai/hcategory.vue
+21
-1
No files found.
src/components/huimai/hbrand.vue
View file @
6f257893
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-select
style=
"margin:0 10px"
class=
"w200"
@
change=
"msg.pageIndex=1,getList()"
v-model=
"msg.CategoryId"
<el-select
style=
"margin:0 10px"
class=
"w200"
@
change=
"msg.pageIndex=1,getList()"
v-model=
"msg.CategoryId"
size=
"small"
placeholder=
"请选择"
>
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in
Store
List"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-option
v-for=
"item in
Category
List"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<span>
品牌名称
</span>
<span>
品牌名称
</span>
...
@@ -62,21 +62,23 @@
...
@@ -62,21 +62,23 @@
WorkDate
:
''
,
//开始日期
WorkDate
:
''
,
//开始日期
EndWorkDate
:
''
//结束日期
EndWorkDate
:
''
//结束日期
},
},
StoreList
:
[],
//门店数据
CategoryList
:
[],
//分类列表
dateList
:
[],
//日期
dateList
:
[],
//日期
}
}
},
},
created
()
{},
created
()
{
this
.
getBrandList
()
},
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
this
.
getStoreList
()
},
},
methods
:
{
methods
:
{
//获取
门店下拉
//获取
分类列表
get
Store
List
()
{
get
Brand
List
()
{
this
.
apipost
(
"/api/
MContent/GetStores
List"
,
{},
res
=>
{
this
.
apipost
(
"/api/
Assess/GetCategoryDrop
List"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Store
List
=
res
.
data
.
data
;
this
.
Category
List
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
...
src/components/huimai/hcategory.vue
View file @
6f257893
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<el-table-column
label=
"操作"
width=
"250px"
>
<el-table-column
label=
"操作"
width=
"250px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"showCategoryForm(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"showCategoryForm(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"Remmove
Mall(scope.row)"
>
禁用
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"Remmove
Category(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -161,11 +161,31 @@
...
@@ -161,11 +161,31 @@
saveData
()
{
saveData
()
{
this
.
assetsApipost
(
"/api/Assess/SetCategoryInfo"
,
this
.
postMsg
,
res
=>
{
this
.
assetsApipost
(
"/api/Assess/SetCategoryInfo"
,
this
.
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
getList
();
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
})
})
},
//删除分类
RemmoveCategory
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否此分类删除?"
,
function
()
{
that
.
apipost
(
"/api/Assess/DelCategoryInfo"
,
{
CategoryId
:
item
.
Id
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
}
}
}
}
};
};
...
...
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