main
parent
4f55cff1a7
commit
5de589a292
7 changed files with 805 additions and 439 deletions
@ -1,364 +1,530 @@ |
|||||||
<template> |
<template> |
||||||
<view> |
<view> |
||||||
|
<view class="custom-pop-head"> |
||||||
<view class="custom-pop-head"> |
<view class="left" @click="$emit('show', false)">取消</view> |
||||||
<view class="left" @click="$emit('show',false)">取消</view> |
<view class="title">{{ investigationDetailTitle }}</view> |
||||||
<view class="title">{{ investigationDetailTitle }}</view> |
<view class="right" @click="investigationDetailHandle">确认</view> |
||||||
<view class="right" @click="investigationDetailHandle">确认</view> |
</view> |
||||||
</view> |
<view class="box" style="max-height: 800rpx; overflow-y: auto"> |
||||||
<view class="box" style="max-height: 800rpx;overflow-y: auto"> |
<view |
||||||
<view class="investigation-item" v-for="(item, index) in investigationDetailList" :key="index" |
class="investigation-item" |
||||||
style="width: 96%; padding: 0"> |
v-for="(item, index) in investigationDetailList" |
||||||
<view class="detail-item" v-if="item.type === 'number' || item.type === '1'"> |
:key="index" |
||||||
<uni-forms-item :label="item.name" label-width="450rpx" style="display: flex;align-items: center"> |
style="width: 96%; padding: 0" |
||||||
<u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right" |
> |
||||||
type="number"> |
<view |
||||||
<u-text :text="item.unit" slot="suffix" margin="0 3px 0 0" type="tips"></u-text> |
class="detail-item" |
||||||
</u-input> |
v-if="item.type === 'number' || item.type === '1'" |
||||||
</uni-forms-item> |
> |
||||||
</view> |
<uni-forms-item |
||||||
<view class="detail-item" v-else-if="item.type === 'text' || item.type === '2'"> |
:label="item.name" |
||||||
<uni-forms-item :label="item.name" label-width="450rpx" style="display: flex;align-items: center"> |
label-width="450rpx" |
||||||
<u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right" /> |
style="display: flex; align-items: center" |
||||||
</uni-forms-item> |
> |
||||||
</view> |
<u-input |
||||||
<view class="detail-item" v-else-if="item.type === 'check' || item.type === '3'"> |
placeholder="请输入" |
||||||
<uni-forms-item :label="item.name" label-width="450rpx" style="display: flex;align-items: center"> |
border="none" |
||||||
<u-checkbox v-model="item.standar" :customStyle="{justifyContent: 'space-between'}" |
v-model="item.standar" |
||||||
:name="'sdfs'" /> |
inputAlign="right" |
||||||
</uni-forms-item> |
type="number" |
||||||
</view> |
> |
||||||
<view class="detail-item" v-else-if="item.type === 'upload' || item.type === '4'"> |
<u-text |
||||||
<uni-forms-item :label="item.name" label-position="top" label-width="450rpx" |
:text="item.unit" |
||||||
style="display: flex;align-items: center" /> |
slot="suffix" |
||||||
<u-upload :fileList="item.fileList" @afterRead="(e) => afterRead(e, item)" |
margin="0 3px 0 0" |
||||||
@delete="(e) => deletePic(e, item)" name="1" :maxCount="1"></u-upload> |
type="tips" |
||||||
</view> |
></u-text> |
||||||
</view> |
</u-input> |
||||||
<view class="detail-item"> |
</uni-forms-item> |
||||||
<uni-forms-item label="隐患描述" label-position="top" label-width="200px" /> |
</view> |
||||||
<u-textarea placeholder="请输入" border="none" v-model="formData.hdDesc" /> |
<view |
||||||
</view> |
class="detail-item" |
||||||
<view class="detail-item"> |
v-else-if="item.type === 'text' || item.type === '2'" |
||||||
<uni-forms-item label="隐患图片" label-position="top" label-width="200px" /> |
> |
||||||
<u-upload :fileList="fileList" @afterRead="(e) => afterRead2(e, 'fileList')" |
<uni-forms-item |
||||||
@delete="(e) => deletePic2(e, 'fileList')" name="1" :maxCount="1"></u-upload> |
:label="item.name" |
||||||
</view> |
label-width="450rpx" |
||||||
<view class="detail-item"> |
style="display: flex; align-items: center" |
||||||
<uni-forms-item label="需采集补充信息" label-position="top" label-width="200px" /> |
> |
||||||
<u-textarea placeholder="请输入" border="none" v-model="formData.hdInfo" /> |
<u-input |
||||||
</view> |
placeholder="请输入" |
||||||
</view> |
border="none" |
||||||
<view class="blank" /> |
v-model="item.standar" |
||||||
</view> |
inputAlign="right" |
||||||
|
/> |
||||||
|
</uni-forms-item> |
||||||
|
</view> |
||||||
|
<view |
||||||
|
class="detail-item" |
||||||
|
v-else-if="item.type === 'check' || item.type === '3'" |
||||||
|
> |
||||||
|
<uni-forms-item |
||||||
|
:label="item.name" |
||||||
|
label-width="450rpx" |
||||||
|
style="display: flex; align-items: center" |
||||||
|
> |
||||||
|
<u-checkbox |
||||||
|
v-model="item.standar" |
||||||
|
:customStyle="{ justifyContent: 'space-between' }" |
||||||
|
:name="'sdfs'" |
||||||
|
/> |
||||||
|
</uni-forms-item> |
||||||
|
</view> |
||||||
|
<view |
||||||
|
class="detail-item" |
||||||
|
v-else-if="item.type === 'upload' || item.type === '4'" |
||||||
|
> |
||||||
|
<uni-forms-item |
||||||
|
:label="item.name" |
||||||
|
label-position="top" |
||||||
|
label-width="450rpx" |
||||||
|
style="display: flex; align-items: center" |
||||||
|
/> |
||||||
|
<u-upload |
||||||
|
:fileList="item.fileList" |
||||||
|
@afterRead="(e) => afterRead(e, item)" |
||||||
|
@delete="(e) => deletePic(e, item)" |
||||||
|
name="1" |
||||||
|
:maxCount="1" |
||||||
|
></u-upload> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="investigation-item" style="width: 96%; padding: 0"> |
||||||
|
<view class="detail-item"> |
||||||
|
<uni-forms-item |
||||||
|
label="隐患描述" |
||||||
|
label-position="top" |
||||||
|
label-width="200px" |
||||||
|
/> |
||||||
|
<u-textarea |
||||||
|
placeholder="请输入" |
||||||
|
border="none" |
||||||
|
v-model="formData.hdDesc" |
||||||
|
/> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="investigation-item" style="width: 96%; padding: 0"> |
||||||
|
<view class="detail-item"> |
||||||
|
<uni-forms-item |
||||||
|
label="隐患图片" |
||||||
|
label-position="top" |
||||||
|
label-width="200px" |
||||||
|
/> |
||||||
|
<u-upload |
||||||
|
:fileList="fileList" |
||||||
|
@afterRead="(e) => afterRead2(e, 'fileList')" |
||||||
|
@delete="(e) => deletePic2(e, 'fileList')" |
||||||
|
name="1" |
||||||
|
:maxCount="1" |
||||||
|
></u-upload> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="investigation-item" style="width: 96%; padding: 0"> |
||||||
|
<view class="detail-item"> |
||||||
|
<uni-forms-item |
||||||
|
label="需采集补充信息" |
||||||
|
label-position="top" |
||||||
|
label-width="200px" |
||||||
|
/> |
||||||
|
<u-textarea |
||||||
|
placeholder="请输入" |
||||||
|
border="none" |
||||||
|
v-model="formData.hdInfo" |
||||||
|
/> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="blank" /> |
||||||
|
</view> |
||||||
</template> |
</template> |
||||||
|
|
||||||
<script> |
<script> |
||||||
export default { |
export default { |
||||||
// 组件 |
// 组件 |
||||||
components: {}, |
components: {}, |
||||||
props: { |
props: { |
||||||
sid: { |
sid: { |
||||||
type: String, |
type: String, |
||||||
default: '01' |
default: "01", |
||||||
}, |
}, |
||||||
json: { |
json: { |
||||||
type: Object, |
type: Object, |
||||||
default: {} |
default: {}, |
||||||
}, |
}, |
||||||
}, |
businessId: { |
||||||
data() { |
type: String, |
||||||
return { |
default: "", |
||||||
// 公用的js |
}, |
||||||
$: this.$, |
}, |
||||||
investigationSelect: null, |
data() { |
||||||
investigationList: [], |
return { |
||||||
showInvestigationDetail: false, |
// 公用的js |
||||||
investigationDetailTitle: '', |
$: this.$, |
||||||
investigationDetailList: [], |
investigationSelect: null, |
||||||
formData: { |
investigationList: [], |
||||||
bigCategory: '', |
showInvestigationDetail: false, |
||||||
smallCategory: '', |
investigationDetailTitle: "", |
||||||
hdTerm: '', |
investigationDetailList: [], |
||||||
hdPic: '', |
formData: { |
||||||
hdDesc: '', |
// bigCategory: '', |
||||||
hdInfo: '', |
// smallCategory: '', |
||||||
}, |
// hdTerm: '', |
||||||
fileList: [], |
hdPic: "", |
||||||
} |
hdDesc: "", |
||||||
}, |
hdInfo: "", |
||||||
// 页面加载 |
}, |
||||||
onLoad(e) { |
fileList: [], |
||||||
// this.getData() |
}; |
||||||
}, |
}, |
||||||
mounted() { |
// 页面加载 |
||||||
|
onLoad(e) { |
||||||
if (this.json.name) { |
// this.getData() |
||||||
this.investigationDetailList = this.json.extraConfigs.map(item => { |
}, |
||||||
if (!item.fileList) { |
mounted() { |
||||||
item.fileList = [] |
console.log(this.json); |
||||||
} |
if (this.json.extraConfigs) { |
||||||
switch (item.type) { |
this.investigationDetailList = this.json.extraConfigs.map((item) => { |
||||||
// case "1": |
if (!item.fileList) { |
||||||
// item.standar = 0 |
item.fileList = []; |
||||||
// break; |
} |
||||||
// case "2": |
switch ( |
||||||
// item.standar = '' |
item.type |
||||||
// break; |
// case "1": |
||||||
// case "3": |
// item.standar = 0 |
||||||
// item.standar = false |
// break; |
||||||
// break; |
// case "2": |
||||||
// case "4": |
// item.standar = '' |
||||||
// item.fileList = [ |
// break; |
||||||
// { |
// case "3": |
||||||
// "id": "20229a8c-db46-4447-be3e-6731665f7bd0", |
// item.standar = false |
||||||
// "type": "image", |
// break; |
||||||
// "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg", |
// case "4": |
||||||
// "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5", |
// item.fileList = [ |
||||||
// "size": 11600, |
// // { |
||||||
// "name": "静态人流量统计.png", |
// // "id": "20229a8c-db46-4447-be3e-6731665f7bd0", |
||||||
// "status": "success", |
// // "type": "image", |
||||||
// "message": "", |
// // "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg", |
||||||
// "result": { |
// // "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5", |
||||||
// "code": 200, |
// // "size": 11600, |
||||||
// "message": "操作成功", |
// // "name": "静态人流量统计.png", |
||||||
// "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg" |
// // "status": "success", |
||||||
// } |
// // "message": "", |
||||||
// } |
// // "result": { |
||||||
// ] |
// // "code": 200, |
||||||
// break; |
// // "message": "操作成功", |
||||||
} |
// // "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg" |
||||||
return item |
// // } |
||||||
}) |
// // } |
||||||
} |
// ] |
||||||
}, |
// break; |
||||||
// 页面显示 |
) { |
||||||
onShow() { }, |
} |
||||||
// 计算属性 |
return item; |
||||||
computed: {}, |
}); |
||||||
// 方法 |
} else { |
||||||
methods: { |
this.getData(); |
||||||
|
} |
||||||
// 删除图片 |
if (this.json.checkedSelect) { |
||||||
deletePic(event, item) { |
this.formData = { |
||||||
item.fileList.splice(event.index, 1) |
hdPic: this.json.checkedSelect.hdPic || "", |
||||||
}, |
hdDesc: this.json.checkedSelect.hdDesc || "", |
||||||
//获取随机id |
hdInfo: this.json.checkedSelect.hdInfo || "", |
||||||
uuid(len, binary) { |
}; |
||||||
len = !len ? 36 : len; |
} |
||||||
binary = !binary ? 16 : binary; |
}, |
||||||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { |
// 页面显示 |
||||||
var r = Math.random() * binary | 0, |
onShow() {}, |
||||||
v = c == 'x' ? r : (r & 0x3 | 0x8); |
// 计算属性 |
||||||
return v.toString(binary); |
computed: {}, |
||||||
}).substring(0, len) |
// 方法 |
||||||
}, |
methods: { |
||||||
// 新增图片 |
// 删除图片 |
||||||
async afterRead(event, item) { |
deletePic(event, item) { |
||||||
|
item.fileList.splice(event.index, 1); |
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
}, |
||||||
const id = this.uuid() |
//获取随机id |
||||||
item.fileList.push({ |
uuid(len, binary) { |
||||||
id, |
len = !len ? 36 : len; |
||||||
...event.file, |
binary = !binary ? 16 : binary; |
||||||
status: 'uploading', |
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" |
||||||
message: '上传中' |
.replace(/[xy]/g, function (c) { |
||||||
}) |
var r = (Math.random() * binary) | 0, |
||||||
const result = await this.uploadFilePromise(item.fileList[0].url) |
v = c == "x" ? r : (r & 0x3) | 0x8; |
||||||
const resultInfo = JSON.parse(result) |
return v.toString(binary); |
||||||
const index = item.fileList.findIndex(v => v.id === id) |
}) |
||||||
if (resultInfo.code == 200) { |
.substring(0, len); |
||||||
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { |
}, |
||||||
status: 'success', |
// 新增图片 |
||||||
message: '', |
async afterRead(event, item) { |
||||||
result: resultInfo, |
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
||||||
url: resultInfo.result |
const id = this.uuid(); |
||||||
})) |
item.fileList.push({ |
||||||
} else { |
id, |
||||||
this.$.toast('上传失败') |
...event.file, |
||||||
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { |
status: "uploading", |
||||||
status: 'error', |
message: "上传中", |
||||||
message: '失败', |
}); |
||||||
})) |
const result = await this.uploadFilePromise(item.fileList[0].url); |
||||||
} |
const resultInfo = JSON.parse(result); |
||||||
}, |
const index = item.fileList.findIndex((v) => v.id === id); |
||||||
uploadFilePromise(url) { |
if (resultInfo.code == 200) { |
||||||
return new Promise((resolve, reject) => { |
item.fileList.splice( |
||||||
let a = uni.uploadFile({ |
index, |
||||||
url: this.$.baseUrl + '/hiddenDanger/ftp/uploadFileToFtp', // 仅为示例,非真实的接口地址 |
1, |
||||||
filePath: url, |
Object.assign(item.fileList[index], { |
||||||
name: 'file', |
status: "success", |
||||||
success: (res) => { |
message: "", |
||||||
resolve(res.data) |
result: resultInfo, |
||||||
} |
url: resultInfo.result, |
||||||
}); |
}) |
||||||
}) |
); |
||||||
}, |
} else { |
||||||
// 删除图片 |
this.$.toast("上传失败"); |
||||||
deletePic2(event, key) { |
item.fileList.splice( |
||||||
this[key].splice(event.index, 1) |
index, |
||||||
this.formData.hdPic = this[key].filter(item => item.status === 'success').map(item => item.url).toString() |
1, |
||||||
this.changeEmit() |
Object.assign(item.fileList[index], { |
||||||
}, |
status: "error", |
||||||
// 新增图片 |
message: "失败", |
||||||
async afterRead2(event, key) { |
}) |
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
); |
||||||
const id = this.uuid() |
} |
||||||
this[key].push({ |
}, |
||||||
id, |
uploadFilePromise(url) { |
||||||
...event.file, |
return new Promise((resolve, reject) => { |
||||||
status: 'uploading', |
let a = uni.uploadFile({ |
||||||
message: '上传中' |
url: this.$.baseUrl + "/hiddenDanger/ftp/uploadFileToFtp", // 仅为示例,非真实的接口地址 |
||||||
}) |
filePath: url, |
||||||
const result = await this.uploadFilePromise(this[key][0].url) |
name: "file", |
||||||
const resultInfo = JSON.parse(result) |
success: (res) => { |
||||||
const index = this[key].findIndex(v => v.id === id) |
resolve(res.data); |
||||||
if (resultInfo.code == 200) { |
}, |
||||||
this[key].splice(index, 1, Object.assign(this[key][index], { |
}); |
||||||
status: 'success', |
}); |
||||||
message: '', |
}, |
||||||
result: resultInfo, |
// 删除图片 |
||||||
url: resultInfo.result |
deletePic2(event, key) { |
||||||
})) |
this[key].splice(event.index, 1); |
||||||
} else { |
this.formData.hdPic = this[key] |
||||||
this.$.toast('上传失败') |
.filter((item) => item.status === "success") |
||||||
this[key].splice(index, 1, Object.assign(this[key][index], { |
.map((item) => item.url) |
||||||
status: 'error', |
.toString(); |
||||||
message: '失败', |
this.changeEmit(); |
||||||
})) |
}, |
||||||
} |
// 新增图片 |
||||||
this.formData.hdPic = this[key].filter(item => item.status === 'success').map(item => item.url).toString() |
async afterRead2(event, key) { |
||||||
this.changeEmit() |
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
||||||
}, |
const id = this.uuid(); |
||||||
changeEmit() { |
this[key].push({ |
||||||
this.$emit('change', this.formData) |
id, |
||||||
}, |
...event.file, |
||||||
getData() { |
status: "uploading", |
||||||
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangerInfo', { |
message: "上传中", |
||||||
sid: this.$props.sid |
}); |
||||||
}, 'GET').then(res => { |
const result = await this.uploadFilePromise(this[key][0].url); |
||||||
if (res.code == 200) { |
const resultInfo = JSON.parse(result); |
||||||
this.investigationDetailList = res.result.map(item => { |
const index = this[key].findIndex((v) => v.id === id); |
||||||
switch (item.type) { |
if (resultInfo.code == 200) { |
||||||
case "1": |
this[key].splice( |
||||||
item.standar = 0 |
index, |
||||||
break; |
1, |
||||||
case "2": |
Object.assign(this[key][index], { |
||||||
item.standar = '' |
status: "success", |
||||||
break; |
message: "", |
||||||
case "3": |
result: resultInfo, |
||||||
item.standar = false |
url: resultInfo.result, |
||||||
break; |
}) |
||||||
case "4": |
); |
||||||
item.fileList = [] |
} else { |
||||||
break; |
this.$.toast("上传失败"); |
||||||
} |
this[key].splice( |
||||||
return item |
index, |
||||||
}) |
1, |
||||||
} |
Object.assign(this[key][index], { |
||||||
}) |
status: "error", |
||||||
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { |
message: "失败", |
||||||
if (res.code == 200) { |
}) |
||||||
this.investigationList = res.result |
); |
||||||
} |
} |
||||||
}) |
this.formData.hdPic = this[key] |
||||||
}, |
.filter((item) => item.status === "success") |
||||||
// 跳转页面 |
.map((item) => item.url) |
||||||
skipPage(even) { |
.toString(); |
||||||
this.$.open(even) |
this.changeEmit(); |
||||||
}, |
}, |
||||||
handleSelect(item, index) { |
changeEmit() { |
||||||
this.investigationSelect = index |
this.$emit("change", this.formData); |
||||||
this.investigationDetailTitle = item.name |
}, |
||||||
this.showInvestigationDetail = true |
getData2() { |
||||||
// this.$emit('select', this.investigationSelect, this.investigationList[index]) |
this.$request |
||||||
}, |
.globalRequest( |
||||||
investigationDetailHandle() { |
"/hiddenDanger/highDanger/getImportDangerInfo", |
||||||
// this.$emit('select', this.json) |
{ |
||||||
} |
sid: this.$props.json.nid, |
||||||
}, |
}, |
||||||
onReady() { }, |
"GET" |
||||||
// 页面卸载 |
) |
||||||
onUnload() { |
.then((res) => { |
||||||
|
if (res.code == 200) { |
||||||
}, |
this.investigationDetailList = res.result.map((item) => { |
||||||
// 触发下拉刷新 |
switch (item.type) { |
||||||
onPullDownRefresh() { |
case "1": |
||||||
// 延迟关闭刷新动画 |
item.standar = 0; |
||||||
setTimeout(() => { |
break; |
||||||
uni.stopPullDownRefresh(); |
case "2": |
||||||
}, 1500); |
item.standar = ""; |
||||||
}, |
break; |
||||||
// 页面上拉触底事件的处理函数 |
case "3": |
||||||
onReachBottom() { }, |
item.standar = false; |
||||||
} |
break; |
||||||
|
case "4": |
||||||
|
item.fileList = []; |
||||||
|
break; |
||||||
|
} |
||||||
|
return item; |
||||||
|
}); |
||||||
|
} |
||||||
|
}); |
||||||
|
// this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { |
||||||
|
// if (res.code == 200) { |
||||||
|
// this.investigationList = res.result |
||||||
|
// } |
||||||
|
// }) |
||||||
|
}, |
||||||
|
getData() { |
||||||
|
this.$request |
||||||
|
.globalRequest( |
||||||
|
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", |
||||||
|
{ |
||||||
|
dangerId: this.$props.json.id, |
||||||
|
businessId: this.$props.businessId, |
||||||
|
}, |
||||||
|
"GET" |
||||||
|
) |
||||||
|
.then((res) => { |
||||||
|
if (res.code == 200) { |
||||||
|
if (res.result.length > 0) { |
||||||
|
this.investigationDetailList = res.result.map((item) => { |
||||||
|
switch (item.type) { |
||||||
|
case "1": |
||||||
|
item.standar = 0; |
||||||
|
break; |
||||||
|
case "2": |
||||||
|
item.standar = ""; |
||||||
|
break; |
||||||
|
case "3": |
||||||
|
item.standar = false; |
||||||
|
break; |
||||||
|
case "4": |
||||||
|
item.fileList = []; |
||||||
|
break; |
||||||
|
} |
||||||
|
return item; |
||||||
|
}); |
||||||
|
} else { |
||||||
|
this.getData2(); |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
// 跳转页面 |
||||||
|
skipPage(even) { |
||||||
|
this.$.open(even); |
||||||
|
}, |
||||||
|
handleSelect(item, index) { |
||||||
|
this.investigationSelect = index; |
||||||
|
this.investigationDetailTitle = item.name; |
||||||
|
this.showInvestigationDetail = true; |
||||||
|
// this.$emit('select', this.investigationSelect, this.investigationList[index]) |
||||||
|
}, |
||||||
|
investigationDetailHandle() { |
||||||
|
this.$emit("select", { |
||||||
|
...this.json, |
||||||
|
checkedSelect: this.formData, |
||||||
|
extraConfigs: this.investigationDetailList, |
||||||
|
}); |
||||||
|
}, |
||||||
|
}, |
||||||
|
onReady() {}, |
||||||
|
// 页面卸载 |
||||||
|
onUnload() {}, |
||||||
|
// 触发下拉刷新 |
||||||
|
onPullDownRefresh() { |
||||||
|
// 延迟关闭刷新动画 |
||||||
|
setTimeout(() => { |
||||||
|
uni.stopPullDownRefresh(); |
||||||
|
}, 1500); |
||||||
|
}, |
||||||
|
// 页面上拉触底事件的处理函数 |
||||||
|
onReachBottom() {}, |
||||||
|
}; |
||||||
</script> |
</script> |
||||||
|
|
||||||
<style> |
<style> |
||||||
page { |
page { |
||||||
background: #FFFFFF; |
background: #ffffff; |
||||||
} |
} |
||||||
</style> |
</style> |
||||||
<style lang="scss" scoped> |
<style lang="scss" scoped> |
||||||
.investigation-item { |
.investigation-item { |
||||||
margin: 0 auto 20rpx; |
margin: 0 auto 20rpx; |
||||||
width: 90%; |
width: 90%; |
||||||
border-radius: 8rpx; |
border-radius: 8rpx; |
||||||
padding: 20rpx; |
padding: 20rpx; |
||||||
box-sizing: border-box; |
box-sizing: border-box; |
||||||
display: flex; |
display: flex; |
||||||
justify-content: space-between; |
justify-content: space-between; |
||||||
align-items: center; |
align-items: center; |
||||||
overflow: hidden; |
overflow: hidden; |
||||||
|
|
||||||
&.active { |
&.active { |
||||||
background: #DFEBF8; |
background: #dfebf8; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.detail-item { |
.detail-item { |
||||||
width: 100%; |
width: 100%; |
||||||
background: #F0F3F7; |
background: #f0f3f7; |
||||||
padding: 20rpx 30rpx; |
padding: 20rpx 30rpx; |
||||||
border-radius: 8rpx; |
border-radius: 8rpx; |
||||||
box-sizing: border-box; |
box-sizing: border-box; |
||||||
|
|
||||||
/deep/ .uni-forms-item__content { |
/deep/ .uni-forms-item__content { |
||||||
justify-content: flex-end; |
justify-content: flex-end; |
||||||
text-align: right; |
text-align: right; |
||||||
display: flex; |
display: flex; |
||||||
} |
} |
||||||
|
|
||||||
/deep/ .uni-forms-item { |
/deep/ .uni-forms-item { |
||||||
margin-bottom: 0; |
margin-bottom: 0; |
||||||
} |
} |
||||||
|
|
||||||
/deep/ .uni-forms-item__label { |
/deep/ .uni-forms-item__label { |
||||||
font-size: 32rpx; |
font-size: 32rpx; |
||||||
// height:82rpx |
// height:82rpx |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.custom-pop-head { |
.custom-pop-head { |
||||||
width: 100%; |
width: 100%; |
||||||
padding: 20rpx; |
padding: 20rpx; |
||||||
box-sizing: border-box; |
box-sizing: border-box; |
||||||
display: flex; |
display: flex; |
||||||
align-items: center; |
align-items: center; |
||||||
justify-content: space-between; |
justify-content: space-between; |
||||||
border-bottom: 1px solid #E6E6E6; |
border-bottom: 1px solid #e6e6e6; |
||||||
margin-bottom: 20rpx; |
margin-bottom: 20rpx; |
||||||
|
|
||||||
.left { |
.left { |
||||||
color: #666666; |
color: #666666; |
||||||
} |
} |
||||||
|
|
||||||
.title { |
.title { |
||||||
font-size: 16px; |
font-size: 16px; |
||||||
} |
} |
||||||
|
|
||||||
.right { |
.right { |
||||||
color: #2663BF; |
color: #2663bf; |
||||||
} |
} |
||||||
} |
} |
||||||
</style> |
</style> |
Loading…
Reference in new issue