Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
3 changed files
with
20 additions
and
8 deletions
... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
17 | <div class="thumb-wrap"> | 17 | <div class="thumb-wrap"> |
18 | <div class="thumb-wrap-button"> | 18 | <div class="thumb-wrap-button"> |
19 | <el-button type="primary" @click="clickImage">(放大) 显示(缩小)</el-button> | 19 | <el-button type="primary" @click="clickImage">(放大) 显示(缩小)</el-button> |
20 | <el-upload class="fileUpdate" action="" :show-file-list="false" multiple :limit="5" :auto-upload="false" | 20 | <el-upload class="fileUpdate" action="" :show-file-list="false" multiple :auto-upload="false" |
21 | :on-change="handleChange" accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> | 21 | :on-change="handleChange" accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> |
22 | <el-button icon="el-icon-upload" type="primary">上传</el-button> | 22 | <el-button icon="el-icon-upload" type="primary">上传</el-button> |
23 | </el-upload> | 23 | </el-upload> | ... | ... |
... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
29 | </el-collapse-transition> | 29 | </el-collapse-transition> |
30 | </div> | 30 | </div> |
31 | </div> | 31 | </div> |
32 | <image-preview :previewImg="previewImg" @updateList="updateList" /> | 32 | <image-preview ref='imageRef' :previewImg="previewImg" @updateList="updateList" /> |
33 | </div> | 33 | </div> |
34 | </div> | 34 | </div> |
35 | <clxxAddDialog v-model="isDialog" /> | 35 | <clxxAddDialog v-model="isDialog" /> |
... | @@ -233,6 +233,7 @@ export default { | ... | @@ -233,6 +233,7 @@ export default { |
233 | }) | 233 | }) |
234 | }, | 234 | }, |
235 | updateList (val) { | 235 | updateList (val) { |
236 | if(val!=null){ //删除最后一张图片时 val=null | ||
236 | this.tableData.forEach(item => { | 237 | this.tableData.forEach(item => { |
237 | if (item.bsmSj === val.bsmSj) { | 238 | if (item.bsmSj === val.bsmSj) { |
238 | item.children = val.children | 239 | item.children = val.children |
... | @@ -242,6 +243,15 @@ export default { | ... | @@ -242,6 +243,15 @@ export default { |
242 | if (this.previewImg.index == this.previewImg.imgList.length) { | 243 | if (this.previewImg.index == this.previewImg.imgList.length) { |
243 | this.previewImg.index = this.previewImg.index - 1 | 244 | this.previewImg.index = this.previewImg.index - 1 |
244 | } | 245 | } |
246 | }else{ | ||
247 | this.previewImg.imgList = [] | ||
248 | this.tableData.forEach(item => { | ||
249 | if(this.treeCheckId == item.bsmSj){ | ||
250 | item.children = [] | ||
251 | } | ||
252 | }) | ||
253 | } | ||
254 | |||
245 | }, | 255 | }, |
246 | // 左侧菜单点击 | 256 | // 左侧菜单点击 |
247 | menuClick (item) { | 257 | menuClick (item) { | ... | ... |
... | @@ -145,6 +145,8 @@ export default { | ... | @@ -145,6 +145,8 @@ export default { |
145 | }, | 145 | }, |
146 | //流程环节操作按钮 | 146 | //流程环节操作按钮 |
147 | operation (index, item) { | 147 | operation (index, item) { |
148 | //按钮 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 | ||
149 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout | ||
148 | let that = this; | 150 | let that = this; |
149 | switch (item.value) { | 151 | switch (item.value) { |
150 | case "B1": | 152 | case "B1": |
... | @@ -157,10 +159,10 @@ export default { | ... | @@ -157,10 +159,10 @@ export default { |
157 | }) | 159 | }) |
158 | }) | 160 | }) |
159 | break; | 161 | break; |
160 | case "zsyl": | 162 | case "B5": |
161 | this.zsylFlag = true; | 163 | this.zsylFlag = true; |
162 | break; | 164 | break; |
163 | case "clfp": //材料分屏按钮 | 165 | case "B2": //材料分屏按钮 |
164 | this.splitScreen = this.splitScreen ? false : true; | 166 | this.splitScreen = this.splitScreen ? false : true; |
165 | this.$store.dispatch('app/settScreen', this.splitScreen) | 167 | this.$store.dispatch('app/settScreen', this.splitScreen) |
166 | if (this.splitScreen) { | 168 | if (this.splitScreen) { |
... | @@ -174,9 +176,9 @@ export default { | ... | @@ -174,9 +176,9 @@ export default { |
174 | this.tabList.splice(this.clxxIndex, 1, this.clxxTab); | 176 | this.tabList.splice(this.clxxIndex, 1, this.clxxTab); |
175 | } | 177 | } |
176 | break; | 178 | break; |
177 | case "th": //退回按钮 | 179 | case "back": //退回按钮 |
178 | break; | 180 | break; |
179 | case "zc": //转件按钮 | 181 | case "transfer": //转件按钮 |
180 | getNextLinkInfo({ | 182 | getNextLinkInfo({ |
181 | bsmSlsq: this.bsmSlsq, | 183 | bsmSlsq: this.bsmSlsq, |
182 | bestepid: this.bestepid, | 184 | bestepid: this.bestepid, |
... | @@ -186,10 +188,10 @@ export default { | ... | @@ -186,10 +188,10 @@ export default { |
186 | } | 188 | } |
187 | }); | 189 | }); |
188 | break; | 190 | break; |
189 | case "tc": | 191 | case "signout": |
190 | window.close(); | 192 | window.close(); |
191 | break; | 193 | break; |
192 | case "db": | 194 | case "record": |
193 | var formdata = new FormData(); | 195 | var formdata = new FormData(); |
194 | formdata.append("bsmSlsq", this.bsmSlsq); | 196 | formdata.append("bsmSlsq", this.bsmSlsq); |
195 | formdata.append("bestepid", this.bestepid); | 197 | formdata.append("bestepid", this.bestepid); | ... | ... |
-
Please register or sign in to post a comment