Commit ef8294ca authored by 乐宝呗666's avatar 乐宝呗666

修改富文本样式展示问题 添加合作伙伴功能

parent 6ac2bcf7
This diff is collapsed.
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-i18n": "^8.15.1", "vue-i18n": "^8.15.1",
"vue-pdf": "^4.2.0", "vue-pdf": "^4.2.0",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuex": "^3.1.2" "vuex": "^3.1.2"
}, },
......
...@@ -90,3 +90,12 @@ export function getCustomPageList (params) { ...@@ -90,3 +90,12 @@ export function getCustomPageList (params) {
params params
}) })
} }
// 获取合作伙伴
export function getPartner (params) {
return request({
url: '/tp/customer/getPartner',
method: 'get',
params
})
}
...@@ -152,6 +152,9 @@ ul{list-style: none; padding: 0} ...@@ -152,6 +152,9 @@ ul{list-style: none; padding: 0}
.mt-2 { .mt-2 {
margin-top: .2rem; margin-top: .2rem;
} }
.mt-4 {
margin-top: .4rem;
}
.mt-1 { .mt-1 {
margin-top: .1rem; margin-top: .1rem;
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<a class="no-line" href="http://111.203.232.175:8085/" target="_blank">管理端 </a> <a class="no-line" href="http://111.203.232.175:8085/" target="_blank">管理端 </a>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item divided @click.native="logout"> <el-dropdown-item divided @click.native="logout">
<span style="display:block; width: 60px"></span> <span style="display:block; width: 60px">退</span>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
</div> </div>
<div class="news-content"> <div class="news-content">
<el-table stripe :data="tableData" style="width: 100%"> <el-table stripe :data="tableData" style="width: 100%">
<el-table-column prop="customerName"></el-table-column> <el-table-column prop="name"></el-table-column>
<el-table-column align="right" prop="createTime"></el-table-column> <el-table-column align="right" prop="createAt"></el-table-column>
</el-table> </el-table>
<Pagination <Pagination
v-show="pageObj.total > 0" v-show="pageObj.total > 0"
...@@ -41,13 +41,30 @@ export default { ...@@ -41,13 +41,30 @@ export default {
} }
}, },
mounted () { mounted () {
this.getCustomList() this.type = this.$route.query.type
console.log(this.type)
if (this.type === 1) {
this.getCustomList()
} else {
this.getPartner()
}
}, },
methods: { methods: {
getPartner () {
API_CLIENT.getPartner({ _index: this.pageObj.pageNo, _size: this.pageObj.pageSize }).then(res => {
this.tableData = res.data.records
this.pageObj.total = Number(res.data.total)
})
},
// 查询概况页面数据 // 查询概况页面数据
getCustomList () { getCustomList () {
API_CLIENT.getCustomPageList({ _index: this.pageObj.pageNo, _size: this.pageObj.pageSize }).then(res => { API_CLIENT.getCustomPageList({ _index: this.pageObj.pageNo, _size: this.pageObj.pageSize }).then(res => {
this.tableData = res.data.records this.tableData = res.data.records.map(item => {
return {
name: item.customerName,
createAt: item.createTime
}
})
this.pageObj.total = Number(res.data.total) this.pageObj.total = Number(res.data.total)
}) })
}, },
...@@ -58,7 +75,11 @@ export default { ...@@ -58,7 +75,11 @@ export default {
pageChange (page) { pageChange (page) {
this.pageObj.pageSize = page.limit this.pageObj.pageSize = page.limit
this.pageObj.pageNo = page.page this.pageObj.pageNo = page.page
this.getCustomList() if (this.type === 1) {
this.getCustomList()
} else {
this.getPartner()
}
} }
} }
} }
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
</div> </div>
<div class="boxHeight-3 mt-2" style="position:relative;"> <div class="boxHeight-3 mt-2" style="position:relative;">
<div class="title">重要客户</div> <div class="title">重要客户</div>
<div class="lookMore" @click="goCustomerList">查看更多</div> <div class="lookMore" @click="goCustomerList(1)">查看更多</div>
<div class="d-flex search-box jc-end"> <div class="d-flex search-box jc-end">
<el-select v-model="selectYear" size="mini" @change="getImportantCus"> <el-select v-model="selectYear" size="mini" @change="getImportantCus">
<el-option <el-option
...@@ -160,13 +160,11 @@ ...@@ -160,13 +160,11 @@
<div class="customer-name" v-for="(item,index) in customerList" :key="index">{{item}}</div> <div class="customer-name" v-for="(item,index) in customerList" :key="index">{{item}}</div>
</div> </div>
</div> </div>
<div class="boxHeight-3 mt-2"> <div class="boxHeight-3 mt-2" style="position:relative;">
<div class="title">合作伙伴</div> <div class="title">合作伙伴</div>
<div class="iconBlock"> <div class="lookMore" @click="goCustomerList(2)">查看更多</div>
<i class="icon20 icon-datangjituan"></i> <div class="customer-list mt-4">
<i class="icon20 icon-zhongguoshiyou"></i> <div class="customer-name" v-for="(item,index) in partnerList" :key="index">{{item.name}}</div>
<i class="icon20 icon-changjiangdianli"></i>
<i class="icon5 icon-guojiadianwang"></i>
</div> </div>
</div> </div>
</div> </div>
...@@ -199,7 +197,8 @@ export default { ...@@ -199,7 +197,8 @@ export default {
{ id: '2', name: '按资金' }, { id: '2', name: '按资金' },
{ id: '3', name: '按项目' } { id: '3', name: '按项目' }
], // 重要客户下拉框 ], // 重要客户下拉框
customerList: [] // 重要客户 customerList: [], // 重要客户
partnerList: [] // 合作伙伴
} }
}, },
mounted () { mounted () {
...@@ -208,6 +207,7 @@ export default { ...@@ -208,6 +207,7 @@ export default {
this.getCustomerByAmount() this.getCustomerByAmount()
this.getImportantCus() this.getImportantCus()
this.getStatisticsCustomer() this.getStatisticsCustomer()
this.getPartner()
}, },
methods: { methods: {
// 客户统计 // 客户统计
...@@ -282,8 +282,16 @@ export default { ...@@ -282,8 +282,16 @@ export default {
this.clickDistributeId = item.id || null this.clickDistributeId = item.id || null
this.getDistribution() this.getDistribution()
}, },
goCustomerList () { goCustomerList (item) {
this.$router.push('/customList') this.$router.push({
path: '/customList',
query: { type: item }
})
},
getPartner () {
API_CLIENT.getPartner({ _index: 1, _size: 5 }).then(res => {
this.partnerList = res.data.records
})
} }
} }
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="news-content" v-if="type===0 ||type===2|| type===3|| type===4 "> <div class="news-content" v-if="type===0 ||type===2|| type===3|| type===4 ">
<h3>{{contentData.name}}</h3> <h3>{{contentData.name}}</h3>
<div v-html="contentData.content"></div> <div class="ql-editor" v-html="contentData.content"></div>
</div> </div>
<div class="news-content" v-if="type===1"> <div class="news-content" v-if="type===1">
<a class="image-box" v-for="(item,index) in contentData" :key="index"> <a class="image-box" v-for="(item,index) in contentData" :key="index">
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
</template> </template>
<script> <script>
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import headerLayout from '@/components/headerLayout/index' // 公共头部 import headerLayout from '@/components/headerLayout/index' // 公共头部
import * as API_BASIC from '@/api/sys.basic.js' import * as API_BASIC from '@/api/sys.basic.js'
...@@ -103,13 +106,16 @@ export default { ...@@ -103,13 +106,16 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.ql-editor {
overflow-x: hidden;
}
.news-content { .news-content {
color: #fff; color: #fff;
font-size: .14rem; font-size: .14rem;
width: 12rem; width: 12rem;
height: calc(100vh - 3rem); height: calc(100vh - 3rem);
overflow-y: auto; // overflow-y: auto;
overflow-x: hidden; // overflow-x: hidden;
margin: 0 auto; margin: 0 auto;
padding:20px; padding:20px;
::v-deep img { ::v-deep img {
......
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