重点排查附件处理

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

@ -703,6 +703,7 @@ 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