ydb-components-material 0.1.119 → 0.1.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/static/situation.80bdb450.png +0 -0
- package/build/docs/{umi.ffb7b81c.css → umi.35f02979.css} +1 -1
- package/build/docs/umi.8b7db9c6.js +1 -0
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/3.js +2 -2
- package/build/lowcode/4.js +1 -1
- package/build/lowcode/5.js +1 -1
- package/build/lowcode/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/1.js +2 -2
- package/build/lowcode/render/default/2.js +1 -1
- package/build/lowcode/render/default/3.js +1 -1
- package/build/lowcode/render/default/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +26 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +26 -26
- package/dist/1.js +2 -2
- package/dist/2.js +1 -1
- package/dist/3.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +19 -19
- package/dist/BizComps.js.map +1 -1
- package/dist/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
- package/es/components/file-list/item.js +2 -2
- package/es/components/file-list/seal.js +5 -1
- package/es/components/file-list/signUtil.js +9 -1
- package/es/components/guide-pc/comment.d.ts +9 -0
- package/es/components/guide-pc/comment.js +93 -0
- package/es/components/guide-pc/comment.scss +15 -0
- package/es/components/guide-pc/comment.vue +117 -0
- package/es/components/guide-pc/components/accept.d.ts +7 -0
- package/es/components/guide-pc/components/accept.js +30 -0
- package/es/components/guide-pc/components/accept.scss +18 -0
- package/es/components/guide-pc/components/accept.vue +50 -0
- package/es/components/guide-pc/components/basicInfo.d.ts +7 -0
- package/es/components/guide-pc/components/basicInfo.js +89 -0
- package/es/components/guide-pc/components/basicInfo.scss +30 -0
- package/es/components/guide-pc/components/basicInfo.vue +81 -0
- package/es/components/guide-pc/components/guideTabs.d.ts +8 -0
- package/es/components/guide-pc/components/guideTabs.js +32 -0
- package/es/components/guide-pc/components/guideTabs.scss +34 -0
- package/es/components/guide-pc/components/guideTabs.vue +48 -0
- package/es/components/guide-pc/components/guideTitle.d.ts +7 -0
- package/es/components/guide-pc/components/guideTitle.js +22 -0
- package/es/components/guide-pc/components/guideTitle.scss +15 -0
- package/es/components/guide-pc/components/guideTitle.vue +43 -0
- package/es/components/guide-pc/components/materialsList.d.ts +11 -0
- package/es/components/guide-pc/components/materialsList.js +386 -0
- package/es/components/guide-pc/components/materialsList.scss +139 -0
- package/es/components/guide-pc/components/materialsList.vue +403 -0
- package/es/components/guide-pc/components/places.d.ts +7 -0
- package/es/components/guide-pc/components/places.js +110 -0
- package/es/components/guide-pc/components/places.scss +144 -0
- package/es/components/guide-pc/components/places.vue +198 -0
- package/es/components/guide-pc/components/processImg.d.ts +9 -0
- package/es/components/guide-pc/components/processImg.js +220 -0
- package/es/components/guide-pc/components/processImg.scss +117 -0
- package/es/components/guide-pc/components/processImg.vue +300 -0
- package/es/components/guide-pc/components/result.d.ts +7 -0
- package/es/components/guide-pc/components/result.js +130 -0
- package/es/components/guide-pc/components/result.scss +104 -0
- package/es/components/guide-pc/components/result.vue +191 -0
- package/es/components/guide-pc/components/situation.d.ts +12 -0
- package/es/components/guide-pc/components/situation.js +142 -0
- package/es/components/guide-pc/components/situation.scss +79 -0
- package/es/components/guide-pc/components/situation.vue +430 -0
- package/es/components/guide-pc/guide.vue +179 -0
- package/es/components/guide-pc/imgs/bg.png +0 -0
- package/es/components/guide-pc/imgs/cant.png +0 -0
- package/es/components/guide-pc/imgs/dept.png +0 -0
- package/es/components/guide-pc/imgs/error.png +0 -0
- package/es/components/guide-pc/imgs/judge.png +0 -0
- package/es/components/guide-pc/imgs/pass.png +0 -0
- package/es/components/guide-pc/imgs/rightArr.png +0 -0
- package/es/components/guide-pc/imgs/situation.png +0 -0
- package/es/components/guide-pc/imgs/time.png +0 -0
- package/es/components/guide-pc/imgs/titleL.png +0 -0
- package/es/components/guide-pc/imgs/titleR.png +0 -0
- package/es/components/guide-pc/index.d.ts +37 -0
- package/es/components/guide-pc/index.js +440 -0
- package/es/components/guide-pc/index.scss +185 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/lib/components/file-list/item.js +2 -2
- package/lib/components/file-list/seal.js +5 -1
- package/lib/components/file-list/signUtil.js +9 -1
- package/lib/components/guide-pc/comment.d.ts +9 -0
- package/lib/components/guide-pc/comment.js +98 -0
- package/lib/components/guide-pc/comment.scss +15 -0
- package/lib/components/guide-pc/comment.vue +117 -0
- package/lib/components/guide-pc/components/accept.d.ts +7 -0
- package/lib/components/guide-pc/components/accept.js +36 -0
- package/lib/components/guide-pc/components/accept.scss +18 -0
- package/lib/components/guide-pc/components/accept.vue +50 -0
- package/lib/components/guide-pc/components/basicInfo.d.ts +7 -0
- package/lib/components/guide-pc/components/basicInfo.js +95 -0
- package/lib/components/guide-pc/components/basicInfo.scss +30 -0
- package/lib/components/guide-pc/components/basicInfo.vue +81 -0
- package/lib/components/guide-pc/components/guideTabs.d.ts +8 -0
- package/lib/components/guide-pc/components/guideTabs.js +37 -0
- package/lib/components/guide-pc/components/guideTabs.scss +34 -0
- package/lib/components/guide-pc/components/guideTabs.vue +48 -0
- package/lib/components/guide-pc/components/guideTitle.d.ts +7 -0
- package/lib/components/guide-pc/components/guideTitle.js +28 -0
- package/lib/components/guide-pc/components/guideTitle.scss +15 -0
- package/lib/components/guide-pc/components/guideTitle.vue +43 -0
- package/lib/components/guide-pc/components/materialsList.d.ts +11 -0
- package/lib/components/guide-pc/components/materialsList.js +392 -0
- package/lib/components/guide-pc/components/materialsList.scss +139 -0
- package/lib/components/guide-pc/components/materialsList.vue +403 -0
- package/lib/components/guide-pc/components/places.d.ts +7 -0
- package/lib/components/guide-pc/components/places.js +116 -0
- package/lib/components/guide-pc/components/places.scss +144 -0
- package/lib/components/guide-pc/components/places.vue +198 -0
- package/lib/components/guide-pc/components/processImg.d.ts +9 -0
- package/lib/components/guide-pc/components/processImg.js +226 -0
- package/lib/components/guide-pc/components/processImg.scss +117 -0
- package/lib/components/guide-pc/components/processImg.vue +300 -0
- package/lib/components/guide-pc/components/result.d.ts +7 -0
- package/lib/components/guide-pc/components/result.js +136 -0
- package/lib/components/guide-pc/components/result.scss +104 -0
- package/lib/components/guide-pc/components/result.vue +191 -0
- package/lib/components/guide-pc/components/situation.d.ts +12 -0
- package/lib/components/guide-pc/components/situation.js +147 -0
- package/lib/components/guide-pc/components/situation.scss +79 -0
- package/lib/components/guide-pc/components/situation.vue +430 -0
- package/lib/components/guide-pc/guide.vue +179 -0
- package/lib/components/guide-pc/imgs/bg.png +0 -0
- package/lib/components/guide-pc/imgs/cant.png +0 -0
- package/lib/components/guide-pc/imgs/dept.png +0 -0
- package/lib/components/guide-pc/imgs/error.png +0 -0
- package/lib/components/guide-pc/imgs/judge.png +0 -0
- package/lib/components/guide-pc/imgs/pass.png +0 -0
- package/lib/components/guide-pc/imgs/rightArr.png +0 -0
- package/lib/components/guide-pc/imgs/situation.png +0 -0
- package/lib/components/guide-pc/imgs/time.png +0 -0
- package/lib/components/guide-pc/imgs/titleL.png +0 -0
- package/lib/components/guide-pc/imgs/titleR.png +0 -0
- package/lib/components/guide-pc/index.d.ts +37 -0
- package/lib/components/guide-pc/index.js +445 -0
- package/lib/components/guide-pc/index.scss +185 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lowcode/guide-pc/meta.ts +338 -0
- package/lowcode_es/guide-pc/meta.d.ts +22 -0
- package/lowcode_es/guide-pc/meta.js +315 -0
- package/lowcode_es/meta.js +3 -2
- package/lowcode_lib/guide-pc/meta.d.ts +22 -0
- package/lowcode_lib/guide-pc/meta.js +320 -0
- package/lowcode_lib/meta.js +17 -16
- package/package.json +3 -3
- package/build/docs/umi.55472eae.js +0 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
.materialsList-content {
|
|
2
|
+
padding-top: 20px;
|
|
3
|
+
|
|
4
|
+
.table-con {
|
|
5
|
+
margin-top: 20px;
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.material-table {
|
|
10
|
+
width: 100%;
|
|
11
|
+
border-collapse: collapse;
|
|
12
|
+
border: 1px solid #e8e8e8;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
color: #222222;
|
|
15
|
+
|
|
16
|
+
thead {
|
|
17
|
+
th {
|
|
18
|
+
background: #f7f8fa;
|
|
19
|
+
padding: 12px 16px;
|
|
20
|
+
text-align: left;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
color: #333333;
|
|
23
|
+
border-bottom: 1px solid #e8e8e8;
|
|
24
|
+
border-right: 1px solid #e8e8e8;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
|
|
27
|
+
&:last-child {
|
|
28
|
+
border-right: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
tbody {
|
|
34
|
+
td {
|
|
35
|
+
padding: 12px 16px;
|
|
36
|
+
border-bottom: 1px solid #e8e8e8;
|
|
37
|
+
border-right: 1px solid #e8e8e8;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
|
|
40
|
+
&:last-child {
|
|
41
|
+
border-right: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.col-name { width: 110px; }
|
|
47
|
+
.col-type { width: 100px; text-align: center; }
|
|
48
|
+
.col-need { width: 100px; text-align: center; }
|
|
49
|
+
.col-sample { width: 120px; text-align: center; }
|
|
50
|
+
.col-form { width: 120px; text-align: center; }
|
|
51
|
+
.col-check { width: 100px; text-align: center; }
|
|
52
|
+
|
|
53
|
+
.center {
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.data-row {
|
|
58
|
+
&:nth-child(even) {
|
|
59
|
+
background: #f7f8fa;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.sub-row {
|
|
63
|
+
td {
|
|
64
|
+
padding-left: 16px;
|
|
65
|
+
background: #fafbfc;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.material-name-cell {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 8px;
|
|
74
|
+
|
|
75
|
+
&.sub-name {
|
|
76
|
+
.sub-indent {
|
|
77
|
+
display: inline-block;
|
|
78
|
+
width: 20px;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
&::before {
|
|
81
|
+
content: '└─';
|
|
82
|
+
color: #ccc;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.type-btns {
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
gap: 4px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.type-tag {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
width: 20px;
|
|
97
|
+
height: 18px;
|
|
98
|
+
border-radius: 4px;
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
align-items: center;
|
|
102
|
+
color: #ffffff;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
|
|
105
|
+
&-zhi { background: #1678FF; }
|
|
106
|
+
&-zi { background: #9570F7; }
|
|
107
|
+
&-xiang { background: #15BC83; }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.link-list {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
gap: 4px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.link {
|
|
117
|
+
color: #1678FF;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
text-decoration: none;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
text-decoration: underline;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.preview-dialog {
|
|
128
|
+
.preview-inner {
|
|
129
|
+
height: 800px;
|
|
130
|
+
width: 100%;
|
|
131
|
+
|
|
132
|
+
.loading-con {
|
|
133
|
+
text-align: center;
|
|
134
|
+
padding: 40px;
|
|
135
|
+
color: #999;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="materialsList-content">
|
|
3
|
+
|
|
4
|
+
<!-- 表格 -->
|
|
5
|
+
|
|
6
|
+
<view class="table-con">
|
|
7
|
+
<el-table
|
|
8
|
+
:data="list"
|
|
9
|
+
stripe
|
|
10
|
+
row-key="id"
|
|
11
|
+
border
|
|
12
|
+
:tree-props="{children: 'subMaterials'}"
|
|
13
|
+
default-expand-all
|
|
14
|
+
>
|
|
15
|
+
<el-table-column
|
|
16
|
+
prop="materialName"
|
|
17
|
+
label="材料名称"
|
|
18
|
+
/>
|
|
19
|
+
<el-table-column
|
|
20
|
+
prop="materialExample"
|
|
21
|
+
label="材料分类"
|
|
22
|
+
align="center"
|
|
23
|
+
width="100"
|
|
24
|
+
>
|
|
25
|
+
<view slot-scope="{ row }" class="type-content" style="text-align: center;">
|
|
26
|
+
<template v-if="!row.subMaterials">
|
|
27
|
+
<view v-if="getFileType(row) == '智'" class="type type-zhi" @click="showTip('智')" />
|
|
28
|
+
<view v-if="getFileType(row) == '享'" class="type type-xiang" @click="showTip('享')" />
|
|
29
|
+
<view v-if="getFileType(row) == '自'" class="type type-zi" @click="showTip('自')" />
|
|
30
|
+
</template>
|
|
31
|
+
</view>
|
|
32
|
+
</el-table-column>
|
|
33
|
+
<el-table-column
|
|
34
|
+
prop="materialExample"
|
|
35
|
+
label="材料必要性"
|
|
36
|
+
align="center"
|
|
37
|
+
>
|
|
38
|
+
<view slot-scope="{ row }">
|
|
39
|
+
{{ row.isNeed == '1' ? '必要' : '非必要' }}
|
|
40
|
+
</view>
|
|
41
|
+
</el-table-column>
|
|
42
|
+
<el-table-column
|
|
43
|
+
prop="materialExample"
|
|
44
|
+
label="样表"
|
|
45
|
+
align="center"
|
|
46
|
+
>
|
|
47
|
+
<view class="link" slot-scope="{ row }">
|
|
48
|
+
<view v-for="item in initMaterialExample(row)" class="item" @click="previewFile(item)">
|
|
49
|
+
{{ item.name }}
|
|
50
|
+
</view>
|
|
51
|
+
</view>
|
|
52
|
+
</el-table-column>
|
|
53
|
+
|
|
54
|
+
<el-table-column
|
|
55
|
+
prop="formGuid"
|
|
56
|
+
label="空白表格"
|
|
57
|
+
align="center"
|
|
58
|
+
>
|
|
59
|
+
<view class="link" slot-scope="{ row }">
|
|
60
|
+
<view v-for="item in initFormGuid(row)" class="item" @click="goDownLoad(item)">
|
|
61
|
+
{{ item.name }}
|
|
62
|
+
</view>
|
|
63
|
+
</view>
|
|
64
|
+
</el-table-column>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<el-table-column
|
|
68
|
+
label="审查要点"
|
|
69
|
+
align="center"
|
|
70
|
+
>
|
|
71
|
+
<view v-if="row.keyPoint" class="link" slot-scope="{ row }" @click="checkPoint(row)">
|
|
72
|
+
查看
|
|
73
|
+
</view>
|
|
74
|
+
</el-table-column>
|
|
75
|
+
|
|
76
|
+
</el-table>
|
|
77
|
+
</view>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<!-- 预览的展示区域 -->
|
|
81
|
+
<u-popup
|
|
82
|
+
:show="previewShow"
|
|
83
|
+
closeable
|
|
84
|
+
round="10"
|
|
85
|
+
mode="center"
|
|
86
|
+
bgColor="transparent"
|
|
87
|
+
@close="previewShow = false"
|
|
88
|
+
>
|
|
89
|
+
<view class="preview-inner">
|
|
90
|
+
<view class="loading-con" v-if="previewLoading">
|
|
91
|
+
<u-loading-icon text="加载中..." textSize="18" />
|
|
92
|
+
</view>
|
|
93
|
+
<!-- v-if="!previewLoading" -->
|
|
94
|
+
<iframe
|
|
95
|
+
id="previewIframe"
|
|
96
|
+
frameborder="0"
|
|
97
|
+
height="100%"
|
|
98
|
+
width="100%"
|
|
99
|
+
/>
|
|
100
|
+
</view>
|
|
101
|
+
</u-popup>
|
|
102
|
+
|
|
103
|
+
</view>
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
<script>
|
|
107
|
+
import { getFileUrlApi, previewFileApi } from '@/api/business.js'
|
|
108
|
+
import { hasShareFile } from '@/utils/testShareFile.js'
|
|
109
|
+
export default {
|
|
110
|
+
data() {
|
|
111
|
+
return {
|
|
112
|
+
list: [],
|
|
113
|
+
|
|
114
|
+
previewShow: false,
|
|
115
|
+
previewLoading: false,
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
mounted() {
|
|
119
|
+
// this.initData()
|
|
120
|
+
this.initDataNew()
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
methods: {
|
|
124
|
+
// 初始化材料列表
|
|
125
|
+
initDataNew() {
|
|
126
|
+
const finalMaterials = uni.getStorageSync('finalMaterials')
|
|
127
|
+
const { taskGeneralMaterials } = uni.getStorageSync('eventInfo')
|
|
128
|
+
this.list = finalMaterials || taskGeneralMaterials
|
|
129
|
+
console.log(this.list, 'this.list');
|
|
130
|
+
},
|
|
131
|
+
// 展示材料类型的提示信息
|
|
132
|
+
showTip(type) {
|
|
133
|
+
const obj = {
|
|
134
|
+
'智': '本材料为智能生成材料,系统将根据您填写的信息自动生成申报材料。',
|
|
135
|
+
'享': '本材料为共享材料,数据由大数据共享获取,无需用户自行准备。',
|
|
136
|
+
'自': '需要用户自行准备申报材料'
|
|
137
|
+
}
|
|
138
|
+
uni.$u.toast(obj[type], 3000)
|
|
139
|
+
},
|
|
140
|
+
// 查询材料的类型
|
|
141
|
+
getFileType(file) {
|
|
142
|
+
let finalType = ''
|
|
143
|
+
if(file.formConvertMaterial) { // 智能制作材料
|
|
144
|
+
finalType = '智'
|
|
145
|
+
} else if(file.noNeedSubmit) { // 共享材料(免于提交)
|
|
146
|
+
finalType = '享'
|
|
147
|
+
}else{ // 自备材料
|
|
148
|
+
finalType = '自'
|
|
149
|
+
}
|
|
150
|
+
return finalType
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
// 审查要点 [按钮]
|
|
154
|
+
checkPoint(item) {
|
|
155
|
+
const keyPoint = item.keyPoint
|
|
156
|
+
if(!keyPoint.fileUrl) {
|
|
157
|
+
uni.$u.toast('该审查要点暂时无法查看')
|
|
158
|
+
return
|
|
159
|
+
}
|
|
160
|
+
uni.setStorageSync('keyPoint', keyPoint)
|
|
161
|
+
uni.navigateTo({
|
|
162
|
+
url: `/pagesDeclarePc/keyPoints`
|
|
163
|
+
})
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
// ============空表下载开始============
|
|
168
|
+
// 去下载页面[方法]
|
|
169
|
+
async goDownLoad(fileObj) {
|
|
170
|
+
console.log('下载文件', fileObj);
|
|
171
|
+
const fileId = fileObj.id || fileObj.url
|
|
172
|
+
const fileUrl = await this.getFileUrlFun(fileId)
|
|
173
|
+
const nameArr = fileObj.name.split('.')
|
|
174
|
+
const format = nameArr[nameArr.length - 1]
|
|
175
|
+
|
|
176
|
+
const url = fileUrl.split('?')[0]
|
|
177
|
+
const params = JSON.stringify(this.parseURLParams(fileUrl))
|
|
178
|
+
|
|
179
|
+
// uni.webView.navigateTo({
|
|
180
|
+
// url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
181
|
+
// })
|
|
182
|
+
// jWeixin.miniProgram.navigateTo({
|
|
183
|
+
// url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
184
|
+
// })
|
|
185
|
+
console.log(this.$getEnv(), '当前环境====');
|
|
186
|
+
|
|
187
|
+
if(this.$getEnv().wx) { // 微信小程序
|
|
188
|
+
jWeixin.miniProgram.navigateTo({
|
|
189
|
+
url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
190
|
+
})
|
|
191
|
+
}else if(this.$getEnv().my) { // 支付宝小程序
|
|
192
|
+
my.navigateTo({
|
|
193
|
+
url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
194
|
+
})
|
|
195
|
+
}else{
|
|
196
|
+
window.open(fileUrl)
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
// ============空表下载结束============
|
|
200
|
+
|
|
201
|
+
// ============ 样表预览开始 ============
|
|
202
|
+
// 样表预览 [按钮]
|
|
203
|
+
async previewFile({ url }) {
|
|
204
|
+
const fileUrl = await this.getFileUrlFun(url)
|
|
205
|
+
this.preview(fileUrl)
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
// 预览材料 [方法]
|
|
209
|
+
async preview(fileUrl) {
|
|
210
|
+
this.previewShow = true
|
|
211
|
+
this.previewLoading = true
|
|
212
|
+
const pageUrl = await this.previewFileFun(fileUrl)
|
|
213
|
+
this.previewUrl = pageUrl
|
|
214
|
+
console.log('预览地址', pageUrl);
|
|
215
|
+
// this.previewShow = true
|
|
216
|
+
setTimeout(() => {
|
|
217
|
+
document.getElementById('previewIframe').src = pageUrl
|
|
218
|
+
}, 500);
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
// 通过文件地址 获取预览地址
|
|
222
|
+
previewFileFun(fileUrl) {
|
|
223
|
+
const params = { url: fileUrl }
|
|
224
|
+
return new Promise((resolve, reject) => {
|
|
225
|
+
previewFileApi(params).then((res) => {
|
|
226
|
+
const { url } = res
|
|
227
|
+
resolve(url)
|
|
228
|
+
this.previewLoading = false
|
|
229
|
+
}).catch(err => {
|
|
230
|
+
console.log(err)
|
|
231
|
+
reject(err)
|
|
232
|
+
this.previewLoading = false
|
|
233
|
+
})
|
|
234
|
+
|
|
235
|
+
})
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
// ============ 样表预览结束 ============
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
// 将url的参数进行解构 [方法]
|
|
242
|
+
parseURLParams(url) {
|
|
243
|
+
let queryParams = {}
|
|
244
|
+
// 正则匹配规则
|
|
245
|
+
let reg = /([^?=&]+)=([^?=&]+)/g
|
|
246
|
+
// 利用replace替换
|
|
247
|
+
url.replace(reg, function() {
|
|
248
|
+
// 用伪数组进行键值对拼接
|
|
249
|
+
queryParams[arguments[1]] = arguments[2]
|
|
250
|
+
})
|
|
251
|
+
// 返回参数键值对
|
|
252
|
+
return queryParams
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
// =============== API ===============
|
|
256
|
+
// 通过文件id获取文件地址
|
|
257
|
+
getFileUrlFun(id) {
|
|
258
|
+
const params = {
|
|
259
|
+
effectiveTime: '3600',
|
|
260
|
+
id
|
|
261
|
+
}
|
|
262
|
+
return new Promise((resole) => {
|
|
263
|
+
getFileUrlApi(params).then((res) => {
|
|
264
|
+
if(res && res.presignedUrlList && res.presignedUrlList.length > 0) {
|
|
265
|
+
resole(res.presignedUrlList[2])
|
|
266
|
+
}else{
|
|
267
|
+
uni.$u.toast('暂无相关材料')
|
|
268
|
+
}
|
|
269
|
+
}).catch(err => {
|
|
270
|
+
console.log(err)
|
|
271
|
+
uni.$u.toast('暂无相关材料')
|
|
272
|
+
})
|
|
273
|
+
})
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
// 展示空表
|
|
278
|
+
initFormGuid(row) {
|
|
279
|
+
if(!row.formGuid || row.formGuid == '[]') {
|
|
280
|
+
return ''
|
|
281
|
+
} else {
|
|
282
|
+
const formGuidJson = JSON.parse(row.formGuid)
|
|
283
|
+
return formGuidJson
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
// 展示样表
|
|
287
|
+
initMaterialExample(row) {
|
|
288
|
+
if(!row.materialExample || row.materialExample == '[]') {
|
|
289
|
+
return ''
|
|
290
|
+
} else {
|
|
291
|
+
const formGuidJson = JSON.parse(row.materialExample)
|
|
292
|
+
return formGuidJson
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
</script>
|
|
299
|
+
|
|
300
|
+
<style lang="scss" scoped>
|
|
301
|
+
/deep/ .el-table{
|
|
302
|
+
color: #222222;
|
|
303
|
+
}
|
|
304
|
+
/deep/ .el-table thead{
|
|
305
|
+
color: #222222;
|
|
306
|
+
}
|
|
307
|
+
/deep/ .el-table th.el-table__cell{
|
|
308
|
+
background: #f7f8fa !important;
|
|
309
|
+
}
|
|
310
|
+
/deep/ .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{
|
|
311
|
+
background: #f7f8fa !important;
|
|
312
|
+
}
|
|
313
|
+
.materialsList-content{
|
|
314
|
+
padding-top: 20px;
|
|
315
|
+
|
|
316
|
+
.list{
|
|
317
|
+
.item{
|
|
318
|
+
background: #ffffff;
|
|
319
|
+
margin-bottom: 12px;
|
|
320
|
+
padding: 16px;
|
|
321
|
+
border-radius: 8px;
|
|
322
|
+
.title-con{
|
|
323
|
+
display: flex;
|
|
324
|
+
justify-content: flex-start;
|
|
325
|
+
align-items: center;
|
|
326
|
+
.type{
|
|
327
|
+
width: 20px;
|
|
328
|
+
height: 17px;
|
|
329
|
+
border-radius: 4px;
|
|
330
|
+
// box-sizing: border-box;
|
|
331
|
+
border: 1px solid #1678FF;
|
|
332
|
+
color: #1678FF;
|
|
333
|
+
font-size: 12px;
|
|
334
|
+
display: flex;
|
|
335
|
+
justify-content: center;
|
|
336
|
+
align-items: center;
|
|
337
|
+
margin-right: 8px;
|
|
338
|
+
}
|
|
339
|
+
.type1{
|
|
340
|
+
border: 1px solid #369EB7;
|
|
341
|
+
color: #369EB7;
|
|
342
|
+
}
|
|
343
|
+
.type2{
|
|
344
|
+
border: 1px solid #8358F6;
|
|
345
|
+
color: #8358F6;
|
|
346
|
+
}
|
|
347
|
+
.title{
|
|
348
|
+
font-size: 15px;
|
|
349
|
+
font-weight: 500;
|
|
350
|
+
color: #333333;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
.table-con{
|
|
354
|
+
margin-top: 30px;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.preview-inner{
|
|
360
|
+
height: 900px;
|
|
361
|
+
width: 800px;
|
|
362
|
+
}
|
|
363
|
+
.link{
|
|
364
|
+
color: #1678FF;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.type-content{
|
|
369
|
+
display: flex;
|
|
370
|
+
justify-content: center;
|
|
371
|
+
align-items: center;
|
|
372
|
+
}
|
|
373
|
+
.type{
|
|
374
|
+
width: 20px;
|
|
375
|
+
height: 18px;
|
|
376
|
+
border-radius: 4px;
|
|
377
|
+
font-size: 12px;
|
|
378
|
+
display: flex;
|
|
379
|
+
justify-content: center;
|
|
380
|
+
align-items: center;
|
|
381
|
+
color: #ffffff;
|
|
382
|
+
padding-bottom: 2px;
|
|
383
|
+
}
|
|
384
|
+
.type-zhi{
|
|
385
|
+
background: #1678FF;
|
|
386
|
+
&::after{
|
|
387
|
+
content: '智';
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
.type-zi{
|
|
391
|
+
background: #9570F7;
|
|
392
|
+
&::after{
|
|
393
|
+
content: '自';
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
.type-xiang{
|
|
397
|
+
background: #15BC83;
|
|
398
|
+
&::after{
|
|
399
|
+
content: '享';
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
</style>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import GuideTitle from "./guideTitle";
|
|
3
|
+
import { Map, Marker } from 'react-amap';
|
|
4
|
+
import emptyImg from "../../guide/imgs/empty.png";
|
|
5
|
+
import "./places.scss";
|
|
6
|
+
var Places = function Places(_ref) {
|
|
7
|
+
var eventInfoProp = _ref.eventInfo;
|
|
8
|
+
var _React$useState = React.useState({
|
|
9
|
+
longitude: 112.52,
|
|
10
|
+
latitude: 37.81
|
|
11
|
+
}),
|
|
12
|
+
local = _React$useState[0],
|
|
13
|
+
setLocal = _React$useState[1];
|
|
14
|
+
var _React$useState2 = React.useState([]),
|
|
15
|
+
list = _React$useState2[0],
|
|
16
|
+
setList = _React$useState2[1];
|
|
17
|
+
React.useEffect(function () {
|
|
18
|
+
var eventInfo = eventInfoProp;
|
|
19
|
+
var hallList = (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.hallList) || [];
|
|
20
|
+
setList(hallList);
|
|
21
|
+
if (hallList.length > 0) {
|
|
22
|
+
clickDotHandle(hallList[0]);
|
|
23
|
+
}
|
|
24
|
+
}, [eventInfoProp]);
|
|
25
|
+
var setCenter = function setCenter(latitude, longitude) {
|
|
26
|
+
setLocal({
|
|
27
|
+
latitude: latitude,
|
|
28
|
+
longitude: longitude
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
var clickDotHandle = function clickDotHandle(point) {
|
|
32
|
+
var latitude = point.latitude,
|
|
33
|
+
longitude = point.longitude;
|
|
34
|
+
if (latitude && longitude) {
|
|
35
|
+
setCenter(latitude, longitude);
|
|
36
|
+
} else {
|
|
37
|
+
setCenter(37.81, 112.52);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "places-content"
|
|
42
|
+
}, /*#__PURE__*/React.createElement(GuideTitle, {
|
|
43
|
+
title: "\u529E\u4E8B\u5927\u5385"
|
|
44
|
+
}), list.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "inner-content"
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "map-con"
|
|
48
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
style: {
|
|
50
|
+
height: '400px',
|
|
51
|
+
width: '100%'
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Map, {
|
|
54
|
+
amapkey: "fced30d9f04276a2a2071081f960170d",
|
|
55
|
+
center: [local.longitude, local.latitude],
|
|
56
|
+
zoom: 16
|
|
57
|
+
}, list.map(function (item, index) {
|
|
58
|
+
return item.longitude && item.latitude && /*#__PURE__*/React.createElement(Marker, {
|
|
59
|
+
key: item.hallName || index,
|
|
60
|
+
position: [item.longitude, item.latitude]
|
|
61
|
+
});
|
|
62
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "list-con"
|
|
64
|
+
}, list.map(function (item, index) {
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: "item",
|
|
67
|
+
key: index,
|
|
68
|
+
onClick: function onClick() {
|
|
69
|
+
return clickDotHandle(item);
|
|
70
|
+
}
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "name"
|
|
73
|
+
}, item.hallName), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "info"
|
|
75
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
76
|
+
className: "icon icon-address"
|
|
77
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
78
|
+
className: "title_"
|
|
79
|
+
}, "\u5730\u5740\uFF1A"), /*#__PURE__*/React.createElement("span", {
|
|
80
|
+
className: "desc"
|
|
81
|
+
}, item.addressDetail)), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "info"
|
|
83
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
84
|
+
className: "icon icon-time"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
86
|
+
className: "title_"
|
|
87
|
+
}, "\u65F6\u95F4\uFF1A"), /*#__PURE__*/React.createElement("span", {
|
|
88
|
+
className: "desc"
|
|
89
|
+
}, item.firstStartTime, " - ", item.firstEndTime, " / ", item.secondStartTime, " - ", item.secondEndTime)), /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "info"
|
|
91
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
92
|
+
className: "icon icon-phone"
|
|
93
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
94
|
+
className: "title_"
|
|
95
|
+
}, "\u7535\u8BDD\uFF1A"), /*#__PURE__*/React.createElement("span", {
|
|
96
|
+
className: "desc"
|
|
97
|
+
}, item.consultPhone)));
|
|
98
|
+
}))) : /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: "empty-con"
|
|
100
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: "empty-img",
|
|
102
|
+
style: {
|
|
103
|
+
backgroundImage: "url(" + emptyImg + ")"
|
|
104
|
+
}
|
|
105
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: "empty-text"
|
|
107
|
+
}, "\u6682\u65E0\u529E\u4E8B\u5927\u5385")));
|
|
108
|
+
};
|
|
109
|
+
Places.displayName = 'Places';
|
|
110
|
+
export default Places;
|