Commit f7139785 by 王志慧

按钮样式修改,弹框添加关闭功能

1 parent e9f9b6b4
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" :width="width" :show-close="isShowCloseBtn" :destroy-on-close="true" class="app-dialog">
<el-dialog :title="title" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false" :width="width" :show-close="isShowCloseBtn" :destroy-on-close="isDestroyClose" class="app-dialog">
<!-- :modal-append-to-body="false"
:append-to-body="true"-->
<div class="container">
......@@ -31,6 +31,10 @@ export default {
type: Boolean,
default: false
},
isDestroyClose: {
type: Boolean,
default: false
},
isShowThirdBtn: {
type: Boolean,
default: false
......
......@@ -12,7 +12,7 @@
全部客户
<span class="main-container-head-number font-14">{{ totalCount }}个</span>
</div>
<div class="export font-14 color-6" @click="handleExport()">导出</div>
<el-button type="primary" class="export flex" @click="handleExport()">导出</el-button>
</div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="customerName" class="flex-center" slot-scope="scope">
......@@ -184,13 +184,14 @@ export default {
line-height: 20px;
}
.export {
font-weight: 400;
width:74px;
height:32px;
box-sizing: border-box;
// font-weight: 400;
padding: 6px 23px;
line-height: 20px;
background: #ffffff;
border-radius: 4px;
border: 1px solid rgba(105, 105, 105, 0.3);
cursor: pointer;
// background: #ffffff;
// border-radius: 4px;
// border: 1px solid rgba(105, 105, 105, 0.3);
}
}
}
......
......@@ -158,7 +158,7 @@
</div>
</div>
</div>
<basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :btnLoading="sloading" :isShowThirdBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :isDestroyClose="true" :btnLoading="sloading" :isShowThirdBtn="true" :isShowCloseBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<slot>
<p class="hint-text color-6">
<span class="color-3">说明:</span>
......@@ -572,7 +572,7 @@ export default {
if (labels.labelType == '企业标签') {
allTagsList[0].labelType = '企业标签'
allTagsList[0].children.push(labels)
} else if(labels.labelType == '自店标签') {
} else if (labels.labelType == '自店标签') {
allTagsList[1].labelType = '自店标签'
allTagsList[1].children.push(labels)
}
......
......@@ -41,7 +41,7 @@
<div class="clientNumText">{{ tableTotal }}个</div>
</div>
</div>
<div class="export" @click="handleExport">导出</div>
<el-button class="export" type="primary" @click="handleExport">导出</el-button>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams">
<span slot="carVin" slot-scope="scope">
......@@ -124,7 +124,7 @@ export default {
searchForm3: {},
searchFormTable: {},
boxHeight: 200,
exportParams:{},
exportParams: {},
clientGroupFormList: [
{
type: 'input',
......@@ -328,7 +328,7 @@ export default {
pageSize: this.$refs.viewCustomers.page.pageSize,
pageNum: this.$refs.viewCustomers.page.pageNum
}
this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))}
this.exportParams = { ...JSON.parse(JSON.stringify(this.allListParams)) }
getCustomersList(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
......@@ -425,7 +425,6 @@ export default {
// this.$refs.viewCustomers.page.pageSize = 10
// this.getCustomersListData()
// this.dialogVisible = false
},
filterNode(val, labelData) {
if (!val) return true
......@@ -460,7 +459,7 @@ export default {
//导出
handleExport() {
const params = {
...JSON.parse(JSON.stringify(this.exportParams)),
...JSON.parse(JSON.stringify(this.exportParams))
}
console.log(params)
exportLabelList(params).then(res => {
......@@ -538,13 +537,15 @@ export default {
.export {
width: 74px;
height: 32px;
font-size: 14px;
color: #666666;
line-height: 32px;
background: #ffffff;
border-radius: 4px;
text-align: center;
border: 1px solid rgba(105, 105, 105, 0.3);
// font-size: 14px;
// color: #666666;
// line-height: 32px;
// background: #ffffff;
// border-radius: 4px;
// text-align: center;
// border: 1px solid rgba(105, 105, 105, 0.3);
box-sizing: border-box;
padding: 6px 23px;
}
}
::v-deep .el-dialog {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!