Commit 985dc4c9 by 王志慧

解决代码合并覆盖问题

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