|
|
@ -96,7 +96,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import mixinViewModule from '@/mixins/view-module' |
|
|
|
import AddOrUpdate from './kpimanualscore-add-or-update' |
|
|
|
import AddOrUpdate from './manualScore-add-or-update' |
|
|
|
import Cookies from 'js-cookie' |
|
|
|
import qs from 'qs' |
|
|
|
export default { |
|
|
@ -104,11 +104,11 @@ export default { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
mixinViewModuleOptions: { |
|
|
|
getDataListURL: '/kpi/kpimanualscore/page', |
|
|
|
getDataListURL: '/kpi/manualScore/page', |
|
|
|
getDataListIsPage: true, |
|
|
|
deleteURL: '/kpi/kpimanualscore', |
|
|
|
deleteURL: '/kpi/manualScore', |
|
|
|
deleteIsBatch: true, |
|
|
|
exportURL: '/kpi/kpimanualscore/exportTemplate' |
|
|
|
exportURL: '/kpi/manualScore/exportTemplate' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
ruleId: '', |
|
|
@ -127,7 +127,7 @@ export default { |
|
|
|
created () { |
|
|
|
this.getKpiManualRule() |
|
|
|
this.getKpiCycleList() |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/kpi/kpimanualscore/importManualScoreExcel?token=${Cookies.get('token')}` |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/kpi/manualScore/importManualScoreExcel?token=${Cookies.get('token')}` |
|
|
|
}, |
|
|
|
// 已绑定手动打分的考核规则 |
|
|
|
methods: { |
|
|
@ -175,7 +175,7 @@ export default { |
|
|
|
if (!scoreStartDate) { |
|
|
|
return this.$message.error('考核周期起始月不能为空') |
|
|
|
} |
|
|
|
this.$http.get(`/kpi/kpimanualscore/checkExportTemplate`, { params: paramsJson }).then(({ data: res }) => { |
|
|
|
this.$http.get(`/kpi/manualScore/checkExportTemplate`, { params: paramsJson }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |