| | |
| | | |
| | | <u-cell size="large" icon="../../static/my/Bell_ringing.png" title="开启语音"> |
| | | <u-switch slot="value" v-model="isyuyin" @change="changeyuyin"></u-switch></u-cell> |
| | | |
| | | <u-cell size="large" icon="../../static/my/hide.png" title="隐藏地图"> |
| | | <u-switch slot="value" v-model="ishidemap" @change="changehidemap"></u-switch></u-cell> |
| | | <!-- <u-cell size="large" icon="../../static/my/ceju.png" title="寻物防丢"> |
| | | <u-switch slot="value" v-model="isceju" @change="changeceju"></u-switch></u-cell> --> |
| | | </u-cell-group> |
| | |
| | | <!-- <u-icon name="close" style="position: absolute;right: 10px;top:10px" @click="closemodal"></u-icon> --> |
| | | <u--form style="" labelPosition="left" :model="form" ref="uForm"> |
| | | |
| | | <u-form-item required label="围栏类型:" prop="type" borderBottom ref="item1" :labelWidth="labelWidth"> |
| | | <tn-input v-model="form.type" type="select" @click="show1 = true" placeholder="请输入选择围栏类型" /> |
| | | <tn-action-sheet :list="typeList" v-model="show1" @click="typeCallback"></tn-action-sheet> |
| | | <u-form-item required label="围栏类型:" prop="type" borderBottom ref="item1" :labelWidth="labelWidth" @click="show1 = true"> |
| | | <!-- <tn-input v-model="form.type" type="select" @click="show1 = true" placeholder="请输入选择围栏类型" /> --> |
| | | <u-input v-model="form.type" disabled disabledColor="#ffffff" placeholder="请输入选择围栏类型" |
| | | border="none" /> |
| | | <u-icon slot="right" name="arrow-down"></u-icon> |
| | | <!-- <tn-action-sheet :list="typeList" v-model="show1" @click="typeCallback"></tn-action-sheet> --> |
| | | <tn-select v-model="show1" mode="single" :list="typeList" @confirm="typeCallback" |
| | | :searchShow="true"></tn-select> |
| | | </u-form-item> |
| | | |
| | | <u-form-item required label="预警语音:" prop="nowarnmes" borderBottom ref="item1" labelWidth="80px"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | ishidemap: false, |
| | | src:this.companylogo=='-1' ? "../../static/companylogo.png" :this.companylogo, |
| | | show1:false, |
| | | typeList: [{ |
| | | text: '保护区' |
| | | value: '保护区', |
| | | label: '保护区' |
| | | }, |
| | | { |
| | | text: '禁入区' |
| | | value: '禁入区', |
| | | label: '禁入区' |
| | | }, |
| | | { |
| | | text: '工作区' |
| | | value: '工作区', |
| | | label: '工作区' |
| | | }, |
| | | { |
| | | text: '安全区' |
| | | value: '安全区', |
| | | label: '安全区' |
| | | }, |
| | | ], |
| | | form: { |
| | |
| | | labelWidth: 100, |
| | | isbumen: false, |
| | | value: 0, |
| | | appversion: 'v1.1.4', |
| | | appversion: 'v1.2.8', |
| | | downloadUrl: '', |
| | | text1: [], |
| | | jizhan: false, |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log(this.companylogo); |
| | | this.lunbo() |
| | | setTimeout(() => { |
| | | this.paddingTop = this.vuex_padding_top |
| | |
| | | const params = { |
| | | token: uni.getStorageSync('access_token'), |
| | | } |
| | | console.log(params); |
| | | checkLogin(params).then((res) => { |
| | | console.log(res); |
| | | if (res.code == 0) { |
| | | this.$refs.refSuccess.showBox({ |
| | | type: 'success', |
| | |
| | | return null; |
| | | }, |
| | | updatedata() { |
| | | const baseUrl = uni.getStorageSync('newBaseURL')== ''? 'http://123.117.152.120:8090' : uni.getStorageSync('newBaseURL'); |
| | | // const result = baseUrl === '' ? 'http://123.117.152.120:8090' : getPortFromUrl(baseUrl) || getPortFromUrl('http://123.117.152.120:8090'); |
| | | console.log(baseUrl.split('//')[1].split(':')[1]); |
| | | // console.log(result); |
| | | // console.log(uni.getStorageSync('newBaseURL')== ''? 'http://123.117.152.120:8090' : uni.getStorageSync('newBaseURL')); |
| | | // console.log(uni.getStorageSync('newBaseURL')== ''? 'http://123.117.152.120:8090' : uni.getStorageSync('newBaseURL').split("//")[1]); |
| | | // console.log(uni.getStorageSync('newBaseURL')== ''? 'http://123.117.152.120:8090' : uni.getStorageSync('newBaseURL').split("//")[1].split(":")[1]); |
| | | const baseUrl = uni.getStorageSync('newBaseURL') == '' ? 'http://123.117.152.120:8090' : uni |
| | | .getStorageSync('newBaseURL'); |
| | | this.showpopupip = true |
| | | |
| | | this.form.port =baseUrl.split('//')[1].split(':')[1] |
| | |
| | | |
| | | // this.showpopup=false |
| | | saveWarnmes(this.form).then((res) => { |
| | | console.log(res); |
| | | this.showpopup=false |
| | | if (res.code == 0) { |
| | | // nowarnmes: '靠近危险请注意', |
| | |
| | | }) |
| | | } |
| | | }, |
| | | typeCallback(index) { |
| | | this.form.type = this.typeList[index].text; |
| | | typeCallback(e) { |
| | | this.form.type = e[0].label; |
| | | const params = { |
| | | type: this.typeList[index].text, |
| | | type: e[0].label, |
| | | } |
| | | console.log(params); |
| | | console.log(211111111111); |
| | | findWarnmes(params).then((res) => { |
| | | console.log(res); |
| | | if (res.code == 0) { |
| | | // nowarnmes: '靠近危险请注意', |
| | | // warnmes: '进入危险区域请注意', |
| | |
| | | // }else{ |
| | | this.form.nowarnmes = res.data.nowarnmes |
| | | this.form.warnmes = res.data.warnmes |
| | | // } |
| | | |
| | | console.log(this.form.watnmes); |
| | | console.log(this.form.nowarnmes); |
| | | } else { |
| | | |
| | | } |
| | |
| | | name: 'is3wei', |
| | | value: e |
| | | }) |
| | | this.$emit('weimap', e); |
| | | }, |
| | | |
| | | changeyuyin(e) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | changehidemap(e) { |
| | | this.ishidemap = e |
| | | this.$emit('hidemap', e); |
| | | |
| | | }, |
| | | |
| | | cancel() { |
| | | this.show = false; |
| | | }, |