|
@@ -69,7 +69,7 @@
|
|
|
<!-- <uni-file-picker v-model="zczm" @select="imgSelect3" @delete="imgDelete3"></uni-file-picker> -->
|
|
|
<myfile :zczmList="zczmList" @recordsChange="zcChange"></myfile>
|
|
|
</uni-forms-item>
|
|
|
-
|
|
|
+
|
|
|
<view v-if="show" style="border: 1px solid red;">
|
|
|
<uni-forms-item label="直接上传">
|
|
|
<uni-data-checkbox v-model="radio" :localdata="radioData"></uni-data-checkbox>
|
|
@@ -274,11 +274,39 @@
|
|
|
},
|
|
|
onLoad(o) {
|
|
|
getAccessToken(this.callbackToken)
|
|
|
- window.addEventListener("message", e => {
|
|
|
+ window.addEventListener("message", this.msgCallback, false)
|
|
|
+
|
|
|
+ this.getDictList(Object.keys(this.dicts), this.dicts)
|
|
|
+ this.baseFormData.code = getOpenid()
|
|
|
+
|
|
|
+ this.userInfo = getUser()
|
|
|
+ this.baseFormData.lrHjdz = this.userInfo.dept.locationCode
|
|
|
+ this.groupId = this.userInfo.dept.locationCode.substring(0, 6)
|
|
|
+ let unitFilter = this.userInfo.dept.unitFilter.split(',')
|
|
|
+ this.level = unitFilter.length
|
|
|
+ if (this.userInfo.userType === '07') {
|
|
|
+ this.updateFlag = true
|
|
|
+ this.baseFormData.lrHjdz = this.userInfo.dept.locationCode.substring(0, 6) + '000000'
|
|
|
+ // let info = JSON.parse(o.info)
|
|
|
+ // this.baseFormData.lrHjdz = info.lrHjdz
|
|
|
+ // this.groupId = info.lrHjdz.substring(0, 6)
|
|
|
+ // this.baseFormData = info
|
|
|
+ // this.src = config.baseUrl + info.lrTx
|
|
|
+ }
|
|
|
+ // 查询街道和社区
|
|
|
+ this.getAddressList(this.baseFormData.lrHjdz)
|
|
|
+ },
|
|
|
+ destroyed() {
|
|
|
+ window.removeEventListener("message", this.msgCallback, false)
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ msgCallback(e) {
|
|
|
if (e.data.data && e.data.data.arg.base64) {
|
|
|
+ console.log(e);
|
|
|
setTimeout(() => {
|
|
|
uni.showLoading({
|
|
|
- title: '正在识别中...'
|
|
|
+ title: '正在识别中...',
|
|
|
+ mask:true,
|
|
|
})
|
|
|
|
|
|
this.faceBase64 = ''
|
|
@@ -301,7 +329,8 @@
|
|
|
if (e.data.data && e.data.data.arg.faceBase64) {
|
|
|
setTimeout(() => {
|
|
|
uni.showLoading({
|
|
|
- title: '正在识别中...'
|
|
|
+ title: '正在识别中...',
|
|
|
+ mask:true,
|
|
|
})
|
|
|
|
|
|
this.faceBase64 = e.data.data.arg.faceBase64
|
|
@@ -314,30 +343,7 @@
|
|
|
}, 1000);
|
|
|
|
|
|
}
|
|
|
- }, false)
|
|
|
-
|
|
|
- this.getDictList(Object.keys(this.dicts), this.dicts)
|
|
|
- this.baseFormData.code = getOpenid()
|
|
|
-
|
|
|
- this.userInfo = getUser()
|
|
|
- this.baseFormData.lrHjdz = this.userInfo.dept.locationCode
|
|
|
- this.groupId = this.userInfo.dept.locationCode.substring(0, 6)
|
|
|
- let unitFilter = this.userInfo.dept.unitFilter.split(',')
|
|
|
- this.level = unitFilter.length
|
|
|
- if (this.userInfo.userType === '07') {
|
|
|
- this.updateFlag = true
|
|
|
- this.baseFormData.lrHjdz = this.userInfo.dept.locationCode.substring(0, 6) + '000000'
|
|
|
- // let info = JSON.parse(o.info)
|
|
|
- // this.baseFormData.lrHjdz = info.lrHjdz
|
|
|
- // this.groupId = info.lrHjdz.substring(0, 6)
|
|
|
- // this.baseFormData = info
|
|
|
- // this.src = config.baseUrl + info.lrTx
|
|
|
- }
|
|
|
- // 查询街道和社区
|
|
|
- this.getAddressList(this.baseFormData.lrHjdz)
|
|
|
-
|
|
|
- },
|
|
|
- methods: {
|
|
|
+ },
|
|
|
tkChange(e) {
|
|
|
this.tkzmList = e
|
|
|
},
|
|
@@ -681,7 +687,8 @@
|
|
|
save() {
|
|
|
if ((this.score >= config.score) || (this.score < config.score && this.radio == '1')) {
|
|
|
uni.showLoading({
|
|
|
- title: '正在保存中...'
|
|
|
+ title: '正在保存中...',
|
|
|
+ mask:true,
|
|
|
})
|
|
|
let paramFiles = []
|
|
|
|