Commit 6c917da7 authored by 罗超's avatar 罗超

1

parent 9eb7ee7d
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"html2canvas": "^1.0.0-rc.7", "html2canvas": "^1.0.0-rc.7",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"lockr": "^0.8.5", "lockr": "^0.8.5",
"lrz": "^4.9.41",
"mavon-editor": "^2.9.1", "mavon-editor": "^2.9.1",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",
......
...@@ -124,6 +124,18 @@ ...@@ -124,6 +124,18 @@
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 12px;
} }
.advmanager-box .content .label-box{
top: 40px;
left: 15px;
position: absolute;
background:rgba(0,0,0,.5);
color: #f5f5f5;
padding:0px 5px;
border-radius: 4px;
font-size: 12px;
display: inline-block;
width: 200px;
}
.advmanager-box .query-box ul .el-input{ .advmanager-box .query-box ul .el-input{
width: 150px; width: 150px;
} }
...@@ -138,6 +150,7 @@ ...@@ -138,6 +150,7 @@
font-size: 12px; font-size: 12px;
display: inline-block; display: inline-block;
} }
.advmanager-box .content .img-box .star-box .star{ .advmanager-box .content .img-box .star-box .star{
color: #eb3b5a color: #eb3b5a
} }
......
...@@ -4,15 +4,15 @@ import 'element-ui/lib/theme-chalk/index.css' ...@@ -4,15 +4,15 @@ import 'element-ui/lib/theme-chalk/index.css'
import Erpindex from '../utils/erpindex' import Erpindex from '../utils/erpindex'
import axios from 'axios' import axios from 'axios'
import 'vue-easytable/libs/themes-base/index.css' import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable' import { VTable, VPagination } from 'vue-easytable'
import commonUtils from '../pages/financial/utils/commonUtils' import commonUtils from '../pages/financial/utils/commonUtils'
import 'viewerjs/dist/viewer.css' import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer' import Viewer from 'v-viewer'
import AuthCode from '../pages/financial/utils/AuthCode' //权限编码JS import AuthCode from '../pages/financial/utils/AuthCode' //权限编码JS
Vue.http = Vue.prototype.$http = axios Vue.http = Vue.prototype.$http = axios
Vue.commonUtils = Vue.prototype.$commonUtils=commonUtils Vue.commonUtils = Vue.prototype.$commonUtils = commonUtils
Vue.AuthCode=Vue.prototype.$AuthCode=AuthCode Vue.AuthCode = Vue.prototype.$AuthCode = AuthCode
import lrz from 'lrz'
// 时间扩展格式化 // 时间扩展格式化
Date.prototype.Format = function (fmt) { Date.prototype.Format = function (fmt) {
var o = { var o = {
...@@ -22,14 +22,15 @@ Date.prototype.Format = function (fmt) { ...@@ -22,14 +22,15 @@ Date.prototype.Format = function (fmt) {
"m+": this.getMinutes(), //分 "m+": this.getMinutes(), //分
"s+": this.getSeconds() //秒 "s+": this.getSeconds() //秒
}; };
if (/(y+)/.test(fmt)){ //根据y的长度来截取年 if (/(y+)/.test(fmt)) { //根据y的长度来截取年
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
} }
for (var k in o){ for (var k in o) {
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
} }
return fmt; return fmt;
}; };
Vue.prototype.lrz = lrz
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(Erpindex) Vue.use(Erpindex)
......
...@@ -125,7 +125,7 @@ import { ...@@ -125,7 +125,7 @@ import {
statusOpts:[ statusOpts:[
{ {
label: "收费", label: "收费",
value: 0 value: 1
}, },
{ {
label: "免费", label: "免费",
...@@ -135,6 +135,7 @@ import { ...@@ -135,6 +135,7 @@ import {
} }
}, },
mounted() { mounted() {
console.log(this.saveObj)
if (this.saveObj&&this.saveObj.ID>0) { if (this.saveObj&&this.saveObj.ID>0) {
this.addMsg.ID=this.saveObj.ID this.addMsg.ID=this.saveObj.ID
this.addMsg.IsFee=this.saveObj.IsFee this.addMsg.IsFee=this.saveObj.IsFee
...@@ -196,10 +197,16 @@ import { ...@@ -196,10 +197,16 @@ import {
} }
// this.$refs.Name.validate(); // this.$refs.Name.validate();
// if (!this.$refs.Name.hasError) { // if (!this.$refs.Name.hasError) {
// this.addMsg.LableList = this.dynamicTags; this.addMsg.LableList = this.dynamicTags;
// SetAdvertising(this.addMsg).then(res=>{ SetAdvertising(this.addMsg).then(res=>{
// console.log('179',res) if(res.Code===1){
// }) this.Success("操作成功");
this.closeRuleForm();
this.$emit('success');
}else {
this.Error(res.Message);
}
})
// } // }
}, },
//关闭窗口 //关闭窗口
......
...@@ -202,7 +202,8 @@ ...@@ -202,7 +202,8 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
ActivityName:"" ActivityName:"",
ActivityId:0
}, },
pageCount: 0, pageCount: 0,
columns: [ columns: [
...@@ -287,9 +288,11 @@ ...@@ -287,9 +288,11 @@
}, },
mounted() { mounted() {
if(this.$route.query.ActivityName){ if(this.$route.query.name){
this.msg.ActivityName = this.$route.query.name; this.msg.ActivityName = this.$route.query.name;
} }
this.msg.ActivityId = this.$route.query.Id;
this.getList(); this.getList();
}, },
methods: { methods: {
......
...@@ -117,17 +117,63 @@ ...@@ -117,17 +117,63 @@
float: left; float: left;
margin-right: 8px; margin-right: 8px;
} }
.Sysuser_Date .el-input {
width: 100%;
border: none;
background-color: transparent;
}
.Sysuser_Date .el-input__inner {
width: 100%;
border: none;
background-color: transparent;
}
.syster_qDropdown .q-btn__wrapper {
padding: 0 3px;
min-height: 0 !important;
}
</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">
<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-3"> <div class="col-12">
<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>
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-12 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker
v-model="msg.SelectStartTimeStr"
type="date"
placeholder="选择开始日期"
value-format="yyyy-MM-dd"
@change="resetSearch">
</el-date-picker>    
</template>
</q-field>
</div>
</div>
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-12 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker
v-model="msg.SelectEndTimeStr"
type="date"
placeholder="选择结束日期"
value-format="yyyy-MM-dd"
@change="resetSearch"
>
</el-date-picker>    
</template>
</q-field>
</div>
</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"
...@@ -211,7 +257,7 @@ ...@@ -211,7 +257,7 @@
<q-item-label>删除</q-item-label> <q-item-label>删除</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup @click="goUrl('/activity/activeSignUpList',props.row,1)"> <q-item clickable v-close-popup @click="goUrl('/activity/activeSignUpList',props.row)">
<q-item-section> <q-item-section>
<q-item-label>报名列表</q-item-label> <q-item-label>报名列表</q-item-label>
</q-item-section> </q-item-section>
...@@ -299,6 +345,8 @@ import ActiveForm from '../../components/activity/active-from' ...@@ -299,6 +345,8 @@ import ActiveForm from '../../components/activity/active-from'
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
ActivityName: '', ActivityName: '',
SelectStartTimeStr:"",
SelectEndTimeStr:"",
}, },
pageCount: 0, pageCount: 0,
activityTypeList:[], activityTypeList:[],
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
<div class="star-box"> <div class="star-box">
<i class="iconfont icon-star star"></i>&nbsp; {{props.value.AdvertisingCount}} <i class="iconfont icon-star star"></i>&nbsp; {{props.value.AdvertisingCount}}
</div> </div>
<div class="label-box" v-if="props.value.LableList.length>0">
<div v-for="(item,index) in props.value.LableList" :key="index">
{{ item }}
</div>
</div>
<div class="zezhao"> <div class="zezhao">
<i class="el-icon-edit" :title="$t('pub.updateMsg')" @click="update(props.value)"></i> <i class="el-icon-edit" :title="$t('pub.updateMsg')" @click="update(props.value)"></i>
<i class="el-icon-delete" :title="$t('system.table_delete')" @click="delAD(props.value.ID)" ></i> <i class="el-icon-delete" :title="$t('system.table_delete')" @click="delAD(props.value.ID)" ></i>
...@@ -90,6 +95,7 @@ export default { ...@@ -90,6 +95,7 @@ export default {
} }
}, },
update(x){ update(x){
console.log(x)
this.showForm=true this.showForm=true
this.model=x this.model=x
}, },
......
...@@ -283,7 +283,8 @@ ...@@ -283,7 +283,8 @@
checkList: [], checkList: [],
checkAllList: [], checkAllList: [],
checkAll: false, checkAll: false,
imgSrc: "" imgSrc: "",
scLoad:false
} }
}, },
created() { created() {
...@@ -306,12 +307,11 @@ ...@@ -306,12 +307,11 @@
goBack() { goBack() {
this.$router.go(-1) this.$router.go(-1)
}, },
//登录后获取上传配置 //登录后获取上传配置
getUpConfig() { getUpConfig() {
this.apipostDS("/api/MallBase/GetDefaultFileStore", {}, res => { this.apipostDS("/api/MallBase/GetDefaultFileStore", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(312, res)
var upData = res.data.data; var upData = res.data.data;
localStorage.uploadInfo = JSON.stringify(upData); localStorage.uploadInfo = JSON.stringify(upData);
} else { } else {
...@@ -540,17 +540,32 @@ ...@@ -540,17 +540,32 @@
}) })
}, },
//上传视频 //上传视频
// UploadVideo(file) {
// var that = this;
// UploadViittoFile('Edu/Video', file.file, res => {
// console.log("res",res);
// if (res.Code == 1) {
// this.Success('上传成功')
// that.addpageMsg.Image = res.VideoCoverImg;
// that.addpageMsg.Path = res.FileUrl;
// that.addpageMsg.Name = res.FileName;
// that.addPageList();
// that.$forceUpdate();
// }
// })
// },
UploadVideo(file) { UploadVideo(file) {
var that = this;
UploadViittoFile('Edu/Video', file.file, res => { this.UploadFileToTencent(this.FileType().Video, file.file, res => {
console.log("res",res); if (res.resultCode == 1) {
if (res.Code == 1) {
this.Success('上传成功') this.Success('上传成功')
that.addpageMsg.Image = res.VideoCoverImg; console.log(561,res)
that.addpageMsg.Path = res.FileUrl; // if (this.addpageMsg.Type == 2) {
that.addpageMsg.Name = res.FileName; // this.addpageMsg.Image = res.FileUrl;
that.addPageList(); // }
that.$forceUpdate(); // this.addpageMsg.Path = res.FileUrl;
// this.addpageMsg.Name = res.FileName;
// this.addPageList();
} }
}) })
}, },
...@@ -750,6 +765,7 @@ ...@@ -750,6 +765,7 @@
data.forEach(item => { data.forEach(item => {
this.checkAllList.push(item.Id) this.checkAllList.push(item.Id)
item.Selected = false; item.Selected = false;
console.log(768,item)
}) })
this.PageList = data; this.PageList = data;
this.$forceUpdate(); this.$forceUpdate();
...@@ -783,6 +799,15 @@ ...@@ -783,6 +799,15 @@
num = 3 num = 3
} }
return num; return num;
},
captureImage(video) {
let canvas = document.createElement('canvas')
// canvas.width = video.videoWidth
// canvas.height = video.videoHeight
canvas.width = '140px'
canvas.height = '140px'
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height)
return canvas.toDataURL('image/png')
} }
}, },
} }
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
successCall(res); successCall(res);
}).catch(function (res) {}); }).catch(function (res) { });
}, },
//HTTP提交数据 //HTTP提交数据
...@@ -269,7 +269,7 @@ export default { ...@@ -269,7 +269,7 @@ export default {
} }
}) })
.then(res => { .then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {} else if (res.resultCode == 10005) { if (res.data.resultCode == 10000 || res.data.resultCode == 10001) { } else if (res.resultCode == 10005) {
this.$router.go(-1); this.$router.go(-1);
} else { } else {
successCall(res); successCall(res);
...@@ -502,7 +502,7 @@ export default { ...@@ -502,7 +502,7 @@ export default {
Key: newFileName, //文件名 Key: newFileName, //文件名
StorageClass: 'STANDARD', StorageClass: 'STANDARD',
Body: fileObj, // 上传文件对象 Body: fileObj, // 上传文件对象
onProgress: function (progressData) {} onProgress: function (progressData) { }
}, function (err, data) { }, function (err, data) {
if (data && data.statusCode == 200) { if (data && data.statusCode == 200) {
var uploadResult = { var uploadResult = {
...@@ -541,7 +541,7 @@ export default { ...@@ -541,7 +541,7 @@ export default {
var newFileName = str + '/Upload/' + path + "/" + timestamp1 + "" + suffix; var newFileName = str + '/Upload/' + path + "/" + timestamp1 + "" + suffix;
this.Info('上传中...') this.Info('上传中...')
var result = oss.multipartUpload(newFileName, fileObj, { var result = oss.multipartUpload(newFileName, fileObj, {
progress: function* (p) {} progress: function* (p) { }
}).then(res => { }).then(res => {
var uploadResult = { var uploadResult = {
resultCode: 1, resultCode: 1,
......
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