diff --git a/src/views/modules/kpi/rule-add-or-update.vue b/src/views/modules/kpi/rule-add-or-update.vue index 9235259a..66e6957c 100644 --- a/src/views/modules/kpi/rule-add-or-update.vue +++ b/src/views/modules/kpi/rule-add-or-update.vue @@ -14,16 +14,10 @@ placeholder="考核规则名称" clearable> - + placeholder="考核类别"> - - - - + + + + - + + + + + + - - - + + + @@ -65,7 +74,8 @@ export default { referenceId: '', // 关联的手动打分项 kpiCycle: '', // 考核周期来源于选择的手动打分项 deptTypeKey: '' // 考核部门类别来源于选择的手动打分项 - } + }, + dictTypeList: [], } }, computed: { @@ -97,6 +107,7 @@ export default { }, created () { this.getKpiManualScoreList() + this.getDictTypeList() }, methods: { init () { @@ -121,7 +132,19 @@ export default { ...res.data } }) - .catch(() => {}) + .catch(() => { }) + }, + // 获取考核类别下拉框集合 + getDictTypeList () { + this.$http + .get(`/sys/dict/listSimple/kpi_rule_code_manual_score`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.dictTypeList = res.data + }) + .catch(() => { }) }, // 表单提交 dataFormSubmitHandle: debounce( @@ -148,7 +171,7 @@ export default { } }) }) - .catch(() => {}) + .catch(() => { }) }) }, 1000, @@ -164,7 +187,7 @@ export default { } this.kpiManualScoreList = res.data }) - .catch(() => {}) + .catch(() => { }) }, // 关联的手动打分改变 handlereference (referenceId) {