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