修复bug
This commit is contained in:
@@ -9,10 +9,12 @@
|
||||
<div class="search-area">
|
||||
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
||||
<el-formItem label="类别" class="search-item">
|
||||
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable :maxlength="100"></el-input>
|
||||
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable
|
||||
:maxlength="100"></el-input>
|
||||
</el-formItem>
|
||||
<el-formItem label="关键字" class="search-item">
|
||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable :maxlength="100"></el-input>
|
||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
||||
:maxlength="100"></el-input>
|
||||
</el-formItem>
|
||||
<el-formItem label="开始日期" class="search-item">
|
||||
<el-datePicker v-model="standCommonlySearch.start" :editable="false"
|
||||
@@ -28,11 +30,13 @@
|
||||
size="mini"
|
||||
class="common-button-primary"
|
||||
|
||||
@click="sarStandCompareHisInfo">查询</el-button>
|
||||
@click="sarStandCompareHisInfo">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
size="mini"
|
||||
@click="clearSearchStand">清空</el-button>
|
||||
@click="clearSearchStand">清空
|
||||
</el-button>
|
||||
</el-formItem>
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -54,7 +58,7 @@
|
||||
label="标准"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
||||
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -79,129 +83,134 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
||||
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
<loading :loading="spinShow">数据加载中……</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'standardForComments',
|
||||
components: {
|
||||
},
|
||||
data () {
|
||||
name: "standardForComments",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
standCommonlySearch: {
|
||||
categorg: '',
|
||||
cname: '',
|
||||
start: '',
|
||||
end: '',
|
||||
page: 1,
|
||||
size: this.$store.getters.userInfo.configContent
|
||||
},
|
||||
spinShow: false,
|
||||
standInfoList: [],
|
||||
tableHeight: null,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
props: {
|
||||
},
|
||||
watch: {
|
||||
standCommonlySearch: {
|
||||
categorg: "",
|
||||
cname: "",
|
||||
start: "",
|
||||
end: "",
|
||||
page: 1,
|
||||
size: this.$store.getters.userInfo.configContent
|
||||
},
|
||||
spinShow: false,
|
||||
standInfoList: [],
|
||||
tableHeight: null,
|
||||
total: 0
|
||||
};
|
||||
},
|
||||
props: {},
|
||||
watch: {},
|
||||
methods: {
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
this.$store.commit('setDetailMap',this.$router.path)
|
||||
this.$router.push({
|
||||
name: 'consultationDetails',
|
||||
query: {
|
||||
item: item
|
||||
}
|
||||
})
|
||||
},
|
||||
// 清空
|
||||
clearSearchStand () {
|
||||
this.standCommonlySearch.page = 1
|
||||
this.standCommonlySearch.start = ''
|
||||
this.standCommonlySearch.end = ''
|
||||
this.standCommonlySearch.categorg = ''
|
||||
this.standCommonlySearch.cname = ''
|
||||
this.sarStandCompareHis()
|
||||
// 点击查看
|
||||
handlePreview(item) {
|
||||
this.$store.commit("setDetailMap", this.$router.path);
|
||||
this.$router.push({
|
||||
name: "consultationDetails",
|
||||
query: {
|
||||
item: item
|
||||
}
|
||||
});
|
||||
},
|
||||
// 搜索
|
||||
sarStandCompareHisInfo() {
|
||||
this.splitInfoPage = 1
|
||||
this.sarStandCompareHis()
|
||||
},
|
||||
// 查询表格
|
||||
sarStandCompareHis () {
|
||||
this.spinShow = true
|
||||
var form = this.standCommonlySearch
|
||||
this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.standInfoList = res.data.records
|
||||
this.total = res.data.total
|
||||
this.spinShow = false
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
pageChange (page) {
|
||||
this.standCommonlySearch.page = page
|
||||
this.sarStandCompareHis()
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange (pageSize) {
|
||||
this.$store.getters.userInfo.configContent = pageSize
|
||||
this.standCommonlySearch.size = pageSize
|
||||
this.sarStandCompareHis()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
mounted () {
|
||||
this.sarStandCompareHis()
|
||||
this.tableHeight = $('.content').height() - 44
|
||||
window.onresize = () => {
|
||||
this.tableHeight = $('.content').height() - 44
|
||||
// 清空
|
||||
clearSearchStand() {
|
||||
this.standCommonlySearch.page = 1;
|
||||
this.standCommonlySearch.start = "";
|
||||
this.standCommonlySearch.end = "";
|
||||
this.standCommonlySearch.categorg = "";
|
||||
this.standCommonlySearch.cname = "";
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 搜索
|
||||
sarStandCompareHisInfo() {
|
||||
this.splitInfoPage = 1;
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 查询表格
|
||||
sarStandCompareHis() {
|
||||
this.spinShow = true;
|
||||
var form = this.standCommonlySearch;
|
||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.standInfoList = res.data.records;
|
||||
this.total = res.data.total;
|
||||
this.spinShow = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
pageChange(page) {
|
||||
this.standCommonlySearch.page = page;
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange(pageSize) {
|
||||
this.$store.getters.userInfo.configContent = pageSize;
|
||||
this.standCommonlySearch.size = pageSize;
|
||||
this.sarStandCompareHis();
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
mounted() {
|
||||
this.sarStandCompareHis();
|
||||
this.tableHeight = $(".content").height() - 44;
|
||||
window.onresize = () => {
|
||||
this.tableHeight = $(".content").height() - 44;
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/mixins';
|
||||
@import '~@/assets/styles/style';
|
||||
|
||||
.standardForComments {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
|
||||
.el-divider--horizontal {
|
||||
display: block;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.flex();
|
||||
flex-direction: column;
|
||||
|
||||
.action-bar {
|
||||
margin-bottom: 5px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: auto;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.table-wrap {
|
||||
flex: auto;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
& > .pagination {
|
||||
position: static;
|
||||
/deep/.pagination-slot {
|
||||
|
||||
/deep/ .pagination-slot {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user