This commit is contained in:
qsh
2024-12-23 17:51:29 +08:00
parent d39ea3270e
commit ca10366398
4 changed files with 13 additions and 5 deletions

View File

@@ -47,3 +47,8 @@ export const deleteDictData = (id: number) => {
export const exportDictData = (params) => {
return request.get({ url: '/admin-api/oa/dict-data/export', params })
}
// 获取通用字典数据
export const getGeneralSysDictData = (dictType: string) => {
return request.get({ url: '/admin-api/system/dict-data/get-by-type', params: { dictType } })
}

View File

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

View File

@@ -154,7 +154,6 @@ async function getList() {
}
]
list.value = data
peroidSaved.value = !peroidSaved.value
} finally {
loading.value = false
}

View File

@@ -245,7 +245,7 @@ function getOptions() {
getPlanSimpleList().then((data) => {
attendanceSettingIdOptions.value = data
})
EmployeeApi.getEmployeeSimpleList({ status: 0 }).then((data) => {
EmployeeApi.getEmployeeSimpleList().then((data) => {
employeeOptions.value = data
})
}