|
|
|
@ -14,11 +14,22 @@ |
|
|
|
placeholder="考核规则名称" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="考核规则编码" |
|
|
|
<!-- <el-form-item label="考核类别" |
|
|
|
prop="ruleCode"> |
|
|
|
<el-input v-model="dataForm.ruleCode" |
|
|
|
placeholder="考核规则编码" |
|
|
|
placeholder="考核类别" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="考核类别" |
|
|
|
prop="ruleCode"> |
|
|
|
<el-select v-model="dataForm.ruleCode" |
|
|
|
placeholder="考核周期"> |
|
|
|
<el-option v-for="item in dictTypeList" |
|
|
|
:key="item.dictValue" |
|
|
|
:label="item.dictName" |
|
|
|
:value="item.dictValue"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="考核周期" |
|
|
|
prop="kpiCycle"> |
|
|
|
@ -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 |
|
|
|
|