From 61b7630d7ef83818dcb3bb42a3ea9fb82866684e Mon Sep 17 00:00:00 2001 From: sean yu Date: Tue, 27 Oct 2020 09:34:29 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=A9=E6=95=88?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report.js | 19 ++ src/utils/elementConfig.js | 57 +++--- src/views/kpi/report/index.vue | 337 ++++++++++++++++++++++++++++++++- 3 files changed, 375 insertions(+), 38 deletions(-) create mode 100644 src/api/report.js diff --git a/src/api/report.js b/src/api/report.js new file mode 100644 index 0000000..f55e9c5 --- /dev/null +++ b/src/api/report.js @@ -0,0 +1,19 @@ +import requestFuc from '@/utils/request' + +// 获取考核组列表 +export function getChartData(query) { + return requestFuc({ + url: '/lz_management/performance/chart/result', + method: 'POST', + data: query + }) +} + +// 获取绩效排名 +export function getStartsData(query) { + return requestFuc({ + url: '/lz_management/performance/chart/starts', + method: 'POST', + data: query + }) +} diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index 619f564..2fc0605 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -1,33 +1,33 @@ import Vue from 'vue' import { - Button, - MessageBox, - Message, - Table, - TableColumn, - Form, - FormItem, - Input, - Select, - Option, - RadioGroup, - DatePicker, - CheckboxGroup, - Switch, - TimePicker, - Col, - Checkbox, - Radio, - Dropdown, - DropdownMenu, - DropdownItem, - Dialog, - Tree, - Tag, - Tooltip, - Popover, - Pagination - + Button, + MessageBox, + Message, + Table, + TableColumn, + Form, + FormItem, + Input, + Select, + Option, + RadioGroup, + DatePicker, + CheckboxGroup, + Switch, + TimePicker, + Col, + Checkbox, + Radio, + Dropdown, + DropdownMenu, + DropdownItem, + Dialog, + Tree, + Tag, + Tooltip, + Popover, + Pagination, + Cascader } from 'element-ui' Vue.prototype.$message = Message @@ -59,3 +59,4 @@ Vue.use(Radio) Vue.use(Dropdown) Vue.use(DropdownMenu) Vue.use(DropdownItem) +Vue.use(Cascader) diff --git a/src/views/kpi/report/index.vue b/src/views/kpi/report/index.vue index b5848ca..cb1cdf1 100644 --- a/src/views/kpi/report/index.vue +++ b/src/views/kpi/report/index.vue @@ -1,27 +1,344 @@ From c51d447277b76eb36c9ffa431b979c4c32683f8d Mon Sep 17 00:00:00 2001 From: leave <> Date: Tue, 27 Oct 2020 10:01:38 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=BB=84=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=8D=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/dev.env.js | 2 +- src/utils/elementConfig.js | 6 ++- src/views/kpi/set/index.vue | 45 +++++++++++++++---- .../workbench/initiateAssessment/index.vue | 31 +++++++++---- 4 files changed, 65 insertions(+), 19 deletions(-) diff --git a/config/dev.env.js b/config/dev.env.js index e96e9ab..7323355 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,5 +4,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', - PROXY:false + PROXY: false, }) diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index 619f564..41aee44 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -26,7 +26,9 @@ import { Tag, Tooltip, Popover, - Pagination + Pagination, + Menu, + MenuItem } from 'element-ui' @@ -59,3 +61,5 @@ Vue.use(Radio) Vue.use(Dropdown) Vue.use(DropdownMenu) Vue.use(DropdownItem) +Vue.use(Menu) +Vue.use(MenuItem) diff --git a/src/views/kpi/set/index.vue b/src/views/kpi/set/index.vue index 2deeb4a..32d701b 100644 --- a/src/views/kpi/set/index.vue +++ b/src/views/kpi/set/index.vue @@ -1,27 +1,54 @@ - diff --git a/src/views/kpi/workbench/initiateAssessment/index.vue b/src/views/kpi/workbench/initiateAssessment/index.vue index d26d9f9..2e185aa 100644 --- a/src/views/kpi/workbench/initiateAssessment/index.vue +++ b/src/views/kpi/workbench/initiateAssessment/index.vue @@ -100,7 +100,7 @@
{ + if (this.formData.assessmentList.length > 0) { + this.formData.assessmentList.forEach((row) => { + this.$refs.popupMultipleTable.toggleRowSelection(row, true) + }) + } + }) + }, + getRowKeys (row) { + return row.id }, handleGroupDelete (index, rows) { console.log('删除----', rows) @@ -256,7 +272,6 @@ export default { console.log('提交') this.$refs['formData'].validate((val) => { this.dialogSendVisible = val - console.log('1111111111111111') }) }, handleDialogSend () { @@ -266,8 +281,7 @@ export default { }) let para = { cycleType: this.formData.cycleTimeType, - groupIds: '24', - // groupIds: groupIdList.join(), + groupIds: groupIdList.join(), name: this.formData.mergeType.name } if (this.formData.cycleTimeType === 0) { @@ -291,8 +305,9 @@ export default { this.handleGainAssessmentGroupList() }, handleSelectionChange (val) { - // 全选 + // 选择发生变化 this.popupData.selectedList = val + console.log('选择发生变化 ', val) }, handlePopupCreat () { this.showChooseList = false @@ -300,9 +315,9 @@ export default { this.$router.push({ name: 'workbench-edit-group' }) }, handleSubmitPopup () { - this.showChooseList = false const list = this.popupData.selectedList this.formData.assessmentList = this.popupData.selectedList + this.showChooseList = false }, handleCurrentChange (val) { this.handleGainAssessmentGroupList(val) From 55f766dd85efd4b07dd25bbe268f6d74d3c87dc8 Mon Sep 17 00:00:00 2001 From: leave <> Date: Tue, 27 Oct 2020 10:13:53 +0800 Subject: [PATCH 3/4] no message --- src/utils/elementConfig.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index 7721383..0c25678 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -27,7 +27,9 @@ import { Tooltip, Popover, Pagination, - Cascader + Cascader, + Menu, + MenuItem } from 'element-ui' Vue.prototype.$message = Message @@ -61,3 +63,5 @@ Vue.use(Dropdown) Vue.use(DropdownMenu) Vue.use(DropdownItem) Vue.use(Cascader) +Vue.use(Menu) +Vue.use(MenuItem) From a332fdcd7437776663688f56cd3dbe9fe5f0d43e Mon Sep 17 00:00:00 2001 From: sean yu Date: Tue, 27 Oct 2020 10:47:21 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report.js | 24 +++++++-------- src/utils/elementConfig.js | 56 +++++++++++++++++----------------- src/views/kpi/report/index.vue | 52 +++++++++++++++---------------- 3 files changed, 66 insertions(+), 66 deletions(-) diff --git a/src/api/report.js b/src/api/report.js index f55e9c5..8232342 100644 --- a/src/api/report.js +++ b/src/api/report.js @@ -1,19 +1,19 @@ import requestFuc from '@/utils/request' // 获取考核组列表 -export function getChartData(query) { - return requestFuc({ - url: '/lz_management/performance/chart/result', - method: 'POST', - data: query - }) +export function getChartData (query) { + return requestFuc({ + url: '/lz_management/performance/chart/result', + method: 'POST', + data: query + }) } // 获取绩效排名 -export function getStartsData(query) { - return requestFuc({ - url: '/lz_management/performance/chart/starts', - method: 'POST', - data: query - }) +export function getStartsData (query) { + return requestFuc({ + url: '/lz_management/performance/chart/starts', + method: 'POST', + data: query + }) } diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index 7721383..1b98029 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -1,33 +1,33 @@ import Vue from 'vue' import { - Button, - MessageBox, - Message, - Table, - TableColumn, - Form, - FormItem, - Input, - Select, - Option, - RadioGroup, - DatePicker, - CheckboxGroup, - Switch, - TimePicker, - Col, - Checkbox, - Radio, - Dropdown, - DropdownMenu, - DropdownItem, - Dialog, - Tree, - Tag, - Tooltip, - Popover, - Pagination, - Cascader + Button, + MessageBox, + Message, + Table, + TableColumn, + Form, + FormItem, + Input, + Select, + Option, + RadioGroup, + DatePicker, + CheckboxGroup, + Switch, + TimePicker, + Col, + Checkbox, + Radio, + Dropdown, + DropdownMenu, + DropdownItem, + Dialog, + Tree, + Tag, + Tooltip, + Popover, + Pagination, + Cascader } from 'element-ui' Vue.prototype.$message = Message diff --git a/src/views/kpi/report/index.vue b/src/views/kpi/report/index.vue index cb1cdf1..1523c54 100644 --- a/src/views/kpi/report/index.vue +++ b/src/views/kpi/report/index.vue @@ -88,8 +88,8 @@