qsh 4 weeks ago
parent d39ea3270e
commit ca10366398
  1. 5
      src/api/system/dict/dict.data.ts
  2. 10
      src/views/Kpi/Appraise/Components/DialogAppraise.vue
  3. 1
      src/views/Kpi/Score/index.vue
  4. 2
      src/views/Pers/Employee/Comp/DialogEmployee.vue

@ -47,3 +47,8 @@ export const deleteDictData = (id: number) => {
export const exportDictData = (params) => { export const exportDictData = (params) => {
return request.get({ url: '/admin-api/oa/dict-data/export', 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 } })
}

@ -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() {

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

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

Loading…
Cancel
Save