评估库时间展示

This commit is contained in:
宋伟佳
2021-08-09 20:41:15 +08:00
parent dcd388b44b
commit 2a828a8746
@@ -15,10 +15,14 @@
clearable></el-input> clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws" v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询</el-button> <el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws"
v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询
</el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" @click="resetSelect" size="mini" v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空</el-button> <el-button class="common-button-default" @click="resetSelect" size="mini"
v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -125,14 +129,16 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
v-btn-permission="'f0ea68cb2c01cd0063ea639ee9bd4cec'" v-btn-permission="'f0ea68cb2c01cd0063ea639ee9bd4cec'"
@click="querySarProStateZero">查询</el-button> @click="querySarProStateZero">查询
</el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
v-btn-permission="'aa4d6d0cc28d016f8241159c9e7d4c80'" v-btn-permission="'aa4d6d0cc28d016f8241159c9e7d4c80'"
@click="clearSearchProState">清空</el-button> @click="clearSearchProState">清空
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -204,6 +210,9 @@
align="center" align="center"
prop="researchImplementationTime" prop="researchImplementationTime"
label="实施时间"> label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.researchImplementationTime ? $moment(scope.row.researchImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
@@ -232,6 +241,9 @@
align="center" align="center"
prop="researchCompletionTime" prop="researchCompletionTime"
label="完成时间"> label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.researchCompletionTime ? $moment(scope.row.researchCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@@ -244,6 +256,9 @@
align="center" align="center"
prop="productionImplementationTime" prop="productionImplementationTime"
label="实施时间"> label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.productionImplementationTime ? $moment(scope.row.productionImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
@@ -266,6 +281,9 @@
align="center" align="center"
prop="productionCompletionTime" prop="productionCompletionTime"
label="完成时间"> label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.productionCompletionTime ? $moment(scope.row.productionCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@@ -283,12 +301,12 @@
<script> <script>
export default { export default {
name: 'standInvolveProjectDetail', name: "standInvolveProjectDetail",
data () { data() {
return { return {
sarProject: { sarProject: {
standName: '', // 标准政策名称 standName: "", // 标准政策名称
standNumber: '', // 标准/政策号 standNumber: "", // 标准/政策号
standApplicationType: 1 standApplicationType: 1
}, // 条件查询 }, // 条件查询
showSarProStateModal: false, // 查看drawer开关 showSarProStateModal: false, // 查看drawer开关
@@ -302,73 +320,74 @@ export default {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
sarProStateEO: { sarProStateEO: {
productName: '', productName: "",
standId: '' standId: ""
}, },
sarProStateTotal: 0, sarProStateTotal: 0,
sarProStateTotalPage: 1, sarProStateTotalPage: 1,
sarProStatePageSize: this.$store.getters.userInfo.configContent, sarProStatePageSize: this.$store.getters.userInfo.configContent,
sarProStateListDatas: [], // 符合性项目列表数据 sarProStateListDatas: [], // 符合性项目列表数据
sarProStateTableHeight: null, // 符合性项目列表高度 sarProStateTableHeight: null, // 符合性项目列表高度
standId: '' // 符合性项目Id standId: "" // 符合性项目Id
} };
}, },
methods: { methods: {
searchStandAndLaws () { searchStandAndLaws() {
this.page = 1 this.page = 1;
this.queryStandAndLaws() this.queryStandAndLaws();
}, // 查询 }, // 查询
pageChange (page) { pageChange(page) {
this.page = page this.page = page;
this.queryStandAndLaws() this.queryStandAndLaws();
}, },
pageSizeChange (pageSize) { pageSizeChange(pageSize) {
this.pageSize = pageSize this.pageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize this.$store.getters.userInfo.configContent = pageSize;
this.queryStandAndLaws() this.queryStandAndLaws();
}, },
//点击查看详情 //点击查看详情
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails', name: "OtherStandardDetails",
params: { params: {
id: item.standId, id: item.standId,
pageType: 'INLAND_STAND' pageType: "INLAND_STAND"
} }
}) });
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, "_blank");
}, },
queryStandAndLaws () { queryStandAndLaws() {
this.sarProject.current = this.page this.sarProject.current = this.page;
this.sarProject.size = this.pageSize this.sarProject.size = this.pageSize;
this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, { this.$http.get("sarStandardComplianceAssessResult/standard", this.sarProject, {
_this: this, _this: this,
loading: 'loading', loading: "loading"
}, res => { }, res => {
this.sarProjectListDatas = res.data.records this.sarProjectListDatas = res.data.records;
this.total = res.data.total this.total = res.data.total;
}, e=> {}) }, e => {
});
}, // 分页查询 }, // 分页查询
resetSelect () { resetSelect() {
this.sarProject.country = '' this.sarProject.country = "";
this.sarProject.standCode='' this.sarProject.standCode = "";
this.sarProject.standName = '' this.sarProject.standName = "";
this.sarProject.standNumber='' this.sarProject.standNumber = "";
this.queryStandAndLaws() this.queryStandAndLaws();
}, // 外层清空条件查询 }, // 外层清空条件查询
handleProjectCompliance (row) { handleProjectCompliance(row) {
this.standId = row.standId this.standId = row.standId;
this.querySarProStateZero() this.querySarProStateZero();
}, // 查看项目符合性 }, // 查看项目符合性
querySarProStateZero () { querySarProStateZero() {
this.sarProStateTotalPage = 1 this.sarProStateTotalPage = 1;
var form = this.sarProStateEO var form = this.sarProStateEO;
// form.standId = this.standId // form.standId = this.standId
form.current = this.sarProStateTotalPage form.current = this.sarProStateTotalPage;
form.size = this.sarProStatePageSize form.size = this.sarProStatePageSize;
this.$http.get('sarStandardComplianceAssessResult/product', form, { this.$http.get("sarStandardComplianceAssessResult/product", form, {
_this: this, _this: this,
loading: 'loading' loading: "loading"
}, res => { }, res => {
if (res.ok) { if (res.ok) {
// res.data.records.forEach((item)=>{ // res.data.records.forEach((item)=>{
@@ -378,49 +397,50 @@ export default {
// } // }
// } // }
// }) // })
this.sarProStateListDatas = res.data.records this.sarProStateListDatas = res.data.records;
this.sarProStateTotal = res.data.total this.sarProStateTotal = res.data.total;
} }
}) });
this.showSarProStateModal = true this.showSarProStateModal = true;
}, // 查询项目数据 }, // 查询项目数据
clearSearchProState () { clearSearchProState() {
this.sarProStateEO.productName = '' this.sarProStateEO.productName = "";
this.sarProStateEO.standId = '' this.sarProStateEO.standId = "";
this.sarProStateTotalPage = 1 this.sarProStateTotalPage = 1;
this.querySarProStateZero() this.querySarProStateZero();
}, // 清空条件查询 }, // 清空条件查询
clearSearchPro () { clearSearchPro() {
this.sarProStateEO.productName = '' this.sarProStateEO.productName = "";
this.sarProStateEO.standId = '' this.sarProStateEO.standId = "";
this.showSarProStateModal = false this.showSarProStateModal = false;
this.standId = '' this.standId = "";
}, // 关闭查看事件 }, // 关闭查看事件
pageProStateChange (page) { pageProStateChange(page) {
this.sarProStateTotalPage = page this.sarProStateTotalPage = page;
this.querySarProStateZero() this.querySarProStateZero();
}, },
pageProStateSizeChange (pageSize) { pageProStateSizeChange(pageSize) {
this.sarProStatePageSize = pageSize this.sarProStatePageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize this.$store.getters.userInfo.configContent = pageSize;
this.querySarProStateZero() this.querySarProStateZero();
}
}, },
}, mounted() {
mounted () { this.queryStandAndLaws();
this.queryStandAndLaws() this.tableHeight = $(".regulatory-repository").height() - 159;
this.tableHeight = $('.regulatory-repository').height() - 159 this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
this.sarProStateTableHeight=$('.regulatory-repository').height() -120
window.onresize = () => { window.onresize = () => {
this.tableHeight = $('.regulatory-repository').height() - 159 this.tableHeight = $(".regulatory-repository").height() - 159;
this.sarProStateTableHeight=$('.regulatory-repository').height() - 120 this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
};
} }
} };
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.stand-involve-project-detail{ .stand-involve-project-detail {
height: 100%; height: 100%;
.laws-details-header { .laws-details-header {
background: #fff; background: #fff;
// height: 30px; // height: 30px;
@@ -431,6 +451,7 @@ export default {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
} }
.title { .title {
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
@@ -440,6 +461,7 @@ export default {
text-align: center; text-align: center;
} }
} }
.contaiiner { .contaiiner {
background: #fff; background: #fff;
padding: 5px 10px; padding: 5px 10px;
@@ -447,8 +469,8 @@ export default {
} }
</style> </style>
<style lang="less"> <style lang="less">
.stand-involve-project-detail{ .stand-involve-project-detail {
.search-area .search-item .el-input--suffix .el-input__inner{ .search-area .search-item .el-input--suffix .el-input__inner {
padding-right: 15px; padding-right: 15px;
} }
} }