|
|
|
@ -2,6 +2,14 @@ |
|
|
|
<el-card shadow="never" class="aui-card--fill"> |
|
|
|
<div class="mod-kpi__kpimanualscore}"> |
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
|
<el-form-item label="所属机构"> |
|
|
|
<el-cascader |
|
|
|
v-model="deptIdList" |
|
|
|
:options="options" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
clearable |
|
|
|
></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="考核规则名称"> |
|
|
|
<el-select clearable v-model="dataForm.ruleId"> |
|
|
|
<el-option |
|
|
|
@ -108,7 +116,13 @@ export default { |
|
|
|
faultDataVisible: false, |
|
|
|
errordataList: [], |
|
|
|
kpiManualRuleList: [], // 已绑定手动打分的考核规则列表 |
|
|
|
kpiCycleList: []// 考核周期字典表值 |
|
|
|
kpiCycleList: [], // 考核周期字典表值 |
|
|
|
// 所属机构配置 |
|
|
|
deptIdList: [], |
|
|
|
options: [], |
|
|
|
streetList: [], |
|
|
|
communityList: [], |
|
|
|
gridList: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -118,6 +132,16 @@ export default { |
|
|
|
this.getKpiManualRule() |
|
|
|
this.getKpiCycleList() |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/kpi/manualScore/importManualScoreExcel?token=${Cookies.get('token')}` |
|
|
|
// 所属机构创建 |
|
|
|
this.$http |
|
|
|
.get(`/sys/user/deptOptions/getByLoginUser`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
// 已绑定手动打分的考核规则 |
|
|
|
methods: { |
|
|
|
@ -197,6 +221,30 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'deptIdList': function (val) { |
|
|
|
if (val.length === 0) { |
|
|
|
this.dataForm.streetId = '' |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
if (val.length === 1) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
if (val.length === 2) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = this.deptIdList[1] |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
if (val.length === 3) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = this.deptIdList[1] |
|
|
|
this.dataForm.gridId = this.deptIdList[2] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|