Commit f8ed5746 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents c59e738f 46882e62
......@@ -256,7 +256,7 @@
<el-row>
<el-col>
<el-form-item label="支持服务地区">
<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
v-for="dict in dict.type.service_area"
:key="dict.label"
......@@ -271,7 +271,7 @@
<el-row>
<el-col>
<el-form-item label="支持检查类型">
<el-select v-model="form.checkType" multiple placeholder="请选择支持检查类型" style="width: 300px" disabled>
<el-select v-model="form.checkType" multiple placeholder="请选择支持检查类型" style="width: 300px" disabled>
<el-option
v-for=" dict in dict.type.exam_type"
:key="dict.label"
......@@ -609,7 +609,7 @@ import { listCheckManage } from '@/api/business/manage'
import { parseTime } from '@/utils/ruoyi'
export default {
name: 'EquipmentDetail',
dicts: ['device_status', 'device_type', 'exam_type', 'check_type','service_area'],
dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'],
props: {
id: {
type: Number,
......@@ -752,7 +752,7 @@ export default {
// 预约方式
options: [{
value: '1',
label: '按时间选择'
label: '按时段预约'
}
// {
// value: '2',
......@@ -916,12 +916,13 @@ export default {
// 提交
submitForm() {
console.log('selectedOptions', this.form.addressCode)
if (this.selectedOptions != null) {
if (this.form.selectedOptions != null && this.form.selectedOptions !== '') {
this.form.addressCode = this.form.selectedOptions.join(',')
console.log('xxaa', this.selectedOptions)
}
// if (this.addtions.names != null) {
// this.form.addressText = this.addtions.names
if (this.addtions.names != null) {
this.form.addressText = this.addtions.names
}
// this.form.city = this.city
// console.log('city', this.form.city)
// }
......@@ -933,7 +934,8 @@ export default {
this.form.checkType = this.form.checkType.toString()
console.log('checkType', this.form.checkType)
}
this.form.useTime = JSON.stringify(this.useTime)
this.form.useTime = JSON.stringify(this.form.useTime)
this.$refs['form'].validate(valid => {
if (valid) {
updateDevice(this.form).then(response => {
......@@ -973,7 +975,7 @@ export default {
// this.useTime = JSON.parse(response.data.useTime)
this.form.useTime = JSON.parse(response.data.useTime)
console.log('详情数据---', this.form)
console.log('form.usertadasd', this.form.useTime.ame)
console.log('form.usertadasd', this.form.useTime)
// this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceArea = []
// for (let i = 0; i < this.serviceAreaS.length; i++) {
......
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