Commit efb6d170 by 前端

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

Yangm dev v2.1.0

See merge request !29
2 parents 8edccf20 3dc2599b
......@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg)
}
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.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')
}
......
......@@ -82,6 +82,9 @@ export default {
goDetail(scope) {
this.$router.push('/clientManage/clientDetail?id=' + scope.oneId)
},
jumpGroup() {
this.$router.push('/crowdManage/index')
},
//删除标签组
removeItem(index) {
this.tagCheckItem.splice(index, 1)
......@@ -195,11 +198,8 @@ export default {
.addCrowd(params)
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '操作成功!'
})
this.groupVisible = false
this.successVisible = true
} else {
this.$message({
type: 'error',
......
......@@ -180,7 +180,7 @@ export default {
},
{
label: '购车时间',
prop: 'addTime',
prop: 'buyDate',
width: 110
},
{
......
......@@ -254,6 +254,15 @@
</div>
</div>
</basic-dialog>
<el-dialog title="提示" :visible.sync="successVisible" width="30%">
<div class="success-panel">
<i class="el-icon-circle-check"></i>
</div>
<div class="success-tips">
<div class="success-tips-h1">已保存为人群</div>
<div class="success-tips-h2" @click="jumpGroup">立即前往“人群管理”></div>
</div>
</el-dialog>
<div class="loading-containner" v-if="userLoading">
<div class="loading-box">客户列表加载中</div>
</div>
......@@ -299,6 +308,7 @@ export default {
}
}
return {
successVisible: false,
userLoading: false,
dialogRuleVisible: false,
expand: false,
......@@ -548,7 +558,7 @@ export default {
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 150
this.heightBox = clientHeight - 140
//没数据的时候要算高度
// setTimeout(() => {
// if (!this.$refs.tagsManage.data.length) {
......@@ -640,8 +650,8 @@ export default {
},
//重置表格
handleReset() {
this.getCustomersListData()
this.searchForm = {}
this.getCustomersListData()
},
btnClick(pType, rowData) {
console.log(pType, rowData, 'btnClick')
......@@ -932,6 +942,34 @@ export default {
content: '. . .';
}
}
.success-panel {
display: flex;
justify-content: center;
margin-top: 40px;
.el-icon-circle-check {
color: #2cca74;
font-size: 36px;
}
}
.success-tips {
color: #5850ff;
text-align: center;
margin: 10px 0px 30px;
line-height: 20px;
&-h1 {
font-size: 16px;
color: #333333;
}
&-h2 {
cursor: pointer;
margin-top: 30px;
font-size: 14px;
color: #5850ff;
}
}
.success-footer {
text-align: center;
}
.leftDistance {
margin-left: 10px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!