Commit 7b2bd4f4 by 无尘

fix: 修改标签

parent 66ab8f5f
......@@ -4,15 +4,15 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 11:23:52
* @LastEditTime: 2020-09-07 15: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();
}
}
}
};
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 14:57:46
* @LastEditTime: 2020-09-07 15: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>
......
......@@ -4,15 +4,15 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 14:57:59
* @LastEditTime: 2020-09-07 15: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.tagCategoryId;
that.currentClassify = row.categoryId;
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;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-04 10:07:19
* @LastEditTime: 2020-09-07 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%;
// 拖拽排序公共样式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment