重点排查附件处理

main
limingtao 11 months ago
parent 94aabf89f4
commit d3ea1684ab
  1. 573
      pages/investigation/components/investigation-item.vue
  2. 614
      pages/investigation/components/investigation-item2.vue
  3. 13
      pages/investigation/task.vue

@ -1,293 +1,280 @@
<template> <template>
<view> <view>
<view class="investigation-item" <view class="investigation-item" :class="investigationSelect === index ? 'active' : ''"
:class="investigationSelect === index ? 'active' : ''" v-for="(item, index) in investigationList" :key="item.name" @click="handleSelect(item, index)">
v-for="(item, index) in investigationList" <text>{{ item.name }}</text>
:key="item.name" <uni-icons type="checkmarkempty" size="24"
@click="handleSelect(item, index)" :style="{color: '#2663BF', visibility: investigationSelect === index ? 'visible' : 'hidden'}" />
> </view>
<text>{{ item.name }}</text> <u-popup :show="showInvestigationDetail" @close="showInvestigationDetail = false">
<uni-icons type="checkmarkempty" size="24" :style="{color: '#2663BF', visibility: investigationSelect === index ? 'visible' : 'hidden'}"/> <view class="custom-pop-head">
</view> <view class="left" @click="showInvestigationDetail = false">取消</view>
<u-popup :show="showInvestigationDetail" @close="showInvestigationDetail = false"> <view class="title">{{ investigationDetailTitle }}</view>
<view class="custom-pop-head"> <view class="right" @click="investigationDetailHandle">确认</view>
<view class="left" @click="showInvestigationDetail = false">取消</view> </view>
<view class="title">{{ investigationDetailTitle }}</view> <view class="box" style="max-height: 800rpx;overflow-y: auto">
<view class="right" @click="investigationDetailHandle">确认</view> <view class="investigation-item" v-for="(item, index) in investigationDetailList" :key="index"
</view> style="width: 96%; padding: 0">
<view class="box" style="max-height: 800rpx;overflow-y: auto"> <view class="detail-item" v-if="item.type === 'number' || item.type === '1'">
<view class="investigation-item" <uni-forms-item :label="item.name" label-width="300px"
v-for="(item, index) in investigationDetailList" style="display: flex;align-items: center">
:key="index" <u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right"
style="width: 96%; padding: 0" type="number">
> <u-text :text="item.unit" slot="suffix" margin="0 3px 0 0" type="tips"></u-text>
<view class="detail-item" v-if="item.type === 'number' || item.type === '1'"> </u-input>
<uni-forms-item :label="item.name" label-width="300px" style="display: flex;align-items: center"> </uni-forms-item>
<u-input </view>
placeholder="请输入" <view class="detail-item" v-else-if="item.type === 'text' || item.type === '2'">
border="none" <uni-forms-item :label="item.name" label-width="300px"
v-model="item.standar" style="display: flex;align-items: center">
inputAlign="right" <u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right" />
type="number" </uni-forms-item>
> </view>
<u-text <view class="detail-item" v-else-if="item.type === 'check' || item.type === '3'">
:text="item.unit" <uni-forms-item :label="item.name" label-width="300px"
slot="suffix" style="display: flex;align-items: center">
margin="0 3px 0 0" <u-checkbox v-model="item.standar" :customStyle="{justifyContent: 'space-between'}"
type="tips" :name="'sdfs'" />
></u-text> </uni-forms-item>
</u-input> </view>
</uni-forms-item> <view class="detail-item" v-else-if="item.type === 'upload' || item.type === '4'">
</view> <uni-forms-item :label="item.name" label-position="top" label-width="300px"
<view class="detail-item" v-else-if="item.type === 'text' || item.type === '2'"> style="display: flex;align-items: center" />
<uni-forms-item :label="item.name" label-width="300px" style="display: flex;align-items: center"> <u-upload :fileList="item.fileList" @afterRead="(e) => afterRead(e, item)"
<u-input @delete="(e) => deletePic(e, item)" name="1" :maxCount="1"></u-upload>
placeholder="请输入" </view>
border="none" </view>
v-model="item.standar" </view>
inputAlign="right" <view class="blank" />
/> </u-popup>
</uni-forms-item> </view>
</view> </template>
<view class="detail-item" v-else-if="item.type === 'check' || item.type === '3'">
<uni-forms-item :label="item.name" label-width="300px" style="display: flex;align-items: center"> <script>
<u-checkbox export default {
v-model="item.standar" //
:customStyle="{justifyContent: 'space-between'}" components: {},
:name="'sdfs'" props: {
/> sid: {
</uni-forms-item> type: String,
</view> default: '01'
<view class="detail-item" v-else-if="item.type === 'upload' || item.type === '4'"> }
<uni-forms-item :label="item.name" label-position="top" label-width="300px" style="display: flex;align-items: center" /> },
<u-upload data() {
:fileList="item.fileList" return {
@afterRead="(e) => afterRead(e, item)" // js
@delete="(e) => deletePic(e, item)" $: this.$,
name="1" investigationSelect: null,
:maxCount="1" investigationList: [],
></u-upload> showInvestigationDetail: false,
</view> investigationDetailTitle: '',
</view> investigationDetailList: []
</view> }
<view class="blank" /> },
</u-popup> //
</view> onLoad(e) {
</template> console.log(12312312312)
// this.getData()
<script> },
export default { mounted() {
// if (this.sid) {
components: {}, this.getData()
props: { }
sid: { },
type: String, //
default: '01' onShow() {},
} //
}, computed: {},
data() { //
return { methods: {
// js //
$: this.$, deletePic(event, item) {
investigationSelect: null, item.fileList.splice(event.index, 1)
investigationList: [], },
showInvestigationDetail: false, //id
investigationDetailTitle: '', uuid(len, binary) {
investigationDetailList: [] 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,
onLoad(e) { v = c == 'x' ? r : (r & 0x3 | 0x8);
console.log(12312312312) return v.toString(binary);
// this.getData() }).substring(0, len)
}, },
mounted(){ //
if (this.sid) { async afterRead(event, item) {
this.getData() // multiple true , file
} const id = this.uuid()
}, if (!item.fileList) {
// item.fileList = []
onShow() { }
}, this.$forceUpdate()
// item.fileList.push({
computed: {}, id,
// ...event.file,
methods: { status: 'uploading',
// message: '上传中'
deletePic(event, item) { })
item.fileList.splice(event.index, 1) const result = await this.uploadFilePromise(item.fileList[0].url)
}, const resultInfo = JSON.parse(result)
//id const index = item.fileList.findIndex(v => v.id === id)
uuid(len, binary) { if (resultInfo.code == 200) {
len = !len ? 36 : len; item.fileList.splice(index, 1, Object.assign(item.fileList[index], {
binary = !binary ? 16 : binary; status: 'success',
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { message: '',
var r = Math.random() * binary | 0, result: resultInfo,
v = c == 'x' ? r : (r & 0x3 | 0x8); url: resultInfo.result
return v.toString(binary); }))
}).substring(0, len) } else {
}, this.$.toast('上传失败')
// item.fileList.splice(index, 1, Object.assign(item.fileList[index], {
async afterRead(event, item) { status: 'error',
// multiple true , file message: '失败',
const id = this.uuid() }))
item.fileList.push({ }
id, },
...event.file, uploadFilePromise(url) {
status: 'uploading', return new Promise((resolve, reject) => {
message: '上传中' let a = uni.uploadFile({
}) url: this.$.baseUrl + '/hiddenDanger/ftp/uploadFileToFtp', //
const result = await this.uploadFilePromise(item.fileList[0].url) filePath: url,
const resultInfo = JSON.parse(result) name: 'file',
const index = item.fileList.findIndex(v => v.id === id) success: (res) => {
if (resultInfo.code == 200) { resolve(res.data)
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { }
status: 'success', });
message: '', })
result: resultInfo, },
url: resultInfo.result getData() {
})) this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => {
} else { if (res.code == 200) {
this.$.toast('上传失败') this.investigationList = res.result
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { }
status: 'error', })
message: '失败', },
})) getData2(sid) {
} this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangerInfo', {
}, sid
uploadFilePromise(url) { }, 'GET').then(res => {
return new Promise((resolve, reject) => { if (res.code == 200) {
let a = uni.uploadFile({ console.log(res.result)
url: this.$.baseUrl + '/hiddenDanger/ftp/uploadFileToFtp', // this.investigationDetailList = res.result.map(item => {
filePath: url, switch (item.type) {
name: 'file', case "1":
success: (res) => { item.standar = 0
resolve(res.data) break;
} case "2":
}); item.standar = ''
}) break;
}, case "3":
getData(){ item.standar = false
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { break;
if(res.code == 200){ case "4":
this.investigationList = res.result item.fileList = []
} break;
}) }
}, return item
getData2(sid){ })
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangerInfo', {sid}, 'GET').then(res => { }
if(res.code == 200){ })
console.log(res.result) },
this.investigationDetailList = res.result.map(item => { //
switch (item.type) { skipPage(even) {
case "1": this.$.open(even)
item.standar = 0 },
break; handleSelect(item, index) {
case "2": this.investigationSelect = index
item.standar = '' this.investigationDetailTitle = item.name
break; this.showInvestigationDetail = true
case "3": this.getData2(item.nid)
item.standar = false // this.$emit('select', this.investigationSelect, this.investigationList[index])
break; },
case "4": investigationDetailHandle() {
item.fileList = [] this.showInvestigationDetail = false
break; this.$emit('select', this.investigationList[this.investigationSelect], this.investigationDetailList)
} }
return item },
}) onReady() {},
} //
}) onUnload() {
},
// },
skipPage(even){ //
this.$.open(even) onPullDownRefresh() {
}, //
handleSelect(item, index){ setTimeout(() => {
this.investigationSelect = index uni.stopPullDownRefresh();
this.investigationDetailTitle = item.name }, 1500);
this.showInvestigationDetail = true },
this.getData2(item.nid) //
// this.$emit('select', this.investigationSelect, this.investigationList[index]) onReachBottom() {},
}, }
investigationDetailHandle(){ </script>
this.showInvestigationDetail = false
this.$emit('select', this.investigationList[this.investigationSelect], this.investigationDetailList) <style>
} page {
}, background: #FFFFFF;
onReady() { }
}, </style>
// <style lang="scss" scoped>
onUnload() { .investigation-item {
margin: 0 auto 20rpx;
}, width: 90%;
// border-radius: 8rpx;
onPullDownRefresh() { padding: 20rpx;
// box-sizing: border-box;
setTimeout(() => { display: flex;
uni.stopPullDownRefresh(); justify-content: space-between;
}, 1500); align-items: center;
}, overflow: hidden;
//
onReachBottom() { &.active {
}, background: #DFEBF8;
} }
</script> }
<style> .detail-item {
page { width: 100%;
background:#FFFFFF; background: #F0F3F7;
} padding: 20rpx 30rpx;
</style> border-radius: 8rpx;
<style lang="scss" scoped> box-sizing: border-box;
.investigation-item {
margin:0 auto 20rpx; /deep/ .uni-forms-item__content {
width: 90%; justify-content: flex-end;
border-radius: 8rpx; text-align: right;
padding: 20rpx; display: flex;
box-sizing: border-box; }
display: flex;
justify-content: space-between; /deep/ .uni-forms-item {
align-items: center; margin-bottom: 0;
overflow: hidden; }
&.active {
background: #DFEBF8; /deep/ .uni-forms-item__label {
} font-size: 16px;
} }
.detail-item { }
width: 100%;
background: #F0F3F7; .custom-pop-head {
padding: 20rpx 30rpx; width: 100%;
border-radius: 8rpx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
/deep/ .uni-forms-item__content { display: flex;
justify-content: flex-end; align-items: center;
text-align: right; justify-content: space-between;
display: flex; border-bottom: 1px solid #E6E6E6;
} margin-bottom: 20rpx;
/deep/ .uni-forms-item {
margin-bottom: 0; .left {
} color: #666666;
/deep/ .uni-forms-item__label { }
font-size: 16px;
} .title {
} font-size: 16px;
.custom-pop-head { }
width: 100%;
padding: 20rpx; .right {
box-sizing: border-box; color: #2663BF;
display: flex; }
align-items: center; }
justify-content: space-between; </style>
border-bottom: 1px solid #E6E6E6;
margin-bottom: 20rpx;
.left {
color: #666666;
}
.title {
font-size: 16px;
}
.right {
color: #2663BF;
}
}
</style>

@ -1,314 +1,300 @@
<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 class="investigation-item" <view class="investigation-item" v-for="(item, index) in investigationDetailList" :key="index"
v-for="(item, index) in investigationDetailList" style="width: 96%; padding: 0">
:key="index" <view class="detail-item" v-if="item.type === 'number' || item.type === '1'">
style="width: 96%; padding: 0" <uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center">
> <u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right"
<view class="detail-item" v-if="item.type === 'number' || item.type === '1'"> type="number">
<uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center"> <u-text :text="item.unit" slot="suffix" margin="0 3px 0 0" type="tips"></u-text>
<u-input </u-input>
placeholder="请输入" </uni-forms-item>
border="none" </view>
v-model="item.standar" <view class="detail-item" v-else-if="item.type === 'text' || item.type === '2'">
inputAlign="right" <uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center">
type="number" <u-input placeholder="请输入" border="none" v-model="item.standar" inputAlign="right" />
> </uni-forms-item>
<u-text </view>
:text="item.unit" <view class="detail-item" v-else-if="item.type === 'check' || item.type === '3'">
slot="suffix" <uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center">
margin="0 3px 0 0" <u-checkbox v-model="item.standar" :customStyle="{justifyContent: 'space-between'}"
type="tips" :name="'sdfs'" />
></u-text> </uni-forms-item>
</u-input> </view>
</uni-forms-item> <view class="detail-item" v-else-if="item.type === 'upload' || item.type === '4'">
</view> <uni-forms-item :label="item.name" label-position="top" label-width="300px"
<view class="detail-item" v-else-if="item.type === 'text' || item.type === '2'"> style="display: flex;align-items: center" />
<uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center"> <u-upload :fileList="item.fileList" @afterRead="(e) => afterRead(e, item)"
<u-input @delete="(e) => deletePic(e, item)" name="1" :maxCount="1"></u-upload>
placeholder="请输入" </view>
border="none" </view>
v-model="item.standar" </view>
inputAlign="right" <view class="blank" />
/> </view>
</uni-forms-item> </template>
</view>
<view class="detail-item" v-else-if="item.type === 'check' || item.type === '3'"> <script>
<uni-forms-item :label="item.name" label-width="500rpx" style="display: flex;align-items: center"> export default {
<u-checkbox //
v-model="item.standar" components: {},
:customStyle="{justifyContent: 'space-between'}" props: {
:name="'sdfs'" sid: {
/> type: String,
</uni-forms-item> default: '01'
</view> },
<view class="detail-item" v-else-if="item.type === 'upload' || item.type === '4'"> json: {
<uni-forms-item :label="item.name" label-position="top" label-width="300px" style="display: flex;align-items: center" /> type: Object,
<u-upload default: {}
:fileList="item.fileList" },
@afterRead="(e) => afterRead(e, item)" },
@delete="(e) => deletePic(e, item)" data() {
name="1" return {
:maxCount="1" // js
></u-upload> $: this.$,
</view> investigationSelect: null,
</view> investigationList: [],
</view> showInvestigationDetail: false,
<view class="blank" /> investigationDetailTitle: '',
</view> investigationDetailList: []
</template> }
},
<script> //
export default { onLoad(e) {
// // this.getData()
components: {}, },
props: { mounted() {
sid: { if (this.json.name) {
type: String, this.investigationDetailList = this.json.extraConfigs.map(item => {
default: '01' if (!item.fileList) {
}, item.fileList = []
json: { }
type: Object, switch (item.type) {
default: {} // case "1":
}, // item.standar = 0
}, // break;
data() { // case "2":
return { // item.standar = ''
// js // break;
$: this.$, // case "3":
investigationSelect: null, // item.standar = false
investigationList: [], // break;
showInvestigationDetail: false, // case "4":
investigationDetailTitle: '', // item.fileList = [
investigationDetailList: [] // {
} // "id": "20229a8c-db46-4447-be3e-6731665f7bd0",
}, // "type": "image",
// // "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg",
onLoad(e) { // "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5",
// this.getData() // "size": 11600,
}, // "name": ".png",
mounted(){ // "status": "success",
if (this.json.name) { // "message": "",
this.investigationDetailList = this.json.extraConfigs.map(item => { // "result": {
switch (item.type) { // "code": 200,
// case "1": // "message": "",
// item.standar = 0 // "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg"
// break; // }
// case "2": // }
// item.standar = '' // ]
// break; // break;
// case "3": }
// item.standar = false return item
// break; })
// case "4": }
// item.fileList = [ },
// { //
// "id": "20229a8c-db46-4447-be3e-6731665f7bd0", onShow() {},
// "type": "image", //
// "url": "https://img-blog.csdnimg.cn/20210823085628540.jpeg", computed: {},
// "thumb": "blob:http://localhost:8080/4343e24a-edc5-4693-8fbd-f99647ea3bd5", //
// "size": 11600, methods: {
// "name": ".png", //
// "status": "success", deletePic(event, item) {
// "message": "", item.fileList.splice(event.index, 1)
// "result": { },
// "code": 200, //id
// "message": "", uuid(len, binary) {
// "result": "https://img-blog.csdnimg.cn/20210823085628540.jpeg" 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,
// break; v = c == 'x' ? r : (r & 0x3 | 0x8);
} return v.toString(binary);
return item }).substring(0, len)
}) },
} //
}, async afterRead(event, item) {
//
onShow() { // multiple true , file
}, const id = this.uuid()
// item.fileList.push({
computed: {}, id,
// ...event.file,
methods: { status: 'uploading',
// message: '上传中'
deletePic(event, item) { })
item.fileList.splice(event.index, 1) const result = await this.uploadFilePromise(item.fileList[0].url)
}, const resultInfo = JSON.parse(result)
//id const index = item.fileList.findIndex(v => v.id === id)
uuid(len, binary) { if (resultInfo.code == 200) {
len = !len ? 36 : len; item.fileList.splice(index, 1, Object.assign(item.fileList[index], {
binary = !binary ? 16 : binary; status: 'success',
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { message: '',
var r = Math.random() * binary | 0, result: resultInfo,
v = c == 'x' ? r : (r & 0x3 | 0x8); url: resultInfo.result
return v.toString(binary); }))
}).substring(0, len) } else {
}, this.$.toast('上传失败')
// item.fileList.splice(index, 1, Object.assign(item.fileList[index], {
async afterRead(event, item) { status: 'error',
// multiple true , file message: '失败',
const id = this.uuid() }))
item.fileList.push({ }
id, },
...event.file, uploadFilePromise(url) {
status: 'uploading', return new Promise((resolve, reject) => {
message: '上传中' let a = uni.uploadFile({
}) url: this.$.baseUrl + '/hiddenDanger/ftp/uploadFileToFtp', //
const result = await this.uploadFilePromise(item.fileList[0].url) filePath: url,
const resultInfo = JSON.parse(result) name: 'file',
const index = item.fileList.findIndex(v => v.id === id) success: (res) => {
if (resultInfo.code == 200) { resolve(res.data)
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { }
status: 'success', });
message: '', })
result: resultInfo, },
url: resultInfo.result getData() {
})) this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangerInfo', {
} else { sid: this.$props.sid
this.$.toast('上传失败') }, 'GET').then(res => {
item.fileList.splice(index, 1, Object.assign(item.fileList[index], { if (res.code == 200) {
status: 'error', this.investigationDetailList = res.result.map(item => {
message: '失败', switch (item.type) {
})) case "1":
} item.standar = 0
}, break;
uploadFilePromise(url) { case "2":
return new Promise((resolve, reject) => { item.standar = ''
let a = uni.uploadFile({ break;
url: this.$.baseUrl + '/hiddenDanger/ftp/uploadFileToFtp', // case "3":
filePath: url, item.standar = false
name: 'file', break;
success: (res) => { case "4":
resolve(res.data) item.fileList = []
} break;
}); }
}) return item
}, })
getData(){ }
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangerInfo', {sid: this.$props.sid}, 'GET').then(res => { })
if(res.code == 200){ this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => {
this.investigationDetailList = res.result.map(item => { if (res.code == 200) {
switch (item.type) { this.investigationList = res.result
case "1": }
item.standar = 0 })
break; },
case "2": //
item.standar = '' skipPage(even) {
break; this.$.open(even)
case "3": },
item.standar = false handleSelect(item, index) {
break; this.investigationSelect = index
case "4": this.investigationDetailTitle = item.name
item.fileList = [] this.showInvestigationDetail = true
break; // this.$emit('select', this.investigationSelect, this.investigationList[index])
} },
return item investigationDetailHandle() {
}) this.$emit('select', this.json)
} }
}) },
this.$request.globalRequest('/hiddenDanger/highDanger/getImportDangers', {}, 'GET').then(res => { onReady() {},
if(res.code == 200){ //
this.investigationList = res.result onUnload() {
}
}) },
}, //
// onPullDownRefresh() {
skipPage(even){ //
this.$.open(even) setTimeout(() => {
}, uni.stopPullDownRefresh();
handleSelect(item, index){ }, 1500);
this.investigationSelect = index },
this.investigationDetailTitle = item.name //
this.showInvestigationDetail = true onReachBottom() {},
// this.$emit('select', this.investigationSelect, this.investigationList[index]) }
}, </script>
investigationDetailHandle(){
this.$emit('select',this.json) <style>
} page {
}, background: #FFFFFF;
onReady() { }
}, </style>
// <style lang="scss" scoped>
onUnload() { .investigation-item {
margin: 0 auto 20rpx;
}, width: 90%;
// border-radius: 8rpx;
onPullDownRefresh() { padding: 20rpx;
// box-sizing: border-box;
setTimeout(() => { display: flex;
uni.stopPullDownRefresh(); justify-content: space-between;
}, 1500); align-items: center;
}, overflow: hidden;
//
onReachBottom() { &.active {
}, background: #DFEBF8;
} }
</script> }
<style> .detail-item {
page { width: 100%;
background:#FFFFFF; background: #F0F3F7;
} padding: 20rpx 30rpx;
</style> border-radius: 8rpx;
<style lang="scss" scoped> box-sizing: border-box;
.investigation-item {
margin:0 auto 20rpx; /deep/ .uni-forms-item__content {
width: 90%; justify-content: flex-end;
border-radius: 8rpx; text-align: right;
padding: 20rpx; display: flex;
box-sizing: border-box; }
display: flex;
justify-content: space-between; /deep/ .uni-forms-item {
align-items: center; margin-bottom: 0;
overflow: hidden; }
&.active {
background: #DFEBF8; /deep/ .uni-forms-item__label {
} font-size: 16px;
} }
.detail-item { }
width: 100%;
background: #F0F3F7; .custom-pop-head {
padding: 20rpx 30rpx; width: 100%;
border-radius: 8rpx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
/deep/ .uni-forms-item__content { display: flex;
justify-content: flex-end; align-items: center;
text-align: right; justify-content: space-between;
display: flex; border-bottom: 1px solid #E6E6E6;
} margin-bottom: 20rpx;
/deep/ .uni-forms-item {
margin-bottom: 0; .left {
} color: #666666;
/deep/ .uni-forms-item__label { }
font-size: 16px;
} .title {
} font-size: 16px;
.custom-pop-head { }
width: 100%;
padding: 20rpx; .right {
box-sizing: border-box; color: #2663BF;
display: flex; }
align-items: center; }
justify-content: space-between; </style>
border-bottom: 1px solid #E6E6E6;
margin-bottom: 20rpx;
.left {
color: #666666;
}
.title {
font-size: 16px;
}
.right {
color: #2663BF;
}
}
</style>

@ -702,7 +702,8 @@ export default {
}; };
}, },
methods: { methods: {
showInvestigationTag(v) { showInvestigationTag(v) {
console.log(v)
this.showInvestigation2 = true; this.showInvestigation2 = true;
this.showInvestigation2Item = v; this.showInvestigation2Item = v;
}, },
@ -1086,11 +1087,11 @@ export default {
console.log(res); console.log(res);
if (res.code === 200) { if (res.code === 200) {
this.$.toast("保存成功"); this.$.toast("保存成功");
// setTimeout(() => { setTimeout(() => {
// uni.navigateBack({ uni.navigateBack({
// delta: 1, // 1 delta: 1, // 1
// }); });
// }, 1000); }, 1000);
// this.data = res.result; // this.data = res.result;
// this.rname = this.data[0].name; // this.rname = this.data[0].name;

Loading…
Cancel
Save