flat: 暂存

This commit is contained in:
Apcallover
2024-04-30 11:20:41 +08:00
parent 9f16b866e0
commit f14ea44af2
58 changed files with 6711 additions and 1439 deletions

View File

@@ -126,7 +126,11 @@
</u-form-item>
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.address" border="none" placeholder="请输入详细地址"></u--input>
<!-- <lin-select :list="addressOptions" value-key="location" name-key="title" max-height="180"
:loading="loading" loading-text="数据加载中" placeholder="请输入详细地址" @input="selectInput"
v-model="info.address" @confirm="selectConfirm" /> -->
</u-form-item>
<map class="map" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
</u--form>
<u-button type="primary" text="提交" customStyle="margin-top: 50px" @click="submit"></u-button>
@@ -172,9 +176,17 @@
import {
mapGetters
} from 'vuex'
import {
querySearch
} from '../../../api/map'
import {
debounce
} from '@/untils/tools.js'
export default {
data() {
return {
addressOptions: [],
loading: false,
latitude: 31.05, //中心点
longitude: 104.20,
covers: [{ //marker标记位置
@@ -399,7 +411,6 @@
}
this.getWorkTypes()
this.dictionary()
console.log(this.area)
},
watch: {
company(val) {
@@ -409,6 +420,15 @@
},
methods: {
selectInput: debounce(function(val) {
// querySearch(val, '3CXBZ-SKHCL-QC6PH-MLJAE-ZYCFK-6MBR5').then(res => {
// console.log(res)
// if (res.data.status === 0) {
// this.addressOptions = res.data.data;
// }
// });
}, 600),
selectConfirm() {},
onBlurWage(value) {
const val = this.wallMaxAndMin
if (!val.length) {
@@ -623,6 +643,8 @@
if (!this.info.wageUnitCategory) {
return this.$api.msg('请选择参考工资单位')
}
params.lon = that.longitude
params.lat = that.latitude
submitInfo(params).then(res => {
if (res.data.code == 200) {
that.reset()

View File

@@ -618,6 +618,8 @@
if (!this.info.wageUnitCategory) {
return this.$api.msg('请选择参考工资单位')
}
params.lon = that.longitude
params.lat = that.latitude
submitInfo(params).then(res => {
if (res.data.code == 200) {
that.reset()