Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
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
office
haoban-4
Commits
35c87c70
Commit
35c87c70
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改标签
parent
ac59c573
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
12 deletions
+41
-12
edit-tag-dialog.vue
src/components/app/my-customer/edit-tag-dialog.vue
+2
-1
tag-classify-dialog.vue
src/components/app/my-customer/tag-classify-dialog.vue
+8
-3
tag-classify-list.vue
src/components/app/my-customer/tag-classify-list.vue
+13
-3
clerk-tag.vue
src/views/apps/customer-app/clerk-tag.vue
+18
-5
No files found.
src/components/app/my-customer/edit-tag-dialog.vue
View file @
35c87c70
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
5:34:57
* @LastEditTime: 2020-09-07 1
6:03:30
-->
<!--
...
...
@@ -191,6 +191,7 @@ export default {
linkId
:
that
.
form
.
linkId
,
childList
:
JSON
.
stringify
(
that
.
form
.
childList
),
categoryId
:
that
.
form
.
categoryId
,
enterpriseId
:
that
.
brandId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
};
if
(
that
.
form
.
tagId
)
{
...
...
src/components/app/my-customer/tag-classify-dialog.vue
View file @
35c87c70
<!--
* @Descripttion: 导购标签编辑
* @Descripttion: 导购标签
分类
编辑
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-09-01 13:53:59
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
4 10:33:16
* @LastEditTime: 2020-09-0
7 16:03:02
-->
<!--
<tag-classify-dialog :edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
<tag-classify-dialog :
brand-id="brandId" :
edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
import tagClassifyDialog from '@/components/app/my-customer/tag-classify-dialog.vue';
-->
<
template
>
...
...
@@ -43,6 +43,10 @@ export default {
limitInput
},
props
:
{
brandId
:
{
type
:
String
,
default
:
''
},
editRow
:
{
type
:
Object
,
default
()
{
...
...
@@ -108,6 +112,7 @@ export default {
that
.
loadBtn
=
true
;
const
param
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
,
categoryId
:
that
.
form
.
categoryId
,
categoryName
:
emojiToStr
(
that
.
form
.
categoryName
)
};
...
...
src/components/app/my-customer/tag-classify-list.vue
View file @
35c87c70
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
5:45:50
* @LastEditTime: 2020-09-07 1
6:06:03
-->
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
...
...
@@ -25,7 +25,7 @@
</li>
<li
v-if=
"tagList.length == 0"
class=
"no-data"
>
暂无数据
</li>
</ul>
<tag-classify-dialog
v-if=
"showTagClass"
:edit-row=
"editRow"
@
closeClassify=
"closeClassify"
></tag-classify-dialog>
<tag-classify-dialog
v-if=
"showTagClass"
:
brand-id=
"brandId"
:
edit-row=
"editRow"
@
closeClassify=
"closeClassify"
></tag-classify-dialog>
</div>
</
template
>
...
...
@@ -41,6 +41,10 @@ export default {
tagClassifyDialog
},
props
:
{
brandId
:
{
type
:
String
,
default
:
''
},
tagList
:
{
type
:
Array
,
default
:
()
=>
[]
...
...
@@ -52,6 +56,7 @@ export default {
},
data
()
{
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
'haoBanUser'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'haoBanUser'
)).
wxEnterpriseId
:
''
,
editRow
:
{},
showTagClass
:
false
};
...
...
@@ -112,7 +117,12 @@ export default {
},
delTagData
(
categoryId
)
{
const
that
=
this
;
const
para
=
{
categoryId
};
const
para
=
{
categoryId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
};
delClassify
(
para
)
.
then
(
res
=>
{
that
.
$emit
(
'refreshClassify'
);
...
...
src/views/apps/customer-app/clerk-tag.vue
View file @
35c87c70
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:
38:09
* @LastEditTime: 2020-09-07 15:
59:47
-->
<
template
>
...
...
@@ -54,7 +54,7 @@
</div>
</div>
</div>
<tag-classify-dialog
v-if=
"showTagCate"
@
closeClassify=
"closeClassify"
></tag-classify-dialog>
<tag-classify-dialog
v-if=
"showTagCate"
:brand-id=
"brandId"
@
closeClassify=
"closeClassify"
></tag-classify-dialog>
<edit-tag-dialog
v-if=
"showTagDialog"
:brand-id=
"brandId"
:edit-row=
"editRow"
@
closeTag=
"closeTag"
></edit-tag-dialog>
<edit-visiable
v-if=
"showTagVisiable"
:brand-id=
"brandId"
:set-item-id=
"setItemId"
:set-type=
"'tag'"
:select-mode=
"selectMode"
:range-data=
"rangeData"
@
refreshData=
"refreshData"
></edit-visiable>
</div>
...
...
@@ -213,7 +213,11 @@ export default {
},
getTagData
(
tagId
)
{
const
that
=
this
;
const
para
=
{
tagId
};
const
para
=
{
tagId
,
enterpriseId
:
that
.
brandId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
};
getTagDetail
(
para
)
.
then
(
res
=>
{
that
.
editRow
=
res
.
result
||
{};
...
...
@@ -234,7 +238,11 @@ export default {
},
getVisiableData
(
tagId
)
{
const
that
=
this
;
const
para
=
{
tagId
};
const
para
=
{
tagId
,
enterpriseId
:
that
.
brandId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
};
getTagVisiable
(
para
)
.
then
(
res
=>
{
that
.
selectMode
=
res
.
result
.
storeMode
;
...
...
@@ -273,7 +281,12 @@ export default {
},
delTagData
(
tagId
,
linkId
)
{
const
that
=
this
;
const
para
=
{
tagId
,
linkId
};
const
para
=
{
tagId
,
linkId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
};
delClerkTag
(
para
)
.
then
(
res
=>
{
that
.
getTableList
();
...
...
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