Commit e6f124b0 authored by 罗超's avatar 罗超

1

parent 0d4e7fcc
...@@ -171,16 +171,16 @@ ...@@ -171,16 +171,16 @@
<span v-if="props.row.ApplyForCancelStatus===2">拒绝</span> <span v-if="props.row.ApplyForCancelStatus===2">拒绝</span>
</q-td> </q-td>
</template> </template>
<!-- <template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props" v-if="props.row.IsApplyForCancel==1">
<div> <div>
<q-btn flat size="xs" icon="edit" <q-btn flat size="xs" icon="edit"
color="accent" style="font-weight:400" label="编辑" @click="editQuotation(props.row)" /> color="accent" style="font-weight:400" label="同意" @click="editQuotation(props.row)" />
<q-btn flat size="xs" icon="edit" <q-btn flat size="xs" icon="edit"
color="accent" style="font-weight:400" label="删除" @click="delType(props.row)" /> color="accent" style="font-weight:400" label="拒绝" @click="delType(props.row)" />
</div> </div>
</q-td> </q-td>
</template> --> </template>
<template v-slot:bottom> <template v-slot:bottom>
<!-- <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <!-- <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> --> :input="true" @input="changePage" /> -->
...@@ -202,8 +202,8 @@ ...@@ -202,8 +202,8 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
ActivityName:"", ActivityId:0,
ActivityId:0 EnrollState:3
}, },
pageCount: 0, pageCount: 0,
columns: [ columns: [
...@@ -276,11 +276,11 @@ ...@@ -276,11 +276,11 @@
field:"Remark", field:"Remark",
align: "left" align: "left"
}, },
// { {
// name: 'optioned', name: 'optioned',
// label: '操作', label: '操作',
// align: "left" align: "left"
// } }
], ],
showForm:false, showForm:false,
typeObj:{} typeObj:{}
......
...@@ -136,15 +136,14 @@ ...@@ -136,15 +136,14 @@
</style> </style>
<template> <template>
<div class="page-body activeType"> <div class="page-body activeType">
<div class="page-search row items-center"> <div class="page-search row items-center flex">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-12"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ActivityName" label="活动名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ActivityName" label="活动名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
</div>
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col-3 Sysuser_Date">
<div class="col-12 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker <el-date-picker
...@@ -157,9 +156,7 @@ ...@@ -157,9 +156,7 @@
</template> </template>
</q-field> </q-field>
</div> </div>
</div> <div class="col-3 Sysuser_Date">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-12 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker <el-date-picker
...@@ -173,7 +170,17 @@ ...@@ -173,7 +170,17 @@
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3 ">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.SelectIsEnd" class="col-6 q-pr-lg q-pr-lg" :options="statusOpts"
emit-value map-options label="状态" @change="resetSearch"/>
</div>
</div> </div>
<!-- <div class="col row wrap q-mr-lg q-col-gutter-md">
</div>
<div class="col row wrap q-mr-lg q-col-gutter-md">
</div> -->
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table sticky-right-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table sticky-right-column-table"
...@@ -236,13 +243,13 @@ ...@@ -236,13 +243,13 @@
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-JoinNum="props"> <!-- <template v-slot:body-cell-JoinNum="props">
<q-td :props="props"> <q-td :props="props">
<div> <div>
{{props.row.JoinNum}} 人 {{props.row.JoinNum}} 人
</div> </div>
</q-td> </q-td>
</template> </template> -->
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<div> <div>
...@@ -347,9 +354,29 @@ import ActiveForm from '../../components/activity/active-from' ...@@ -347,9 +354,29 @@ import ActiveForm from '../../components/activity/active-from'
ActivityName: '', ActivityName: '',
SelectStartTimeStr:"", SelectStartTimeStr:"",
SelectEndTimeStr:"", SelectEndTimeStr:"",
SelectIsEnd:-1,
}, },
pageCount: 0, pageCount: 0,
activityTypeList:[], activityTypeList:[],
statusOpts:[
{
label: "全部",
value: -1
},
{
label: "未开始",
value: 0
},
{
label: "已结束",
value: 1
},
{
label: "进行中",
value: 2
},
],
columns: [{ columns: [{
name: "Id", name: "Id",
label: "编号", label: "编号",
...@@ -397,12 +424,12 @@ import ActiveForm from '../../components/activity/active-from' ...@@ -397,12 +424,12 @@ import ActiveForm from '../../components/activity/active-from'
field:"ActivityStatusStr", field:"ActivityStatusStr",
align: "left" align: "left"
}, },
{ // {
name: "JoinNum", // name: "JoinNum",
label: "报名人数", // label: "报名人数",
field:"JoinNum", // field:"JoinNum",
align: "left" // align: "left"
}, // },
{ {
name: 'optioned', name: 'optioned',
label: '操作', label: '操作',
......
...@@ -109,7 +109,8 @@ ...@@ -109,7 +109,8 @@
:content="item.Name" placement="top-start"> :content="item.Name" placement="top-start">
<div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" <div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''"
class="el-tooltip item material-item "> class="el-tooltip item material-item ">
<img :src="getIconLink(item.Image)" class="material-img" style="width: 140px; height: 140px;"> <!-- <img :src="getIconLink(item.Image)" class="material-img" style="width: 140px; height: 140px;"> -->
<img src="../../assets/images/active/bofang.jpg" class="material-img" style="width: 140px; height: 140px;">
<div class="material-video-info"><i class="el-icon-video-play"></i> <div class="material-video-info"><i class="el-icon-video-play"></i>
<span>{{Time(item.VideoTime)}}</span></div> <span>{{Time(item.VideoTime)}}</span></div>
<div flex="dir:left" style="margin-top: 5px;display:flex"> <div flex="dir:left" style="margin-top: 5px;display:flex">
...@@ -526,7 +527,6 @@ ...@@ -526,7 +527,6 @@
}); });
}, },
UploadImage(file) { UploadImage(file) {
this.UploadFileToTencent(this.FileType().GoodsImg, file.file, res => { this.UploadFileToTencent(this.FileType().GoodsImg, file.file, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.Success('上传成功') this.Success('上传成功')
...@@ -555,17 +555,18 @@ ...@@ -555,17 +555,18 @@
// }) // })
// }, // },
UploadVideo(file) { UploadVideo(file) {
var that = this;
this.UploadFileToTencent(this.FileType().Video, file.file, res => { this.UploadFileToTencent(this.FileType().Video, file.file, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.Success('上传成功') this.Success('上传成功')
console.log(561,res) console.log(561,res)
// if (this.addpageMsg.Type == 2) { if (this.addpageMsg.Type == 2) {
// this.addpageMsg.Image = res.FileUrl; this.addpageMsg.Image = "";
// } }
// this.addpageMsg.Path = res.FileUrl; this.addpageMsg.Path = res.FileUrl;
// this.addpageMsg.Name = res.FileName; this.addpageMsg.Name = res.FileName;
// this.addPageList(); this.addPageList();
this.$forceUpdate();
} }
}) })
}, },
...@@ -639,82 +640,9 @@ ...@@ -639,82 +640,9 @@
); );
}).catch(() => {}); }).catch(() => {});
}, },
// HYGroup(item) {
// let that = this;
// that.$confirm('是否还原?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// this.apipostDS('/api/product/SetMaterialGroupRestore', {
// GroupId: item.Id
// },
// res => {
// if (res.data.resultCode === 1) {
// this.GetMemberGradeList();
// this.Success(res.data.message)
// } else {
// this.Error(res.data.message);
// }
// },
// null
// );
// }).catch(() => {});
// },
HsGroup(item) {
// let that = this;
// that.$confirm('是否删除?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// this.apipostDS('/api/product/SetMaterialGroupRecycled', {
// GroupId: item.Id
// },
// res => {
// if (res.data.resultCode === 1) {
// this.GetMemberGradeList();
// this.Success(res.data.message)
// } else {
// this.Error(res.data.message);
// }
// },
// null
// );
// }).catch(() => {});
},
DeleteGroup(item) {
// let that = this;
// that.$confirm('是否删除?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// this.apipostDS('/api/product/DelMaterialGroupInfo', {
// GroupId: item.Id
// },
// res => {
// if (res.data.resultCode === 1) {
// this.GetMemberGradeList();
// this.Success(res.data.message)
// } else {
// this.Error(res.data.message);
// }
// },
// null
// );
// }).catch(() => {});
},
addGroup() { addGroup() {
this.addGroupMsgDig = true; this.addGroupMsgDig = true;
// this.addGroupMsg = {
// Id: 0,
// Name: '',
// Type: this.commonType,
// Sort: '',
// }
this.addGroupMsg.Id = 0 this.addGroupMsg.Id = 0
this.addGroupMsg.Name = "" this.addGroupMsg.Name = ""
this.addGroupMsg.Type = this.commonType this.addGroupMsg.Type = this.commonType
...@@ -800,13 +728,16 @@ ...@@ -800,13 +728,16 @@
} }
return num; return num;
}, },
//截取视频第一帧
captureImage(video) { captureImage(video) {
let canvas = document.createElement('canvas') let canvas = document.createElement('canvas')
// canvas.width = video.videoWidth // canvas.width = video.videoWidth
// canvas.height = video.videoHeight // canvas.height = video.videoHeight
canvas.width = '140px' canvas.width = '140px'
canvas.height = '140px' canvas.height = '140px'
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height) let ctx=canvas.getContext('2d')
console.log(816,ctx)
ctx.drawImage(video, 0, 0, canvas.width, canvas.height)
return canvas.toDataURL('image/png') return canvas.toDataURL('image/png')
} }
}, },
......
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