Commit 985dc4c9 by 王志慧

解决代码合并覆盖问题

1 parent 8796ba4f
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<d2-table <d2-table
class="table-wrap"
ref="analyseTable" ref="analyseTable"
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
...@@ -397,6 +398,10 @@ export default { ...@@ -397,6 +398,10 @@ export default {
font-weight: 600; font-weight: 600;
} }
} }
.table-wrap{
height:calc(100% - 150px);
overflow-y: auto;
}
.up-btns { .up-btns {
padding: 0; padding: 0;
width: fit-content; width: fit-content;
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
} }
}, },
{ {
label: "话术评分", label: "质检得分",
formatter(row) { formatter(row) {
if (row.bussinessType == 2) return "-" if (row.bussinessType == 2) return "-"
return row.score != null return row.score != null
...@@ -156,11 +156,15 @@ export default { ...@@ -156,11 +156,15 @@ export default {
} }
}, },
{ {
label: "接待时长", label: "攻防得分",
formatter(row) { formatter(row) {
return `<div class="num">${ return row.defence === 2
row.duration ? toMinutesAndSeconds(row.duration) : "-" ? `<div class="num">${row.defencePoint}<span class="unit">分</span></div>`
}</div>` : row.defence === 1||row.defence === 0||row.defence === 4
? `<span style="font-size:22px;color:#999">分析中</span>`
: row.defence === 3
? `<span style="font-size:22px;color:#999">未发现攻防</span>`
: `<span style="font-size:22px;color:#999">-</span>`
} }
} }
], ],
......
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
return { return {
showFormData: [ showFormData: [
{ {
label: "质检日期", label: "接待日期",
name: "searchdate", name: "searchdate",
type: "datePicker", type: "datePicker",
isClear: false, isClear: false,
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
searchForm: { searchForm: {
searchdate: [new Date(), new Date()], searchdate: [new Date(), new Date()],
// serviceMerchantNo: "", // serviceMerchantNo: "",
BussinessType: "", BussinessType: 1,
employeeName: "", employeeName: "",
phoneNumber: "", phoneNumber: "",
// toStoreCount: [], // toStoreCount: [],
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
width: "50px" width: "50px"
}, },
{ {
label: "质检日期", label: "接待日期",
prop: "searchdate", prop: "searchdate",
width: "120px" width: "120px"
}, },
...@@ -461,10 +461,6 @@ export default { ...@@ -461,10 +461,6 @@ export default {
storeIdList: [], storeIdList: [],
sceneTypeList: [ sceneTypeList: [
{ {
id: "",
name: "全部"
},
{
id: 1, id: 1,
name: "延保" name: "延保"
}, },
...@@ -489,6 +485,7 @@ export default { ...@@ -489,6 +485,7 @@ export default {
this.getTableList() this.getTableList()
}, },
mounted() { mounted() {
this.getOptionsList()
this.getServiceStore() this.getServiceStore()
this.getSaasList() this.getSaasList()
}, },
...@@ -499,7 +496,7 @@ export default { ...@@ -499,7 +496,7 @@ export default {
currentPage: 1 currentPage: 1
}).then((res) => { }).then((res) => {
this.baseData.parkServiceList = res.list this.baseData.parkServiceList = res.list
this.getOptionsList() this.getOptionsList(true,'parkServiceList')
}) })
}, },
getServiceStore(merchantId) { getServiceStore(merchantId) {
...@@ -507,7 +504,7 @@ export default { ...@@ -507,7 +504,7 @@ export default {
yqMerchantId: merchantId yqMerchantId: merchantId
}).then((res) => { }).then((res) => {
this.baseData.storeIdList = res || [] this.baseData.storeIdList = res || []
this.getOptionsList() this.getOptionsList(true,'storeIdList')
}) })
}, },
recepDetail(row) { recepDetail(row) {
...@@ -582,9 +579,10 @@ export default { ...@@ -582,9 +579,10 @@ export default {
resolve() resolve()
}) })
}, },
getOptionsList() { getOptionsList(isAll,optionsName) {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === "select") { if (item.type === "select") {
if (isAll&&item.optionsName==optionsName) {
if ( if (
this.baseData[item.optionsName]?.length && this.baseData[item.optionsName]?.length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
...@@ -596,6 +594,8 @@ export default { ...@@ -596,6 +594,8 @@ export default {
temp[this.showFormData[index].optionLabel] = "全部" temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp) this.baseData[item.optionsName].unshift(temp)
} }
}
this.$set( this.$set(
this.showFormData[index], this.showFormData[index],
"optionList", "optionList",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!