|
|
@@ -19,7 +19,7 @@
|
|
|
width="580"
|
|
|
trigger="click"
|
|
|
v-model="enterpriseShow"
|
|
|
- @show="enterpriseList">
|
|
|
+ @show="onShow">
|
|
|
<el-input style="width:200px;" placeholder="搜索" :suffix-icon="enterpriseParam.content.where.condition?enterpriseParam.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="enterpriseParam.content.where.condition" @keyup.native.enter="enterpriseList(enterpriseParam.content.pageNumber = 1)" @clear="enterpriseList(enterpriseParam.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
|
|
|
</el-input>
|
|
|
<el-table :data="enterprise.enterpriseData" @row-click="enterpriseData" height="400px">
|
|
|
@@ -70,10 +70,12 @@
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
|
<el-pagination
|
|
|
background
|
|
|
- small
|
|
|
@size-change="handleSizeChangeProject"
|
|
|
@current-change="handleCurrentChangeProject"
|
|
|
:current-page="enterprise.currentPage"
|
|
|
+ :page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="enterprise.total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
@@ -167,6 +169,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ onShow(){
|
|
|
+ this.enterpriseParam.content.where.condition = ''
|
|
|
+ this.enterpriseList(this.enterpriseParam.content.pageNumber = 1)
|
|
|
+ },
|
|
|
/*可选企业列表*/
|
|
|
async enterpriseList(){
|
|
|
this.enterpriseParam.content.where.sa_projectid = this.data.sa_projectid
|
|
|
@@ -234,17 +240,19 @@ export default {
|
|
|
handleSizeChangeProject(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.enterpriseParam.content.pageSize = val
|
|
|
- this.projectList()
|
|
|
+ this.enterpriseList()
|
|
|
},
|
|
|
handleCurrentChangeProject(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.enterpriseParam.content.pageNumber = val
|
|
|
- this.projectList()
|
|
|
+ this.enterpriseList()
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+ /deep/ .el-input__validateIcon {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+</style>
|