| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <template>
- <div>
- <el-container style="height:520px;">
- <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;">
- <p @click="showImg(item.value)" class="item-c" v-for="item in itemList"><span>{{item.name}}</span><span style="float:right">{{imgObj[item.value]}}张<i class="el-icon-arrow-right" style="padding-left: 10px;padding-right: 10px;"></i></span></p>
- </el-main>
- </el-container>
- <add-pic-com v-if="jqmmDialogShow" :dialogTitle="'相关材料'" :jqmmEngId="currentObjectRgstrId" :type="type" :openType="openType" @jqmmDialogClose="jqmmDialogClose"></add-pic-com>
- </div>
- </template>
- <script>
- import addPicCom from "./addPic.vue"
- import request from "@util/gw_ajax_request.js"
- export default {
- components: {
- addPicCom
- },
- props: ['currentObjectId','currentObjectName','currentObjectRgstrId','openType'],
- data() {
- return{
- imgObj:{},
- jqmmDialogShow:false,
- count:0,
- type:"",
- itemList:[
- {name:"大坝坝顶及迎水坡",value:"rssfgd1"},
- {name:"大坝背水坡及坝脚",value:"rssfgd2"},
- {name:"溢洪道进口段",value:"rssfgd3"},
- {name:"溢洪道控制段及交通桥",value:"rssfgd4"},
- {name:"溢洪道泄槽段",value:"rssfgd5"},
- {name:"溢洪道消能工",value:"rssfgd6"},
- {name:"输水建筑物进口及控制设施",value:"rssfgd7"},
- {name:"输水建筑物出口及设施",value:"rssfgd8"},
- {name:"水库运行管理设施",value:"rssfgd9"},
- {name:"水库监测设施",value:"rssfgd10"}
- ]
- }
- },
- computed:{
- recPersId(){
- return localStorage.getItem("userid")? localStorage.getItem("userid"): ''
- }
- },
- created(){
- this.initNum();
- },
- mounted() {
- },
- watch: {
- },
- methods: {
- async initNum(){
- this.imgObj = {};
- for(var i = 0;i<this.itemList.length;i++){
- await this.countImg(this.itemList[i].value)
- }
- },
- jqmmDialogClose(){
- this.jqmmDialogShow = false;
- this.imgObj = {};
- this.initNum();
- },
- showImg(type){
- this.jqmmDialogShow = true;
- this.type = type;
- },
- countImg(type){
- let params = {
- bizId: this.currentObjectRgstrId,
- bizType: type
- }
- var _self = this;
- request.post(`/file/findPageInfo`,params).then(res =>{
- if(res.success) {
- _self.$set(_self.imgObj,type,res.data.list.length.toString())
- }
- })
- },
- }
- }
- </script>
- <style scoped>
- .item-c{
- width: calc(100% - 40px);
- line-height: 30px;
- margin-top: 10px;
- margin-left: 20px;
- height: 30px;
- text-indent: 20px;
- border: 1px solid #e6e6e6;
- }
- #dcdxHeader {
- padding: 15px 20px;
- }
- #dxdcFooter {
- text-align: center;
- }
- #dxdcAside {
- border:1px solid #d5d5ff;
- }
- .el-dialog__wrapper .el-treeWhite{
- /* max-height: 260px !important; */
- }
- .add-problem-icon{
- font-size: 16px;
- }
- .el-icon-camera-solid,.el-icon-circle-plus{
- margin-left: 20px;
- color: #00bbff;
- font-size: 18px;
- line-height: 12px;
- vertical-align: middle;
- cursor: pointer;
- }
- .el-icon-circle-plus{
- vertical-align: top;
- }
- </style>
|