no message

This commit is contained in:
leave 2020-10-23 10:17:23 +08:00
parent 27eb523fcd
commit 1e16b683b3

View File

@ -97,14 +97,19 @@
@cancel='handleCancelPopup' @cancel='handleCancelPopup'
@submit="handleSubmitPopup" @submit="handleSubmitPopup"
:title="popupRightTitle" :title="popupRightTitle"
class="popup"
> >
<div slot="content"> <div slot="content">
<div class="popup-search">
<el-input <el-input
v-model="rqAssessmentParameter.searchName" v-model="rqAssessmentParameter.searchName"
@change="handlePopupSearchChange" @change="handlePopupSearchChange"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
placeholder="搜索考评组" placeholder="搜索考评组"
size="mini"
></el-input> ></el-input>
</div>
<div class="popup-table">
<el-table <el-table
v-if="popupData.tableList.length" v-if="popupData.tableList.length"
:data="popupData.tableList" :data="popupData.tableList"
@ -141,7 +146,11 @@
>新建考评组</el-button> >新建考评组</el-button>
</div> </div>
</div> </div>
<div slot="leftSlot">已选择{{formData.assessmentList.length}}</div> </div>
<div
slot="footer-left"
class="popup-footer-left"
>已选择{{popupData.selectedList.length}}</div>
</popup-right> </popup-right>
</div> </div>
</div> </div>
@ -189,6 +198,9 @@ export default {
this.formData.rangDate = '' this.formData.rangDate = ''
} }
}, },
created () {
this.handleGainAssessmentGroupList()
},
methods: { methods: {
handleChangeRangDate (chgVal) { handleChangeRangDate (chgVal) {
let nameStr = this.$format(chgVal, 'yyyy年MM月绩效考核') let nameStr = this.$format(chgVal, 'yyyy年MM月绩效考核')
@ -201,7 +213,6 @@ export default {
}, },
handleChooseGroup () { handleChooseGroup () {
this.popupData.selectedList = [] this.popupData.selectedList = []
this.handleGainAssessmentGroupList()
this.showChooseList = !this.showChooseList this.showChooseList = !this.showChooseList
}, },
handleGroupDelete (index, rows) { handleGroupDelete (index, rows) {
@ -240,7 +251,14 @@ export default {
} }
getWorkList({}).then(res => { getWorkList({}).then(res => {
const currPage = res.currPage const currPage = res.currPage
this.popupData.tableList = res.list let newList = []
for (let index = 0; index < 20; index++) {
for (let index = 0; index < res.list.length; index++) {
const element = res.list[index]
newList.push(element)
}
}
this.popupData.tableList = newList
console.log(res) console.log(res)
}) })
} }
@ -261,7 +279,11 @@ export default {
.line-space { .line-space {
margin-top: 20px; margin-top: 20px;
} }
.popup-empty { .popup {
&-search {
margin-bottom: 20px;
}
&-empty {
padding-top: 100px; padding-top: 100px;
height: 500px; height: 500px;
width: 410px; width: 410px;
@ -271,5 +293,10 @@ export default {
align-content: center; align-content: center;
justify-content: center; justify-content: center;
} }
&-footer-left {
color: @fontBlue;
}
}
} }
</style> </style>