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.
Files changed (165) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/static/situation.80bdb450.png +0 -0
  7. package/build/docs/{umi.ffb7b81c.css → umi.35f02979.css} +1 -1
  8. package/build/docs/umi.8b7db9c6.js +1 -0
  9. package/build/docs/~demos/:uuid.html +3 -3
  10. package/build/docs/~demos/colorful-button-demo.html +3 -3
  11. package/build/docs/~demos/colorful-input-demo.html +3 -3
  12. package/build/lowcode/3.js +2 -2
  13. package/build/lowcode/4.js +1 -1
  14. package/build/lowcode/5.js +1 -1
  15. package/build/lowcode/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  16. package/build/lowcode/assets-daily.json +11 -11
  17. package/build/lowcode/assets-dev.json +2 -2
  18. package/build/lowcode/assets-prod.json +11 -11
  19. package/build/lowcode/index.js +1 -1
  20. package/build/lowcode/meta.js +1 -1
  21. package/build/lowcode/preview.js +9 -9
  22. package/build/lowcode/render/default/1.js +2 -2
  23. package/build/lowcode/render/default/2.js +1 -1
  24. package/build/lowcode/render/default/3.js +1 -1
  25. package/build/lowcode/render/default/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  26. package/build/lowcode/render/default/view.css +1 -1
  27. package/build/lowcode/render/default/view.js +26 -26
  28. package/build/lowcode/view.css +1 -1
  29. package/build/lowcode/view.js +26 -26
  30. package/dist/1.js +2 -2
  31. package/dist/2.js +1 -1
  32. package/dist/3.js +1 -1
  33. package/dist/BizComps.css +1 -1
  34. package/dist/BizComps.js +19 -19
  35. package/dist/BizComps.js.map +1 -1
  36. package/dist/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  37. package/es/components/file-list/item.js +2 -2
  38. package/es/components/file-list/seal.js +5 -1
  39. package/es/components/file-list/signUtil.js +9 -1
  40. package/es/components/guide-pc/comment.d.ts +9 -0
  41. package/es/components/guide-pc/comment.js +93 -0
  42. package/es/components/guide-pc/comment.scss +15 -0
  43. package/es/components/guide-pc/comment.vue +117 -0
  44. package/es/components/guide-pc/components/accept.d.ts +7 -0
  45. package/es/components/guide-pc/components/accept.js +30 -0
  46. package/es/components/guide-pc/components/accept.scss +18 -0
  47. package/es/components/guide-pc/components/accept.vue +50 -0
  48. package/es/components/guide-pc/components/basicInfo.d.ts +7 -0
  49. package/es/components/guide-pc/components/basicInfo.js +89 -0
  50. package/es/components/guide-pc/components/basicInfo.scss +30 -0
  51. package/es/components/guide-pc/components/basicInfo.vue +81 -0
  52. package/es/components/guide-pc/components/guideTabs.d.ts +8 -0
  53. package/es/components/guide-pc/components/guideTabs.js +32 -0
  54. package/es/components/guide-pc/components/guideTabs.scss +34 -0
  55. package/es/components/guide-pc/components/guideTabs.vue +48 -0
  56. package/es/components/guide-pc/components/guideTitle.d.ts +7 -0
  57. package/es/components/guide-pc/components/guideTitle.js +22 -0
  58. package/es/components/guide-pc/components/guideTitle.scss +15 -0
  59. package/es/components/guide-pc/components/guideTitle.vue +43 -0
  60. package/es/components/guide-pc/components/materialsList.d.ts +11 -0
  61. package/es/components/guide-pc/components/materialsList.js +386 -0
  62. package/es/components/guide-pc/components/materialsList.scss +139 -0
  63. package/es/components/guide-pc/components/materialsList.vue +403 -0
  64. package/es/components/guide-pc/components/places.d.ts +7 -0
  65. package/es/components/guide-pc/components/places.js +110 -0
  66. package/es/components/guide-pc/components/places.scss +144 -0
  67. package/es/components/guide-pc/components/places.vue +198 -0
  68. package/es/components/guide-pc/components/processImg.d.ts +9 -0
  69. package/es/components/guide-pc/components/processImg.js +220 -0
  70. package/es/components/guide-pc/components/processImg.scss +117 -0
  71. package/es/components/guide-pc/components/processImg.vue +300 -0
  72. package/es/components/guide-pc/components/result.d.ts +7 -0
  73. package/es/components/guide-pc/components/result.js +130 -0
  74. package/es/components/guide-pc/components/result.scss +104 -0
  75. package/es/components/guide-pc/components/result.vue +191 -0
  76. package/es/components/guide-pc/components/situation.d.ts +12 -0
  77. package/es/components/guide-pc/components/situation.js +142 -0
  78. package/es/components/guide-pc/components/situation.scss +79 -0
  79. package/es/components/guide-pc/components/situation.vue +430 -0
  80. package/es/components/guide-pc/guide.vue +179 -0
  81. package/es/components/guide-pc/imgs/bg.png +0 -0
  82. package/es/components/guide-pc/imgs/cant.png +0 -0
  83. package/es/components/guide-pc/imgs/dept.png +0 -0
  84. package/es/components/guide-pc/imgs/error.png +0 -0
  85. package/es/components/guide-pc/imgs/judge.png +0 -0
  86. package/es/components/guide-pc/imgs/pass.png +0 -0
  87. package/es/components/guide-pc/imgs/rightArr.png +0 -0
  88. package/es/components/guide-pc/imgs/situation.png +0 -0
  89. package/es/components/guide-pc/imgs/time.png +0 -0
  90. package/es/components/guide-pc/imgs/titleL.png +0 -0
  91. package/es/components/guide-pc/imgs/titleR.png +0 -0
  92. package/es/components/guide-pc/index.d.ts +37 -0
  93. package/es/components/guide-pc/index.js +440 -0
  94. package/es/components/guide-pc/index.scss +185 -0
  95. package/es/index.d.ts +2 -0
  96. package/es/index.js +1 -0
  97. package/lib/components/file-list/item.js +2 -2
  98. package/lib/components/file-list/seal.js +5 -1
  99. package/lib/components/file-list/signUtil.js +9 -1
  100. package/lib/components/guide-pc/comment.d.ts +9 -0
  101. package/lib/components/guide-pc/comment.js +98 -0
  102. package/lib/components/guide-pc/comment.scss +15 -0
  103. package/lib/components/guide-pc/comment.vue +117 -0
  104. package/lib/components/guide-pc/components/accept.d.ts +7 -0
  105. package/lib/components/guide-pc/components/accept.js +36 -0
  106. package/lib/components/guide-pc/components/accept.scss +18 -0
  107. package/lib/components/guide-pc/components/accept.vue +50 -0
  108. package/lib/components/guide-pc/components/basicInfo.d.ts +7 -0
  109. package/lib/components/guide-pc/components/basicInfo.js +95 -0
  110. package/lib/components/guide-pc/components/basicInfo.scss +30 -0
  111. package/lib/components/guide-pc/components/basicInfo.vue +81 -0
  112. package/lib/components/guide-pc/components/guideTabs.d.ts +8 -0
  113. package/lib/components/guide-pc/components/guideTabs.js +37 -0
  114. package/lib/components/guide-pc/components/guideTabs.scss +34 -0
  115. package/lib/components/guide-pc/components/guideTabs.vue +48 -0
  116. package/lib/components/guide-pc/components/guideTitle.d.ts +7 -0
  117. package/lib/components/guide-pc/components/guideTitle.js +28 -0
  118. package/lib/components/guide-pc/components/guideTitle.scss +15 -0
  119. package/lib/components/guide-pc/components/guideTitle.vue +43 -0
  120. package/lib/components/guide-pc/components/materialsList.d.ts +11 -0
  121. package/lib/components/guide-pc/components/materialsList.js +392 -0
  122. package/lib/components/guide-pc/components/materialsList.scss +139 -0
  123. package/lib/components/guide-pc/components/materialsList.vue +403 -0
  124. package/lib/components/guide-pc/components/places.d.ts +7 -0
  125. package/lib/components/guide-pc/components/places.js +116 -0
  126. package/lib/components/guide-pc/components/places.scss +144 -0
  127. package/lib/components/guide-pc/components/places.vue +198 -0
  128. package/lib/components/guide-pc/components/processImg.d.ts +9 -0
  129. package/lib/components/guide-pc/components/processImg.js +226 -0
  130. package/lib/components/guide-pc/components/processImg.scss +117 -0
  131. package/lib/components/guide-pc/components/processImg.vue +300 -0
  132. package/lib/components/guide-pc/components/result.d.ts +7 -0
  133. package/lib/components/guide-pc/components/result.js +136 -0
  134. package/lib/components/guide-pc/components/result.scss +104 -0
  135. package/lib/components/guide-pc/components/result.vue +191 -0
  136. package/lib/components/guide-pc/components/situation.d.ts +12 -0
  137. package/lib/components/guide-pc/components/situation.js +147 -0
  138. package/lib/components/guide-pc/components/situation.scss +79 -0
  139. package/lib/components/guide-pc/components/situation.vue +430 -0
  140. package/lib/components/guide-pc/guide.vue +179 -0
  141. package/lib/components/guide-pc/imgs/bg.png +0 -0
  142. package/lib/components/guide-pc/imgs/cant.png +0 -0
  143. package/lib/components/guide-pc/imgs/dept.png +0 -0
  144. package/lib/components/guide-pc/imgs/error.png +0 -0
  145. package/lib/components/guide-pc/imgs/judge.png +0 -0
  146. package/lib/components/guide-pc/imgs/pass.png +0 -0
  147. package/lib/components/guide-pc/imgs/rightArr.png +0 -0
  148. package/lib/components/guide-pc/imgs/situation.png +0 -0
  149. package/lib/components/guide-pc/imgs/time.png +0 -0
  150. package/lib/components/guide-pc/imgs/titleL.png +0 -0
  151. package/lib/components/guide-pc/imgs/titleR.png +0 -0
  152. package/lib/components/guide-pc/index.d.ts +37 -0
  153. package/lib/components/guide-pc/index.js +445 -0
  154. package/lib/components/guide-pc/index.scss +185 -0
  155. package/lib/index.d.ts +2 -0
  156. package/lib/index.js +3 -1
  157. package/lowcode/guide-pc/meta.ts +338 -0
  158. package/lowcode_es/guide-pc/meta.d.ts +22 -0
  159. package/lowcode_es/guide-pc/meta.js +315 -0
  160. package/lowcode_es/meta.js +3 -2
  161. package/lowcode_lib/guide-pc/meta.d.ts +22 -0
  162. package/lowcode_lib/guide-pc/meta.js +320 -0
  163. package/lowcode_lib/meta.js +17 -16
  164. package/package.json +3 -3
  165. 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,7 @@
1
+ import * as React from 'react';
2
+ import './places.scss';
3
+ export interface PlacesProps {
4
+ eventInfo?: any;
5
+ }
6
+ declare const Places: React.FC<PlacesProps>;
7
+ export default Places;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var React = _interopRequireWildcard(require("react"));
7
+ var _guideTitle = _interopRequireDefault(require("./guideTitle"));
8
+ var _reactAmap = require("react-amap");
9
+ var _empty = _interopRequireDefault(require("../../guide/imgs/empty.png"));
10
+ require("./places.scss");
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
+ var Places = function Places(_ref) {
13
+ var eventInfoProp = _ref.eventInfo;
14
+ var _React$useState = React.useState({
15
+ longitude: 112.52,
16
+ latitude: 37.81
17
+ }),
18
+ local = _React$useState[0],
19
+ setLocal = _React$useState[1];
20
+ var _React$useState2 = React.useState([]),
21
+ list = _React$useState2[0],
22
+ setList = _React$useState2[1];
23
+ React.useEffect(function () {
24
+ var eventInfo = eventInfoProp;
25
+ var hallList = (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.hallList) || [];
26
+ setList(hallList);
27
+ if (hallList.length > 0) {
28
+ clickDotHandle(hallList[0]);
29
+ }
30
+ }, [eventInfoProp]);
31
+ var setCenter = function setCenter(latitude, longitude) {
32
+ setLocal({
33
+ latitude: latitude,
34
+ longitude: longitude
35
+ });
36
+ };
37
+ var clickDotHandle = function clickDotHandle(point) {
38
+ var latitude = point.latitude,
39
+ longitude = point.longitude;
40
+ if (latitude && longitude) {
41
+ setCenter(latitude, longitude);
42
+ } else {
43
+ setCenter(37.81, 112.52);
44
+ }
45
+ };
46
+ return /*#__PURE__*/React.createElement("div", {
47
+ className: "places-content"
48
+ }, /*#__PURE__*/React.createElement(_guideTitle["default"], {
49
+ title: "\u529E\u4E8B\u5927\u5385"
50
+ }), list.length > 0 ? /*#__PURE__*/React.createElement("div", {
51
+ className: "inner-content"
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ className: "map-con"
54
+ }, /*#__PURE__*/React.createElement("div", {
55
+ style: {
56
+ height: '400px',
57
+ width: '100%'
58
+ }
59
+ }, /*#__PURE__*/React.createElement(_reactAmap.Map, {
60
+ amapkey: "fced30d9f04276a2a2071081f960170d",
61
+ center: [local.longitude, local.latitude],
62
+ zoom: 16
63
+ }, list.map(function (item, index) {
64
+ return item.longitude && item.latitude && /*#__PURE__*/React.createElement(_reactAmap.Marker, {
65
+ key: item.hallName || index,
66
+ position: [item.longitude, item.latitude]
67
+ });
68
+ })))), /*#__PURE__*/React.createElement("div", {
69
+ className: "list-con"
70
+ }, list.map(function (item, index) {
71
+ return /*#__PURE__*/React.createElement("div", {
72
+ className: "item",
73
+ key: index,
74
+ onClick: function onClick() {
75
+ return clickDotHandle(item);
76
+ }
77
+ }, /*#__PURE__*/React.createElement("div", {
78
+ className: "name"
79
+ }, item.hallName), /*#__PURE__*/React.createElement("div", {
80
+ className: "info"
81
+ }, /*#__PURE__*/React.createElement("span", {
82
+ className: "icon icon-address"
83
+ }), /*#__PURE__*/React.createElement("span", {
84
+ className: "title_"
85
+ }, "\u5730\u5740\uFF1A"), /*#__PURE__*/React.createElement("span", {
86
+ className: "desc"
87
+ }, item.addressDetail)), /*#__PURE__*/React.createElement("div", {
88
+ className: "info"
89
+ }, /*#__PURE__*/React.createElement("span", {
90
+ className: "icon icon-time"
91
+ }), /*#__PURE__*/React.createElement("span", {
92
+ className: "title_"
93
+ }, "\u65F6\u95F4\uFF1A"), /*#__PURE__*/React.createElement("span", {
94
+ className: "desc"
95
+ }, item.firstStartTime, " - ", item.firstEndTime, " / ", item.secondStartTime, " - ", item.secondEndTime)), /*#__PURE__*/React.createElement("div", {
96
+ className: "info"
97
+ }, /*#__PURE__*/React.createElement("span", {
98
+ className: "icon icon-phone"
99
+ }), /*#__PURE__*/React.createElement("span", {
100
+ className: "title_"
101
+ }, "\u7535\u8BDD\uFF1A"), /*#__PURE__*/React.createElement("span", {
102
+ className: "desc"
103
+ }, item.consultPhone)));
104
+ }))) : /*#__PURE__*/React.createElement("div", {
105
+ className: "empty-con"
106
+ }, /*#__PURE__*/React.createElement("div", {
107
+ className: "empty-img",
108
+ style: {
109
+ backgroundImage: "url(" + _empty["default"] + ")"
110
+ }
111
+ }), /*#__PURE__*/React.createElement("div", {
112
+ className: "empty-text"
113
+ }, "\u6682\u65E0\u529E\u4E8B\u5927\u5385")));
114
+ };
115
+ Places.displayName = 'Places';
116
+ var _default = exports["default"] = Places;