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,191 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="result-content">
|
|
3
|
+
|
|
4
|
+
<guideTitle title="成效分析" />
|
|
5
|
+
|
|
6
|
+
<view class="card" v-for="item, index in list" :key="index">
|
|
7
|
+
<view class="title">情形{{ index + 1 }}</view>
|
|
8
|
+
<view class="desc">{{ item.scene }}</view>
|
|
9
|
+
|
|
10
|
+
<view class="info-con" :style="{backgroundImage: `url(${commonBg})`}">
|
|
11
|
+
<view class="info-title">
|
|
12
|
+
<view class="title-item">现在办理业务</view>
|
|
13
|
+
<view class="title-item">过往办理业务</view>
|
|
14
|
+
</view>
|
|
15
|
+
|
|
16
|
+
<view class="info-list">
|
|
17
|
+
<view class="info-item">
|
|
18
|
+
<view class="icon" :style="{backgroundImage: `url(${icon1})`}" />
|
|
19
|
+
|
|
20
|
+
<view class="right">
|
|
21
|
+
<text class="num">{{ item.materialReduction }}</text>份
|
|
22
|
+
<view class="info">
|
|
23
|
+
平均提交材料减少
|
|
24
|
+
<view class="downIcon" :style="{backgroundImage: `url(${down})`}" />
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
|
|
29
|
+
<view class="info-item">
|
|
30
|
+
<view class="icon" :style="{backgroundImage: `url(${icon2})`}" />
|
|
31
|
+
<view class="right">
|
|
32
|
+
<text class="num">{{ item.timeReduction }}</text>天
|
|
33
|
+
<view class="info">
|
|
34
|
+
平均耗时减少
|
|
35
|
+
<view class="downIcon" :style="{backgroundImage: `url(${down})`}" />
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
</view>
|
|
39
|
+
|
|
40
|
+
<view class="info-item">
|
|
41
|
+
<view class="icon" :style="{backgroundImage: `url(${icon3})`}" />
|
|
42
|
+
<view class="right">
|
|
43
|
+
<text class="num">{{ item.formReduction }}</text>个
|
|
44
|
+
<view class="info">
|
|
45
|
+
平均表单字段减少
|
|
46
|
+
<view class="downIcon" :style="{backgroundImage: `url(${down})`}" />
|
|
47
|
+
</view>
|
|
48
|
+
</view>
|
|
49
|
+
</view>
|
|
50
|
+
|
|
51
|
+
<view class="info-item">
|
|
52
|
+
<view class="icon" :style="{backgroundImage: `url(${icon4})`}" />
|
|
53
|
+
<view class="right">
|
|
54
|
+
<text class="num">{{ item.runReduction }}</text>次
|
|
55
|
+
<view class="info">
|
|
56
|
+
平均跑腿次数减少
|
|
57
|
+
<view class="downIcon" :style="{backgroundImage: `url(${down})`}" />
|
|
58
|
+
</view>
|
|
59
|
+
</view>
|
|
60
|
+
</view>
|
|
61
|
+
</view>
|
|
62
|
+
</view>
|
|
63
|
+
</view>
|
|
64
|
+
|
|
65
|
+
<empty
|
|
66
|
+
v-if="!list.length"
|
|
67
|
+
mode="search"
|
|
68
|
+
text="暂无成效分析"
|
|
69
|
+
/>
|
|
70
|
+
</view>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<script>
|
|
74
|
+
import guideTitle from './guideTitle.vue'
|
|
75
|
+
export default {
|
|
76
|
+
components: { guideTitle },
|
|
77
|
+
data() {
|
|
78
|
+
return {
|
|
79
|
+
commonBg: '../static/img/declare/bg22.png',
|
|
80
|
+
icon1: '../static/img/declare/icon1.png',
|
|
81
|
+
icon2: '../static/img/declare/icon2.png',
|
|
82
|
+
icon3: '../static/img/declare/icon3.png',
|
|
83
|
+
icon4: '../static/img/declare/icon4.png',
|
|
84
|
+
down: '../static/img/declare/down.png',
|
|
85
|
+
list: []
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
mounted() {
|
|
89
|
+
this.initData()
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
// 初始化 成效分析
|
|
93
|
+
async initData() {
|
|
94
|
+
const eventInfo = uni.getStorageSync('eventInfo')
|
|
95
|
+
this.list = eventInfo.applicationConfigEfficiencies
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.result-content{
|
|
103
|
+
margin-top: 50px;
|
|
104
|
+
.card{
|
|
105
|
+
background: #ffffff;
|
|
106
|
+
border-radius: 8px;
|
|
107
|
+
padding: 16px 0 0;
|
|
108
|
+
margin-bottom: 12px;
|
|
109
|
+
.title{
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
color: #333333;
|
|
113
|
+
margin: 0 16px;
|
|
114
|
+
}
|
|
115
|
+
.desc{
|
|
116
|
+
font-size: 16px;
|
|
117
|
+
line-height: 22px;
|
|
118
|
+
color: #222222;
|
|
119
|
+
margin: 8px 16px 12px;
|
|
120
|
+
}
|
|
121
|
+
.info-con{
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 242px;
|
|
124
|
+
// border: 1px solid red;
|
|
125
|
+
background-size: 100% 100%;
|
|
126
|
+
.info-title{
|
|
127
|
+
// border: 1px solid red;
|
|
128
|
+
height: 68px;
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: space-around;
|
|
131
|
+
align-items: center;
|
|
132
|
+
.title-item{
|
|
133
|
+
font-size: 20px;
|
|
134
|
+
font-weight: 500;
|
|
135
|
+
color: #FFFFFF;
|
|
136
|
+
&:last-child{
|
|
137
|
+
color: #6480A7;
|
|
138
|
+
margin-top: 8px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.info-list{
|
|
143
|
+
// border: 1px solid;
|
|
144
|
+
margin: 0 30px;
|
|
145
|
+
height: 150px;
|
|
146
|
+
display: flex;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
align-items: center;
|
|
149
|
+
// border: 1px solid red;
|
|
150
|
+
.info-item{
|
|
151
|
+
// border: 1px solid red;
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
align-items: center;
|
|
155
|
+
flex: 1;
|
|
156
|
+
gap: 16px;
|
|
157
|
+
.icon{
|
|
158
|
+
width: 60px;
|
|
159
|
+
height: 60px;
|
|
160
|
+
background-size: 100% 100%;
|
|
161
|
+
// border: 1px solid;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.right{
|
|
165
|
+
// border: 1px solid;
|
|
166
|
+
.num{
|
|
167
|
+
font-size: 26px;
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
color: #1678FF;
|
|
170
|
+
margin: 0 5px;
|
|
171
|
+
}
|
|
172
|
+
.info{
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
color: #333333;
|
|
175
|
+
display: flex;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
margin-top: 2px;
|
|
179
|
+
.downIcon{
|
|
180
|
+
width: 17px;
|
|
181
|
+
height: 17px;
|
|
182
|
+
background-size: 100% 100%;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './situation.scss';
|
|
3
|
+
export interface SituationProps {
|
|
4
|
+
eventInfo?: any;
|
|
5
|
+
applicationId?: string;
|
|
6
|
+
accessToken?: string;
|
|
7
|
+
acctType?: string;
|
|
8
|
+
declarationAppToken?: string;
|
|
9
|
+
taskHandleItem?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Situation: React.FC<SituationProps>;
|
|
12
|
+
export default Situation;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import GuideTitle from "./guideTitle";
|
|
3
|
+
import situationBg from "../imgs/situation.png";
|
|
4
|
+
import "./situation.scss";
|
|
5
|
+
|
|
6
|
+
// TODO: apiConfig not available in this project
|
|
7
|
+
// import apiConfig from '@/config/api.cofig'
|
|
8
|
+
// import { checkSituation2 } from '@/utils/situation.js'
|
|
9
|
+
|
|
10
|
+
var Situation = function Situation(_ref) {
|
|
11
|
+
var eventInfoProp = _ref.eventInfo,
|
|
12
|
+
applicationIdProp = _ref.applicationId,
|
|
13
|
+
accessTokenProp = _ref.accessToken,
|
|
14
|
+
acctTypeProp = _ref.acctType,
|
|
15
|
+
declarationAppTokenProp = _ref.declarationAppToken,
|
|
16
|
+
taskHandleItemProp = _ref.taskHandleItem;
|
|
17
|
+
var _React$useState = React.useState(false),
|
|
18
|
+
isExpend = _React$useState[0],
|
|
19
|
+
setIsExpend = _React$useState[1];
|
|
20
|
+
var tip = '说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!';
|
|
21
|
+
React.useEffect(function () {
|
|
22
|
+
initPage();
|
|
23
|
+
window.addEventListener('message', getMessage);
|
|
24
|
+
return function () {
|
|
25
|
+
window.removeEventListener('message', getMessage);
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
28
|
+
var initPage = function initPage() {
|
|
29
|
+
if (!eventInfoProp) return;
|
|
30
|
+
// TODO: apiConfig.declarePage not available; using placeholder URL
|
|
31
|
+
// const { declarePage } = apiConfig;
|
|
32
|
+
// const stepList = uni.getStorageSync('stepList');
|
|
33
|
+
// const situationPage = stepList.find((item) => item.name === '智能导办-pc');
|
|
34
|
+
// if (situationPage && situationPage.link) {
|
|
35
|
+
// const finalLink = `${declarePage}/preview.html?pageID=${situationPage.id}`;
|
|
36
|
+
// const url = `${finalLink}&isFirst=1&isReCheck=1&applicationId=${applicationIdProp}&access_token=${accessTokenProp}&acctType=${acctTypeProp}&isPc=1`;
|
|
37
|
+
// setTimeout(() => {
|
|
38
|
+
// const iframe = document.getElementById('situationIframe') as HTMLIFrameElement;
|
|
39
|
+
// if (iframe) iframe.src = url;
|
|
40
|
+
// }, 500);
|
|
41
|
+
// }
|
|
42
|
+
};
|
|
43
|
+
var getMessage = function getMessage(e) {
|
|
44
|
+
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getFormFieldNames', 'getItemSituationRowUid', 'getWorkNo'];
|
|
45
|
+
var _ref2 = e.data || {},
|
|
46
|
+
type = _ref2.type,
|
|
47
|
+
data = _ref2.data;
|
|
48
|
+
if (typeArr.includes(type)) {
|
|
49
|
+
sendInfoHandle(type, data);
|
|
50
|
+
} else if (type === 'situationRes') {
|
|
51
|
+
// TODO: checkSituation2 not available
|
|
52
|
+
// uni.setStorageSync('situationRes', data);
|
|
53
|
+
// checkSituation2(true, 'pc');
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var sendInfoHandle = function sendInfoHandle(type, _data) {
|
|
57
|
+
var _eventInfoProp$taskGe, _eventInfoProp$taskGe2;
|
|
58
|
+
var sendData = {
|
|
59
|
+
type: type,
|
|
60
|
+
data: {}
|
|
61
|
+
};
|
|
62
|
+
switch (type) {
|
|
63
|
+
case 'getAccessToken':
|
|
64
|
+
sendData.data.accessToken = accessTokenProp;
|
|
65
|
+
sendData.data.acctType = acctTypeProp;
|
|
66
|
+
break;
|
|
67
|
+
case 'getDeclaraToken':
|
|
68
|
+
sendData.data.declarationAppToken = declarationAppTokenProp;
|
|
69
|
+
break;
|
|
70
|
+
case 'getApplicationId':
|
|
71
|
+
sendData.data.applicationId = applicationIdProp;
|
|
72
|
+
break;
|
|
73
|
+
case 'getTaskHandleItem':
|
|
74
|
+
sendData.data.taskHandleItem = taskHandleItemProp;
|
|
75
|
+
break;
|
|
76
|
+
case 'getFormId':
|
|
77
|
+
if (eventInfoProp !== null && eventInfoProp !== void 0 && (_eventInfoProp$taskGe = eventInfoProp.taskGeneralForms) !== null && _eventInfoProp$taskGe !== void 0 && (_eventInfoProp$taskGe2 = _eventInfoProp$taskGe[0]) !== null && _eventInfoProp$taskGe2 !== void 0 && _eventInfoProp$taskGe2.formId) {
|
|
78
|
+
sendData.data.formId = eventInfoProp.taskGeneralForms[0].formId;
|
|
79
|
+
} else {
|
|
80
|
+
sendData.data.formId = '12023122617035840604349816';
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case 'getMaterials':
|
|
84
|
+
// const finalMaterials = uni.getStorageSync('finalMaterials');
|
|
85
|
+
// const { taskGeneralMaterials } = uni.getStorageSync('eventInfo');
|
|
86
|
+
// sendData.data.materials = finalMaterials || taskGeneralMaterials;
|
|
87
|
+
break;
|
|
88
|
+
case 'getFormData':
|
|
89
|
+
// sendData.data.formData = uni.getStorageSync('formData');
|
|
90
|
+
break;
|
|
91
|
+
case 'getFormFieldNames':
|
|
92
|
+
// sendData.data.formFieldNames = uni.getStorageSync('formFieldNames');
|
|
93
|
+
break;
|
|
94
|
+
case 'getItemSituationRowUid':
|
|
95
|
+
// sendData.data.itemSituationRowUid = uni.getStorageSync('itemSituationRowUid');
|
|
96
|
+
break;
|
|
97
|
+
case 'getWorkNo':
|
|
98
|
+
// sendData.data.workNo = uni.getStorageSync('workNo');
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
var formIframe = document.getElementById('situationIframe');
|
|
102
|
+
if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
|
|
103
|
+
formIframe.contentWindow.postMessage(sendData, '*');
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var expendChange = function expendChange() {
|
|
107
|
+
setIsExpend(!isExpend);
|
|
108
|
+
};
|
|
109
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
className: "situation-content"
|
|
111
|
+
}, /*#__PURE__*/React.createElement(GuideTitle, {
|
|
112
|
+
title: "\u6750\u6599\u6E05\u5355"
|
|
113
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "situation-tip " + (isExpend ? 'isActive' : '')
|
|
115
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
116
|
+
className: "inner-tip",
|
|
117
|
+
style: {
|
|
118
|
+
backgroundImage: "url(" + situationBg + ")"
|
|
119
|
+
}
|
|
120
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: "title-con"
|
|
122
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
className: "title"
|
|
124
|
+
}, "\u5BFC\u529E\u60C5\u5F62\u9009\u62E9"), /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: "tip"
|
|
126
|
+
}, tip)), /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: "btn-con",
|
|
128
|
+
onClick: expendChange
|
|
129
|
+
}, /*#__PURE__*/React.createElement("span", null, isExpend ? '收起' : '展开'), /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: "icon"
|
|
131
|
+
}, isExpend ? '▲' : '▼')))), isExpend && /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: "situation-inner"
|
|
133
|
+
}, /*#__PURE__*/React.createElement("iframe", {
|
|
134
|
+
id: "situationIframe",
|
|
135
|
+
frameBorder: "0",
|
|
136
|
+
height: "100%",
|
|
137
|
+
width: "100%",
|
|
138
|
+
title: "\u60C5\u5F62\u9009\u62E9"
|
|
139
|
+
})));
|
|
140
|
+
};
|
|
141
|
+
Situation.displayName = 'Situation';
|
|
142
|
+
export default Situation;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.situation-content {
|
|
2
|
+
background: #ffffff;
|
|
3
|
+
|
|
4
|
+
.situation-tip {
|
|
5
|
+
border: 1px solid #C3DCFF;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
margin-top: 20px;
|
|
8
|
+
background: linear-gradient(180deg, #ECF4FF 1%, #F7FAFF 100%);
|
|
9
|
+
|
|
10
|
+
&.isActive {
|
|
11
|
+
border-radius: 8px 8px 0 0;
|
|
12
|
+
border-bottom: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.inner-tip {
|
|
16
|
+
padding: 24px;
|
|
17
|
+
background-repeat: no-repeat;
|
|
18
|
+
background-size: 104px 70px;
|
|
19
|
+
background-position: 90% 100%;
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
align-items: center;
|
|
23
|
+
|
|
24
|
+
.title-con {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 16px;
|
|
29
|
+
|
|
30
|
+
.title {
|
|
31
|
+
background: linear-gradient(96deg, #0047A8 0%, #1678FF 98%);
|
|
32
|
+
-webkit-background-clip: text;
|
|
33
|
+
-webkit-text-fill-color: transparent;
|
|
34
|
+
background-clip: text;
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tip {
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
color: #5C7292;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btn-con {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
color: #1678FF;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
gap: 6px;
|
|
53
|
+
|
|
54
|
+
.icon {
|
|
55
|
+
width: 14px;
|
|
56
|
+
height: 14px;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
border: 1px solid #1678FF;
|
|
62
|
+
font-size: 10px;
|
|
63
|
+
line-height: 1;
|
|
64
|
+
padding: 1px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.situation-inner {
|
|
71
|
+
background: linear-gradient(180deg, #F7FAFF 1%, #F7FAFF 100%);
|
|
72
|
+
border-radius: 0 0 8px 8px;
|
|
73
|
+
border: 1px solid #C3DCFF;
|
|
74
|
+
border-top: none;
|
|
75
|
+
overflow-y: scroll;
|
|
76
|
+
height: 500px;
|
|
77
|
+
padding: 0 12px 12px;
|
|
78
|
+
}
|
|
79
|
+
}
|