Commit 6113a087 authored by zhangyanni's avatar zhangyanni

样式

parent 1e210bb8
......@@ -159,7 +159,7 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination
<el-pagination v-if="pageShow"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
......@@ -219,7 +219,8 @@
contactsName: "",
exportVisible: false,
tableHeaderList: [],
disabledFlag: 0
disabledFlag: 0,
pageShow:false
}
},
methods: {
......@@ -343,6 +344,11 @@
if (res.code == 0) {
this.tableData = res.result.records;
this.total = res.result.total;
if(this.total>0){
this.pageShow = true;
}else{
this.pageShow = false;
}
if (res.result.pages < this.cur_page) {
this.cur_page = 1;
this.searchData.cur_page = 1;
......
......@@ -26,12 +26,13 @@
maxlength="36"
class="input-with-select" style="width: 180px;margin-left: 20px;">
</el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="handleSearch">
<el-button type="primary" style="width: 100px;margin-left: 20px" @click="handleSearch">
{{$t('operationjson.search')}}
</el-button>
<el-button type="primary" @click="exportFunc" style="width: 140px;">导出</el-button>
<el-button type="primary" plain style="width: 140px;" @click="handleReset">重置
<el-button type="primary" plain style="width: 100px;" @click="handleReset">重置
</el-button>
<el-button type="primary" @click="exportFunc" style="width: 100px;">导出</el-button>
</div>
<div style="margin: 25px;min-width: 50%;" class="hasPopopverTable">
<el-table :data="tableData" tooltip-effect="dark" class="projectTable2">
......@@ -95,7 +96,7 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination
<el-pagination v-if="pageShow"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
......@@ -130,7 +131,8 @@
keyWord: "",
tableData: [],
total: 2,
searchData: {}
searchData: {},
pageShow:false
}
},
methods: {
......@@ -210,6 +212,11 @@
if (res.code == 0) {
this.tableData = res.result.records;
this.total = res.result.total;
if(this.total>0){
this.pageShow = true;
}else{
this.pageShow = false;
}
if (res.result.pages < this.cur_page) {
this.cur_page = 1;
this.searchData.cur_page = 1;
......
......@@ -163,7 +163,7 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination
<el-pagination v-if="pageShow"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
......@@ -246,7 +246,8 @@
contactsName: "",
exportVisible: false,
tableHeaderList: [],
disabledFlag: 0
disabledFlag: 0,
pageShow:false
}
},
methods: {
......@@ -379,6 +380,11 @@
if (res.code == 0) {
this.tableData = res.result.records;
this.total = res.result.total;
if(this.total>0){
this.pageShow = true;
}else{
this.pageShow = false;
}
if (res.result.pages < this.cur_page) {
this.cur_page = 1;
this.searchData.cur_page = 1;
......
......@@ -26,12 +26,13 @@
maxlength="36"
class="input-with-select" style="width: 180px;margin-left: 20px;">
</el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="handleSearch">
<el-button type="primary" style="width: 100px;margin-left: 20px" @click="handleSearch">
{{$t('operationjson.search')}}
</el-button>
<el-button type="primary" @click="exportFunc" style="width: 140px;">导出</el-button>
<el-button type="primary" plain style="width: 140px;" @click="handleReset">重置
<el-button type="primary" plain style="width: 100px;" @click="handleReset">重置
</el-button>
<el-button type="primary" @click="exportFunc" style="width: 100px;">导出</el-button>
</div>
<div style="margin: 25px;min-width: 50%;" class="hasPopopverTable">
<el-table :data="tableData" tooltip-effect="dark" class="projectTable2">
......@@ -86,7 +87,7 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination
<el-pagination v-if="pageShow"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
......@@ -121,7 +122,8 @@
keyWord: "",
tableData: [],
total: 2,
searchData: {}
searchData: {},
pageShow:false
}
},
methods: {
......@@ -199,6 +201,11 @@
if (res.code == 0) {
this.tableData = res.result.records;
this.total = res.result.total;
if(this.total>0){
this.pageShow = true;
}else{
this.pageShow = false;
}
if (res.result.pages < this.cur_page) {
this.cur_page = 1;
this.searchData.cur_page = 1;
......
......@@ -40,11 +40,10 @@
</el-form>
</el-row>
<el-row style="margin: 20px 0 0 0" class="contnetform">
<el-button type="primary" @click="exportFunc" style="width: 140px;">导出</el-button>
<el-button type="primary" style="width: 140px;" @click="searchCik">{{$t('operationjson.search')}}</el-button>
<el-button type="primary" plain style="width: 140px;" @click="handleReset">重置
</el-button>
<el-button type="primary" @click="exportFunc" style="width: 140px;">导出</el-button>
</el-row>
</el-row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment