This commit is contained in:
熊成强 2020-11-03 17:17:39 +08:00
parent 7a41945f41
commit 87e0828e9a
4 changed files with 13 additions and 7 deletions

View File

@ -23,12 +23,12 @@
</span>
</div>
<div class="popup-item-content">
<div class="popup-item-content-item">
<div v-if="!isSignle" class="popup-item-content-item">
<div class="content" v-show="!isSignle">
<el-checkbox :value ='isAll' @change="handleChangChoose($event)">全选</el-checkbox>
</div>
</div>
<div v-for="(i) in showData" :key="i.departmentId" class="popup-item-content-item borderItem">
<div v-for="(i) in showData" :key="i.departmentId" class="popup-item-content-item">
<div class="content"><el-checkbox :value ='handleCheck(i)' @change='handleChangChoose($event,i)' >{{i.departmentName}}</el-checkbox></div>
<div class="popup-item-content-item-next" :class="{isHasActive:handleCheck(i)|| !i.list}" @click='handleNext(i)'>下级</div>
</div>
@ -109,7 +109,7 @@ export default {
beforeMount () {},
mounted () {
this.data = this.deplist
this.tags = this.showDataList.list.concat([]) || []
this.tags = this.showDataList ? this.showDataList.list.concat([]) : []
this.showData = this.data.length > -1 ? this.data : []
},
methods: {
@ -232,7 +232,7 @@ export default {
&-title{
color:#9b9b9b;
padding-bottom: 4px;
border-bottom: 1px solid @borderColor;
// border-bottom: 1px solid @borderColor;
padding: 10px;
}
&-content{
@ -241,6 +241,9 @@ export default {
.borderItem{
border-top: 1px solid @borderColor;
}
&-item:first-child{
// border-top:none;
}
&-item:nth-last-child(1){
border-bottom: 1px solid @borderColor;
}
@ -250,6 +253,7 @@ export default {
box-sizing: border-box;
display: flex;
align-items: center;
border-top: 1px solid @borderColor;
.isHasActive{
color: rgba(196, 196, 196, 0.933) !important;
border-left: 1px solid rgba(196, 196, 196, 0.933) !important;

View File

@ -176,7 +176,7 @@ export default {
this.handleGetData(Object.assign({}, this.form, this.params))
},
handlePush (id) {
this.$router.push({name: 'assessment-stepList', query: {id: 10}})
this.$router.push({name: 'assessment-stepList', query: {id}})
},
async handleGetData (parmas = this.params) {
try {

View File

@ -282,7 +282,7 @@ export default {
// this.handleKaoping()
this.$router.push({
name: 'assessment-performance',
query: { id: 267 }
query: { id }
})
console.log('id: ', id)
},

View File

@ -50,7 +50,9 @@ export default {
showDialogDepart: false,
//
showData: {},
showData: {
list: []
},
//
len: 1,
//