style:材料目录
Showing
4 changed files
with
31 additions
and
150 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-06 10:24:46 | 4 | * @LastEditTime: 2023-05-16 09:50:40 |
5 | --> | 5 | --> |
6 | <!DOCTYPE html> | 6 | <!DOCTYPE html> |
7 | <html> | 7 | <html> |
... | @@ -19,7 +19,6 @@ | ... | @@ -19,7 +19,6 @@ |
19 | </head> | 19 | </head> |
20 | <script> | 20 | <script> |
21 | window.baseUrl = location.origin || location.protocol + '//' + location.host | 21 | window.baseUrl = location.origin || location.protocol + '//' + location.host |
22 | window.timeout = 5000 | ||
23 | const authorization = "bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6" | 22 | const authorization = "bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6" |
24 | fetch('<%= BASE_URL %>config.json') | 23 | fetch('<%= BASE_URL %>config.json') |
25 | .then(response => response.json()) | 24 | .then(response => response.json()) | ... | ... |
... | @@ -22,7 +22,8 @@ | ... | @@ -22,7 +22,8 @@ |
22 | accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> | 22 | accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> |
23 | <el-button icon="el-icon-upload" type="primary" v-if="!this.$route.query.viewtype">上传</el-button> | 23 | <el-button icon="el-icon-upload" type="primary" v-if="!this.$route.query.viewtype">上传</el-button> |
24 | </el-upload> | 24 | </el-upload> |
25 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" v-if="!this.$route.query.viewtype">删除</el-button> | 25 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" |
26 | v-if="!this.$route.query.viewtype && thumbnailImages.length>0">删除</el-button> | ||
26 | </div> | 27 | </div> |
27 | <ul> | 28 | <ul> |
28 | <li v-for="(img, index) in thumbnailImages" :key="index" :class="{ active: previewImg.index === index }" | 29 | <li v-for="(img, index) in thumbnailImages" :key="index" :class="{ active: previewImg.index === index }" | ... | ... |
... | @@ -24,13 +24,13 @@ | ... | @@ -24,13 +24,13 @@ |
24 | </div> | 24 | </div> |
25 | </div> | 25 | </div> |
26 | <clxxAddDialog v-model="isDialog" /> | 26 | <clxxAddDialog v-model="isDialog" /> |
27 | <clxxDetailDialog v-model="detailDialog" :data="tableData" /> | 27 | <!-- <clxxDetailDialog v-model="detailDialog" :data="tableData" /> --> |
28 | </div> | 28 | </div> |
29 | </template> | 29 | </template> |
30 | <script> | 30 | <script> |
31 | import { mapGetters } from "vuex"; | 31 | import { mapGetters } from "vuex"; |
32 | import clxxAddDialog from "./dialog/clxxAddDialog.vue"; | 32 | import clxxAddDialog from "./dialog/clxxAddDialog.vue"; |
33 | import clxxDetailDialog from "./clxxDetailDialog.vue"; | 33 | import clxxDetailDialog from "./dialog/clxxDetailDialog.vue"; |
34 | import imagePreview from '@/views/components/imagePreview.vue' | 34 | import imagePreview from '@/views/components/imagePreview.vue' |
35 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; | 35 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
36 | import { popupDialog } from "@/utils/popup.js"; | 36 | import { popupDialog } from "@/utils/popup.js"; |
... | @@ -39,7 +39,6 @@ | ... | @@ -39,7 +39,6 @@ |
39 | data () { | 39 | data () { |
40 | return { | 40 | return { |
41 | isDialog: false, | 41 | isDialog: false, |
42 | detailDialog: false, | ||
43 | iclass: "", | 42 | iclass: "", |
44 | // 材料目录选中 | 43 | // 材料目录选中 |
45 | treeCheckIndex: 0, | 44 | treeCheckIndex: 0, |
... | @@ -185,15 +184,17 @@ | ... | @@ -185,15 +184,17 @@ |
185 | if (data) { | 184 | if (data) { |
186 | data.map((item) => { | 185 | data.map((item) => { |
187 | if (item.dcode == val) { | 186 | if (item.dcode == val) { |
188 | name = item.dname; | 187 | name = item.dname |
189 | } | 188 | } |
190 | }); | 189 | }); |
191 | return name; | 190 | return name |
192 | } | 191 | } |
193 | }, | 192 | }, |
194 | //查看明细 | 193 | //查看明细 |
195 | viewDetail () { | 194 | viewDetail () { |
196 | this.detailDialog = true; | 195 | this.$popupDialog("查看明细", "workflow/components/dialog/clxxDetailDialog", { |
196 | data: this.tableData | ||
197 | }, "60%") | ||
197 | }, | 198 | }, |
198 | //设置tableData | 199 | //设置tableData |
199 | setTableData (tableData) { | 200 | setTableData (tableData) { | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="材料明细" width="60%" v-model="value" @closeDialog="closeDialog" :isButton="false"> | ||
3 | <div class="clxx"> | ||
4 | <div class="right"> | ||
5 | <!-- 材料目录明细 --> | ||
6 | <div class="clmlmx-box"> | 2 | <div class="clmlmx-box"> |
7 | <div class="title">申请材料目录</div> | 3 | <div class="title">申请材料目录</div> |
8 | <lb-table :column="column" :key="key" :heightNum="150" :pagination="false" :data="data"> | 4 | <lb-table :column="column" :key="key" :heightNum="150" :pagination="false" :data="formData.data"> |
9 | </lb-table> | 5 | </lb-table> |
6 | <div class="text-center"> | ||
7 | <el-button @click="$popupCacel">取消</el-button> | ||
10 | </div> | 8 | </div> |
11 | </div> | 9 | </div> |
12 | </div> | ||
13 | </dialogBox> | ||
14 | </template> | 10 | </template> |
15 | <script> | 11 | <script> |
16 | import { mapGetters } from "vuex"; | 12 | import { mapGetters } from "vuex"; |
17 | import {InitClml,saveClml,deleteSjClml,moveClml} from "@/api/clxx.js"; | 13 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
18 | export default { | 14 | export default { |
19 | components: { }, | ||
20 | props: { | 15 | props: { |
21 | value: { type: Boolean, default: false }, | 16 | formData: { |
22 | data: { type: Array, default: () => {} }, | 17 | type: Object, |
18 | default: () => { | ||
19 | return {} | ||
20 | } | ||
21 | } | ||
23 | }, | 22 | }, |
24 | data () { | 23 | data () { |
25 | return { | 24 | return { |
26 | isDialog: false, | ||
27 | iclass: "", | ||
28 | column: [ | 25 | column: [ |
29 | { | 26 | { |
30 | width: "50", | 27 | width: "50", |
... | @@ -41,7 +38,7 @@ export default { | ... | @@ -41,7 +38,7 @@ export default { |
41 | return ( | 38 | return ( |
42 | <div> | 39 | <div> |
43 | { | 40 | { |
44 | this.$route.query.viewtype || scope.row.sfxjcl == '0' ? <span>{}</span> : | 41 | this.$route.query.viewtype || scope.row.sfxjcl == '0' ? <span>{ }</span> : |
45 | <i class="el-icon-minus pointer" | 42 | <i class="el-icon-minus pointer" |
46 | onClick={() => { | 43 | onClick={() => { |
47 | this.handleDelete(scope.$index, scope.row); | 44 | this.handleDelete(scope.$index, scope.row); |
... | @@ -170,15 +167,12 @@ export default { | ... | @@ -170,15 +167,12 @@ export default { |
170 | }, | 167 | }, |
171 | ], | 168 | ], |
172 | key: 0, | 169 | key: 0, |
173 | tableData: [], | 170 | tableData: [] |
174 | } | 171 | } |
175 | }, | 172 | }, |
176 | computed: { | 173 | computed: { |
177 | ...mapGetters(["dictData"]) | 174 | ...mapGetters(["dictData"]) |
178 | }, | 175 | }, |
179 | created () { | ||
180 | |||
181 | }, | ||
182 | methods: { | 176 | methods: { |
183 | // 材料目录明细初始化 | 177 | // 材料目录明细初始化 |
184 | clmlInitList () { | 178 | clmlInitList () { |
... | @@ -188,14 +182,14 @@ export default { | ... | @@ -188,14 +182,14 @@ export default { |
188 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); | 182 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); |
189 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 183 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
190 | InitClml(formdata).then((res) => { | 184 | InitClml(formdata).then((res) => { |
191 | if(res.code == 200){ | 185 | if (res.code == 200) { |
192 | resolve(res.code) | 186 | resolve(res.code) |
193 | if(res.result && res.result.length > 0){ | 187 | if (res.result && res.result.length > 0) { |
194 | this.data = res.result; | 188 | this.data = res.result; |
195 | }else{ | 189 | } else { |
196 | this.data = [] | 190 | this.data = [] |
197 | } | 191 | } |
198 | }else{ | 192 | } else { |
199 | this.$message.error(res.message) | 193 | this.$message.error(res.message) |
200 | } | 194 | } |
201 | }) | 195 | }) |
... | @@ -286,62 +280,12 @@ export default { | ... | @@ -286,62 +280,12 @@ export default { |
286 | }); | 280 | }); |
287 | return name; | 281 | return name; |
288 | } | 282 | } |
289 | }, | ||
290 | closeDialog(){ | ||
291 | this.$emit("input", false); | ||
292 | }, | ||
293 | }, | ||
294 | }; | ||
295 | </script> | ||
296 | <style scoped lang='scss'> | ||
297 | @import "~@/styles/mixin.scss"; | ||
298 | |||
299 | .active { | ||
300 | background: $light-blue !important; | ||
301 | color: #fff; | ||
302 | } | ||
303 | |||
304 | .required { | ||
305 | font-size: 12px; | ||
306 | color: $pink; | ||
307 | float: left; | ||
308 | } | ||
309 | |||
310 | .cl_number { | ||
311 | float: right; | ||
312 | } | ||
313 | |||
314 | .clxx { | ||
315 | width: 100%; | ||
316 | display: flex; | ||
317 | padding-left: 5px; | ||
318 | height: calc(100vh - 125px); | ||
319 | |||
320 | .left { | ||
321 | display: flex; | ||
322 | flex-direction: column; | ||
323 | justify-content: space-between; | ||
324 | |||
325 | .item { | ||
326 | width: 28px; | ||
327 | height: 49%; | ||
328 | @include flex-center; | ||
329 | background-color: #E4E7ED; | ||
330 | border-bottom-right-radius: 10px; | ||
331 | padding: 5px; | ||
332 | cursor: pointer; | ||
333 | transition: all 0.3s; | ||
334 | |||
335 | &:hover { | ||
336 | @extend .active; | ||
337 | } | 283 | } |
338 | } | 284 | } |
339 | } | 285 | } |
340 | 286 | </script> | |
341 | .right { | 287 | <style scoped lang='scss'> |
342 | width: 100%; | 288 | @import "~@/styles/mixin.scss"; |
343 | height: 100%; | ||
344 | |||
345 | .clmlmx-box { | 289 | .clmlmx-box { |
346 | margin: 0 auto; | 290 | margin: 0 auto; |
347 | 291 | ||
... | @@ -355,68 +299,4 @@ export default { | ... | @@ -355,68 +299,4 @@ export default { |
355 | margin-bottom: -1px; | 299 | margin-bottom: -1px; |
356 | } | 300 | } |
357 | } | 301 | } |
358 | |||
359 | .clyl-box { | ||
360 | width: 100%; | ||
361 | height: 100%; | ||
362 | display: flex; | ||
363 | |||
364 | .menu-tree { | ||
365 | width: 20%; | ||
366 | min-width: 160px; | ||
367 | height: 100%; | ||
368 | margin-right: 10px; | ||
369 | border-right: 1px dotted #d9d9d9; | ||
370 | padding: 0 15px; | ||
371 | |||
372 | |||
373 | .item { | ||
374 | line-height: 30px; | ||
375 | padding-top: 5px; | ||
376 | border-bottom: 1px solid #e8e8e8; | ||
377 | font-size: 16px; | ||
378 | text-align: center; | ||
379 | color: $light-blue; | ||
380 | |||
381 | .itemIcon { | ||
382 | float: right; | ||
383 | line-height: 60px; | ||
384 | cursor: pointer; | ||
385 | } | ||
386 | |||
387 | .child { | ||
388 | line-height: 32px; | ||
389 | border-bottom: 1px solid #e8e8e8; | ||
390 | padding-left: 10px; | ||
391 | color: #6b6b6b; | ||
392 | cursor: pointer; | ||
393 | box-sizing: border-box; | ||
394 | border-radius: 6px; | ||
395 | line-height: 20px; | ||
396 | transition: all 0.3s; | ||
397 | padding: 8px 0; | ||
398 | } | ||
399 | |||
400 | .child:hover { | ||
401 | color: $light-blue; | ||
402 | transform: scale(1.1); | ||
403 | } | ||
404 | |||
405 | .checked { | ||
406 | border: 1px solid $light-blue; | ||
407 | color: $light-blue; | ||
408 | } | ||
409 | } | ||
410 | } | ||
411 | |||
412 | .clyl-img { | ||
413 | width: 75%; | ||
414 | height: 100%; | ||
415 | background: #f3f4f7; | ||
416 | margin: 0 auto; | ||
417 | position: relative; | ||
418 | } | ||
419 | } | ||
420 | } | ||
421 | } | ||
422 | </style> | 302 | </style> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment