Commit 00193f7e authored by 王飞龙's avatar 王飞龙

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/router/index.js
parent 67e2e881
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<el-form-item prop="address"> <el-form-item prop="address">
<el-input <el-input
v-model.trim="form.address" v-model.trim="form.address"
placeholder="请输入详细地址地址(街道、楼牌号等)" placeholder="暂无数据"
maxlength="40" maxlength="40"
clearable clearable
style="width: 263%" style="width: 263%"
...@@ -101,20 +101,7 @@ ...@@ -101,20 +101,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item >-->
<!-- <el-input-->
<!-- v-model.trim="form.address"-->
<!-- placeholder="暂无数据"-->
<!-- maxlength="40"-->
<!-- clearable-->
<!-- disabled-->
<!-- style="width: 263%"-->
<!-- >-->
<!-- <template v-if="addtions.names !== ''" slot="prepend">{{ addtions.names }}</template>-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="单位时段服务数"> <el-form-item label="单位时段服务数">
<el-input-number <el-input-number
...@@ -278,6 +265,14 @@ ...@@ -278,6 +265,14 @@
<el-row> <el-row>
<el-col> <el-col>
<el-form-item label="支持服务地区"> <el-form-item label="支持服务地区">
<!-- <el-input-->
<!-- disabled-->
<!-- type="textarea"-->
<!-- placeholder="暂无数据"-->
<!-- maxlength="200"-->
<!-- style="width:705%;"-->
<!-- :rows="4"-->
<!-- />-->
<el-select v-model="form.serviceArea" multiple placeholder="请选择支持服务地区" disabled style="width: 300px"> <el-select v-model="form.serviceArea" multiple placeholder="请选择支持服务地区" disabled style="width: 300px">
<el-option <el-option
v-for="dict in dict.type.service_area" v-for="dict in dict.type.service_area"
...@@ -628,7 +623,7 @@ import { getDevice, updateDevice } from '@/api/business/device' ...@@ -628,7 +623,7 @@ import { getDevice, updateDevice } from '@/api/business/device'
import { CodeToText, regionData } from 'element-china-area-data' import { CodeToText, regionData } from 'element-china-area-data'
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
import { listCheckManage } from '@/api/business/manage' import { listCheckManage } from '@/api/business/manage'
import { isEmpty, parseTime } from '@/utils/ruoyi' import { isEmpty, parseTime, selectDictLabels } from '@/utils/ruoyi'
import { deepClone } from '@/utils' import { deepClone } from '@/utils'
export default { export default {
name: 'EquipmentDetail', name: 'EquipmentDetail',
...@@ -645,7 +640,7 @@ export default { ...@@ -645,7 +640,7 @@ export default {
}, },
data() { data() {
return { return {
// 日期格式
replace(time) { replace(time) {
return parseTime(time, '{y}/{m}/{d}') return parseTime(time, '{y}/{m}/{d}')
}, },
...@@ -689,6 +684,8 @@ export default { ...@@ -689,6 +684,8 @@ export default {
deviceName: '', deviceName: '',
// appointmentMethod: '', // appointmentMethod: '',
serviceArea: '', serviceArea: '',
serviceAreaList: [],
checkTypeList: [],
head: '', head: '',
phone: '', phone: '',
deviceType: '', deviceType: '',
...@@ -914,7 +911,7 @@ export default { ...@@ -914,7 +911,7 @@ export default {
}, },
validaddress(rule, value, callback) { validaddress(rule, value, callback) {
console.log('validaddress', this.form.selectedOptions) console.log('validaddress', this.form.selectedOptions)
if (this.form.selectedOptions.length>0) { if (this.form.selectedOptions.length > 0) {
callback() callback()
} else { } else {
callback(new Error('请选择服务地点')) callback(new Error('请选择服务地点'))
...@@ -1070,7 +1067,18 @@ export default { ...@@ -1070,7 +1067,18 @@ export default {
// //
// } // }
// if (this.form.serviceArea != null && this.form.serviceArea !== '') { // if (this.form.serviceArea != null && this.form.serviceArea !== '') {
console.log('this.form.serviceArea', this.form.serviceArea)
this.form.serviceAreaList = selectDictLabels(this.dict.type.service_area, this.form.serviceArea)
console.log(' this.form.serviceAreaList', this.form.serviceAreaList)
this.form.serviceArea = response.data.serviceArea.split(',') this.form.serviceArea = response.data.serviceArea.split(',')
// this.getDicts('service_area').then(response => {
// this.form.serviceAreaList = response.data
// this.form.checkTypeList = this.form.serviceArea.map(dictValue => this.form.serviceAreaList)
// console.log(' this.form.serviceAreaList.', this.form.serviceAreaList)
// console.log("this.form.idlist.", this.form.checkTypeList)
// })
// } // }
if (this.form.checkType != null && this.form.checkType !== '') { if (this.form.checkType != null && this.form.checkType !== '') {
this.form.checkType = response.data.checkType.split(',') this.form.checkType = response.data.checkType.split(',')
...@@ -1080,9 +1088,9 @@ export default { ...@@ -1080,9 +1088,9 @@ export default {
this.form.useTime = JSON.parse(response.data.useTime) this.form.useTime = JSON.parse(response.data.useTime)
} }
// this.checkType = response.data.checkType.split(',') // this.checkType = response.data.checkType.split(',')
console.log(':fsdfsddddddddd???????', response.data.addressCode) // console.log(':fsdfsddddddddd???????', response.data.addressCode)
console.log('详细个bbbbb', this.selectedOptions) // console.log('详细个bbbbb', this.selectedOptions)
console.log('详细个ccccccccccc', this.form.selectedOptions) // console.log('详细个ccccccccccc', this.form.selectedOptions)
console.log('详情数据---', this.form) console.log('详情数据---', this.form)
// this.serviceAreaS = this.form.serviceArea.split(';') // this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceArea = [] // this.serviceArea = []
......
...@@ -282,13 +282,13 @@ export default { ...@@ -282,13 +282,13 @@ export default {
{ {
id: 1, id: 1,
collation: 'desc', collation: 'desc',
sortedColumn: '按创建时间倒序', sortedColumn: '按创建日期倒序',
nameColumn: 'e.create_time' nameColumn: 'e.create_time'
}, },
{ {
id: 2, id: 2,
collation: 'asc', collation: 'asc',
sortedColumn: '按创建时间正序', sortedColumn: '按创建日期正序',
nameColumn: 'e.create_time' nameColumn: 'e.create_time'
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment