mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 10:19:36 +08:00
修改了用户绑定小程序的功能,修改了会议室模块
This commit is contained in:
parent
e3bf1eb889
commit
7c32760af7
@ -11,25 +11,19 @@
|
|||||||
<a-col :md='5' :sm='15'>
|
<a-col :md='5' :sm='15'>
|
||||||
<a-form-item label='类型'>
|
<a-form-item label='类型'>
|
||||||
<a-select v-model='queryParam.typeName' placeholder='请选择类型'>
|
<a-select v-model='queryParam.typeName' placeholder='请选择类型'>
|
||||||
<a-select-option value='1'>
|
<a-select-option value="1">
|
||||||
会议室
|
会议室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value='2'>
|
<a-select-option value="2">
|
||||||
路演厅
|
路演厅
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value='3'>
|
<a-select-option value="3">
|
||||||
数仓
|
|
||||||
</a-select-option>
|
|
||||||
<a-select-option value='4'>
|
|
||||||
数纽
|
|
||||||
</a-select-option>
|
|
||||||
<a-select-option value='5'>
|
|
||||||
洽谈室
|
洽谈室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value='6'>
|
<a-select-option value="4">
|
||||||
直播间
|
直播间
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value='7'>
|
<a-select-option value="5">
|
||||||
茶室
|
茶室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@ -266,8 +260,8 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '类型',
|
title: '类型',
|
||||||
dataIndex: 'typeName',
|
dataIndex: 'type',
|
||||||
scopedSlots: { customRender: 'typeName' }
|
scopedSlots: { customRender: 'type' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '容纳人数',
|
title: '容纳人数',
|
||||||
@ -339,6 +333,7 @@ export default {
|
|||||||
TypeData.map(d => {
|
TypeData.map(d => {
|
||||||
typeMap[d.dictValue] = { text: d.dictLabel }
|
typeMap[d.dictValue] = { text: d.dictLabel }
|
||||||
})
|
})
|
||||||
|
console.log(typeMap)
|
||||||
const serveTypeData = await getDictArray('serve_type')
|
const serveTypeData = await getDictArray('serve_type')
|
||||||
serveTypeData.map(d => {
|
serveTypeData.map(d => {
|
||||||
serveTypeMap[d.dictValue] = { text: d.dictLabel }
|
serveTypeMap[d.dictValue] = { text: d.dictLabel }
|
||||||
@ -360,9 +355,9 @@ export default {
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('关联成功')
|
this.$message.success('关联成功')
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.handleOk()
|
|
||||||
this.selectedItemRowKeys = []
|
this.selectedItemRowKeys = []
|
||||||
this.selectedItemRows = []
|
this.selectedItemRows = []
|
||||||
|
window.location.reload()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -376,10 +371,11 @@ export default {
|
|||||||
addRoomServe(params).then((res) => {
|
addRoomServe(params).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('关联成功')
|
this.$message.success('关联成功')
|
||||||
|
this.handleOk()
|
||||||
this.visible1 = false
|
this.visible1 = false
|
||||||
this.selectedServeRowKeys = []
|
this.selectedServeRowKeys = []
|
||||||
this.selectedServeRows = []
|
this.selectedServeRows = []
|
||||||
this.handleOk()
|
window.location.reload()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal
|
<a-modal
|
||||||
title="操作"
|
:title="mdl.id>0?'编辑':'新增'"
|
||||||
style="top: 20px"
|
style="top: 20px"
|
||||||
:width="1000"
|
:width="1000"
|
||||||
v-model="visible"
|
v-model="visible"
|
||||||
@ -34,25 +34,19 @@
|
|||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<a-form-item label="会议类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="会议类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select v-decorator="['type',{rules: [{ required: true, message: '输入会议类型' }]}]" placeholder="会议类型">
|
<a-select v-decorator="['type',{rules: [{ required: true, message: '输入会议类型' }]}]" placeholder="会议类型">
|
||||||
<a-select-option value="1">
|
<a-select-option :value="1">
|
||||||
会议室
|
会议室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="2">
|
<a-select-option :value="2">
|
||||||
路演厅
|
路演厅
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="3">
|
<a-select-option :value="3">
|
||||||
数仓
|
|
||||||
</a-select-option>
|
|
||||||
<a-select-option value="4">
|
|
||||||
数纽
|
|
||||||
</a-select-option>
|
|
||||||
<a-select-option value="5">
|
|
||||||
洽谈室
|
洽谈室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="6">
|
<a-select-option :value="4">
|
||||||
直播间
|
直播间
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="7">
|
<a-select-option :value="5">
|
||||||
茶室
|
茶室
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@ -164,10 +158,10 @@
|
|||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<a-form-item label="是否使用优惠劵" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="是否使用优惠劵" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select v-decorator="['isTicket',{rules: [{ required: true, message: '请选择优惠券'}]}]" placeholder="是否收费">
|
<a-select v-decorator="['isTicket',{rules: [{ required: true, message: '请选择优惠券'}]}]" placeholder="是否收费">
|
||||||
<a-select-option value="0">
|
<a-select-option :value="0">
|
||||||
是
|
是
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="1">
|
<a-select-option :value="1">
|
||||||
否
|
否
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@ -177,18 +171,19 @@
|
|||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="是否收费">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="是否收费">
|
||||||
<a-select v-decorator="['isToll',{rules: [{ required: true, message: '请选择是否收费'}]}]" placeholder="是否收费">
|
<a-select v-decorator="['isToll',{rules: [{ required: true, message: '请选择是否收费'}]}]"
|
||||||
<a-select-option value="0">
|
@change='selectChangeIsToll' placeholder="是否收费">
|
||||||
|
<a-select-option :value="0">
|
||||||
是
|
是
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="1">
|
<a-select-option :value="1">
|
||||||
否
|
否
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收费金额 ">
|
<a-form-item v-if='mdl.isToll === 0' :labelCol="labelCol" :wrapperCol="wrapperCol" label="收费金额 ">
|
||||||
<a-input placeholder="收费金额 " v-decorator="['money',{rules: [{ required: true, message: '请输入收费金额'}]}]" />
|
<a-input placeholder="收费金额 " v-decorator="['money',{rules: [{ required: true, message: '请输入收费金额'}]}]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@ -197,11 +192,10 @@
|
|||||||
<a-col :span="10">
|
<a-col :span="10">
|
||||||
<a-form-item label="是否启用" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="是否启用" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select v-decorator="['isShow',{rules: [{ required: true, message: '请选择是否启用'}]}]" placeholder="是否启用">
|
<a-select v-decorator="['isShow',{rules: [{ required: true, message: '请选择是否启用'}]}]" placeholder="是否启用">
|
||||||
|
<a-select-option :value="0">
|
||||||
<a-select-option value="0">
|
|
||||||
是
|
是
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="1">
|
<a-select-option :value="1">
|
||||||
否
|
否
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@ -295,6 +289,9 @@ export default {
|
|||||||
this.getFloorList()
|
this.getFloorList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChangeIsToll(value){
|
||||||
|
this.mdl.isToll = value
|
||||||
|
},
|
||||||
|
|
||||||
moment,
|
moment,
|
||||||
// 获取面积
|
// 获取面积
|
||||||
@ -315,7 +312,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getRoomList(value){
|
getRoomList(value){
|
||||||
let param={
|
let param={
|
||||||
"buildingDetailId":value
|
"buildingDetailId":value,
|
||||||
|
"type":0
|
||||||
}
|
}
|
||||||
getRoomListByFloorId(param).then((res) =>{
|
getRoomListByFloorId(param).then((res) =>{
|
||||||
this.roomList = res.data
|
this.roomList = res.data
|
||||||
@ -363,15 +361,6 @@ export default {
|
|||||||
edit (record) {
|
edit (record) {
|
||||||
if (record.id != 0){
|
if (record.id != 0){
|
||||||
get(record.id).then((res) =>{
|
get(record.id).then((res) =>{
|
||||||
this.form.setFieldsValue({
|
|
||||||
area: res.area,
|
|
||||||
buildId:res.buildingName,
|
|
||||||
roomId:res.roomName,
|
|
||||||
isToll:res.isToll.toString(),
|
|
||||||
isShow:res.isShow.toString(),
|
|
||||||
isTicket:res.isTicket.toString(),
|
|
||||||
type:res.typeValue.toString()
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,6 +368,14 @@ export default {
|
|||||||
if (this.mdl.indoorPicUrl) {
|
if (this.mdl.indoorPicUrl) {
|
||||||
this.imageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.indoorPicUrl
|
this.imageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.indoorPicUrl
|
||||||
}
|
}
|
||||||
|
getRoomListByFloorId({
|
||||||
|
"buildingDetailId":this.mdl.buildId,
|
||||||
|
"type":0
|
||||||
|
|
||||||
|
}).then((res) =>{
|
||||||
|
this.roomList = res.data
|
||||||
|
})
|
||||||
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(
|
this.form.setFieldsValue(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user