优化
This commit is contained in:
parent
eb1697ea32
commit
4543ccfc18
@ -37,7 +37,8 @@ import {
|
|||||||
Image,
|
Image,
|
||||||
Transfer,
|
Transfer,
|
||||||
Avatar,
|
Avatar,
|
||||||
Progress
|
Progress,
|
||||||
|
Drawer
|
||||||
} from 'element-ui'
|
} from 'element-ui'
|
||||||
|
|
||||||
Vue.prototype.$loading = Loading
|
Vue.prototype.$loading = Loading
|
||||||
@ -45,6 +46,7 @@ Vue.prototype.$message = Message
|
|||||||
Vue.prototype.$confirm = MessageBox.confirm
|
Vue.prototype.$confirm = MessageBox.confirm
|
||||||
Vue.prototype.$alert = MessageBox.alert
|
Vue.prototype.$alert = MessageBox.alert
|
||||||
|
|
||||||
|
Vue.use(Drawer)
|
||||||
Vue.use(Progress)
|
Vue.use(Progress)
|
||||||
Vue.use(Transfer)
|
Vue.use(Transfer)
|
||||||
Vue.use(Tabs)
|
Vue.use(Tabs)
|
||||||
|
|||||||
@ -316,7 +316,9 @@ export default {
|
|||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.formTask = Object.assign({}, item)
|
this.formTask = Object.assign({}, item)
|
||||||
this.editItem = item
|
this.editItem = item
|
||||||
|
this.taskTitle = '编辑任务'
|
||||||
} else {
|
} else {
|
||||||
|
this.taskTitle = '添加任务'
|
||||||
this.formTask = {
|
this.formTask = {
|
||||||
name: '',
|
name: '',
|
||||||
process: '0',
|
process: '0',
|
||||||
|
|||||||
69
src/views/kpi/assessment/performance/components/process.vue
Normal file
69
src/views/kpi/assessment/performance/components/process.vue
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<!-- -->
|
||||||
|
<template>
|
||||||
|
<div class="drawer">
|
||||||
|
<el-drawer title="任务详情"
|
||||||
|
:visible.sync="drawer"
|
||||||
|
direction="btt"
|
||||||
|
:before-close="handleClose">
|
||||||
|
<div class="drawer-content">
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
<div style="height:300px;">pppp</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</el-drawer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
drawer: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
beforeMount () { },
|
||||||
|
mounted () { },
|
||||||
|
methods: {
|
||||||
|
handleClose () {
|
||||||
|
this.$emit("update:drawer", false)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style lang="less">
|
||||||
|
.el-drawer {
|
||||||
|
border-radius: 12px 12px 0 0 !important;
|
||||||
|
height: 80% !important;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.el-drawer__header {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.el-drawer__body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang='less'>
|
||||||
|
.drawer {
|
||||||
|
&-content {
|
||||||
|
padding: 20px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -5,6 +5,7 @@
|
|||||||
<div class="table-header">
|
<div class="table-header">
|
||||||
<div class="title table-left weidu">维度</div>
|
<div class="title table-left weidu">维度</div>
|
||||||
<div class="title table-header-flex name">名称</div>
|
<div class="title table-header-flex name">名称</div>
|
||||||
|
<div class="title table-header-flex jindu">进度</div>
|
||||||
<div class="title table-header-flex kaohe">考核标准</div>
|
<div class="title table-header-flex kaohe">考核标准</div>
|
||||||
<div class="title table-header-flex jieguo"
|
<div class="title table-header-flex jieguo"
|
||||||
v-if="tableInfo.result || tableAuth.showResult">结果值</div>
|
v-if="tableInfo.result || tableAuth.showResult">结果值</div>
|
||||||
@ -41,6 +42,17 @@
|
|||||||
<div class="name"
|
<div class="name"
|
||||||
v-html="i.target">
|
v-html="i.target">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="jindu">
|
||||||
|
<el-progress type="circle"
|
||||||
|
:width='40'
|
||||||
|
:stroke-width='4'
|
||||||
|
:percentage="25"></el-progress>
|
||||||
|
<el-button type="text"
|
||||||
|
@click="handleLookProcess"
|
||||||
|
size="mini">
|
||||||
|
查看任务
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
<div class="kaohe pre">
|
<div class="kaohe pre">
|
||||||
<pre>
|
<pre>
|
||||||
{{i.keyResult}}o7
|
{{i.keyResult}}o7
|
||||||
@ -106,6 +118,9 @@
|
|||||||
<div class="name">
|
<div class="name">
|
||||||
--
|
--
|
||||||
</div>
|
</div>
|
||||||
|
<div class="jindu">
|
||||||
|
暂无进度
|
||||||
|
</div>
|
||||||
<div class="kaohe">
|
<div class="kaohe">
|
||||||
--
|
--
|
||||||
</div>
|
</div>
|
||||||
@ -163,10 +178,12 @@
|
|||||||
<div v-if="scoreListForParams.length>0"
|
<div v-if="scoreListForParams.length>0"
|
||||||
class="commonFont"
|
class="commonFont"
|
||||||
style="font-size:12px;margin:10px 0;">{{handleGetAllScore(scoreListForParams)}}</div>
|
style="font-size:12px;margin:10px 0;">{{handleGetAllScore(scoreListForParams)}}</div>
|
||||||
|
<process :drawer.sync='drawer' />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { apiSaveDetail, apiGet375, apiSaveapproval } from '@/api/assessment'
|
import { apiSaveDetail, apiGet375, apiSaveapproval } from '@/api/assessment'
|
||||||
|
import process from './process.vue';
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -198,6 +215,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
drawer: false,
|
||||||
loadingTi: false,
|
loadingTi: false,
|
||||||
loadingZan: false,
|
loadingZan: false,
|
||||||
input: '',
|
input: '',
|
||||||
@ -208,6 +226,9 @@ export default {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
components: {
|
||||||
|
process
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
scoreListForParams () {
|
scoreListForParams () {
|
||||||
@ -261,6 +282,9 @@ export default {
|
|||||||
this.handleGrt375()
|
this.handleGrt375()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleLookProcess () {
|
||||||
|
this.drawer = true
|
||||||
|
},
|
||||||
handleGetAllScore (arr) {
|
handleGetAllScore (arr) {
|
||||||
const result = arr.reduce((result, item) => {
|
const result = arr.reduce((result, item) => {
|
||||||
result += Number(item.Score)
|
result += Number(item.Score)
|
||||||
@ -337,6 +361,11 @@ export default {
|
|||||||
width: 200px;
|
width: 200px;
|
||||||
.center();
|
.center();
|
||||||
}
|
}
|
||||||
|
.jindu {
|
||||||
|
width: 60px;
|
||||||
|
.center();
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
.kaohe {
|
.kaohe {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user