1.0.2版本修改完成待测试
This commit is contained in:
parent
0a731eae63
commit
9454be3613
@ -462,6 +462,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
console.log(this.menuMngCheckAll)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleGetChildeModel (type) {
|
handleGetChildeModel (type) {
|
||||||
let modelStr = ''
|
let modelStr = ''
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
<!-- 撤回 -->
|
|
||||||
<template>
|
|
||||||
<div class="ReCall">
|
|
||||||
<div class="ReCall-title commonFont">由谁撤回:</div>
|
|
||||||
<div class="commonFont">执行人:<el-radio v-model="form.optType" :label="-1">被考核人</el-radio></div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: ['info'],
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
form: {
|
|
||||||
optType: -1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
beforeMount () {},
|
|
||||||
mounted () {
|
|
||||||
const params = JSON.parse(JSON.stringify(this.info))
|
|
||||||
params.chartDetails.status = 1
|
|
||||||
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
|
||||||
this.$emit('update:info', params)
|
|
||||||
},
|
|
||||||
methods: {},
|
|
||||||
watch: {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang='less' scoped>
|
|
||||||
.ReCall{
|
|
||||||
&-title{
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -60,7 +60,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding:20px 0 0 0 " v-for="i in itemInfo.roleDtos" :key="i.id">
|
<div style="padding:20px 0 0 0 " v-for="i in itemInfo.roleDtos" :key="i.id">
|
||||||
<el-checkbox v-if="i.type !== 1" @change="handleChang(i)" v-model="i.checked">{{i.roleName}}</el-checkbox>
|
<el-checkbox v-if="i.roleGroupId === 0" @change="handleChang(i)" v-model="i.checked">{{i.roleName}}</el-checkbox>
|
||||||
|
<div v-else>
|
||||||
|
<el-checkbox @change="handleChang(i)" v-model="i.checked">{{i.roleName}}</el-checkbox>
|
||||||
|
<el-checkbox-group
|
||||||
|
class="popup-menu-mange-group"
|
||||||
|
v-model="i.checkMenu"
|
||||||
|
v-if="i.checked">
|
||||||
|
<el-checkbox v-for="b in i.roleDtos" :key="b.id" :label="b.id" @change="handleGroupItemChang(i, b)" v-model="b.checked">{{b.roleName}}</el-checkbox>
|
||||||
|
</el-checkbox-group>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -142,7 +151,19 @@ export default {
|
|||||||
i = Object.assign({}, this.handleOptType(i), i)
|
i = Object.assign({}, this.handleOptType(i), i)
|
||||||
i.isActive = i.optType === 0 ? 0 : 1
|
i.isActive = i.optType === 0 ? 0 : 1
|
||||||
i.roleDtos = JSON.parse(JSON.stringify(this.roleDtos)).map(j => {
|
i.roleDtos = JSON.parse(JSON.stringify(this.roleDtos)).map(j => {
|
||||||
|
j.checkMenu = []
|
||||||
|
if (j.roleGroupId === 0) {
|
||||||
j.checked = i.roleIds ? i.roleIds.includes(String(j.roleId)) : false
|
j.checked = i.roleIds ? i.roleIds.includes(String(j.roleId)) : false
|
||||||
|
} else {
|
||||||
|
j.roleDtos.map(d => {
|
||||||
|
d.checkMenu = []
|
||||||
|
d.checked = i.roleIds ? i.roleIds.includes(String(d.roleId)) : false
|
||||||
|
if (d.checked) {
|
||||||
|
j.checked = true
|
||||||
|
j.checkMenu.push(d.id)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
return j
|
return j
|
||||||
})
|
})
|
||||||
return i
|
return i
|
||||||
@ -178,7 +199,28 @@ export default {
|
|||||||
return item.list.length > 0 ? (item.title + '等' + item.list.length + '人') : '指定成员'
|
return item.list.length > 0 ? (item.title + '等' + item.list.length + '人') : '指定成员'
|
||||||
// itemInfo.list.list.length===0?(itemInfo.list.title + '等' + itemInfo.list.list.length + '人' ):"未指定成员"
|
// itemInfo.list.list.length===0?(itemInfo.list.title + '等' + itemInfo.list.list.length + '人' ):"未指定成员"
|
||||||
},
|
},
|
||||||
|
handleGroupItemChang (group, item) {
|
||||||
|
},
|
||||||
handleChang (item) {
|
handleChang (item) {
|
||||||
|
if (item.roleGroupId !== 0 && item.roleId === 0) {
|
||||||
|
if (item.checked) {
|
||||||
|
if (item.checkMenu.length === 0) {
|
||||||
|
// 全选
|
||||||
|
item.roleDtos.map(d => {
|
||||||
|
d.checked = true
|
||||||
|
item.checkMenu.push(d.id)
|
||||||
|
return d
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 去掉选择
|
||||||
|
item.checkMenu = []
|
||||||
|
item.roleDtos.map(d => {
|
||||||
|
d.checked = false
|
||||||
|
return d
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleChoose (item) {
|
handleChoose (item) {
|
||||||
this.itemInfo.isShow = true
|
this.itemInfo.isShow = true
|
||||||
@ -216,7 +258,15 @@ export default {
|
|||||||
label: '权重评分:0%',
|
label: '权重评分:0%',
|
||||||
weight1: a.length < 2 ? 100 : 0,
|
weight1: a.length < 2 ? 100 : 0,
|
||||||
roleDtos: JSON.parse(JSON.stringify(this.roleDtos.map(i => {
|
roleDtos: JSON.parse(JSON.stringify(this.roleDtos.map(i => {
|
||||||
if (i.type !== 1) i.checked = true
|
i.checked = true
|
||||||
|
if (i.roleGroupId !== 0 && i.roleId === 0) {
|
||||||
|
// 分组全选
|
||||||
|
i.checkMenu = []
|
||||||
|
i.roleDtos.map(d => {
|
||||||
|
d.checked = true
|
||||||
|
i.checkMenu.push(d.id)
|
||||||
|
})
|
||||||
|
}
|
||||||
return i
|
return i
|
||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
@ -259,7 +309,15 @@ export default {
|
|||||||
n.map(i => {
|
n.map(i => {
|
||||||
i.roleIds = ''
|
i.roleIds = ''
|
||||||
i.roleDtos.map(j => {
|
i.roleDtos.map(j => {
|
||||||
if (j.type !== 1 && j.checked) i.roleIds += j.roleId + ','
|
if (j.roleGroupId === 0) {
|
||||||
|
if (j.checked) {
|
||||||
|
i.roleIds += j.roleId + ','
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (j.checkMenu.length > 0) {
|
||||||
|
i.roleIds += j.checkMenu.toString() + ','
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
i.roleIds = i.roleIds.substring(0, i.roleIds.length - 1)
|
i.roleIds = i.roleIds.substring(0, i.roleIds.length - 1)
|
||||||
i.label = '权重评分:' + i.weight1 + '%'
|
i.label = '权重评分:' + i.weight1 + '%'
|
||||||
@ -392,5 +450,10 @@ export default {
|
|||||||
&-center{
|
&-center{
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
.popup-menu-mange-group {
|
||||||
|
width: 600px;
|
||||||
|
padding: 5px 15px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="noInfo" class="process-content">
|
<div v-if="noInfo" class="process-content">
|
||||||
<!-- {{isActive}} -->
|
<!-- {{isActive}} -->
|
||||||
<ReCall v-show="isActive==='撤回'" :info.sync='info.ReCallInfo'/>
|
|
||||||
<ToDevelop v-show="isActive==='目标制定'" :info.sync='info.ToDevelopInfo'/>
|
<ToDevelop v-show="isActive==='目标制定'" :info.sync='info.ToDevelopInfo'/>
|
||||||
<Confirm v-show="isActive==='目标确认'" :info.sync='info.ConfirmInfo'/>
|
<Confirm v-show="isActive==='目标确认'" :info.sync='info.ConfirmInfo'/>
|
||||||
<Perform v-show="isActive==='执行中'" :info.sync='info.PerformInfo'/>
|
<Perform v-show="isActive==='执行中'" :info.sync='info.PerformInfo'/>
|
||||||
@ -31,7 +30,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PopupRight from '@/components/PopupRight'
|
import PopupRight from '@/components/PopupRight'
|
||||||
import ReCall from './ReCall'
|
|
||||||
import ToDevelop from './ToDevelop'
|
import ToDevelop from './ToDevelop'
|
||||||
import Confirm from './Confirm'
|
import Confirm from './Confirm'
|
||||||
import Perform from './Perform'
|
import Perform from './Perform'
|
||||||
@ -64,9 +62,6 @@ export default {
|
|||||||
},
|
},
|
||||||
processLsit: [],
|
processLsit: [],
|
||||||
processLsitCopy: [{
|
processLsitCopy: [{
|
||||||
name: '撤回',
|
|
||||||
componment: 'ReCall'
|
|
||||||
}, {
|
|
||||||
name: '目标制定',
|
name: '目标制定',
|
||||||
componment: 'ToDevelop'
|
componment: 'ToDevelop'
|
||||||
}, {
|
}, {
|
||||||
@ -89,7 +84,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
PopupRight, ReCall, ToDevelop, Confirm, Perform, Entry, Score, Approval
|
PopupRight, ToDevelop, Confirm, Perform, Entry, Score, Approval
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// componentId () {
|
// componentId () {
|
||||||
|
|||||||
@ -116,8 +116,13 @@ export default {
|
|||||||
res = res.data
|
res = res.data
|
||||||
this.basisForm = res
|
this.basisForm = res
|
||||||
this.templateForm.evaluationGroupId = this.basisForm.id
|
this.templateForm.evaluationGroupId = this.basisForm.id
|
||||||
|
console.log('1===', this.processInfo)
|
||||||
for (let i in this.processInfo) {
|
for (let i in this.processInfo) {
|
||||||
|
console.log('2===', this.processInfo[i])
|
||||||
try {
|
try {
|
||||||
|
if (!this.processInfo[i].chartDetails) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if (this.processInfo[i].chartDetails.recordSimpleDtos.some(i => i.optType === 0 && !i.optIds)) {
|
if (this.processInfo[i].chartDetails.recordSimpleDtos.some(i => i.optType === 0 && !i.optIds)) {
|
||||||
this.loadings = false
|
this.loadings = false
|
||||||
this.$loadingEnd()
|
this.$loadingEnd()
|
||||||
@ -137,6 +142,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log('异常')
|
||||||
this.loadings = false
|
this.loadings = false
|
||||||
this.$loadingEnd()
|
this.$loadingEnd()
|
||||||
return this.$message.error(error.msg)
|
return this.$message.error(error.msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user