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
7b2bd4f4
Commit
7b2bd4f4
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改标签
parent
66ab8f5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
edit-tag-dialog.vue
src/components/app/my-customer/edit-tag-dialog.vue
+12
-4
tag-classify-list.vue
src/components/app/my-customer/tag-classify-list.vue
+3
-3
clerk-tag.vue
src/views/apps/customer-app/clerk-tag.vue
+8
-5
index.vue
src/views/apps/customer-app/index.vue
+5
-1
No files found.
src/components/app/my-customer/edit-tag-dialog.vue
View file @
7b2bd4f4
...
...
@@ -4,15 +4,15 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
1:23:52
* @LastEditTime: 2020-09-07 1
5:34:57
-->
<!--
<edit-tag-dialog :brand-id="brandId" :edit-row="editRow" @closeTag="closeTag"></edit-tag-dialog>
<edit-tag-dialog :brand-id="brandId"
:edit-row="editRow" @closeTag="closeTag"></edit-tag-dialog>
import editTagDialog from '@/components/app/my-customer/edit-tag-dialog.vue';
-->
<
template
>
<el-dialog
:title=
"form.tagId ? '编辑标签' : '新建标签'"
width=
"600px"
:visible
.
sync=
"editVisible"
:before-close=
"handleClose"
>
<el-dialog
:title=
"form.tagId ? '编辑标签' : '新建标签'"
width=
"600px"
:visible
.
sync=
"editVisible"
:before-close=
"handleClose"
append-to-body
>
<common-alert-tip
:width=
"'476px'"
:tip-content=
"tipContent"
></common-alert-tip>
<el-form
class=
"m-t-20"
:model=
"form"
:rules=
"rules"
ref=
"tagForm"
label-width=
"110px"
>
<el-form-item
label=
"标签名称"
prop=
"tagName"
>
...
...
@@ -126,7 +126,9 @@ export default {
// 生命周期 - 挂载完成(访问DOM元素)
mounted
()
{
const
that
=
this
;
that
.
getClassifyList
();
if
(
that
.
brandId
)
{
that
.
getClassifyList
();
}
if
(
Object
.
keys
(
that
.
editRow
).
length
)
{
that
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
editRow
));
}
...
...
@@ -255,6 +257,12 @@ export default {
if
(
Object
.
keys
(
val
).
length
)
{
that
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
}
},
brandId
(
val
)
{
const
that
=
this
;
if
(
val
)
{
that
.
getClassifyList
();
}
}
}
};
...
...
src/components/app/my-customer/tag-classify-list.vue
View file @
7b2bd4f4
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
4:57:46
* @LastEditTime: 2020-09-07 1
5:34:27
-->
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
...
...
@@ -18,8 +18,8 @@
<el-dropdown
placement=
"bottom-start"
>
<i
class=
"iconfont icongengduo edit-icon"
></i>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
@
click
.
stop
=
"toEditClassify(index, item)"
>
编辑
</el-dropdown-item>
<el-dropdown-item
@
click
.
stop
=
"toDelClassify(index, item)"
>
删除
</el-dropdown-item>
<el-dropdown-item
@
click=
"toEditClassify(index, item)"
>
编辑
</el-dropdown-item>
<el-dropdown-item
@
click=
"toDelClassify(index, item)"
>
删除
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</li>
...
...
src/views/apps/customer-app/clerk-tag.vue
View file @
7b2bd4f4
...
...
@@ -4,15 +4,15 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
4:57:59
* @LastEditTime: 2020-09-07 1
5:33:24
-->
<
template
>
<div
class=
"common-app-right no-padding"
>
<div
class=
"clerk-tag-body flex"
>
<div
class=
"clerk-tag-left border-box"
>
<div
class=
"clerk-tag-add text-center"
>
<el-button
icon=
"el-icon-plus"
@
click=
"toAddCate"
>
新建分类
</el-button>
<div
class=
"clerk-tag-add text-center
m-b-10
"
>
<el-button
class=
"w-117"
icon=
"el-icon-plus"
@
click=
"toAddCate"
>
新建分类
</el-button>
</div>
<tag-classify-list
:tag-list=
"tagsClassifyData"
:current-classify-id=
"currentClassify"
:brand-id=
"brandId"
@
refreshClassify=
"refreshClassify"
@
changeClass=
"changeClass"
></tag-classify-list>
</div>
...
...
@@ -55,7 +55,7 @@
</div>
</div>
<tag-classify-dialog
v-if=
"showTagCate"
@
closeClassify=
"closeClassify"
></tag-classify-dialog>
<edit-tag-dialog
v-if=
"showTagDialog"
:edit-row=
"editRow"
@
closeTag=
"closeTag"
></edit-tag-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>
</template>
...
...
@@ -116,7 +116,7 @@ export default {
*/
changeClass
(
row
)
{
const
that
=
this
;
that
.
currentClassify
=
row
.
tagC
ategoryId
;
that
.
currentClassify
=
row
.
c
ategoryId
;
that
.
getTableList
();
},
/**
...
...
@@ -355,6 +355,9 @@ export default {
};
</
script
>
<
style
lang=
'less'
scoped
>
.w-117
{
width
:
117px
;
}
.clerk-tag-body
{
.clerk-tag-left
{
position
:
relative
;
...
...
src/views/apps/customer-app/index.vue
View file @
7b2bd4f4
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
4 10:07:19
* @LastEditTime: 2020-09-0
7 15:18:07
-->
<
template
>
<div
class=
"my-customer-wrap common-set-wrap"
>
...
...
@@ -158,6 +158,10 @@ export default {
line-height
:
18px
;
}
.font-22
{
font-size
:
22px
;
}
.my-customer-wrap
{
height
:
100%
;
//
拖拽排序公共样式
...
...
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