lion 2 years ago
parent f5691a90e5
commit f93e575bbf

@ -819,11 +819,13 @@
that.$message.error('请选择活动场次时间'); that.$message.error('请选择活动场次时间');
return false; return false;
} }
let checktime = that.compareDate(k.start_time, k.end_plan);
if (!checktime) { // let checktime = that.compareDate(k.start_time, k.end_plan);
that.$message.error('截止时间不能晚于开始时间'); // if (!checktime) {
return false; // that.$message.error('');
} // return false;
// }
upTotal += parseInt(k.total) upTotal += parseInt(k.total)
} }
that.form.total = upTotal that.form.total = upTotal

@ -79,7 +79,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>开始时间 <span style="color: red;font-weight: 600;padding-right: 4px;"></span>开始时间
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.start_time" value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker style="width: 300px;" default-time="09:00:00" v-model="form.start_time" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="选择开始时间"> type="datetime" placeholder="选择开始时间">
</el-date-picker> </el-date-picker>
</div> </div>
@ -91,7 +91,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>结束时间 <span style="color: red;font-weight: 600;padding-right: 4px;"></span>结束时间
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.over_time" value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker style="width: 300px;" default-time="16:00:00" v-model="form.over_time" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="选择日期时间"> type="datetime" placeholder="选择日期时间">
</el-date-picker> </el-date-picker>
</div> </div>
@ -107,7 +107,16 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:organizer>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>主办单位
</div>
<div class="xy-table-item-content">
<el-input v-model="form.organizer" placeholder="请输入主办单位" clearable style="width: 300px;"></el-input>
</div>
</div>
</template>
<template v-slot:sponsor> <template v-slot:sponsor>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -242,6 +251,7 @@
start_time: '', start_time: '',
over_time: '', over_time: '',
member_sum: '', member_sum: '',
organizer:'',
sponsor: '', sponsor: '',
guidance_unit: '', guidance_unit: '',
bear_unit: '', bear_unit: '',
@ -313,6 +323,7 @@
start_time: res?.start_time, start_time: res?.start_time,
over_time: res?.over_time, over_time: res?.over_time,
member_sum: res?.member_sum, member_sum: res?.member_sum,
organizer:res?.organizer,
sponsor: res?.sponsor, sponsor: res?.sponsor,
guidance_unit: res?.guidance_unit, guidance_unit: res?.guidance_unit,
bear_unit: res?.bear_unit, bear_unit: res?.bear_unit,
@ -341,10 +352,10 @@
} }
if (this.guidePictureList.length > 0) { if (this.guidePictureList.length > 0) {
for (var g of this.guidePictureList) { for (var g of this.guidePictureList) {
if (h.response) { if (g.response) {
this.form.guide_picture = h.response.id this.form.guide_picture = g.response.id
} else { } else {
this.form.guide_picture = h.id this.form.guide_picture = g.id
} }
} }
} else { } else {

@ -62,35 +62,18 @@ export default {
label:"展览名称", label:"展览名称",
prop:'name', prop:'name',
align:'left', align:'left',
}, width:240,
{ fixed:'left'
label:"举办展厅",
prop:'hall.name',
align:'center',
}, },
{ {
label:"展览类型", label:"展览类型",
prop:'type', prop:'type',
align:'center', align:'center',
width:120,
formatter(value){ formatter(value){
return value==1?'陈列展览':'临时展览' return value==1?'陈列展览':'临时展览'
} }
}, },
{
label:"开始时间",
prop:'start_time',
align:'center',
},
{
label:"结束时间",
prop:'over_time',
align:'center',
},
{
label:"容纳人数",
prop:'member_sum',
align:'center',
},
{ {
label:"展览状态", label:"展览状态",
prop:'state', prop:'state',
@ -136,6 +119,36 @@ export default {
} }
}, },
{
label:"开始时间",
prop:'start_time',
align:'center',
width:180,
},
{
label:"结束时间",
prop:'over_time',
align:'center',
width:180,
},
{
label:"举办展厅",
prop:'hall.name',
align:'center',
width:120,
},
{
label:"容纳人数",
prop:'member_sum',
align:'center',
width:100,
},
{
label:"发布时间",
prop:'release_time',
align:'center',
width:180,
},
] ]
} }
}, },
@ -147,7 +160,8 @@ export default {
title:this.select.name, title:this.select.name,
sort_name:'state', sort_name:'state',
sort_name_tow:'release_time', sort_name_tow:'release_time',
sort_type:"DESC" sort_type:"DESC",
sort_type_tow:'DESC'
}) })
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total

@ -43,8 +43,8 @@
<Button ghost size="small" @click="show(scope.row)" type="primary" <Button ghost size="small" @click="show(scope.row)" type="primary"
style="margin-left: 10px;">查看</Button> style="margin-left: 10px;">查看</Button>
<Button v-if="scope.row['orderno']==null" ghost size="small" @click="appointmentOrder(scope.row)" type="info" <!-- <Button v-if="scope.row['orderno']==null" ghost size="small" @click="appointmentOrder(scope.row)" type="info"
style="margin-left: 10px;">第三方下单</Button> style="margin-left: 10px;">第三方下单</Button> -->
</div> </div>
<div v-else-if="column.type=='type'"> <div v-else-if="column.type=='type'">
<div v-if="scope.row[column.field]==1"></div> <div v-if="scope.row[column.field]==1"></div>

@ -73,6 +73,7 @@
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-upload :action="action" <el-upload :action="action"
:file-list="heatPictureList"
list-type="picture-card" list-type="picture-card"
style="width:600px" style="width:600px"
:limit="1" :auto-upload="true" :data="uploadOther" :limit="1" :auto-upload="true" :data="uploadOther"
@ -190,6 +191,7 @@
content: res?.content content: res?.content
} }
res.head_upload?this.heatPictureList.push(res.head_upload):'' res.head_upload?this.heatPictureList.push(res.head_upload):''
console.log("this.heatPictureList",this.heatPictureList)
}, },
submit() { submit() {
if(this.heatPictureList.length>0){ if(this.heatPictureList.length>0){

@ -62,22 +62,33 @@ export default {
label:"名称", label:"名称",
prop:'name', prop:'name',
align:'left', align:'left',
}, // width:240,
{ fixed:'left'
label:"文物年限",
prop:'history_time',
align:'center',
}, },
{ {
label:"文物等级", label:"文物等级",
prop:'grade', prop:'grade',
align:'center', align:'center',
width:100,
}, },
{ {
label:"文物组成", label:"文物组成",
prop:'contain', prop:'contain',
align:'center', align:'center',
} width:240,
},
{
label:"文物年限",
prop:'history_time',
align:'center',
width:120,
},
{
label:"发布时间",
prop:'release_time',
align:'center',
width:180,
},
] ]
} }
}, },
@ -89,7 +100,9 @@ export default {
const res = await index({ const res = await index({
page_size:this.select.pageSize, page_size:this.select.pageSize,
page:this.select.pageIndex, page:this.select.pageIndex,
name:this.select.name name:this.select.name,
sort_name:'release_time',
sort_type:"DESC",
}) })
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total

@ -225,9 +225,9 @@
}, },
resetForm(formName) { resetForm(formName) {
var that = this; var that = this;
this.$refs.tiny.setContent(""); // this.$refs.tiny.setContent("");
this.$refs.tiny1.setContent(""); // this.$refs.tiny1.setContent("");
this.$refs.tiny2.setContent(""); // this.$refs.tiny2.setContent("");
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
that.dialogFormVisible = false; that.dialogFormVisible = false;
}, },

Loading…
Cancel
Save