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