86a3b777 by zhaoqian

Merge remote-tracking branch 'origin/master'

2 parents 11e2d0c5 61212483
...@@ -657,7 +657,6 @@ ...@@ -657,7 +657,6 @@
657 watch:{ 657 watch:{
658 658
659 dzbsm:function (val) { 659 dzbsm:function (val) {
660 debugger
661 console.log(val,'多幢BSM') 660 console.log(val,'多幢BSM')
662 this.getDzDetailByBsm(val) 661 this.getDzDetailByBsm(val)
663 }, 662 },
......
...@@ -69,6 +69,10 @@ ...@@ -69,6 +69,10 @@
69 isDisabled:{ 69 isDisabled:{
70 type:Boolean, 70 type:Boolean,
71 default:false 71 default:false
72 },
73 lpbParent:{
74 type:Boolean,
75 default:false
72 } 76 }
73 }, 77 },
74 methods: { 78 methods: {
...@@ -128,7 +132,7 @@ ...@@ -128,7 +132,7 @@
128 default: 132 default:
129 break 133 break
130 } 134 }
131 getFileLis(this.fileData.glbsm).then(res => { 135 getFileLis(this.lpbParent ? this.$store.state.hbsm : this.fileData.glbsm).then(res => {
132 if (res.success) { 136 if (res.success) {
133 this.list = res.result; 137 this.list = res.result;
134 } else { 138 } else {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <djb v-if="djbVisible" :style="{'height' : formHeight+'px'}"></djb> 7 <djb v-if="djbVisible" :style="{'height' : formHeight+'px'}"></djb>
8 </el-tab-pane> 8 </el-tab-pane>
9 <el-tab-pane label="附件材料" name="fjcl"> 9 <el-tab-pane label="附件材料" name="fjcl">
10 <fjcl v-if="fjclVisible" ref="fjcl" :style="{'height' : formHeight+'px'}" :is-disabled="isDisabled"></fjcl> 10 <fjcl v-if="fjclVisible" ref="fjcl" :lpbParent="true" :style="{'height' : formHeight+'px'}" :is-disabled="isDisabled"></fjcl>
11 </el-tab-pane> 11 </el-tab-pane>
12 </el-tabs> 12 </el-tabs>
13 </template> 13 </template>
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
22 components: { 22 components: {
23 hbj, djb, fjcl 23 hbj, djb, fjcl
24 }, 24 },
25 props:{
26 bsm:String, //户标识码
27 },
25 data() { 28 data() {
26 return { 29 return {
27 isDisabled:false, 30 isDisabled:false,
...@@ -37,7 +40,6 @@ ...@@ -37,7 +40,6 @@
37 }, 40 },
38 methods: { 41 methods: {
39 loadingStatus() { 42 loadingStatus() {
40 debugger
41 let bsm=this.$store.state.hbsm; 43 let bsm=this.$store.state.hbsm;
42 queryStatus(bsm).then(res => { 44 queryStatus(bsm).then(res => {
43 if (res.success) { 45 if (res.success) {
......
...@@ -83,14 +83,14 @@ ...@@ -83,14 +83,14 @@
83 label="7" 83 label="7"
84 border 84 border
85 @click="batchDelete" 85 @click="batchDelete"
86 ><i class="iconfont iconhuzhongxinlazong"></i>批量删除</el-button 86 ><i class="iconfont iconshanchu"></i>批量删除</el-button
87 > 87 >
88 <el-button 88 <el-button
89 class="radioBtn" 89 class="radioBtn"
90 label="7" 90 label="7"
91 border 91 border
92 @click="batchUpload" 92 @click="batchUpload"
93 ><i class="iconfont iconhuzhongxinlazong"></i>批量上传</el-button 93 ><i class="iconfont iconshangchuan"></i>批量上传</el-button
94 > 94 >
95 </div> 95 </div>
96 </el-col> 96 </el-col>
...@@ -311,6 +311,33 @@ ...@@ -311,6 +311,33 @@
311 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl> 311 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl>
312 <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c> 312 <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c>
313 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh> 313 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh>
314 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量上传" :visible.sync="uploadVisible" width="30%" >
315 <div class="wrap">
316 <div class="main-button">
317 <el-upload
318 class="upload-demo"
319 action="/api/file/uploadListByGlbsm"
320 :data="fileData"
321 :on-preview="handlePreview"
322 :on-remove="handleRemove"
323 :before-remove="beforeRemove"
324 :on-success="uploadSuccess"
325 :on-error="uploadError"
326 :show-file-list="false"
327 multiple
328 :limit="1"
329 :on-exceed="handleExceed"
330 >
331 <el-button type="primary" icon="iconfont iconshangchuan">上传附件</el-button>
332 </el-upload>
333 </div>
334 <el-button type="primary" class="download" @click="uploadVisible = false"
335 >取消</el-button>
336
337 </div>
338 <span slot="footer" class="dialog-footer">
339 </span>
340 </el-dialog>
314 </div> 341 </div>
315 </template> 342 </template>
316 343
...@@ -433,6 +460,11 @@ export default { ...@@ -433,6 +460,11 @@ export default {
433 taskTitle:'添加', 460 taskTitle:'添加',
434 curBsm:'', 461 curBsm:'',
435 qsztList:[], 462 qsztList:[],
463 uploadVisible:false, //批量上传弹框
464 fileData:{
465 glbsmList:[],
466 dylx:'h'
467 }
436 }; 468 };
437 }, 469 },
438 created() { 470 created() {
...@@ -473,7 +505,8 @@ export default { ...@@ -473,7 +505,8 @@ export default {
473 } 505 }
474 }, 506 },
475 //批量删除 507 //批量删除
476 batchDelete(){ if (this.bsms.length <= 0) { 508 batchDelete(){
509 if (this.bsms.length <= 0) {
477 Message.warning("请选择操作户") 510 Message.warning("请选择操作户")
478 return 511 return
479 }else{ 512 }else{
...@@ -491,6 +524,39 @@ export default { ...@@ -491,6 +524,39 @@ export default {
491 } 524 }
492 } 525 }
493 }, 526 },
527 //批量上传 start
528 batchUpload(){
529 if (this.bsms.length < 1 ) {
530 Message.warning("请选择操作户")
531 return
532 }else{
533 this.uploadVisible = true
534 }
535 },
536 uploadError(err, file, fileList) {
537 Message.error("上传文件失败")
538 console.log("上传文件失败", err)
539 },
540 uploadSuccess(res, file, fileList) {
541 Message.success("上传成功")
542 this.uploadVisible = false;
543 },
544 handleRemove(file, fileList) {
545 console.log(file, fileList);
546 },
547 handlePreview(file) {
548 console.log(file);
549 },
550 handleExceed(files, fileList) {
551 console.log(fileList)
552 // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
553 this.$message.warning("上传失败")
554 },
555 beforeRemove(file, fileList) {
556 return this.$confirm(`确定移除 ${ file.name }?`);
557 },
558 //批量上传 end
559
494 loading(){ 560 loading(){
495 this.getLpbMenuTree(this.$store.state.zrzbsm); 561 this.getLpbMenuTree(this.$store.state.zrzbsm);
496 }, 562 },
...@@ -894,6 +960,10 @@ export default { ...@@ -894,6 +960,10 @@ export default {
894 selectedZt(n){ 960 selectedZt(n){
895 this.legendToggleFlag = true; 961 this.legendToggleFlag = true;
896 }, 962 },
963 bsms(n){
964 this.fileData.glbsmList = n;
965 console.log(this.fileData,'filedata');
966 }
897 }, 967 },
898 }; 968 };
899 </script> 969 </script>
...@@ -1070,5 +1140,25 @@ export default { ...@@ -1070,5 +1140,25 @@ export default {
1070 .fa{ 1140 .fa{
1071 padding-right: 4px; 1141 padding-right: 4px;
1072 } 1142 }
1143
1144 .wrap{
1145 width: 100%;
1146 height: 30px;
1147 position: relative;
1148 .main-button {
1149 display: -webkit-flex;
1150 display: flex;
1151 flex-direction: column-reverse;
1152 flex-wrap: nowrap;
1153 position: absolute;
1154 left: 165px;
1155 top: 18px;
1156 }
1157 .download{
1158 position: absolute;
1159 left: 312px;
1160 top: 19px;
1161 }
1162 }
1073 } 1163 }
1074 </style> 1164 </style>
......