Commit b5704aab by 前端

Merge branch 'yangm_dev_v2.1.0' into 'v2.1.0'

fixed

See merge request !27
2 parents 5b1ca173 5f423603
......@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg)
}
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
......
......@@ -123,7 +123,8 @@ export default {
//导出
handleExport() {
const params = {
...JSON.parse(JSON.stringify({ tagLists: this.allListParams }))
...JSON.parse(JSON.stringify({ tagLists: this.allListParams })),
combineType: 2
}
exportLabelList(params).then(res => {
this.$Utils.exportFn(res)
......@@ -153,6 +154,11 @@ export default {
if (this.tableTotal == 0) {
this.$refs.viewCustomers.setTableHeightFun()
}
if (tagLists.length == 0) {
document.querySelector('.noDataText').innerText = '请选择标签'
} else {
document.querySelector('.noDataText').innerText = '暂无数据'
}
})
.catch(err => {
this.userLoading = false
......
......@@ -666,8 +666,7 @@ export default {
.container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
height: calc(100vh - 164px);
overflow-y: auto;
margin-bottom: 80px;
// padding: 20px;
.title {
......
......@@ -5,7 +5,7 @@
<span @click="resetTree">重置</span>
</div>
<el-tree @check="checkChange" class="tag-tree" ref="tagTree" :data="labelTree" :props="defaultProps" @node-click="nodeClick" show-checkbox node-key="id" default-expand-all :expand-on-click-node="false" :filter-node-method="filterNode">
<el-tree @check="checkChange" class="tag-tree" ref="tagTree" :data="labelTree" :props="defaultProps" @node-click="nodeClick" show-checkbox node-key="id" :default-expanded-keys="expandId" :expand-on-click-node="false" :filter-node-method="filterNode">
<div class="custom-tree-node" slot-scope="{ node, data }">
<span :class="['tree-node', `node_${data.id}`]">{{ node.label }}</span>
<span v-if="data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)" @click.stop="editTree(data)">
......@@ -22,6 +22,7 @@ export default {
name: 'tagGroup',
data() {
return {
expandId: [],
loading: false,
heightBox: 200,
dialogVisible: false,
......@@ -70,6 +71,7 @@ export default {
document.querySelector('.tag-tree').scrollTop = height
},
resetTree() {
this.$parent.searchForm = {}
this.$refs.tagTree.setCheckedKeys([])
this.$nextTick(() => {
this.$emit('getCheckItem', this.$refs.tagTree)
......@@ -137,6 +139,13 @@ export default {
}
})
this.labelTree = this.labelTree.sort((a, b) => a.sort - b.sort)
this.expandId = []
if (this.labelTree && this.labelTree.length) {
this.labelTree[0].children.forEach(item => {
this.expandId.push(item.id)
})
}
this.$nextTick(() => {
status && this.updateTreeNode()
})
......
......@@ -184,7 +184,7 @@
个
</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '编辑标签组'">
{{ tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' }}最多3000个,已创建
{{ tagForm.initTagsGroup == 1 ? (merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' }}最多3000个,已创建
<span class="pure-blue-text">{{ tagForm.initTagsGroup == 1 ? numberObj.bizLabelCount : numberObj.rcLabelCount }}</span>
个
</span>
......@@ -658,7 +658,7 @@ export default {
break
case 'edit':
this.tagDialogTitle = '编辑标签组'
this.$set(this.tagDialogData[0], 'disabled', true)
// this.$set(this.tagDialogData[0], 'disabled', true)
this.editEvent(rowData)
break
}
......@@ -1414,4 +1414,4 @@ export default {
margin-bottom: 5px;
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!