修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<van-form ref="form" @submit="save">
|
||||
<van-form ref="form" @submit="handleClick">
|
||||
<div class="cont">
|
||||
<div class="container">
|
||||
<div class="part">
|
||||
@@ -105,6 +105,7 @@ import {
|
||||
} from '@/utils/dsbridge'
|
||||
import { insertPositionData, getPositionData } from '@/api/api.js'
|
||||
import { downloadUrl } from '@/settings'
|
||||
import {debounce} from '@/utils/common.js'
|
||||
export default {
|
||||
components: {
|
||||
Uploader,
|
||||
@@ -239,6 +240,9 @@ export default {
|
||||
})
|
||||
return list
|
||||
},
|
||||
handleClick:debounce(function () {
|
||||
this.save()
|
||||
}, 5000, true),
|
||||
// 保存
|
||||
save() {
|
||||
if (this.$refs.uploaderRef.checkImgisUpload(this.text1)) {
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
<van-cell title="建筑外观照片" :required="$store.getters.cityType" :rules="[{ required: $store.getters.cityType}] "/>
|
||||
<van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" />
|
||||
<div class="tips tipImage" v-if="$store.getters.cityType&&fileList.length<1">请上传建筑外观照片</div>
|
||||
<!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> -->
|
||||
<!-- <van-field v-model="formData.buildAddr" :required="$store.getters.cityIsNx" :rules="[{ required: $store.getters.cityIsNx}]" center disabled clearable label="定位" placeholder="位置信息" class="location">
|
||||
<template #button>
|
||||
<van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button>
|
||||
</template>
|
||||
</van-field> -->
|
||||
</van-cell-group>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -179,6 +179,12 @@
|
||||
|
||||
<div class="list-bot">
|
||||
<div>
|
||||
<button
|
||||
@click="show=true"
|
||||
style="margin-left: 10px;"
|
||||
>
|
||||
留言
|
||||
</button>
|
||||
<button
|
||||
@click="goClockIn(item)"
|
||||
style="margin-left: 10px;"
|
||||
@@ -227,6 +233,20 @@
|
||||
<van-button size="large" class="faqi">发起预约</van-button>
|
||||
</div>
|
||||
</div>
|
||||
<van-dialog v-model="show" title="留言" show-cancel-button :lazy-render="false" @cancel="message=''" @confirm="leaveMessage()">
|
||||
<van-field
|
||||
type="textarea"
|
||||
v-model="message"
|
||||
rows="4"
|
||||
autosize
|
||||
autofocus
|
||||
maxlength="500"
|
||||
placeholder="请输入留言"
|
||||
|
||||
>
|
||||
</van-field>
|
||||
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -234,6 +254,7 @@ import { taskList, genReport } from '@/api/api.js'
|
||||
import { getCurrentPersonInfoAPI } from "@/api/customerIformation.js";
|
||||
import { getCode } from '@/api/common.js'
|
||||
import Year from '@/views/facilityManage/common-vue/year.vue'
|
||||
import {debounce} from '@/utils/common.js'
|
||||
|
||||
// import Loading from '@/components/loading'
|
||||
export default {
|
||||
@@ -243,6 +264,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
message: '',
|
||||
statusPopup: false,
|
||||
datePopup: false,
|
||||
currentDate: new Date(),
|
||||
@@ -457,8 +480,11 @@ export default {
|
||||
query: item
|
||||
})
|
||||
},
|
||||
togenReport:debounce(function () {
|
||||
this.getReport()
|
||||
}, 5000, true),
|
||||
// 生成诊断报告
|
||||
togenReport(item) {
|
||||
getReport(item) {
|
||||
this.pageN = this.page.pageNum
|
||||
this.page.pageNum = 1
|
||||
const scrollableDiv = this.$refs.scrollableDiv
|
||||
@@ -586,6 +612,14 @@ export default {
|
||||
this.$router.push({
|
||||
name: 'clockIn',
|
||||
})
|
||||
},
|
||||
leaveMessage(){
|
||||
this.message = ''
|
||||
this.$notify({
|
||||
message: '留言成功',
|
||||
duration: 1000,
|
||||
background: '#34babe'
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
@@ -611,7 +645,7 @@ export default {
|
||||
font-size: 15px;
|
||||
padding-bottom: 10px;
|
||||
position: fixed;
|
||||
z-index: 2013;
|
||||
z-index: 1013;
|
||||
}
|
||||
.select {
|
||||
// // width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user