safecheck-client 3.0.34-1 → 3.0.34-100
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/package.json +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/NewDefectList/DefectListNew.vue +1 -0
- package/src/components/android/AddPlanItemYy.vue +451 -0
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
- package/src/components/android/AreaPlan.vue +1 -7
- package/src/components/android/AreaSelect.vue +198 -0
- package/src/components/android/BuildingSelect.vue +192 -0
- package/src/components/android/CheckPlanSelect.vue +229 -0
- package/src/components/android/CurrentCreateYy.vue +1051 -0
- package/src/components/android/ImgSelfAndroid.vue +181 -181
- package/src/components/android/PaperFeedback.vue +34 -1
- package/src/components/android/PaperFeedbackTemp.vue +1 -1
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +4 -4
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/UserinfoSelect.vue +714 -0
- package/src/components/android/examples/410.png +0 -0
- package/src/components/android/examples/SafeListExamples.vue +296 -0
- package/src/components/android/examples/UserExamples.vue +137 -0
- package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
- package/src/components/android/examples/touxiang.png +0 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- package/src/components/pc/SafeVisitInfo.vue +261 -0
- package/src/components/rongcheng/AddPlanItem.vue +8 -0
- package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -464
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +46 -16
- package/src/components/rongcheng/PaperStatem.vue +6 -1
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1328
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
- package/src/filiale/baiyin/android.js +11 -10
- package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
- package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
- package/src/filiale/baiyin/pc/PaperList.vue +790 -790
- package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
- package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
- package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
- package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
- package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
- package/src/filiale/bayan/android/PaperFeedback.vue +68 -50
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
- package/src/filiale/bayan/pc/NewCheckpaper.vue +50 -46
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +14 -10
- package/src/filiale/jiaxian/pc.js +12 -12
- package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
- package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
- package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
- package/src/filiale/qingtongxia/android.js +4 -0
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/shanxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/shanxian/android.js +1 -0
- package/src/filiale/shanxian/pc/PaperList.vue +785 -0
- package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
- package/src/filiale/shanxian/pc.js +2 -2
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
- package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
- package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/siyang/android.js +4 -0
- package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +22 -18
- package/src/filiale/siyang/pc.js +6 -0
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +2 -2
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
- package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
- package/src/filiale/tongchuan/pc/checkUserList.vue +30 -0
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
- package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +49 -113
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wuan/android/SafecheckOrderV.vue +5 -1
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +10 -5
- package/src/filiale/xilan/android/AddPlanItem.vue +457 -0
- package/src/filiale/xilan/android/CurrentCreate.vue +1063 -0
- package/src/filiale/xilan/android.js +11 -0
- package/src/filiale/xilan/pc/checkUserList.vue +772 -0
- package/src/filiale/xilan/pc.js +12 -0
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +8 -11
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +8 -13
- package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1336 -1332
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2845
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +8 -13
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +9 -9
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +54 -3
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -944
- package/src/filiale/yangchunboneng/pc/PaperList.vue +29 -0
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/main.js +33 -33
- package/src/safecheck-android.js +307 -296
- package/src/safecheck-page.js +12 -0
- package/src/safecheck.js +3 -0
@@ -1,181 +1,181 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<img :src="src" :alt="alt" @click="open()" :width="width" :height="height"title="点击查看图片" :id="'vc-imgself-img-'+attach">
|
4
|
-
<div class="full-img" v-if="show">
|
5
|
-
<div @click="on" draggable="false" >
|
6
|
-
<img :src="src" id="image" alt="" style="width: 100%" class="img-state" :alt="alt || ''">
|
7
|
-
</div>
|
8
|
-
<div class="btns">
|
9
|
-
<button type="button" name="button" class="btn btn-primary" @click="close()" :id="'vc-imgself-close-'+attach">关闭</button>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
</template>
|
14
|
-
|
15
|
-
<script>
|
16
|
-
import $ from 'jquery'
|
17
|
-
|
18
|
-
|
19
|
-
export default {
|
20
|
-
props: {
|
21
|
-
src: {
|
22
|
-
type: String
|
23
|
-
},
|
24
|
-
width: {
|
25
|
-
default: 60
|
26
|
-
},
|
27
|
-
height: {
|
28
|
-
default: 60
|
29
|
-
},
|
30
|
-
alt: {
|
31
|
-
default: '图片加载失败'
|
32
|
-
},
|
33
|
-
attach: {
|
34
|
-
type: String,
|
35
|
-
default: 'name'
|
36
|
-
}
|
37
|
-
},
|
38
|
-
data () {
|
39
|
-
return {
|
40
|
-
show: false,
|
41
|
-
deg: 0,
|
42
|
-
power: 1
|
43
|
-
}
|
44
|
-
},
|
45
|
-
methods: {
|
46
|
-
open () {
|
47
|
-
this.deg = 0
|
48
|
-
this.power = 0.5
|
49
|
-
this.show = true
|
50
|
-
},
|
51
|
-
close () {
|
52
|
-
this.show = false
|
53
|
-
},
|
54
|
-
on(){
|
55
|
-
$(function (){
|
56
|
-
let result = {}
|
57
|
-
var eleImg = document.querySelector('#image');
|
58
|
-
var store = {
|
59
|
-
scale: 1
|
60
|
-
};
|
61
|
-
// 缩放处理
|
62
|
-
eleImg.addEventListener('touchstart', function (event) {
|
63
|
-
var touches = event.touches;
|
64
|
-
var events = touches[0];
|
65
|
-
var events2 = touches[1];
|
66
|
-
|
67
|
-
var x = eleImg.offsetLeft;
|
68
|
-
var y = eleImg.offsetTop;
|
69
|
-
|
70
|
-
if (!events) {
|
71
|
-
return;
|
72
|
-
}
|
73
|
-
event.preventDefault();
|
74
|
-
// 第一个触摸点的坐标
|
75
|
-
store.pageX = events.pageX;
|
76
|
-
store.pageY = events.pageY;
|
77
|
-
store.x = x;
|
78
|
-
store.y = y;
|
79
|
-
store.moveable = true;
|
80
|
-
if (events2) {
|
81
|
-
store.pageX2 = events2.pageX;
|
82
|
-
store.pageY2 = events2.pageY;
|
83
|
-
}
|
84
|
-
store.originScale = store.scale || 1;
|
85
|
-
},{ passive: false });
|
86
|
-
document.addEventListener('touchmove', function (event) {
|
87
|
-
if (!store.moveable) {
|
88
|
-
return;
|
89
|
-
}
|
90
|
-
event.preventDefault();
|
91
|
-
var touches = event.touches;
|
92
|
-
var events = touches[0];
|
93
|
-
var events2 = touches[1];
|
94
|
-
result.textContent = '触摸点数量:' + touches.length;
|
95
|
-
if (events2) {
|
96
|
-
if (!store.pageX2) {
|
97
|
-
store.pageX2 = events2.pageX;
|
98
|
-
}
|
99
|
-
if (!store.pageY2) {
|
100
|
-
store.pageY2 = events2.pageY;
|
101
|
-
}
|
102
|
-
var getDistance = function (start, stop) {
|
103
|
-
return Math.hypot(stop.x - start.x, stop.y - start.y);
|
104
|
-
};
|
105
|
-
var zoom = getDistance({
|
106
|
-
x: events.pageX,
|
107
|
-
y: events.pageY
|
108
|
-
}, {
|
109
|
-
x: events2.pageX,
|
110
|
-
y: events2.pageY
|
111
|
-
}) /
|
112
|
-
getDistance({
|
113
|
-
x: store.pageX,
|
114
|
-
y: store.pageY
|
115
|
-
}, {
|
116
|
-
x: store.pageX2,
|
117
|
-
y: store.pageY2
|
118
|
-
});
|
119
|
-
var newScale = store.originScale * zoom;
|
120
|
-
if (newScale > 4) {
|
121
|
-
newScale = 4;
|
122
|
-
}
|
123
|
-
store.scale = newScale;
|
124
|
-
eleImg.style.transform = 'scale('+ newScale +')';
|
125
|
-
result.textContent = 'zoom: '+ zoom + ', apply scale: ' + newScale;
|
126
|
-
}else{
|
127
|
-
var moveX = events.pageX - store.pageX;
|
128
|
-
var moveY = events.pageY - store.pageY;
|
129
|
-
var imagetop = store.x + moveX;
|
130
|
-
var imageleft = store.y + moveY;
|
131
|
-
eleImg.style.transform = `translate(${imagetop}px, ${imageleft}px) scale(${store.scale})`;
|
132
|
-
}
|
133
|
-
},{ passive: false });
|
134
|
-
|
135
|
-
document.addEventListener('touchend', function () {
|
136
|
-
store.moveable = false;
|
137
|
-
|
138
|
-
delete store.pageX2;
|
139
|
-
delete store.pageY2;
|
140
|
-
},{ passive: false });
|
141
|
-
document.addEventListener('touchcancel', function () {
|
142
|
-
store.moveable = false;
|
143
|
-
delete store.pageX2;
|
144
|
-
delete store.pageY2;
|
145
|
-
},{ passive: false });
|
146
|
-
});
|
147
|
-
}
|
148
|
-
|
149
|
-
},
|
150
|
-
ready(){
|
151
|
-
}
|
152
|
-
}
|
153
|
-
</script>
|
154
|
-
<style media="screen">
|
155
|
-
.full-img {
|
156
|
-
position: fixed;
|
157
|
-
top: 0;
|
158
|
-
bottom: 0;
|
159
|
-
left: 0;
|
160
|
-
right: 0;
|
161
|
-
z-index: 20;
|
162
|
-
background: rgba(0,0,0,0.8);
|
163
|
-
display: flex;
|
164
|
-
overflow: auto;
|
165
|
-
flex-direction: column;
|
166
|
-
justify-content: center;
|
167
|
-
align-items: center;
|
168
|
-
color: #fff;
|
169
|
-
}
|
170
|
-
.btns {
|
171
|
-
position: fixed;
|
172
|
-
bottom: 100px;
|
173
|
-
height: auto;
|
174
|
-
}
|
175
|
-
.btns button {
|
176
|
-
margin-right: 20px;
|
177
|
-
}
|
178
|
-
.img-state {
|
179
|
-
|
180
|
-
}
|
181
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<img :src="src" :alt="alt" @click="open()" :width="width" :height="height"title="点击查看图片" :id="'vc-imgself-img-'+attach">
|
4
|
+
<div class="full-img" v-if="show">
|
5
|
+
<div @click="on" draggable="false" >
|
6
|
+
<img :src="src" id="image" alt="" style="width: 100%" class="img-state" :alt="alt || ''">
|
7
|
+
</div>
|
8
|
+
<div class="btns">
|
9
|
+
<button type="button" name="button" class="btn btn-primary" @click="close()" :id="'vc-imgself-close-'+attach">关闭</button>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</template>
|
14
|
+
|
15
|
+
<script>
|
16
|
+
import $ from 'jquery'
|
17
|
+
|
18
|
+
|
19
|
+
export default {
|
20
|
+
props: {
|
21
|
+
src: {
|
22
|
+
type: String
|
23
|
+
},
|
24
|
+
width: {
|
25
|
+
default: 60
|
26
|
+
},
|
27
|
+
height: {
|
28
|
+
default: 60
|
29
|
+
},
|
30
|
+
alt: {
|
31
|
+
default: '图片加载失败'
|
32
|
+
},
|
33
|
+
attach: {
|
34
|
+
type: String,
|
35
|
+
default: 'name'
|
36
|
+
}
|
37
|
+
},
|
38
|
+
data () {
|
39
|
+
return {
|
40
|
+
show: false,
|
41
|
+
deg: 0,
|
42
|
+
power: 1
|
43
|
+
}
|
44
|
+
},
|
45
|
+
methods: {
|
46
|
+
open () {
|
47
|
+
this.deg = 0
|
48
|
+
this.power = 0.5
|
49
|
+
this.show = true
|
50
|
+
},
|
51
|
+
close () {
|
52
|
+
this.show = false
|
53
|
+
},
|
54
|
+
on(){
|
55
|
+
$(function (){
|
56
|
+
let result = {}
|
57
|
+
var eleImg = document.querySelector('#image');
|
58
|
+
var store = {
|
59
|
+
scale: 1
|
60
|
+
};
|
61
|
+
// 缩放处理
|
62
|
+
eleImg.addEventListener('touchstart', function (event) {
|
63
|
+
var touches = event.touches;
|
64
|
+
var events = touches[0];
|
65
|
+
var events2 = touches[1];
|
66
|
+
|
67
|
+
var x = eleImg.offsetLeft;
|
68
|
+
var y = eleImg.offsetTop;
|
69
|
+
|
70
|
+
if (!events) {
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
event.preventDefault();
|
74
|
+
// 第一个触摸点的坐标
|
75
|
+
store.pageX = events.pageX;
|
76
|
+
store.pageY = events.pageY;
|
77
|
+
store.x = x;
|
78
|
+
store.y = y;
|
79
|
+
store.moveable = true;
|
80
|
+
if (events2) {
|
81
|
+
store.pageX2 = events2.pageX;
|
82
|
+
store.pageY2 = events2.pageY;
|
83
|
+
}
|
84
|
+
store.originScale = store.scale || 1;
|
85
|
+
},{ passive: false });
|
86
|
+
document.addEventListener('touchmove', function (event) {
|
87
|
+
if (!store.moveable) {
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
event.preventDefault();
|
91
|
+
var touches = event.touches;
|
92
|
+
var events = touches[0];
|
93
|
+
var events2 = touches[1];
|
94
|
+
result.textContent = '触摸点数量:' + touches.length;
|
95
|
+
if (events2) {
|
96
|
+
if (!store.pageX2) {
|
97
|
+
store.pageX2 = events2.pageX;
|
98
|
+
}
|
99
|
+
if (!store.pageY2) {
|
100
|
+
store.pageY2 = events2.pageY;
|
101
|
+
}
|
102
|
+
var getDistance = function (start, stop) {
|
103
|
+
return Math.hypot(stop.x - start.x, stop.y - start.y);
|
104
|
+
};
|
105
|
+
var zoom = getDistance({
|
106
|
+
x: events.pageX,
|
107
|
+
y: events.pageY
|
108
|
+
}, {
|
109
|
+
x: events2.pageX,
|
110
|
+
y: events2.pageY
|
111
|
+
}) /
|
112
|
+
getDistance({
|
113
|
+
x: store.pageX,
|
114
|
+
y: store.pageY
|
115
|
+
}, {
|
116
|
+
x: store.pageX2,
|
117
|
+
y: store.pageY2
|
118
|
+
});
|
119
|
+
var newScale = store.originScale * zoom;
|
120
|
+
if (newScale > 4) {
|
121
|
+
newScale = 4;
|
122
|
+
}
|
123
|
+
store.scale = newScale;
|
124
|
+
eleImg.style.transform = 'scale('+ newScale +')';
|
125
|
+
result.textContent = 'zoom: '+ zoom + ', apply scale: ' + newScale;
|
126
|
+
}else{
|
127
|
+
var moveX = events.pageX - store.pageX;
|
128
|
+
var moveY = events.pageY - store.pageY;
|
129
|
+
var imagetop = store.x + moveX;
|
130
|
+
var imageleft = store.y + moveY;
|
131
|
+
eleImg.style.transform = `translate(${imagetop}px, ${imageleft}px) scale(${store.scale})`;
|
132
|
+
}
|
133
|
+
},{ passive: false });
|
134
|
+
|
135
|
+
document.addEventListener('touchend', function () {
|
136
|
+
store.moveable = false;
|
137
|
+
|
138
|
+
delete store.pageX2;
|
139
|
+
delete store.pageY2;
|
140
|
+
},{ passive: false });
|
141
|
+
document.addEventListener('touchcancel', function () {
|
142
|
+
store.moveable = false;
|
143
|
+
delete store.pageX2;
|
144
|
+
delete store.pageY2;
|
145
|
+
},{ passive: false });
|
146
|
+
});
|
147
|
+
}
|
148
|
+
|
149
|
+
},
|
150
|
+
ready(){
|
151
|
+
}
|
152
|
+
}
|
153
|
+
</script>
|
154
|
+
<style media="screen">
|
155
|
+
.full-img {
|
156
|
+
position: fixed;
|
157
|
+
top: 0;
|
158
|
+
bottom: 0;
|
159
|
+
left: 0;
|
160
|
+
right: 0;
|
161
|
+
z-index: 20;
|
162
|
+
background: rgba(0,0,0,0.8);
|
163
|
+
display: flex;
|
164
|
+
overflow: auto;
|
165
|
+
flex-direction: column;
|
166
|
+
justify-content: center;
|
167
|
+
align-items: center;
|
168
|
+
color: #fff;
|
169
|
+
}
|
170
|
+
.btns {
|
171
|
+
position: fixed;
|
172
|
+
bottom: 100px;
|
173
|
+
height: auto;
|
174
|
+
}
|
175
|
+
.btns button {
|
176
|
+
margin-right: 20px;
|
177
|
+
}
|
178
|
+
.img-state {
|
179
|
+
|
180
|
+
}
|
181
|
+
</style>
|
@@ -315,6 +315,21 @@
|
|
315
315
|
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
|
316
316
|
</div>
|
317
317
|
</modal>
|
318
|
+
<modal :show.sync="showgas && showgasmodel" v-ref:modal>
|
319
|
+
<div slot="modal-header" class="modal-header">
|
320
|
+
<h4 class="modal-title">
|
321
|
+
用户须知
|
322
|
+
</h4>
|
323
|
+
</div>
|
324
|
+
<div slot="modal-body" class="modal-body">
|
325
|
+
<div class="row" style="margin-top: 6px">
|
326
|
+
<sapn>{{ gasinstructions ? gasinstructions : '请配置用户须知' }}</sapn>
|
327
|
+
</div>
|
328
|
+
</div>
|
329
|
+
<div slot="modal-footer" class="modal-footer">
|
330
|
+
<button type="button" name="button" class="col-sm-3 btn btn-primary" @click="closeshowgas()">确认</button>
|
331
|
+
</div>
|
332
|
+
</modal>
|
318
333
|
</template>
|
319
334
|
|
320
335
|
<script>
|
@@ -496,6 +511,9 @@ export default {
|
|
496
511
|
showmodel: false,
|
497
512
|
showbacklist:'是',
|
498
513
|
backlistisselect: false,
|
514
|
+
showgas: false,
|
515
|
+
showgasmodel:this.$appdata.getSingleValue('用户须知查看') || false,
|
516
|
+
gasinstructions:'',
|
499
517
|
deletebacklistisselect: false,
|
500
518
|
radios: [
|
501
519
|
{
|
@@ -610,7 +628,6 @@ export default {
|
|
610
628
|
HostApp.__this__ = null
|
611
629
|
},
|
612
630
|
takePic(prop, title, index) {
|
613
|
-
const obj = HostApp.getGpsDetailAddress()
|
614
631
|
HostApp.__callback__ = this.cameraCallBack
|
615
632
|
HostApp.__this__ = this
|
616
633
|
////tag
|
@@ -631,6 +648,7 @@ export default {
|
|
631
648
|
}
|
632
649
|
let jingweidu = ''
|
633
650
|
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
651
|
+
const obj = HostApp.getGpsDetailAddress()
|
634
652
|
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
635
653
|
}
|
636
654
|
HostApp._open_a_page({
|
@@ -1114,6 +1132,9 @@ export default {
|
|
1114
1132
|
}
|
1115
1133
|
|
1116
1134
|
},
|
1135
|
+
closeshowgas() {
|
1136
|
+
this.showgas = false
|
1137
|
+
},
|
1117
1138
|
//确认安检转维修
|
1118
1139
|
|
1119
1140
|
undo() {
|
@@ -1291,6 +1312,13 @@ export default {
|
|
1291
1312
|
this.$set('style__', '')
|
1292
1313
|
this.$set('style_view_', '')
|
1293
1314
|
}
|
1315
|
+
if (Vue.config.safecheck != undefined) {
|
1316
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
1317
|
+
if (Vue.config.safecheck.ApproveConfig.gasinstructions != undefined) {
|
1318
|
+
this.gasinstructions = Vue.config.safecheck.ApproveConfig.gasinstructions
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
}
|
1294
1322
|
|
1295
1323
|
for (let item of this.radios) {
|
1296
1324
|
if (this.paper.f_client_evaluation == item.label) {
|
@@ -1381,6 +1409,11 @@ export default {
|
|
1381
1409
|
'$parent.$parent.isUpload'(val) {
|
1382
1410
|
////tag
|
1383
1411
|
},
|
1412
|
+
'paper.f_read_instructions'(val) {
|
1413
|
+
if (val == true) {
|
1414
|
+
this.showgas = true
|
1415
|
+
}
|
1416
|
+
},
|
1384
1417
|
'meading'(val) {
|
1385
1418
|
////tag
|
1386
1419
|
this.$parent.$parent.meading = val
|
@@ -610,7 +610,6 @@
|
|
610
610
|
HostApp.__this__ = null
|
611
611
|
},
|
612
612
|
takePic(prop, title, index) {
|
613
|
-
const obj = HostApp.getGpsDetailAddress()
|
614
613
|
HostApp.__callback__ = this.cameraCallBack
|
615
614
|
HostApp.__this__ = this
|
616
615
|
////tag
|
@@ -631,6 +630,7 @@
|
|
631
630
|
}
|
632
631
|
let jingweidu = ''
|
633
632
|
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
633
|
+
const obj = HostApp.getGpsDetailAddress()
|
634
634
|
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
635
635
|
}
|
636
636
|
HostApp._open_a_page({
|