|
|
@ -24,9 +24,8 @@ |
|
|
|
<el-form-item label="模式" prop="type"> |
|
|
|
<el-form-item label="模式" prop="type"> |
|
|
|
<el-radio-group v-model="form.type"> |
|
|
|
<el-radio-group v-model="form.type"> |
|
|
|
<el-radio :label="1"> 加总分 </el-radio> |
|
|
|
<el-radio :label="1"> 加总分 </el-radio> |
|
|
|
<el-radio :label="2"> 加权重分 </el-radio> |
|
|
|
<el-radio :label="2"> 减总分 </el-radio> |
|
|
|
<el-radio :label="3"> 减总分 </el-radio> |
|
|
|
<el-radio :label="3"> 权重分 </el-radio> |
|
|
|
<el-radio :label="4"> 减权重分 </el-radio> |
|
|
|
|
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
@ -109,6 +108,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script setup name="DialogAppraise"> |
|
|
|
<script setup name="DialogAppraise"> |
|
|
|
import * as KpiApi from '@/api/kpi/index.js' |
|
|
|
import * as KpiApi from '@/api/kpi/index.js' |
|
|
|
|
|
|
|
import { getGeneralSysDictData } from '@/api/system/dict/dict.data' |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -144,12 +144,16 @@ async function open(type, val) { |
|
|
|
isIndeterminate.value = checkedCount > 0 && checkedCount < employeeOptions.value.length |
|
|
|
isIndeterminate.value = checkedCount > 0 && checkedCount < employeeOptions.value.length |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const kpiModeOoptions = ref([]) |
|
|
|
function getOptions() { |
|
|
|
function getOptions() { |
|
|
|
KpiApi.getKpiEmployees().then((data) => { |
|
|
|
KpiApi.getKpiEmployees().then((data) => { |
|
|
|
employeeOptions.value = data |
|
|
|
employeeOptions.value = data |
|
|
|
handleCheckAllChange(true) |
|
|
|
handleCheckAllChange(true) |
|
|
|
checkAll.value = true |
|
|
|
checkAll.value = true |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
getGeneralSysDictData('message_type').then((data) => { |
|
|
|
|
|
|
|
kpiModeOoptions.value = data |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function resetForm() { |
|
|
|
function resetForm() { |
|
|
|