diff --git a/src/style/common.less b/src/style/common.less index b18639b..f95d5c4 100644 --- a/src/style/common.less +++ b/src/style/common.less @@ -69,7 +69,7 @@ ::-webkit-scrollbar { width: 2px; - height: 2px; + height: 8px; background: #409EFF; } @@ -84,7 +84,7 @@ /*定义滑块 内阴影+圆角*/ ::-webkit-scrollbar-thumb { - border-radius: 1px; + border-radius:4px; -webkit-box-shadow: inset 0 0 2px #409EFF; background: #409EFF; } \ No newline at end of file diff --git a/src/utils/elementConfig.js b/src/utils/elementConfig.js index 0e1e3e5..e023c11 100644 --- a/src/utils/elementConfig.js +++ b/src/utils/elementConfig.js @@ -35,6 +35,7 @@ import { MenuItem, Loading, Image, + Transfer, Avatar } from 'element-ui' @@ -43,6 +44,7 @@ Vue.prototype.$message = Message Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$alert = MessageBox.alert +Vue.use(Transfer) Vue.use(Tabs) Vue.use(TabPane) Vue.use(Cascader) diff --git a/src/views/kpi/assessment/goals/index.vue b/src/views/kpi/assessment/goals/index.vue index b5039dd..73261d0 100644 --- a/src/views/kpi/assessment/goals/index.vue +++ b/src/views/kpi/assessment/goals/index.vue @@ -176,6 +176,7 @@ export default { }, async handleGetNext () { const arr = this.handleFilter(this.obj.recortModelDtos) + console.log('arr: ', arr) for (let i in arr) { if (arr[i].detailDtos.length > 0 && !arr[i].isTrue) { this.$message.error(arr[i].name + '维度内的权重和必须为' + Math.round((arr[i].weight * 100) * 1000) / 1000) @@ -185,14 +186,12 @@ export default { let res1 = await apiSaveDetail(this.obj) if (res1.code !== 200) { this.$message.error(res1.msg) - return } const obj = {status: 1, menuName: '制定了目标'} const params = Object.assign({}, {resultRecordId: this.$route.query.id || ''}, obj) let res = await apiSaveapproval(params) if (res.code !== 200) { this.$message.error(res.msg || '出错了 ') - return } this.$message({ message: res.msg, @@ -214,7 +213,7 @@ export default { num += i.isDelete !== 1 ? i.checkWeight : 0 return num }, 0) - arr.isTrue = weight === arr.weight + arr.isTrue = (Math.round((weight * 100) * 1000) / 1000) === (Math.round((arr.weight * 100) * 1000) / 1000) return Math.round((weight * 100) * 1000) / 1000 }, async handleSaveDetail (params = this.obj) { diff --git a/src/views/kpi/assessment/performance/components/table.vue b/src/views/kpi/assessment/performance/components/table.vue index 21337c0..4389fcc 100644 --- a/src/views/kpi/assessment/performance/components/table.vue +++ b/src/views/kpi/assessment/performance/components/table.vue @@ -3,13 +3,15 @@
{{child.keyResult || ''}}
@@ -51,7 +53,7 @@