Commit 7b515071 by zhangxw

Merge branch 'SAAS+V4.54.0-0630' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.54.0-0630
2 parents 8e427752 a3cf5129
...@@ -24,11 +24,17 @@ ...@@ -24,11 +24,17 @@
{{ scope.row.score }}/{{ scope.row.sumScore }} {{ scope.row.score }}/{{ scope.row.sumScore }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="scriptRec" label="命中文本" align="center"> <el-table-column prop="processedScriptRec" label="命中文本" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip :content="scope.row.processedScriptRec" placement="top" effect="light"> <template v-if="scope.row.processedScriptRec">
<div class="text-ellipsis">{{ scope.row.processedScriptRec }}</div> <el-tooltip placement="top" effect="light">
</el-tooltip> <div slot="content" v-html="scope.row.processedScriptRec"></div>
<div class="text-ellipsis" v-html="scope.row.processedScriptRec"></div>
</el-tooltip>
</template>
<template v-else>
<div class="text-ellipsis">暂无命中文本</div>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -50,10 +56,20 @@ export default { ...@@ -50,10 +56,20 @@ export default {
}, },
computed: { computed: {
processedQualityList() { processedQualityList() {
return this.qualityData.map(item => ({ return this.qualityData.map(item => {
...item, let hitTextArr = ''
processedScriptRec: item.scriptRec?.replace(/[\[\]"]/g, '') || '' try {
})) hitTextArr = JSON.parse(item.hitText);
} catch (e) {
hitTextArr = '';
}
return {
...item,
processedScriptRec: (hitTextArr && hitTextArr.length)
? hitTextArr.map(text => text.replace(/\n/g, '<br>')).join('')
: ''
}
})
} }
}, },
mounted() { mounted() {
...@@ -114,4 +130,13 @@ export default { ...@@ -114,4 +130,13 @@ export default {
} }
} }
} }
.text-ellipsis {
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
optionsName: "mentorPhoneList" optionsName: "mentorPhoneList"
}, },
{ {
label: "基本工资", label: "底薪",
name: "basicSalary", name: "basicSalary",
type: "input", type: "input",
width: "136px", width: "136px",
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div class="info-wrap-change"> <div class="info-wrap-change">
<div class="item-box"> <div class="item-box">
<div class="info-item"> <div class="info-item">
<label>基本工资:</label> <label>底薪:</label>
<el-form-item label="" prop="baseSalary" v-if="whiteFlag"> <el-form-item label="" prop="baseSalary" v-if="whiteFlag">
<el-input <el-input
v-model="detail.baseSalary" v-model="detail.baseSalary"
......
...@@ -106,7 +106,9 @@ export default { ...@@ -106,7 +106,9 @@ export default {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
storeSearchForm: {} storeSearchForm: {
staffName: ""
}
} }
}, },
...@@ -131,7 +133,7 @@ export default { ...@@ -131,7 +133,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
console.log(this.selectedData, "---------")
this.recoverySelection() this.recoverySelection()
} }
}, },
...@@ -139,6 +141,11 @@ export default { ...@@ -139,6 +141,11 @@ export default {
} }
}, },
methods: { methods: {
clearData() {
this.storeSearchForm.staffName = ""
this.currentPage = 1
console.log(this.storeSearchForm.staffPhone)
},
checkSelectable(row, index) { checkSelectable(row, index) {
const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone) const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone)
if (obj) { if (obj) {
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
v-if="config.staffList && config.staffList.length > 0" v-if="config.staffList && config.staffList.length > 0"
> >
<el-tag <el-tag
@close="removeStaff(configIndex, staff)" @close="removeStaff(configIndex, index)"
v-for="(staff, index) in config.staffList" v-for="(staff, index) in config.staffList"
:key="configIndex + '-' + index" :key="configIndex + '-' + index"
closable closable
...@@ -336,6 +336,8 @@ export default { ...@@ -336,6 +336,8 @@ export default {
this.configIndex = index this.configIndex = index
this.getSelectingList(index) this.getSelectingList(index)
this.groupVisible = true this.groupVisible = true
this.$refs.selectTagForm.clearData && this.$refs.selectTagForm.clearData()
this.$refs.selectTagForm.getSelectingList && this.$refs.selectTagForm.getSelectingList &&
this.$refs.selectTagForm.getSelectingList() this.$refs.selectTagForm.getSelectingList()
}, },
...@@ -359,21 +361,21 @@ export default { ...@@ -359,21 +361,21 @@ export default {
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 1
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 2
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 2, assessmentType: 2,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 3
} }
], ],
staffList: [] staffList: []
...@@ -386,6 +388,7 @@ export default { ...@@ -386,6 +388,7 @@ export default {
) )
}, },
removeItem(configIndex, id) { removeItem(configIndex, id) {
console.log(configIndex, id)
const index = this.form.configList[configIndex].itemList.findIndex( const index = this.form.configList[configIndex].itemList.findIndex(
(item) => item.id === id (item) => item.id === id
) )
...@@ -486,12 +489,8 @@ export default { ...@@ -486,12 +489,8 @@ export default {
field === "maxAssessmentValue" && field === "maxAssessmentValue" &&
parseInt(item.minAssessmentValue) >= parseInt(value) parseInt(item.minAssessmentValue) >= parseInt(value)
) { ) {
this.$set( this.$set(item, "maxAssessmentValue", "")
item, // this.$message.warning("")
"maxAssessmentValue",
parseInt(item.minAssessmentValue) + 1
)
this.$message.warning("最大值必须大于最小值")
} }
}, },
// 验证百分比输入 // 验证百分比输入
...@@ -675,7 +674,7 @@ export default { ...@@ -675,7 +674,7 @@ export default {
opacity: 1; opacity: 1;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
background: #e8e8e8; background: #e8e8e8;
color: #666666; color: #2a58ad;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!