diff --git a/src/views/modules/kpi/rule-add-or-update.vue b/src/views/modules/kpi/rule-add-or-update.vue index ef5c94e7..9235259a 100644 --- a/src/views/modules/kpi/rule-add-or-update.vue +++ b/src/views/modules/kpi/rule-add-or-update.vue @@ -14,11 +14,22 @@ placeholder="考核规则名称" clearable> - + --> + + + + + @@ -125,6 +136,7 @@ export default { kpiCycleList: [], kpiFormulaList: [], metaDataCodeList: [], + dictTypeList: [], paramAmount: 100, // 公式参数数量 dataForm: { id: '', @@ -193,6 +205,7 @@ export default { this.getKpiFormulaList() this.getMetaDataCodeList() this.getDeptTypeKeyList() + this.getDictTypeList() }, methods: { init () { @@ -253,6 +266,18 @@ export default { 1000, { leading: true, trailing: false } ), + // 获取考核类别下拉框集合 + getDictTypeList () { + this.$http + .get(`/sys/dict/listSimple/kpi_rule_code_formula`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.dictTypeList = res.data + }) + .catch(() => { }) + }, // 获取绩效考核周期下拉框集合 getKpiCycleList () { this.$http diff --git a/src/views/modules/kpi/rule.vue b/src/views/modules/kpi/rule.vue index d8d2f22d..12426c9a 100644 --- a/src/views/modules/kpi/rule.vue +++ b/src/views/modules/kpi/rule.vue @@ -45,8 +45,8 @@ label="规则名称" header-align="center" align="center"> -