Commit e3fe4254 by 李伟康

commit 提交需求

1 parent a26961c6

1.08 KB | W: | H:

1.14 KB | W: | H:

src/assets/pause.png
src/assets/pause.png
src/assets/pause.png
src/assets/pause.png
  • 2-up
  • Swipe
  • Onion skin

527 Bytes | W: | H:

1.23 KB | W: | H:

src/assets/play.png
src/assets/play.png
src/assets/play.png
src/assets/play.png
  • 2-up
  • Swipe
  • Onion skin

2.2 KB | W: | H:

5.39 KB | W: | H:

src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
  • 2-up
  • Swipe
  • Onion skin

2.16 KB | W: | H:

4.94 KB | W: | H:

src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -302,4 +302,14 @@ $prefix: d2;
.scrollHeight{
max-height:200px!important;
overflow-y: scroll;
}
.el-tooltip__popper.is-light {
width: 177px;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08) !important;
border: 1px solid #e4e7ed !important;
color: #666;
}
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{
border-color: #e4e7ed !important;
}
\ No newline at end of file
......@@ -6,25 +6,31 @@
:data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading"
border
:border="border"
:highlight-current-row="true"
@sort-change="sortChange"
@selection-change="handleSelect"
:tree-props="{ children: 'upgradeGoodsList' }"
:span-method="arraySpanMethod"
v-bind="$attrs">
v-bind="$attrs"
>
<el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
align="center"
:selectable="selectableFn"
width="55" />
width="55"
/>
<el-table-column
v-if="tableParams.singleSelectUniqueKey"
align="center"
width="55">
width="55"
>
<template slot-scope="scope">
<slot name="single-button" :scope="scope.row" />
<slot
name="single-button"
:scope="scope.row"
/>
</template>
</el-table-column>
<el-table-column
......@@ -42,7 +48,8 @@
1) *
(pagination.pageSize ? pagination.pageSize : page.pageSize) +
1
" />
"
/>
<el-table-column
v-for="(item, index) in tableParams.tableColumns"
:key="index"
......@@ -53,7 +60,8 @@
:align="item.align || 'center'"
:sortable="item.sortable"
:render-header="item.renderHeader"
:show-overflow-tooltip="item.showOverFlow">
:show-overflow-tooltip="item.showOverFlow"
>
<template slot="header">
<span>{{ item.label }}</span>
<table-head-search
......@@ -61,7 +69,8 @@
:search-form="headSearchForm"
:option-config="item.optionConfig"
:base-data="baseData"
@handleTableHeadChange="handleTableHeadChange" />
@handleTableHeadChange="handleTableHeadChange"
/>
</template>
<template slot-scope="scope">
<slot
......@@ -70,7 +79,8 @@
:scope="scope.row"
:index="scope.$index"
:prop="item.prop"
:width="item.width" />
:width="item.width"
/>
<template v-else-if="item.type == 'ownSerialNum'">
<span>{{
scope.row[item.prop] >= 0
......@@ -90,14 +100,19 @@
<el-tag
v-if="!item.tagName"
:type="tableParams.tag.type[scope.row[item.prop]]"
v-text="tableParams.tag.label[scope.row[item.prop]]" />
v-text="tableParams.tag.label[scope.row[item.prop]]"
/>
<el-tag
v-else
:type="tableParams[item.tagName].type[scope.row[item.prop]]"
v-text="tableParams[item.tagName].label[scope.row[item.prop]]" />
v-text="tableParams[item.tagName].label[scope.row[item.prop]]"
/>
</template>
<template v-else-if="item.formatter">
<span v-if="item.html" v-html="item.formatter(scope.row)" />
<span
v-if="item.html"
v-html="item.formatter(scope.row)"
/>
<template v-if="!item.html">
<span :class="item.className ? item.className(scope.row) : ''" />
<span v-text="item.formatter(scope.row)" />
......@@ -125,15 +140,33 @@
label="操作"
fixed="right"
:align="tableParams.tableOption.align || 'center'"
:width="tableParams.tableOption.width || 'auto'">
:width="tableParams.tableOption.width || 'auto'"
>
<template slot-scope="scope">
<slot name="auth-button" :scope="scope.row" :index="scope.$index" />
<slot
name="auth-button"
:scope="scope.row"
:index="scope.$index"
/>
<slot
name="auth-button-other"
:scope="scope.row"
:index="scope.$index" />
:index="scope.$index"
/>
</template>
</el-table-column>
<div
slot="empty"
class="emptyBg"
>
<img
class="noDataImg"
:src="noDataImg"
v-if="noDataImg"
/>
{{ noDataText }}
</div>
</el-table>
<el-pagination
v-if="hasPage"
......@@ -144,7 +177,8 @@
:page-sizes="[10, 20, 30, 40]"
:page-size="page.pageSize"
:total="getListApi ? total : tableTotal"
:layout="layout" />
:layout="layout"
/>
</div>
</template>
......@@ -152,7 +186,7 @@
import TableHeadSearch from "./TableHeadSearch"
export default {
name: "D2Table",
data() {
data () {
return {
loading: false,
data: [],
......@@ -179,17 +213,17 @@ export default {
// 搜索条件
searchForm: {
type: Object,
default: () => {}
default: () => { }
},
// 表格头部搜索条件 - start
headSearchForm: {
type: Object,
default: () => {}
default: () => { }
},
// 选项列表Obj
baseData: {
type: Object,
default: () => {}
default: () => { }
},
// 表格头部搜索条件 - end
// 表格数据-外部传入
......@@ -233,7 +267,7 @@ export default {
// 排序列表对象
sortObj: {
type: Object,
default: () => {}
default: () => { }
},
tableParams: {
type: Object,
......@@ -291,11 +325,26 @@ export default {
// 合并单元格方法
arraySpanMethod: {
type: Function,
default: () => {}
}
default: () => { }
},
//边框
border: {
type: Boolean,
default: true
},
noDataImg: {
type: String,
default: ''
},
noDataText: {
type: String,
default: '暂无数据'
},
},
mounted() {
mounted () {
const btn = document.getElementById(this.tableParams.btnId)
btn && btn.addEventListener("click", this.refreshEmit)
this.getListApi && this.refreshTable()
......@@ -303,32 +352,32 @@ export default {
methods: {
// 排序
sortChange({ column, prop, order }) {
sortChange ({ column, prop, order }) {
this.sortColum = order ? prop : ""
this.sort = order
this.refreshTable(true, true)
},
// 多选
handleSelect(val) {
handleSelect (val) {
this.mutiSelectArr[this.tableParams.mutiSelectName] = val
// 多选
this.$emit("selectionTable", val)
},
// 清空多选
clearMutiSelect() {
clearMutiSelect () {
this.mutiSelectArr[this.tableParams.mutiSelectName] = []
this.$refs[this.tableParams.mutiSelectName + "MutiTable"].clearSelection()
},
// 发布事件,以期查询条件改变后,页面图表需要刷新
refreshEmit() {
refreshEmit () {
this.$emit("searchChange")
this.refreshTable(true, true)
},
refreshTable(clearMuti = false, resetCurrentPage = false) {
refreshTable (clearMuti = false, resetCurrentPage = false) {
this.beforeSearchFn().then((res) => {
// console.log(res)
// 清空多选
......@@ -368,7 +417,7 @@ export default {
v.listShowSpecificationData =
val.goodsSpecificationNameList?.length > 1
? v.specificationData &&
v.specificationData?.replace(/;~;/g, " ")
v.specificationData?.replace(/;~;/g, " ")
: "-"
v.goodsInfo.goodsName = v.upgradeGoodsName
v.goodsInfo.goodsTypeName = val.goodsInfo?.goodsTypeName
......@@ -388,7 +437,7 @@ export default {
// 父商品规格数量
val.listShowSpecificationData =
val.goodsSpecificationNameList?.length > 1 &&
val.upgradeGoodsList?.length > 0
val.upgradeGoodsList?.length > 0
? "X" + val.upgradeGoodsList.length
: "-"
val.listShowShopPrice =
......@@ -421,12 +470,12 @@ export default {
},
// 表头搜索项-改变
handleTableHeadChange(obj) {
handleTableHeadChange (obj) {
this.$emit("handleTableHeadChange", obj)
},
// 每页条数
handleSizeChange(value) {
handleSizeChange (value) {
this.page.pageSize = value
this.getListApi
? this.refreshTable(false)
......@@ -434,18 +483,18 @@ export default {
},
// 页码
handleCurrentChange(value) {
handleCurrentChange (value) {
this.page.currentPage = value
this.getListApi
? this.refreshTable(false)
: this.$emit("refreshTable", this.page)
},
// 重置请求
resetRefreshTable() {
resetRefreshTable () {
this.refreshTable_noApi()
this.refreshTable()
},
refreshTable_noApi() {
refreshTable_noApi () {
this.page = {
pageSize: 10,
currentPage: 1
......@@ -508,4 +557,14 @@ export default {
@include spotBase();
background: #5850ff;
}
.emptyBg {
display: flex;
flex-direction: column;
align-items: center;
.noDataImg {
width: 270px;
height: 120px;
margin-bottom: 8px;
}
}
</style>
<template>
<div class="empty-box">
<div class="icon">
<img src="@/assets/empty-1.png">
</div>
<div class="text">数据分析中,请稍等…</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Empty',
props: {
},
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.empty-box {
display: flex;
flex-direction: column;
font-size: 12px;
color: #999999;
padding-top: 96px;
text-align: center;
width: 100%;
height: 100%;
box-sizing: border-box;
background: #F6F9FF;
border-radius: 0 4px 4px 4px;
.icon {
width: 270px;
height: 120px;
margin: 0 auto 8px;
img {
width: 100%;
height: 100%;
}
}
}
</style>
......@@ -160,7 +160,7 @@
<template v-else-if="scope.scope.abnormalProportion==0">
{{ scope.scope.abnormalProportion+ '%' }}
</template>
<template v-else>--</template>
<template v-else>统计中</template>
</div>
<div
slot="scoreHtml"
......@@ -292,11 +292,13 @@ export default {
},
{
label: "录音日期",
prop: "searchdate"
prop: "searchdate",
width: "120px"
},
{
label: "员工",
prop: "employeeName"
prop: "employeeName",
width: "120px"
},
{
label: "手机号",
......@@ -359,7 +361,6 @@ export default {
},
{
label: "当日到店量/人",
// prop: "toStoreCount",
prop: "enterReceptionBatch",
width: "150px",
renderHeader: (createElement) => {
......@@ -404,7 +405,7 @@ export default {
attrs: {
effect: "dark",
content:
"异常占比 = (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工",
"异常占比 = (当日到店量 - 预计接待批次)/ 当日到店量,建议重点关注异常占比超过20%的员工",
placement: "top"
}
},
......@@ -481,8 +482,6 @@ export default {
}
},
created () {
// this.searchForm.searchdate = new Date().getTime() - 3600 * 1000 * 24
this.getTableList()
},
mounted () {
......@@ -534,11 +533,10 @@ export default {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchForm.searchdate.length) {
let [searchStartDate, searchEndDate] = this.searchForm.searchdate
this.searchFormSearch.searchStartDate = '2024-02-22'
// Util.dateFormate(
// searchStartDate,
// "YYYY-MM-DD"
// )
this.searchFormSearch.searchStartDate = Util.dateFormate(
searchStartDate,
"YYYY-MM-DD"
)
this.searchFormSearch.searchEndDate = Util.dateFormate(
searchEndDate,
"YYYY-MM-DD"
......@@ -610,20 +608,11 @@ export default {
this.handleSearch()
},
async getTableList () {
await this.beforeSearchFn()
const { total, list } = await getReclistWithPage({
...this.page,
...this.searchFormSearch
})
if (list[1].merchantDTOList) {
list[1].merchantDTOList.push({
merchantName: "宿舍",
merchantNo: "44211228"
})
list[1].merchantDTOList.push({
merchantName: "等等",
merchantNo: "44211229"
})
}
this.restructureData(list)
this.tableTotal = total
},
......@@ -748,15 +737,6 @@ export default {
colspan: _col_4
}
}
// else if (columnIndex === 11) {
// // 第11列 第二操作栏
// const _row_11 = this.spanArr11[rowIndex]
// const _col_11 = _row_11 > 0 ? 1 : 0
// return {
// rowspan: _row_11,
// colspan: _col_11
// }
// }
else if (rowIndex === len) {
return {
rowspan: 1,
......@@ -770,7 +750,7 @@ export default {
...this.page,
...this.searchFormSearch
})
window.open(res)
if (res) window.open(res)
}
}
}
......@@ -785,6 +765,9 @@ export default {
::v-deep.d2-container-full__body {
padding-bottom: 60px;
}
::v-deep.cell {
padding: 7px;
}
.header {
display: flex;
align-items: center;
......
......@@ -6,7 +6,7 @@
<div class="info-wrap">
<div class="info-item flex">
<label>员工:</label>
<span>{{ queryData.employeeName }} {{queryData.phoneNumber}}</span>
<span>{{ queryData.employeeName }} {{queryData.phoneNumber || ''}}</span>
</div>
<div class="info-item flex">
<label>门店:</label>
......@@ -117,7 +117,8 @@
<quality-detail
:is-quality-visible="isQualityVisible"
v-if="isQualityVisible"
:detail-obj="detailObj"
:currentNum="currentNum"
:qualityDetailList="qualityDetailList"
@closeDialog="closeDialog"
></quality-detail>
</div>
......@@ -139,7 +140,6 @@ export default {
qualityTestScore: [],
estimatedResultId: ""
},
detailObj: {},
searchFormSearch: {},
getListApi: conversationPage,
showFormData: [
......@@ -177,15 +177,20 @@ export default {
},
{
label: "客户姓名",
prop: "startTime"
prop: "customerName"
},
{
label: "车型",
prop: "startTime"
prop: "carModel"
},
{
label: "APP接待结果",
prop: "startTime"
formatter (row) {
return {
1: '成交',
0: '战败'
}[row.receptionStatus]
}
},
{
label: "预计营销结果",
......@@ -227,7 +232,9 @@ export default {
confLabel: "未知"
}
]
}
},
qualityDetailList: [],
currentNum: 0
}
},
components: {
......@@ -274,7 +281,10 @@ export default {
this.isQualityVisible = false
},
qualitDetail (row) {
this.detailObj = row
const list = this.$refs.recepDetail.data,
currentNum = list.findIndex(e => e.id == row.id)
this.currentNum = currentNum
this.qualityDetailList = list
this.isQualityVisible = true
},
beforeSearchFn () {
......@@ -282,6 +292,7 @@ export default {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.conversationDateId = this.queryData.id
this.searchFormSearch.pageNum = this.searchFormSearch.currentPage
this.searchFormSearch.merchantNo = this.queryData.merchantNo
if (this.searchFormSearch.qualityTestScore) {
this.searchFormSearch.qualityTestScoreBegin =
this.searchFormSearch.qualityTestScore[0]
......@@ -347,7 +358,10 @@ export default {
margin-left: 16px;
overflow-y: scroll;
height: 100%;
.recep-box{
::v-deep.cell {
padding: 7px;
}
.recep-box {
padding-right: 8px;
}
h2 {
......@@ -375,8 +389,8 @@ export default {
width: 50%;
margin-bottom: 20px;
display: flex;
align-items: flex-start;
align-items: center;
line-height: 18px;
label {
width: 154px;
text-align: right;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!