# Conflicts:
#	.env.base
dev-cl
caolin 3 weeks ago
commit 6d83198a9f
  1. 11
      src/views/Kpi/Appraise/Components/DialogAppraise.vue
  2. 3
      src/views/Kpi/Score/index.vue

@ -11,6 +11,7 @@
<el-form-item label="生效日期" prop="effectiveDate"> <el-form-item label="生效日期" prop="effectiveDate">
<el-date-picker <el-date-picker
v-model="form.effectiveDate" v-model="form.effectiveDate"
:disabled="form.id"
type="date" type="date"
format="YYYY-MM-DD" format="YYYY-MM-DD"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
@ -150,15 +151,17 @@ async function open(type, val) {
} }
} }
getOptions() getOptions()
const checkedCount = form.value.examinedUserIdList?.length || 0
isIndeterminate.value = checkedCount > 0 && checkedCount < employeeOptions.value.length
} }
function getOptions() { function getOptions() {
KpiApi.getKpiEmployees().then((data) => { KpiApi.getKpiEmployees().then((data) => {
employeeOptions.value = data employeeOptions.value = data
handleCheckAllChange(true) if (formType.value == 'update') {
checkAll.value = true handleCheckedChange(form.value.examinedUserIdList)
} else {
handleCheckAllChange(true)
checkAll.value = true
}
}) })
} }

@ -198,7 +198,8 @@ function getSummaries({ columns, data }) {
const values = data.map((item) => Number(item[column.property])) const values = data.map((item) => Number(item[column.property]))
if (!values.every((value) => Number.isNaN(value))) { if (!values.every((value) => Number.isNaN(value))) {
if (column.property == 'weightSocre') { if (column.property == 'weightSocre') {
sums[index] = 5.6 const employee = employeeOptions.value.find((it) => it.examinedUser == employeeId.value)
sums[index] = employee.scoreTotal + '分'
} else { } else {
sums[index] = '' sums[index] = ''
} }

Loading…
Cancel
Save