sc
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="form.effectiveDate"
|
v-model="form.effectiveDate"
|
||||||
type="date"
|
type="date"
|
||||||
|
:disabled="form.id"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
placeholder="选择日期时间"
|
placeholder="选择日期时间"
|
||||||
@@ -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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user