Commit 8408e8f2 by caoyanzhi

Merge branch 'feature/6月迭代-抖音' into test

parents 12db178f e73d20f7
......@@ -9,7 +9,7 @@ export default {
if (local.indexOf('localhost')) {
local = 'http://gicdev.demogic.com';
}
if (response.errorCode != 1) {
if (response.errorCode != 0) {
if (response.errorCode == 401) {
window.location.href = local + '/gic-web/#/';
return false;
......
......@@ -46,14 +46,14 @@ export default {
getProgress() {
getProgress().then(res => {
const { errorCode, message } = res;
if (errorCode != 1) return this.$message.error(message);
if (errorCode != 0) return this.$message.error(message);
this.getTrashList();
});
},
getTrashList() {
getTrashList().then(res => {
const { errorCode, message, result = [] } = res;
if (errorCode != 1) return this.$message.error(message);
if (errorCode != 0) return this.$message.error(message);
this.trashList = result;
this.$store.commit('changeDelTrashNum', result.length);
this.progress = result.length;
......@@ -63,7 +63,7 @@ export default {
this.getTrashList();
isCleanTrashList().then(res => {
const { errorCode, message, result } = res;
if (errorCode != 1) return this.$message.error(message);
if (errorCode != 0) return this.$message.error(message);
this.delTime = result;
result &&
(this.interval = setInterval(_ => {
......@@ -85,7 +85,7 @@ export default {
if (this.delTime > 0) return this.$message.error('当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务');
cleanTrashList().then(res => {
const { errorCode, message } = res;
if (errorCode != 1) return this.$message.error(message);
if (errorCode != 0) return this.$message.error(message);
this.$message.success('已开始执行');
this.dialogVisible = false;
this.getProgress();
......@@ -96,7 +96,7 @@ export default {
const type = tagItemId == null ? 1 : 0;
delTrashList({ tagItemId: type ? tagId : tagItemId, type }).then(res => {
const { errorCode, message } = res;
if (errorCode != 1) return this.$message.error(message);
if (errorCode != 0) return this.$message.error(message);
this.getTrashList();
this.$message.success('移除成功');
});
......
......@@ -170,7 +170,7 @@ export default {
getRequest('/enterpriseMemberTag/pageList', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!!resData.result.result && !!resData.result.result.length) {
let selIds = that.selTagData.map(item => item.tagId);
resData.result.result.forEach(function(ele, index) {
......@@ -281,7 +281,7 @@ export default {
getRequest('/member-tag-value/findList.json', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
let dataVal = JSON.parse(JSON.stringify(resData.result));
dataVal.forEach(function(ele, index) {
let newTagVal = JSON.parse(ele.tagParams);
......
......@@ -248,7 +248,7 @@
that.loading = true;
that.axios.get(`${that.baseUrl}/gic-member-tag-web/member-tag-group/findList.json?requestProject=${that.projectName}&pageSize=${that.pageSize}&pageNum=${that.currentPage}&groupName=${that.dataSearch}&effectiveStatus=${that.effectiveStatus}`)
.then(res => {
if (res.data.errorCode == 1) {
if (res.data.errorCode == 0) {
that.tableData = that.tableData.concat(res.data.result.result);
that.totalPage = res.data.result.totalPage;
that.loading = false;
......@@ -374,7 +374,7 @@
let ids = idsArr.join(',');
that.axios.get(`${that.baseUrl}/gic-member-tag-web/member-tag-member/findMemberListByGroupIds.json?requestProject=${that.projectName}&memberTagGroupIds=${ids}&pageName=memberSign`)
.then(res => {
if (res.data.errorCode == 1) {
if (res.data.errorCode == 0) {
that.countOfCoverTotal = res.data.result.page.totalCount;
}
});
......
......@@ -75,7 +75,7 @@ export default {
param.effectiveStatus = 0;
batchModifyEffective(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message.success({
message: '修改成功'
});
......@@ -87,7 +87,7 @@ export default {
});
} else if (batchNum == 1) {
batchDeleteGroup(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
(res.result || []).length || this.$message.success({
message: '删除成功'
});
......@@ -106,7 +106,7 @@ export default {
param.memberTagGroupClassifyId = this.groupList[index].memberTagGroupClassifyId;
batchChangeGroup(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message.success({
message: '修改分类成功'
});
......@@ -137,7 +137,7 @@ export default {
requestProject: 'gic-member-tag-web'
})
.then(res => {
if (res.errorCode === 1) {
if (res.errorCode == 0) {
this.groupList = res.result.filter(el => el.classifyName != '未分类').map(item => ({
...item,
edit: false
......@@ -158,7 +158,7 @@ export default {
};
getGroupUseList(params).then(res => {
const { errorCode, result } = res;
if (errorCode === 1) {
if (errorCode == 0) {
this.list = result || [];
return;
}
......
......@@ -1452,7 +1452,7 @@ export default {
};
getTagType(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
const data = res.result;
this.templateObj = {
columnKey: data.columnKey,
......@@ -1526,7 +1526,7 @@ export default {
}))).then(resArr=>{
if(!resArr||!resArr.length)return;
resArr.forEach(res=>{
if(res.errorCode != 1)return;
if(res.errorCode != 0)return;
try{
this.handleFindWidgetData(res);
}catch(err){
......@@ -1602,7 +1602,7 @@ export default {
*/
if (data.templateCode == 'tag021') {
this.axios.get(`${this.baseUrl}/gic-member-tag-web/memberTagGrade/gradeGroupListV2?requestProject=gic-member-tag-web&type=1`).then(res => {
if (res.data.errorCode === 1) {
if (res.data.errorCode == 0) {
this.templateData[0].options = res.data.result.result || [];
}
});
......@@ -1610,7 +1610,7 @@ export default {
if (data.templateCode == 'tag022') {
this.axios.get(`${this.baseUrl}/gic-member-tag-web/memberTagGrade/coreLoss?requestProject=gic-member-tag-web`).then(res => {
const { errorCode, result = {} } = res.data || {};
if (errorCode === 1) {
if (errorCode == 0) {
this.templateData[0].options = [{
memberTagGradeId: result.memberTagGradeId,
aliasName: '是'
......@@ -1726,7 +1726,7 @@ export default {
return;
}
} else {
if (resData.data.errorCode == 1) {
if (resData.data.errorCode == 0) {
data.options = resData.data.result;
this.templateData.push(data);
// this.getExistData(this.tagData.tagId, data.options);
......@@ -1762,7 +1762,7 @@ export default {
};
findOndJson(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
if (!res.result || res.tagParams == '[]') {
this.addTempFlag = false;
return false;
......
......@@ -68,7 +68,7 @@ export default {
postRequest(url, para)
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.currentTagDatas = resData.result.currentNode; // 当前分类数据
that.childTagDatas = resData.result.dataList; // 子类数据
return;
......
......@@ -71,7 +71,7 @@ export default {
postRequest('/enterpriseMemberTag/enterpriseTagLevel', para)
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.currentTagDatas = resData.result.currentNode; // 当前分类数据
that.childTagDatas = resData.result.dataList; // 子类数据
that.$emit('changeId', id);
......
......@@ -1268,7 +1268,7 @@ export default {
postRequest('/member-tag-value/add.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
this.successAdd = true;
if (that.tabActive != 'second') {
// 如果是在暂存架修改标签值
......@@ -1885,7 +1885,7 @@ export default {
getRequest('/memberTag/findWidget', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// 返回字段否追加对应 模板数据对象上
for (let key in resData.result) {
that[resData.result.templateCode][key] = resData.result[key];
......@@ -2302,7 +2302,7 @@ export default {
}
} else {
// errorCode 差异问题
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data);
that.getExistData(that.tagData.tagId).then(items => {
......@@ -2371,7 +2371,7 @@ export default {
getRequest('/member-tag-value/findOne.json', para)
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!resData.result || resData.result.tagParams == '[]') {
if (!!Object.keys(that.rowData).length) {
resolve(JSON.parse(that.rowData.tagParams).template);
......@@ -2404,7 +2404,7 @@ export default {
getRequest('/memberTag/getTagById', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// console.log(resData);
that.tagData.tagId = resData.result.tagId;
that.tagData.tagName = resData.result.tagName;
......
......@@ -118,7 +118,7 @@ export default {
getRequest('/enterpriseMemberTag/addByLevelGroupId', para)
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
return;
}
......@@ -167,7 +167,7 @@ export default {
getRequest(url, para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.libDatas = resData.result;
return;
}
......
......@@ -146,7 +146,7 @@ export default {
postRequest('/member-tag-value/updateByBatch.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!!status) {
that.tagListData.forEach(function(ele, index) {
ele.selectStatus = 1;
......@@ -182,7 +182,7 @@ export default {
postRequest('/member-tag-value/update.json', para)
.then(res => {
var resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
return;
}
errMsg.errorMsg(resData);
......@@ -234,7 +234,7 @@ export default {
getRequest('/member-tag-value/delete.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagListData.splice(index, 1);
showMsg.showmsg('删除成功', 'success');
return;
......@@ -282,7 +282,7 @@ export default {
getRequest('/member-tag-value/findList.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
let dataVal = JSON.parse(JSON.stringify(resData.result));
dataVal.forEach(function(ele, index) {
let newTagVal = JSON.parse(ele.tagParams);
......
......@@ -177,7 +177,7 @@ export default {
getRequest('/memberTag/queryImportErrorData', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!!resData.result && !!resData.result.length) {
let header = Object.keys(resData.result[0]);
//获取数据后执行 excel 导出
......
......@@ -33,7 +33,7 @@ Vue.axios.interceptors.request.use(
);
Vue.axios.interceptors.response.use(
response => {
if (response.status == 200 && response.data.errorCode == 1) {
if (response.status == 200 && response.data.errorCode == 0) {
}
return response;
},
......
......@@ -24,7 +24,7 @@ server.interceptors.request.use(
server.interceptors.response.use(
response => {
const data = response.data;
if (data.errorCode == 1) {
if (data.errorCode == 0) {
return data;
} else {
// 根据不同的状态码来做一些操作 例如 token不合法 token过期 没有权限之类的'
......
......@@ -46,7 +46,7 @@ export default {
};
getRequest('/member-tag-value/check-member-group-ref', params).then(res => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.list = res.data.result || [];
return;
}
......
......@@ -390,7 +390,7 @@ export default {
methods: {
canDownMemberList() {
getRequest('/member-tag-member/isExportEnterprise', {}).then(res => {
if (res.data.errorCode === 1) {
if (res.data.errorCode == 0) {
this.downTagDetailListPop.canDown = res.data.result === 'true' || res.data.result === true;
}
})
......@@ -514,7 +514,7 @@ export default {
getRequest('/memberTag/get-member-tag-item', {id})
.then(res => {
const resData=res.data;
if (resData.errorCode===1 && res.data.result) {
if (resData.errorCode == 0 && res.data.result) {
that.tagItemName = res.data.result.tagItemName;
}
})
......
......@@ -202,7 +202,7 @@ export default {
getRequest('/memberTag/saveHandTagItem', para).then(res => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
this.getValueData();
return;
......@@ -240,7 +240,7 @@ export default {
this.tagValTableData[index].showDelPopOver = false;
getRequest('/delTagItem/add', para).then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
item.delStatus = 0;
this.$refs.Trash.getTrashList();
this.handleRefreshTag();
......@@ -261,7 +261,7 @@ export default {
const para = { tagItemId };
getRequest('/member-tag-value/delTagItem', para).then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.$message.success('删除成功');
this.getValueData();
return;
......@@ -293,7 +293,7 @@ export default {
};
getRequest('/memberTag/queryHandTagItem', para).then((res) => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
/**
* 前端自定义的扩展字段
* 为了实现一个标签值的数据上传中另一个标签值仍可以上传的功能
......@@ -369,7 +369,7 @@ export default {
param.append("requestProject", 'member-tag');
postForm('/memberTag/uploadTagItemExcel', param).then((res) => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.closeImportPop();
this.$toTaskCenter(res.data.result);
this.flag = false;
......@@ -407,7 +407,7 @@ export default {
param.append("requestProject", 'member-tag');
postForm('/memberTag/uploadTagExcel', param).then((res) => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
// 关闭上传的弹窗
this.closeImportBatchPop();
this.$toTaskCenter(res.data.result);
......@@ -437,7 +437,7 @@ export default {
getImportReport(tagItemIndex, tagItemId) {
return getRequest('/memberTag/getImportReport', { tagItemId }).then((res) => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
// 0 删除 1正常 2导入中 3 导入完成 4 删除中 5删除项 6 处理中 7 异常 8 处理成功
switch (result.status) {
case 0:
......@@ -502,7 +502,7 @@ export default {
getOptionsThree(tagLevelGroupId) {
getRequest('/tagLevel/handThirdLevel', { tagLevelGroupId }).then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
let tagGroup = result.filter(item => item.tagLevelGroupId === this.tagInfo.tagLevelGroupId);
if (tagGroup.length > 0) {
this.tagInfo.tagLevelGroupName = tagGroup[0].levelName;
......@@ -520,7 +520,7 @@ export default {
getTagData(tagId) {
getRequest('/memberTag/getTagById', { tagId }).then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.tagInfo = {
tagName: result.tagName,
tagLevelGroupId: result.tagLevelGroupId,
......
......@@ -970,7 +970,7 @@ export default {
getRequest('/enterpriseMemberTag/addByTagId', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addFlag = true;
// that.$router.go(-1)
......@@ -1541,7 +1541,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addTempFlag = true;
// that.resetData()
......@@ -2156,7 +2156,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// 返回字段否追加对应 模板数据对象上
for (let key in resData.result) {
that[resData.result.templateCode][key] = resData.result[key];
......@@ -2248,7 +2248,7 @@ export default {
return;
}
} else {
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data);
that.getExistData(that.tagData.tagId, data.options);
......@@ -2282,7 +2282,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!resData.result || resData.result.tagParams == '[]') {
that.addTempFlag = false;
return false;
......@@ -2355,7 +2355,7 @@ export default {
getRequest('/memberTag/getTagById', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagData.tagId = resData.result.tagId;
that.tagData.tagName = resData.result.tagName;
that.tagData.tagDescribe = resData.result.tagDescribe;
......
......@@ -34,8 +34,9 @@
</el-radio-group>
</el-form-item>
<el-form-item label="标签值:" prop="tagValue">
<p class="tag-list-tips">支持批量复制Excel中的数据粘贴至下方输入框</p>
<div class="tag-list">
<tag-value-item v-for="item in ruleForm.tagValue" :current-length="ruleForm.tagValue.length" :key="item.id" :item="item" class="w-full" @add="onAddTagVal" @del="onDelTagVal" />
<tag-value-item v-for="item in ruleForm.tagValue" :current-length="ruleForm.tagValue.length" :key="item.id" :item="item" class="w-full" @add="onAddTagVal" @del="onDelTagVal" @paste="onPasteVal" />
</div>
</el-form-item>
<el-form-item label="标签描述:" prop="tagDescribe">
......@@ -208,7 +209,7 @@ export default {
.then(res => {
const { errorCode, message } = res.data;
this.ruleForm.pending = false;
if (errorCode !== 1) {
if (errorCode != 0) {
this.$message.error({
duration: 1000,
message: message
......@@ -235,7 +236,7 @@ export default {
return getRequest('/tagLevel/handSecondLevel', params)
.then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.optionsTwo = result;
if (currentType == 'active' && !this.isEdit) {
const find = result.find(el => el.name === '渠道标签');
......@@ -263,7 +264,7 @@ export default {
getRequest('/tagLevel/handThirdLevel', { tagLevelGroupId })
.then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.optionsThree = result;
}
})
......@@ -280,7 +281,7 @@ export default {
getRequest('/memberTag/getTagById', { tagId })
.then(res => {
const { errorCode, result } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
this.ruleForm.tagName = result.tagName;
this.ruleForm.tagLevelGroupId = result.tagLevelGroupId;
this.ruleForm.tagTwoLevelGroupId = result.tagTwoLevelGroupId;
......@@ -322,10 +323,38 @@ export default {
this.ruleForm.tagValue.splice(index, 1);
}
},
onPasteVal(e) {
// 只可粘贴一列
// 一个单元格处理成一个标签值
const html = e.clipboardData.getData('text/html');
const $doc = new DOMParser().parseFromString(html,'text/html');
const $tds = Array.from($doc.querySelectorAll('table tr')).map(el => Array.from(el.childNodes).filter(item => item.tagName == 'TD'));
if ($tds.some(el => el.length > 1)) {
return this.$message.warning('请不要复制多列');
}
const data = $tds.filter(el => el.length > 0).map(el => el[0].innerText).filter(el => el.length > 0);
// 已经填写完成的标签值
const fillData = this.ruleForm.tagValue.filter(el => el.tagItemName.length > 0);
// 加上已填写的数据大于100时,不进行粘贴
if ((fillData.length + data.length) > 100) {
return this.$message.warning(`最多可以复制${100 - fillData.length}个标签值`);
}
this.ruleForm.tagValue = fillData.concat(data.map(el => {
return {
id: GenNonDuplicateID(),
deleteFlag: false,
tagItemName: el
}
}));
}
}
};
</script>
<style lang="scss" scoped>
.tag-list-tips {
font-size: 12px;
color: #909399;
}
/deep/ .el-dialog {
margin-top: 10vh !important;
}
......
......@@ -262,7 +262,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
var resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.getTagList();
return;
......@@ -348,7 +348,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
var resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagTableData = resData.result.result;
that.total = resData.result.totalCount;
return;
......@@ -402,7 +402,7 @@ export default {
getRequest('/memberTag/delHandMemberTag', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagTableData.splice(index, 1);
showMsg.showmsg('删除成功', 'success');
return;
......@@ -508,7 +508,7 @@ export default {
getRequest('/tagLevel/addHand', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// 更新外层分类
that.$refs.tagCategoryCom.refreshData();
showMsg.showmsg('添加成功', 'success');
......@@ -562,7 +562,7 @@ export default {
getRequest('/tagLevel/delHand', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.cateTableData.splice(index, 1);
// 更新外层分类
that.$refs.tagCategoryCom.refreshData();
......@@ -626,7 +626,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
item.levelName = item.inputValue;
item.editAble = false;
// 更新外层分类
......@@ -709,7 +709,7 @@ export default {
getRequest('/tagLevel/handSecondLevel', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.cateTwOptions = resData.result;
that.cateForm.cateTwo = that.cateTwOptions[0].tagLevelGroupId;
that.getThreeLevel(that.cateForm.cateTwo);
......@@ -737,7 +737,7 @@ export default {
getRequest('/tagLevel/handThirdLevel', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
resData.result.forEach(function(ele, index) {
ele.inputValue = '';
ele.editAble = false;
......
<template>
<div class="flex">
<el-input v-model="item.tagItemName" placeholder="请输入标签值" class="w-380" maxlength="15" show-word-limit @change="onChange" />
<template>
<i v-if="currentLength < 50" class="iconfont plus icon margin icon-PlusOutlined" @click="add" />
<i v-else class="icon margin" />
</template>
<el-input v-model="item.tagItemName" placeholder="请输入标签值" class="w-380" maxlength="15" show-word-limit @change="onChange" @paste.native="onPaste" />
<i class="iconfont plus icon margin icon-PlusOutlined" @click="add" />
<i v-if="currentLength > 1 && !item.tagItemId" class="iconfont delete icon icon-delete" @click="del" />
</div>
</template>
......@@ -22,7 +19,19 @@ export default {
};
},
methods: {
onPaste(e) {
if (this.currentLength >= 100) {
return this.$message.warning('标签值最多支持设置100个');
}
this.$emit('paste', e);
setTimeout(() => {
this.item.tagItemName = '';
}, 10);
},
add() {
if (this.currentLength >= 100) {
return this.$message.warning('标签值最多支持设置100个');
}
this.$emit('add', this.item.id);
},
del() {
......
......@@ -58,7 +58,7 @@ export default {
};
getGroupUseList(params).then(res => {
const { errorCode, result } = res;
if (errorCode === 1) {
if (errorCode == 0) {
this.list = result || [];
return;
}
......
......@@ -101,7 +101,7 @@ export default {
}).then(res => {
let { data, data: { result } } = res
console.log(data)
if(data.errorCode === 1) {
if(data.errorCode == 0) {
this.total = result.totalCount
this.tableData = result.result || []
}
......
......@@ -426,7 +426,7 @@ export default {
methods: {
canDownMemberList() {
getRequest('/member-tag-member/isExportEnterprise', {}).then(res => {
if (res.data.errorCode === 1) {
if (res.data.errorCode == 0) {
this.downMemberListPop.canDown = res.data.result === 'true' || res.data.result === true;
}
})
......
......@@ -73,7 +73,7 @@
</el-form-item>
<el-form-item label prop>
<div class="label-title">分组所属分类</div>
<el-select v-model="ruleForm.memberTagGroupClassifyId" style="width: 100%" filterable placeholder="请选择">
<el-select v-model="ruleForm.memberTagGroupClassifyId" v-loadmore="onLoadmore" style="width: 100%" filterable placeholder="请选择">
<el-option
v-for="item in memberGroupList"
:key="item.memberTagGroupClassifyId"
......@@ -257,6 +257,10 @@ export default {
name: 'memberGroupEdit',
data() {
return {
pager: {
pageNum: 1,
total: 1
},
realCount: {},
templateCode: '',
// 编辑数据
......@@ -459,6 +463,19 @@ export default {
this.ruleForm.updateType = this.watchUpdateType(isActive, newVal);
}
},
directives: {
loadmore: {
inserted(el, binding) {
const SELECTDOWN_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap');
SELECTDOWN_DOM.addEventListener('scroll', function() {
const CONDITION = this.scrollHeight - this.scrollTop <= this.clientHeight;
if (CONDITION) {
binding.value();
}
})
}
}
},
methods: {
handlerIsActive(newVal){
const { fixedType } = this.ruleForm;
......@@ -477,7 +494,7 @@ export default {
},
_groupCount() {
groupCount().then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.realCount = res.result;
}
})
......@@ -604,7 +621,7 @@ export default {
postRequest(postUrl, para)
.then(res => {
if (res.data.errorCode === 1) {
if (res.data.errorCode == 0) {
showMsg.showmsg(this.ruleForm.memberTagGroupId ? '编辑成功' : '新增成功', 'success');
this.changeRoute('/memberGroupList');
} else {
......@@ -692,7 +709,7 @@ export default {
postRequest('/member-tag-group/findOneDetial.json', { memberTagGroupId: this.ruleForm.memberTagGroupId })
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
let tagGroupDto = resData.result.tagGroupDto;
this.creatorId = tagGroupDto.createUser || '';
if (!!tagGroupDto) {
......@@ -735,21 +752,26 @@ export default {
console.log(error);
});
},
onLoadmore() {
if (this.pager.pageNum >= this.pager.total) return;
this.pager.pageNum++;
this.getMemberGroupList();
},
getMemberGroupList() {
memberGroupList({ requestProject: 'gic-member-tag-web', type: 0 })
if (this.pager.pageNum == 1) {
this.memberGroupList = [];
}
memberGroupList({ requestProject: 'gic-member-tag-web', type: 0, pageSize: 20, pageNum: this.pager.pageNum })
.then(res => {
let { errorCode, message, result } = res;
if (errorCode !== 1) {
if (errorCode != 0) {
this.$message.error(message);
return;
}
result = result || [];
result.forEach(item => {
if (item.memberTagGroupClassifyId === 'b3a45c4711134c939b5f8ee31a10f646') {
// console.log(item);
}
});
this.memberGroupList = result.slice(0);
if (Array.isArray(result.result)) {
this.memberGroupList = this.memberGroupList.concat(result.result);
}
this.pager.total = result.totalPage;
this.ruleForm.memberTagGroupClassifyId = this.ruleForm.memberTagGroupClassifyId || '0';
})
.catch(err => {
......@@ -758,7 +780,7 @@ export default {
},
getIsAllowAdd() {
getIsAllowAdd({ tagGroupId: this.$route.query.memberTagGroupId || undefined }).then(res => {
res.errorCode === 1 && !res.result && (this.isAllowAdd = res.result);
res.errorCode == 0 && !res.result && (this.isAllowAdd = res.result);
})
},
updateTypeDesc() {
......@@ -793,7 +815,7 @@ export default {
};
getGroupUseList(params).then(res => {
const { errorCode, result } = res;
if (errorCode === 1) {
if (errorCode == 0) {
this.useList = result || [];
return;
}
......
......@@ -9,11 +9,8 @@
</div>
<div class="right-content">
<!-- 左边的会员分组 -->
<div class="left-box" v-show="activeType != 3 || !isNew">
<group-list ref="groupList" :addGroupDialog.sync="addGroupDialog" :activeType="activeType" @getRecommend="getRecommend" @second-list="getsecondList"></group-list>
<div @click="addGroupDialog = true" :limit-code="$buttonCode.memberTagAddCateGory" v-if="$getButtonLimit($buttonCode.memberTagAddCateGory) && activeType != 3" class="add-category">
<el-button v-show="activeType == 1" type="primary" class="ghost-btn add-group">新增分类</el-button>
</div>
<div class="left-box" v-show="activeType != 3">
<group-list ref="groupList" :activeType="activeType" @getRecommend="getRecommend" @second-list="getsecondList"></group-list>
</div>
<!-- 右边的表格 -->
<template v-if="showFixedList">
......@@ -377,9 +374,9 @@
<div class="right-box" v-show="isTagRecommend">
<div class="common-wrap__opt flex-between">
<div class="desc">覆盖人数于每日上午8点半进行更新</div>
<div class="batch-option">
<!-- <div class="batch-option">
<el-button type="primary" class="fr ghost-btn" @click="isNew = !isNew">{{ `查看${isNew ? '旧' : '新'}版金字塔会员分层` }}</el-button>
</div>
</div> -->
</div>
<div class="common-wrap__table m-t-20">
<pyramid-group-table v-show="isNew" />
......@@ -680,7 +677,6 @@ export default {
data: {},
isBatch: false
},
addGroupDialog: false,
dateformat,
flag: false
};
......@@ -786,7 +782,7 @@ export default {
};
batchModifyEffective(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message.success({
message: '修改成功'
});
......@@ -815,7 +811,7 @@ export default {
};
this.reqLock = true
batchDeleteGroup(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
(res.result || []).length || this.$message.success({
message: '删除成功'
});
......@@ -848,7 +844,7 @@ export default {
memberGroupList({
requestProject: 'gic-member-tag-web'
}).then(res => {
if (res.errorCode === 1) {
if (res.errorCode == 0) {
this.options[2].children = res.result.filter(el => el.classifyName != '未分类');
}
});
......@@ -871,7 +867,7 @@ export default {
}
if (tag) {
refershMemberCount(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this._gradeList(this.memberTagGradeId);
msgVm.close();
this.flag = false;
......@@ -880,7 +876,7 @@ export default {
});
} else {
refershMemberCount(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.getGroupList();
msgVm.close();
this.flag = false;
......@@ -901,7 +897,7 @@ export default {
};
const flag = 3;
gradeList(params).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
if (flag != this.activeType) return;
this.total = res.result.totalCount;
this.groupTableData = res.result.result;
......@@ -959,7 +955,7 @@ export default {
this.params.memberTagGroupClassifyId = list.list.memberTagGroupClassifyId;
this.params.fixedType = 1;
findSecondMemberList(this.params).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.total = res.result.totalCount;
this.groupTableData = res.result.result.map(el => ({
...el,
......@@ -979,7 +975,7 @@ export default {
this.params.memberTagGroupClassifyId = list.memberTagGroupClassifyId;
this.params.fixedType = 0;
findSecondMemberList(this.params).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.classifyOptions = res.result.params || {};
this.total = res.result.totalCount;
this.groupTableData = res.result.result.map(el => ({
......@@ -1015,7 +1011,7 @@ export default {
getRecommend() {
this.isRecommend = true;
recommendGroupList().then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.recommendItems = res.result;
if (this.recommendItems && this.recommendItems.length) {
this.activeName = this.recommendItems[0].recommendName;
......@@ -1038,7 +1034,7 @@ export default {
requestProject: 'gic-member-tag-web',
};
recommendList(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.recommendData = res.result;
} else {
this.recommendData = [];
......@@ -1272,7 +1268,7 @@ export default {
// console.log(res, "delResult");
var resData = res.data;
that.loading = false;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.groupTableData.splice(index, 1);
that.$message.success({
duration: 1000,
......@@ -1329,7 +1325,7 @@ export default {
const flag = type; // 用来控制快速切换tab时,数据混乱得问题
memberTagGroupList(this.params).then(res => {
this.loading = false;
if (res.errorCode == 1) {
if (res.errorCode == 0) {
if (flag && flag != this.activeType) return;
this.total = res.result.totalCount;
this.classifyOptions = res.result.params || {};
......@@ -1350,7 +1346,7 @@ export default {
// 非实时限制
_groupCount() {
groupCount().then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
const data = res.result;
this.countGroupText = `您的非实时分组数量已达${data.currCount}/${data.totalCount},实时分组数量不受限制。`;
}
......@@ -1413,10 +1409,10 @@ export default {
};
this.dialogFixedPile.loading = true;
fixedGroupAddPile(params).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.dialogFixedPile.show = false;
findSecondMemberList(this.params).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.total = res.result.totalCount;
this.groupTableData = res.result.result.map(el => ({
...el,
......@@ -1453,7 +1449,7 @@ export default {
};
batchDeleteGroupVerify(param).then(res => {
if (res.errorCode != 1) return;
if (res.errorCode != 0) return;
if ((res.result || []).length) return this.handleDelGroupMsg(res.result);
let html = !fixedPile
......@@ -1475,7 +1471,7 @@ export default {
type: !fixedPile ? 'warning' : ''
}).then(() => {
batchDeleteGroup(param).then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
(res.result || []).length || this.$message.success({
message: '删除成功'
});
......@@ -1800,10 +1796,6 @@ export default {
padding: 0 20px;
border-bottom: 1px solid #e4e7ed;
}
.add-group {
width: 100%;
margin-top: 12px;
}
.icon-fixed {
font-size: 21px;
position: relative;
......
......@@ -388,7 +388,7 @@ export default {
methods: {
canDownMemberList() {
getRequest('/member-tag-member/isExportEnterprise', {}).then(res => {
if (res.data.errorCode === 1) {
if (res.data.errorCode == 0) {
this.downMemberListPop.canDown = res.data.result === 'true' || res.data.result === true;
}
})
......@@ -622,7 +622,7 @@ export default {
},
getLevelData() {
getTagLists({ requestProject: 'gic-member-tag-web' }).then(res => {
if (res.errorCode === 1) {
if (res.errorCode == 0) {
const ret = res.result;
let memberTagGroupId = this.$route.query.memberTagGroupId;
let target = ret.find(el => el.memberTagGradeId === memberTagGroupId) || {};
......
......@@ -17,7 +17,8 @@
<template #content>
<p class="m-b-5">消费周期(消费周期小于1时按1计算) = (最近消费日期 - 首次消费日期 + 1) / 365;</p>
<p class="m-b-5">年平均消费次数 = 有效消费次数 / 消费周期;</p>
<p>年平均消费金额 = 累计消费金额 / 消费周期;</p>
<p class="m-b-5">年平均消费金额 = 累计消费金额 / 消费周期;</p>
<p>企业客单:企业有去年消费数据则取去年客单,去年无消费数据则取今年客单</p>
</template>
<i v-if="row.gradeName == '核心'" class="iconfont icon-QuestionCircleOutlined" />
</el-tooltip>
......@@ -97,7 +98,7 @@ export default {
const { hanbanShow, memberTagGradeId } = item;
const params = { appStatus: Number(hanbanShow), memberTagGradeId };
const { data } = await getRequest('/memberTagGrade/updateHanbanShow', params);
if (data.errorCode != 1) return this.$message.error(data.message);
if (data.errorCode != 0) return this.$message.error(data.message);
},
toDetail(row, index) {
if (!this.$getButtonLimit(this.$buttonCode.memberTagGroupLevelDetail)) return;
......
......@@ -136,7 +136,7 @@
</div>
<div :class="['form-item']">
<label for="">分组所属分类</label>
<el-select v-model="tagConfig.memberTagGroupClassifyId" style="width: 100%" filterable placeholder="请选择">
<el-select v-model="tagConfig.memberTagGroupClassifyId" v-loadmore="onLoadmore" style="width: 100%" filterable placeholder="请选择">
<el-option v-for="item in memberGroupList" :key="item.memberTagGroupClassifyId" :value="item.memberTagGroupClassifyId" :label="item.classifyName" />
</el-select>
</div>
......@@ -241,6 +241,10 @@ export default {
data() {
return {
pager: {
pageNum: 1,
total: 1
},
handTag: null,
realCount: Object.create(null),
margin60: false,
......@@ -400,6 +404,19 @@ export default {
}
}
},
directives: {
loadmore: {
inserted(el, binding) {
const SELECTDOWN_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap');
SELECTDOWN_DOM.addEventListener('scroll', function() {
const CONDITION = this.scrollHeight - this.scrollTop <= this.clientHeight;
if (CONDITION) {
binding.value();
}
})
}
}
},
methods: {
validPeriodDateChange(v) {
......@@ -410,7 +427,7 @@ export default {
},
_groupCount() {
groupCount().then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.realCount = res.result;
}
});
......@@ -499,7 +516,7 @@ export default {
addNewGroup(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
console.log(this.tagConfig.fixedType);
const type = this.tagConfig.fixedType ? 'fixed' : '';
this.$router.push({ path: 'memberGroupList', query: { type } });
......@@ -718,16 +735,26 @@ export default {
saveHandTagData(list) {
localStorage.setItem('middleHandtag', JSON.stringify(list));
},
onLoadmore() {
if (this.pager.pageNum >= this.pager.total) return;
this.pager.pageNum++;
this.getMemberGroupList();
},
getMemberGroupList() {
memberGroupList({ requestProject: 'gic-member-tag-web', type: 0 })
if (this.pager.pageNum == 1) {
this.memberGroupList = [];
}
memberGroupList({ requestProject: 'gic-member-tag-web', type: 0, pageSize: 20, pageNum: this.pager.pageNum })
.then(res => {
let { errorCode, message, result } = res;
if (errorCode !== 1) {
if (errorCode != 0) {
this.$message.error(message);
return;
}
result = result || [];
this.memberGroupList = result.slice(0);
if (Array.isArray(result.result)) {
this.memberGroupList = this.memberGroupList.concat(result.result);
}
this.pager.total = result.totalPage;
})
.catch(err => {
console.log(err);
......@@ -736,7 +763,7 @@ export default {
// 是否开启自动同步
getSyncFlag() {
isAutomaticSync({}).then(res => {
if (res.errorCode === 1) {
if (res.errorCode == 0) {
this.isSync = res.result;
this.manualTagPop.isSync = res.result;
}
......
......@@ -807,7 +807,7 @@ export default {
getRequest('/enterpriseMemberTag/addByTagId', para)
.then(res => {
var resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addFlag = true;
// that.$router.go(-1)
......@@ -843,7 +843,7 @@ export default {
postRequest('/member-tag-value/add.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addTempFlag = true;
// that.resetData()
......@@ -920,7 +920,7 @@ export default {
getRequest('/memberTag/findWidget', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// 返回字段否追加对应 模板数据对象上
for (let key in resData.result) {
console.log(that[resData.result.templateCode][key], resData.result[key]);
......@@ -1004,7 +1004,7 @@ export default {
return;
}
} else {
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data);
that.getExistData(that.tagData.tagId, data.options);
......@@ -1037,7 +1037,7 @@ export default {
getRequest('/member-tag-value/findOne.json', para)
.then(res => {
const resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!resData.result || resData.result.tagParams == '[]') {
that.addTempFlag = false;
return false;
......@@ -1107,7 +1107,7 @@ export default {
getRequest('/memberTag/getTagById', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagData.tagId = resData.result.tagId;
that.tagData.tagName = resData.result.tagName;
that.tagData.tagDescribe = resData.result.tagDescribe;
......
......@@ -222,7 +222,7 @@ export default {
getRequest('/enterpriseMemberTag/pageList', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!!resData.result.result && !!resData.result.result.length) {
resData.result.result.forEach(function(ele, index) {
ele.popVisible = false;
......@@ -293,7 +293,7 @@ export default {
getRequest('/enterpriseMemberTag/del', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('删除成功', 'success');
that.tagTableData.splice(index, 1);
that.$refs.tagTemp.getTagList();
......
......@@ -932,7 +932,7 @@ export default {
getRequest('/enterpriseMemberTag/addByTagId', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addFlag = true;
// that.$router.go(-1)
......@@ -1499,7 +1499,7 @@ export default {
postRequest('/member-tag-value/add.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.addTempFlag = true;
// that.resetData()
......@@ -2104,7 +2104,7 @@ export default {
getRequest('/memberTag/findWidget', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
// 返回字段否追加对应 模板数据对象上
for (let key in resData.result) {
that[resData.result.templateCode][key] = resData.result[key];
......@@ -2190,7 +2190,7 @@ export default {
return;
}
} else {
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data);
that.getExistData(that.tagData.tagId, data.options);
......@@ -2222,7 +2222,7 @@ export default {
getRequest('/member-tag-value/findOne.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
if (!resData.result || resData.result.tagParams == '[]') {
that.addTempFlag = false;
return false;
......@@ -2293,7 +2293,7 @@ export default {
getRequest('/memberTag/getTagById', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagData.tagId = resData.result.tagId;
that.tagData.tagName = resData.result.tagName;
that.tagData.tagDescribe = resData.result.tagDescribe;
......
......@@ -129,7 +129,7 @@ export default {
getRequest(`/enterpriseMemberTag/${name}`, para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
showMsg.showmsg('添加成功', 'success');
that.getTagList();
return;
......@@ -209,7 +209,7 @@ export default {
.then(res => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.errorCode == 0) {
that.tagTableData = resData.result.result;
that.total = resData.result.totalCount;
return;
......
......@@ -153,7 +153,7 @@ export default {
};
thirdHandTagList(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.editData = res.result.map(el => ({
...el,
editName: false,
......@@ -205,7 +205,7 @@ export default {
editThirdTag(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message({
message: '修改成功',
type: 'success',
......@@ -237,7 +237,7 @@ export default {
};
deleteThirdTag(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message({
message: '删除成功',
type: 'success',
......@@ -275,7 +275,7 @@ export default {
newHandTag(params)
.then(res => {
this.addHandTagFlag = false;
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.dispatch('member-tag', 'refersh-member-list');
this.typeName = '';
this.dialogVisible = false;
......
......@@ -144,7 +144,7 @@ export default {
};
delThirdHandTag(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message({
message: '删除成功',
type: 'success',
......@@ -162,7 +162,7 @@ export default {
};
getRequest('/delTagItem/add', para).then(res => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
item.delStatus = 0;
this.startAnimation(e)
this.$store.commit('changeDelTrashNum', this.$store.state.delTrashNum + 1);
......
......@@ -158,7 +158,7 @@ export default {
};
delThirdHandTag(param)
.then(res => {
if (res.errorCode == 1) {
if (res.errorCode == 0) {
this.$message({
message: '删除成功',
type: 'success',
......@@ -176,7 +176,7 @@ export default {
};
getRequest('/delTagItem/add', para).then(res => {
const { errorCode } = res.data;
if (errorCode === 1) {
if (errorCode == 0) {
item.delStatus = 0;
this.startAnimation(e);
this.$store.commit('changeDelTrashNum', this.$store.state.delTrashNum + 1);
......
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