Commit be3f0c26 by member

提交合并

parent 0eeec886
......@@ -129,3 +129,12 @@ export const batchChangeGroup = params =>
method: 'get',
params: params
});
// 会员分组新增 /member-tag-group/add
export const addNewGroup = params =>
request({
url: '/member-tag-group/add',
method: 'get',
params: params
});
......@@ -55,7 +55,14 @@
<el-collapseTransition>
<div class="wapper">
<div class="inner">
<tags-group-list :selectedTagsData="selectedTags" :tagsGroupRelation="tagsGroupRelation" @addTags="addTags" @editTags="editTags" :activeTagsGroupIndex.sync="activeTagsGroupIndex" />
<tags-group-list
class="marginwapper"
:selectedTagsData="selectedTags"
:tagsGroupRelation="tagsGroupRelation"
@addTags="addTags"
@editTags="editTags"
:activeTagsGroupIndex.sync="activeTagsGroupIndex"
/>
<div class="form-item">
<label for="">分组名称</label>
<el-input v-model="tagConfig.groupName" :maxlength="10"></el-input>
......@@ -66,12 +73,13 @@
</div>
<div class="form-item">
<label for="">分组描述</label>
<el-input type="textarea" v-model="tagConfig.textarea" :maxlength="10"></el-input>
<el-input type="textarea" v-model="tagConfig.textarea" :maxlength="200"></el-input>
</div>
<p>更新频率(更新时间预计选择日期的凌晨0点至6点)</p>
</div>
<div class="fixed-btn">
<el-button type="primary" @click="createNewGroup">创建会员分组</el-button>
<el-button @click="groupShow = false">关闭</el-button>
</div>
</div>
</el-collapseTransition>
......@@ -86,7 +94,7 @@ import navCrumb from '@/components/nav/nav.vue';
import TagsGroupList from '../memberGroup/tags-group-list';
import TagType from './tag-type';
import TagContainer from './tag-container';
import { getMemberTag, getMemberTagList } from '@/request/api';
import { getMemberTag, getMemberTagList, addNewGroup } from '@/request/api';
Vue.component(CollapseTransition.name, CollapseTransition);
......@@ -152,6 +160,26 @@ export default {
methods: {
createNewGroup() {
//
const param = {
groupName: this.tagConfig.groupName,
isRealTime: 0,
describle: this.tagConfig.describle,
updateType: '',
updateDay: '',
effectiveStatus: '',
requestProject: 'gic-member-tag-web',
json: JSON.stringify(this.selectedTags),
effectiveDateTmp: this.tagConfig.date
};
addNewGroup(param)
.then(res => {
if (res.errorCode == 1) {
console.log(res);
}
})
.catch(err => {
console.log(err);
});
},
expendsGroupList() {
// if (this.selectedTags && this.selectedTags.length) {
......@@ -466,6 +494,9 @@ export default {
height: 700px;
overflow-y: auto;
}
.marginwapper {
margin-left: 0px;
}
.fixed-btn {
position: absolute;
bottom: 20px;
......
......@@ -30,7 +30,7 @@
</el-table>
</div>
<el-dialog title="添加标签" :visible.sync="dialogVisible" width="540" :before-close="handleClose">
<el-dialog title="添加标签" :visible.sync="dialogVisible" width="540" :before-close="handleClose" :append-to-body="true">
<div class="dialog-box">
<p class="tag-name">{{ tagData.tagName }}</p>
<p class="tag-desc">根据会员信息扩展字段统计而来</p>
......@@ -56,7 +56,7 @@
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="closeTagDialog">取 消</el-button>
<el-button @click="handleClose">取 消</el-button>
<el-button type="primary" @click="confirmOptions">确 定</el-button>
</span>
</el-dialog>
......
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