会议室审核加下载附件按钮和输入框报错
This commit is contained in:
parent
c3bc043228
commit
205cb756be
|
@ -2,7 +2,7 @@
|
|||
<el-card shadow="never" class="roomBox">
|
||||
<div class="roomExamineSearch">
|
||||
<el-input
|
||||
v-model="roomName"
|
||||
v-model="roomNameA"
|
||||
style="width: 160px"
|
||||
placeholder="请输入会议室名称"
|
||||
></el-input>
|
||||
|
@ -195,6 +195,17 @@
|
|||
<el-input type="textarea" v-model="desc"></el-input>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row style="display: flex; margin-top: 20px">
|
||||
<el-col :span="2">附件:</el-col>
|
||||
<el-col :span="16">
|
||||
<el-button
|
||||
v-if="file != ''"
|
||||
size="mini"
|
||||
@click="downloadTemplate(file)"
|
||||
>下载</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="No">取 消</el-button>
|
||||
<el-button type="primary" @click="ok">确 定</el-button>
|
||||
|
@ -233,8 +244,8 @@ export default {
|
|||
num: '',
|
||||
file: '',
|
||||
name: '',
|
||||
roomName: '',
|
||||
creator: '',
|
||||
roomNameA: '',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -244,10 +255,9 @@ export default {
|
|||
getSerach() {
|
||||
this.$http
|
||||
.get(
|
||||
`/bookMeeting/auditPage?page=${this.page}&limit=${this.limit}&roomName=${this.roomName}&state=${this.value}`
|
||||
`/bookMeeting/auditPage?page=${this.page}&limit=${this.limit}&roomName=${this.roomNameA}&state=${this.value}`
|
||||
)
|
||||
.then(({ data: res }) => {
|
||||
console.log(res, 7777777)
|
||||
this.tableData = res.data.list
|
||||
this.total = res.data.total
|
||||
})
|
||||
|
@ -276,10 +286,10 @@ export default {
|
|||
this.creator = item.creator
|
||||
} else {
|
||||
this.dialogVisible = true
|
||||
this.$http.get(`bookMeeting/${item.id}`).then(({ data: res }) => {
|
||||
this.file = res.data.file
|
||||
})
|
||||
}
|
||||
this.$http.get(`bookMeeting/${item.id}`).then(({ data: res }) => {
|
||||
this.file = res.data.file
|
||||
})
|
||||
this.lookData = item
|
||||
},
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ export default {
|
|||
ruleForm: {
|
||||
name: '',
|
||||
num: '',
|
||||
area: '',
|
||||
area: 0,
|
||||
capacity: '',
|
||||
pic: '',
|
||||
id: '',
|
||||
|
@ -246,7 +246,7 @@ export default {
|
|||
],
|
||||
area: [
|
||||
{ required: true, message: '请输入会议室面积', trigger: 'blur' },
|
||||
{ min: 1, trigger: 'blur' },
|
||||
{ min: 1, type: 'number', trigger: 'blur' },
|
||||
],
|
||||
description: [
|
||||
{ required: true, message: '请填写描述内容', trigger: 'blur' },
|
||||
|
|
|
@ -809,6 +809,7 @@
|
|||
dept: '',
|
||||
matter: '',
|
||||
file: '',
|
||||
roomName: '',
|
||||
})
|
||||
const fileList = ref([])
|
||||
const useForm = Form.useForm
|
||||
|
@ -838,7 +839,7 @@
|
|||
phone: [
|
||||
{
|
||||
required: true,
|
||||
pattern: /^1[3|4|5|7|8][0-9]\d{8}$/,
|
||||
pattern: /^1[3|4|5|7|8|9][0-9]\d{8}$/,
|
||||
message: '请输入正确的手机号',
|
||||
},
|
||||
],
|
||||
|
@ -1239,8 +1240,10 @@
|
|||
}
|
||||
//预约
|
||||
const appointment = (item) => {
|
||||
console.log(item, 8888888888)
|
||||
dateId.value = item.id
|
||||
formState.roomId = item.id
|
||||
formState.roomName = item.name
|
||||
appointmentRoom.value = true
|
||||
}
|
||||
//预约弹框 选择日期
|
||||
|
@ -1297,6 +1300,12 @@
|
|||
.then(() => {
|
||||
setSubmit(formState).then(({ data: res }) => {
|
||||
appointmentRoom.value = false
|
||||
rulesRef.bookDate = []
|
||||
rulesRef.startTime = []
|
||||
rulesRef.name = []
|
||||
rulesRef.matter = []
|
||||
rulesRef.phone = []
|
||||
rulesRef.dept = []
|
||||
formState.roomId = ''
|
||||
formState.bookDate = ''
|
||||
formState.startTime = '' //开始时间
|
||||
|
|
Loading…
Reference in New Issue