parent
7ec85a3de7
commit
e160cd3d80
5 changed files with 461 additions and 530 deletions
@ -1,531 +1,455 @@ |
|||||||
<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 :disabled="type=='view'" 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 :disabled="type=='view'" 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 :disabled="type=='view'" 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 :disabled="type=='view'" :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="investigation-item" style="width: 96%; padding: 0"> |
||||||
</uni-forms-item> |
<view class="detail-item"> |
||||||
</view> |
<uni-forms-item label="隐患描述" label-position="top" label-width="200px" /> |
||||||
<view |
<u-textarea placeholder="请输入" :disabled="type=='view'" border="none" v-model="formData.hdDesc" /> |
||||||
class="detail-item" |
</view> |
||||||
v-else-if="item.type === 'text' || item.type === '2'" |
</view> |
||||||
> |
<view class="investigation-item" style="width: 96%; padding: 0"> |
||||||
<uni-forms-item |
<view class="detail-item"> |
||||||
:label="item.name" |
<uni-forms-item label="隐患图片" label-position="top" label-width="200px" /> |
||||||
label-width="450rpx" |
<u-upload :fileList="fileList" :disabled="type=='view'" @afterRead="(e) => afterRead2(e, 'fileList')" |
||||||
style="display: flex; align-items: center" |
@delete="(e) => deletePic2(e, 'fileList')" name="1" :maxCount="1"></u-upload> |
||||||
> |
</view> |
||||||
<u-input |
</view> |
||||||
placeholder="请输入" |
<view class="investigation-item" style="width: 96%; padding: 0"> |
||||||
border="none" |
<view class="detail-item"> |
||||||
v-model="item.standar" |
<uni-forms-item label="补充信息" label-position="top" label-width="200px" /> |
||||||
inputAlign="right" |
<u-textarea :disabled="type=='view'" placeholder="请输入" border="none" v-model="formData.hdInfo" /> |
||||||
/> |
</view> |
||||||
</uni-forms-item> |
</view> |
||||||
</view> |
</view> |
||||||
<view |
<view class="blank" /> |
||||||
class="detail-item" |
</view> |
||||||
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: { |
type: { |
||||||
type: Object, |
type: String, |
||||||
default: {}, |
default: "edit", |
||||||
}, |
}, |
||||||
businessId: { |
json: { |
||||||
type: String, |
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() { |
// 页面加载 |
||||||
console.log(this.json); |
onLoad(e) { |
||||||
if (this.json.extraConfigs) { |
// this.getData() |
||||||
this.investigationDetailList = this.json.extraConfigs.map((item) => { |
}, |
||||||
if (!item.fileList) { |
mounted() { |
||||||
item.fileList = []; |
console.log(this.json); |
||||||
} |
if (this.json.extraConfigs) { |
||||||
switch ( |
this.investigationDetailList = this.json.extraConfigs.map((item) => { |
||||||
item.type |
if (!item.fileList) { |
||||||
// case "1": |
item.fileList = []; |
||||||
// item.standar = 0 |
} |
||||||
// break; |
switch ( |
||||||
// case "2": |
item.type |
||||||
// item.standar = '' |
// case "1": |
||||||
// break; |
// item.standar = 0 |
||||||
// case "3": |
// break; |
||||||
// item.standar = false |
// case "2": |
||||||
// break; |
// item.standar = '' |
||||||
// case "4": |
// break; |
||||||
// item.fileList = [ |
// case "3": |
||||||
// // { |
// item.standar = false |
||||||
// // "id": "20229a8c-db46-4447-be3e-6731665f7bd0", |
// break; |
||||||
// // "type": "image", |
// case "4": |
||||||
// // "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg", |
// item.fileList = [ |
||||||
// // "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5", |
// // { |
||||||
// // "size": 11600, |
// // "id": "20229a8c-db46-4447-be3e-6731665f7bd0", |
||||||
// // "name": "静态人流量统计.png", |
// // "type": "image", |
||||||
// // "status": "success", |
// // "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg", |
||||||
// // "message": "", |
// // "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5", |
||||||
// // "result": { |
// // "size": 11600, |
||||||
// // "code": 200, |
// // "name": "静态人流量统计.png", |
||||||
// // "message": "操作成功", |
// // "status": "success", |
||||||
// // "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg" |
// // "message": "", |
||||||
// // } |
// // "result": { |
||||||
// // } |
// // "code": 200, |
||||||
// ] |
// // "message": "操作成功", |
||||||
// break; |
// // "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg" |
||||||
) { |
// // } |
||||||
} |
// // } |
||||||
return item; |
// ] |
||||||
}); |
// break; |
||||||
} else { |
) { |
||||||
this.getData(); |
} |
||||||
} |
return item; |
||||||
if (this.json.checkedSelect) { |
}); |
||||||
this.formData = { |
} else { |
||||||
hdPic: this.json.checkedSelect.hdPic || "", |
this.getData(); |
||||||
hdDesc: this.json.checkedSelect.hdDesc || "", |
} |
||||||
hdInfo: this.json.checkedSelect.hdInfo || "", |
if (this.json.checkedSelect) { |
||||||
}; |
this.formData = { |
||||||
} |
hdPic: this.json.checkedSelect.hdPic || "", |
||||||
}, |
hdDesc: this.json.checkedSelect.hdDesc || "", |
||||||
// 页面显示 |
hdInfo: this.json.checkedSelect.hdInfo || "", |
||||||
onShow() {}, |
}; |
||||||
// 计算属性 |
} |
||||||
computed: {}, |
}, |
||||||
// 方法 |
// 页面显示 |
||||||
methods: { |
onShow() { }, |
||||||
// 删除图片 |
// 计算属性 |
||||||
deletePic(event, item) { |
computed: {}, |
||||||
item.fileList.splice(event.index, 1); |
// 方法 |
||||||
}, |
methods: { |
||||||
//获取随机id |
// 删除图片 |
||||||
uuid(len, binary) { |
deletePic(event, item) { |
||||||
len = !len ? 36 : len; |
item.fileList.splice(event.index, 1); |
||||||
binary = !binary ? 16 : binary; |
}, |
||||||
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" |
//获取随机id |
||||||
.replace(/[xy]/g, function (c) { |
uuid(len, binary) { |
||||||
var r = (Math.random() * binary) | 0, |
len = !len ? 36 : len; |
||||||
v = c == "x" ? r : (r & 0x3) | 0x8; |
binary = !binary ? 16 : binary; |
||||||
return v.toString(binary); |
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" |
||||||
}) |
.replace(/[xy]/g, function (c) { |
||||||
.substring(0, len); |
var r = (Math.random() * binary) | 0, |
||||||
}, |
v = c == "x" ? r : (r & 0x3) | 0x8; |
||||||
// 新增图片 |
return v.toString(binary); |
||||||
async afterRead(event, item) { |
}) |
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
.substring(0, len); |
||||||
const id = this.uuid(); |
}, |
||||||
item.fileList.push({ |
// 新增图片 |
||||||
id, |
async afterRead(event, item) { |
||||||
...event.file, |
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
||||||
status: "uploading", |
const id = this.uuid(); |
||||||
message: "上传中", |
item.fileList.push({ |
||||||
}); |
id, |
||||||
const result = await this.uploadFilePromise(item.fileList[0].url); |
...event.file, |
||||||
const resultInfo = JSON.parse(result); |
status: "uploading", |
||||||
const index = item.fileList.findIndex((v) => v.id === id); |
message: "上传中", |
||||||
if (resultInfo.code == 200) { |
}); |
||||||
item.fileList.splice( |
const result = await this.uploadFilePromise(item.fileList[0].url); |
||||||
index, |
const resultInfo = JSON.parse(result); |
||||||
1, |
const index = item.fileList.findIndex((v) => v.id === id); |
||||||
Object.assign(item.fileList[index], { |
if (resultInfo.code == 200) { |
||||||
status: "success", |
item.fileList.splice( |
||||||
message: "", |
index, |
||||||
result: resultInfo, |
1, |
||||||
url: resultInfo.result, |
Object.assign(item.fileList[index], { |
||||||
}) |
status: "success", |
||||||
); |
message: "", |
||||||
} else { |
result: resultInfo, |
||||||
this.$.toast("上传失败"); |
url: resultInfo.result, |
||||||
item.fileList.splice( |
}) |
||||||
index, |
); |
||||||
1, |
} else { |
||||||
Object.assign(item.fileList[index], { |
this.$.toast("上传失败"); |
||||||
status: "error", |
item.fileList.splice( |
||||||
message: "失败", |
index, |
||||||
}) |
1, |
||||||
); |
Object.assign(item.fileList[index], { |
||||||
} |
status: "error", |
||||||
}, |
message: "失败", |
||||||
uploadFilePromise(url) { |
}) |
||||||
return new Promise((resolve, reject) => { |
); |
||||||
let a = uni.uploadFile({ |
} |
||||||
url: this.$.baseUrl + "/hiddenDanger/ftp/uploadFileToFtp", // 仅为示例,非真实的接口地址 |
}, |
||||||
filePath: url, |
uploadFilePromise(url) { |
||||||
name: "file", |
return new Promise((resolve, reject) => { |
||||||
success: (res) => { |
let a = uni.uploadFile({ |
||||||
resolve(res.data); |
url: this.$.baseUrl + "/hiddenDanger/ftp/uploadFileToFtp", // 仅为示例,非真实的接口地址 |
||||||
}, |
filePath: url, |
||||||
}); |
name: "file", |
||||||
}); |
success: (res) => { |
||||||
}, |
resolve(res.data); |
||||||
// 删除图片 |
}, |
||||||
deletePic2(event, key) { |
}); |
||||||
this[key].splice(event.index, 1); |
}); |
||||||
this.formData.hdPic = this[key] |
}, |
||||||
.filter((item) => item.status === "success") |
// 删除图片 |
||||||
.map((item) => item.url) |
deletePic2(event, key) { |
||||||
.toString(); |
this[key].splice(event.index, 1); |
||||||
this.changeEmit(); |
this.formData.hdPic = this[key] |
||||||
}, |
.filter((item) => item.status === "success") |
||||||
// 新增图片 |
.map((item) => item.url) |
||||||
async afterRead2(event, key) { |
.toString(); |
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
this.changeEmit(); |
||||||
const id = this.uuid(); |
}, |
||||||
this[key].push({ |
// 新增图片 |
||||||
id, |
async afterRead2(event, key) { |
||||||
...event.file, |
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 |
||||||
status: "uploading", |
const id = this.uuid(); |
||||||
message: "上传中", |
this[key].push({ |
||||||
}); |
id, |
||||||
const result = await this.uploadFilePromise(this[key][0].url); |
...event.file, |
||||||
const resultInfo = JSON.parse(result); |
status: "uploading", |
||||||
const index = this[key].findIndex((v) => v.id === id); |
message: "上传中", |
||||||
if (resultInfo.code == 200) { |
}); |
||||||
this[key].splice( |
const result = await this.uploadFilePromise(this[key][0].url); |
||||||
index, |
const resultInfo = JSON.parse(result); |
||||||
1, |
const index = this[key].findIndex((v) => v.id === id); |
||||||
Object.assign(this[key][index], { |
if (resultInfo.code == 200) { |
||||||
status: "success", |
this[key].splice( |
||||||
message: "", |
index, |
||||||
result: resultInfo, |
1, |
||||||
url: resultInfo.result, |
Object.assign(this[key][index], { |
||||||
}) |
status: "success", |
||||||
); |
message: "", |
||||||
} else { |
result: resultInfo, |
||||||
this.$.toast("上传失败"); |
url: resultInfo.result, |
||||||
this[key].splice( |
}) |
||||||
index, |
); |
||||||
1, |
} else { |
||||||
Object.assign(this[key][index], { |
this.$.toast("上传失败"); |
||||||
status: "error", |
this[key].splice( |
||||||
message: "失败", |
index, |
||||||
}) |
1, |
||||||
); |
Object.assign(this[key][index], { |
||||||
} |
status: "error", |
||||||
this.formData.hdPic = this[key] |
message: "失败", |
||||||
.filter((item) => item.status === "success") |
}) |
||||||
.map((item) => item.url) |
); |
||||||
.toString(); |
} |
||||||
this.changeEmit(); |
this.formData.hdPic = this[key] |
||||||
}, |
.filter((item) => item.status === "success") |
||||||
changeEmit() { |
.map((item) => item.url) |
||||||
this.$emit("change", this.formData); |
.toString(); |
||||||
}, |
this.changeEmit(); |
||||||
getData2() { |
}, |
||||||
this.$request |
changeEmit() { |
||||||
.globalRequest( |
this.$emit("change", this.formData); |
||||||
"/hiddenDanger/highDanger/getImportDangerInfo", |
}, |
||||||
{ |
getData2() { |
||||||
sid: this.$props.json.nid, |
this.$request |
||||||
}, |
.globalRequest( |
||||||
"GET" |
"/hiddenDanger/highDanger/getImportDangerInfo", |
||||||
) |
{ |
||||||
.then((res) => { |
sid: this.$props.json.nid, |
||||||
if (res.code == 200) { |
}, |
||||||
this.investigationDetailList = res.result.map((item) => { |
"GET" |
||||||
switch (item.type) { |
) |
||||||
case "1": |
.then((res) => { |
||||||
item.standar = 0; |
if (res.code == 200) { |
||||||
break; |
this.investigationDetailList = res.result.map((item) => { |
||||||
case "2": |
switch (item.type) { |
||||||
item.standar = ""; |
case "1": |
||||||
break; |
item.standar = 0; |
||||||
case "3": |
break; |
||||||
item.standar = false; |
case "2": |
||||||
break; |
item.standar = ""; |
||||||
case "4": |
break; |
||||||
item.fileList = []; |
case "3": |
||||||
break; |
item.standar = false; |
||||||
} |
break; |
||||||
return item; |
case "4": |
||||||
}); |
item.fileList = []; |
||||||
} |
break; |
||||||
}); |
} |
||||||
// this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { |
return item; |
||||||
// if (res.code == 200) { |
}); |
||||||
// this.investigationList = res.result |
} |
||||||
// } |
}); |
||||||
// }) |
// this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { |
||||||
}, |
// if (res.code == 200) { |
||||||
getData() { |
// this.investigationList = res.result |
||||||
this.$request |
// } |
||||||
.globalRequest( |
// }) |
||||||
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", |
}, |
||||||
{ |
getData() { |
||||||
dangerId: this.$props.json.id, |
this.$request |
||||||
businessId: this.$props.businessId, |
.globalRequest( |
||||||
}, |
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", |
||||||
"GET" |
{ |
||||||
) |
dangerId: this.$props.json.id, |
||||||
.then((res) => { |
businessId: this.$props.businessId, |
||||||
if (res.code == 200) { |
}, |
||||||
if (res.result.length > 0) { |
"GET" |
||||||
this.investigationDetailList = res.result.map((item) => { |
) |
||||||
switch (item.type) { |
.then((res) => { |
||||||
case "1": |
if (res.code == 200) { |
||||||
item.standar = 0; |
if (res.result.length > 0) { |
||||||
break; |
this.investigationDetailList = res.result.map((item) => { |
||||||
case "2": |
switch (item.type) { |
||||||
item.standar = ""; |
case "1": |
||||||
break; |
item.standar = 0; |
||||||
case "3": |
break; |
||||||
item.standar = false; |
case "2": |
||||||
break; |
item.standar = ""; |
||||||
case "4": |
break; |
||||||
item.fileList = []; |
case "3": |
||||||
break; |
item.standar = false; |
||||||
} |
break; |
||||||
return item; |
case "4": |
||||||
}); |
item.fileList = []; |
||||||
} else { |
break; |
||||||
this.getData2(); |
} |
||||||
} |
return item; |
||||||
} |
}); |
||||||
}); |
} else { |
||||||
}, |
this.getData2(); |
||||||
// 跳转页面 |
} |
||||||
skipPage(even) { |
} |
||||||
this.$.open(even); |
}); |
||||||
}, |
}, |
||||||
handleSelect(item, index) { |
// 跳转页面 |
||||||
this.investigationSelect = index; |
skipPage(even) { |
||||||
this.investigationDetailTitle = item.name; |
this.$.open(even); |
||||||
this.showInvestigationDetail = true; |
}, |
||||||
// this.$emit('select', this.investigationSelect, this.investigationList[index]) |
handleSelect(item, index) { |
||||||
}, |
this.investigationSelect = index; |
||||||
investigationDetailHandle() { |
this.investigationDetailTitle = item.name; |
||||||
this.$emit("select", { |
this.showInvestigationDetail = true; |
||||||
...this.json, |
// this.$emit('select', this.investigationSelect, this.investigationList[index]) |
||||||
checkedSelect: this.formData, |
}, |
||||||
extraConfigs: this.investigationDetailList, |
investigationDetailHandle() { |
||||||
}); |
this.$emit("select", { |
||||||
}, |
...this.json, |
||||||
}, |
checkedSelect: this.formData, |
||||||
onReady() {}, |
extraConfigs: this.investigationDetailList, |
||||||
// 页面卸载 |
}); |
||||||
onUnload() {}, |
}, |
||||||
// 触发下拉刷新 |
}, |
||||||
onPullDownRefresh() { |
onReady() { }, |
||||||
// 延迟关闭刷新动画 |
// 页面卸载 |
||||||
setTimeout(() => { |
onUnload() { }, |
||||||
uni.stopPullDownRefresh(); |
// 触发下拉刷新 |
||||||
}, 1500); |
onPullDownRefresh() { |
||||||
}, |
// 延迟关闭刷新动画 |
||||||
// 页面上拉触底事件的处理函数 |
setTimeout(() => { |
||||||
onReachBottom() {}, |
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: auto; |
height: auto; |
||||||
margin-bottom: 20rpx; |
margin-bottom: 20rpx; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.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