From 1e71dd86f6d0c4fc7e5143600d4bc4b50992a2a7 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 04 Jul 2024 14:51:28 +0800
Subject: [PATCH] fix: 高德密钥修改
---
pages/actionChange/components/rectificationInfor.vue | 42 ++++++++++++++++++++++++++++++++++--------
1 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/pages/actionChange/components/rectificationInfor.vue b/pages/actionChange/components/rectificationInfor.vue
index fad999f..c0a3476 100644
--- a/pages/actionChange/components/rectificationInfor.vue
+++ b/pages/actionChange/components/rectificationInfor.vue
@@ -33,7 +33,7 @@
<u-form-item label="������������:" :required="!pageState" :border-bottom="false">
<u-radio-group v-model="form.isChange" @change="radioGroupChange">
<u-radio :key="index" v-for="(item, index) in list"
- :custom-style="{marginRight: '8px'}" :label="item.name"
+ :custom-style="{marginRight: '16px'}" :label="item.name"
:name="item.value" />
</u-radio-group>
</u-form-item>
@@ -55,12 +55,16 @@
</u-form-item>
</view>
<view class="formItemContent">
- <u-form-item label="������������:" :border-bottom="false">
+ <u-form-item label="������������:" :border-bottom="false" :required="!pageState"
+ prop="fileListRequired">
<view class="fileBox" v-if="pageState">
<cl-upload v-model="fileList" :add="false" :action="`''`" cloud-type="other"
:remove="false" />
</view>
<view class="fileBox" v-else>
+ <view class="overFile">
+ <u--input v-model="form.fileListRequired" border="none"></u--input>
+ </view>
<fileUpload class="rowTipContenetAll" :sys-code="sysCode"
@handleFile="handleFile" />
</view>
@@ -103,15 +107,16 @@
sysCode: '1010202',
list: [{
name: '���',
- value: 0,
+ value: 1,
}, {
name: '���',
- value: 1,
+ value: 0,
}, ],
form: {
- isChange: 0,
+ isChange: 1,
changeName: '',
changeDescribe: '',
+ fileListRequired: ''
},
dictObj: JSON.parse(uni.getStorageSync('dictObj') || '[]'),
fileList: [],
@@ -128,7 +133,12 @@
message: '���������',
trigger: ['blur', 'change']
},
- }
+ 'fileListRequired': {
+ required: true,
+ message: '���������������',
+ trigger: ['blur', 'change']
+ }
+ },
}
},
onLoad: function(option) {
@@ -145,8 +155,11 @@
let name = item.fileType === 1 ? 'name.png' : 'name.mp4'
this.fileList.push(`${this.baseUrl}/file/preview/${item.fileId}?${name}`) // ������
})
- console.log('this.fileList', this.basicInfor.fileBaseList)
- console.log('this.fileList', this.fileList)
+ }
+ let userInfor = JSON.parse(uni.getStorageSync('userInfor') || '{}')
+ console.log('userInfor', userInfor)
+ if (this.basicInfor.pageState === 'edit') {
+ this.form.changeName = userInfor.userName
}
},
methods: {
@@ -155,12 +168,16 @@
},
handleFile(data) {
this.fileBaseList = data
+ console.log('data', data)
+ this.form.fileListRequired = data.length > 0 ? '12323' : null
+ console.log('this.fileListRequired', this.form.fileListRequired)
this.form.fileChangeList = this.fileBaseList
},
formVali() {
return new Promise((resolve, reject) => {
if (!this.pageState) {
this.$refs.uForm.validate().then(res => {
+ console.log('res', res)
resolve(true)
}).catch(errors => {
reject(false)
@@ -179,6 +196,15 @@
margin: 19.23rpx 0px !important;
}
+ .fileBox {
+ .overFile {
+ z-index: -100;
+ position: absolute !important;
+ height: 96px !important;
+ opacity: 0;
+ }
+ }
+
.workOrderDetail {
border: 1px solid #bbb;
border-radius: 5px;
--
Gitblit v1.8.0