From b25c778e3cfaa5b6870156b4bf4fd2b11f5fe690 Mon Sep 17 00:00:00 2001 From: xiongchengqiang Date: Tue, 8 Dec 2020 19:08:55 +0800 Subject: [PATCH] youhua --- src/utils/elementConfig.js | 78 ++++----- src/views/kpi/assessment/goals/index.vue | 148 ++++++++++++++---- .../components/UseButton/index.vue | 4 +- 3 files changed, 161 insertions(+), 69 deletions(-) diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index e023c11..5c676c5 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -1,42 +1,43 @@ import Vue from 'vue' import { - Button, - MessageBox, - Message, - Table, - TableColumn, - Form, - FormItem, - Input, - Select, - Option, - RadioGroup, - DatePicker, - CheckboxGroup, - Switch, - TimePicker, - Row, - Col, - Checkbox, - Radio, - Dropdown, - DropdownMenu, - DropdownItem, - Dialog, - Tree, - Tag, - Tooltip, - Popover, - Pagination, - Cascader, - Tabs, - TabPane, - Menu, - MenuItem, - Loading, - Image, - Transfer, - Avatar + Button, + MessageBox, + Message, + Table, + TableColumn, + Form, + FormItem, + Input, + Select, + Option, + RadioGroup, + DatePicker, + CheckboxGroup, + Switch, + TimePicker, + Row, + Col, + Checkbox, + Radio, + Dropdown, + DropdownMenu, + DropdownItem, + Dialog, + Tree, + Tag, + Tooltip, + Popover, + Pagination, + Cascader, + Tabs, + TabPane, + Menu, + MenuItem, + Loading, + Image, + Transfer, + Avatar, + Progress } from 'element-ui' Vue.prototype.$loading = Loading @@ -44,6 +45,7 @@ Vue.prototype.$message = Message Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$alert = MessageBox.alert +Vue.use(Progress) Vue.use(Transfer) Vue.use(Tabs) Vue.use(TabPane) @@ -78,4 +80,4 @@ Vue.use(Cascader) Vue.use(Menu) Vue.use(MenuItem) Vue.use(Image) -Vue.use(Avatar) +Vue.use(Avatar) \ No newline at end of file diff --git a/src/views/kpi/assessment/goals/index.vue b/src/views/kpi/assessment/goals/index.vue index ea3956e..95cda75 100644 --- a/src/views/kpi/assessment/goals/index.vue +++ b/src/views/kpi/assessment/goals/index.vue @@ -18,15 +18,16 @@ :name="String(i.id)">
- 指标名称 + 指标名称 考核标准 - 权重 - 操作 + 进度 + 权重 + 操作
+ class="zanwu goals-content-tabbar-table-content commonFont items"> 暂无指标
-
{{j.target}}
-
-
{{j.keyResult}}
+
+
{{j.target}}
+
+
{{j.keyResult}}
+
+
+ +
+
{{ Math.round((j.checkWeight * 100)*1000)/1000}}%
+
+ + 添加任务 + + + 编辑 + + + 删除 + +
-
{{ Math.round((j.checkWeight * 100)*1000)/1000}}%
-
- - 编辑 - - - 删除 - +
+
ss
+
+ + 编辑 + + + 删除 + +
@@ -79,6 +106,35 @@
+ +
+ + + + + + + + + + +
+
!i.isDelete).length : 0 }, @@ -453,18 +525,36 @@ export default { } } &-content { - display: flex; - padding: 20px 0; // align-items: center; // height: 60px; - border-bottom: 1px solid @borderColor; - justify-content: space-between; - div { - padding: 0 0 0 20px; + &-top { + border-bottom: 1px solid @borderColor; + display: flex; + align-items: center; + justify-content: flex-end; + padding: 20px 0; + > div { + padding: 0 0 0 20px; + } + } + &-bottom { + padding: 10px 20px 10px 0; + border-bottom: 1px solid @borderColor; + display: flex; + align-items: center; + justify-content: space-between; + margin: 0 0 0 20px; + > div { + flex-shrink: 0; + } } } } } } + .zanwu { + .center(); + padding: 20px 0; + } } diff --git a/src/views/kpi/assessment/performance/components/UseButton/index.vue b/src/views/kpi/assessment/performance/components/UseButton/index.vue index 93e9267..c477bdd 100644 --- a/src/views/kpi/assessment/performance/components/UseButton/index.vue +++ b/src/views/kpi/assessment/performance/components/UseButton/index.vue @@ -338,7 +338,7 @@ export default { } } - const obj = { status: 1, menuName: '同意了' } + const obj = { status: 1, menuName: '同意了', comment: form.comment } const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj) let res = await apiSaveapproval(params) if (res.code !== 200) { @@ -356,7 +356,7 @@ export default { type: 'success' }) this.dialogFormVisible = false - // history.go(0) + history.go(0) }, // 驳回 handleBohui () {