Commit 5ab95ee5 by chenxin

fix:build 权限3.0

parent 4b45f04f
......@@ -2,4 +2,4 @@
gio('init','8be12240a3749eab', {});
//custom page code begin here
//custom page code end here
gio('send');</script><link href=/marketing/static/css/main.21866821e9075b41f26ce428aac59e15.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=https://unpkg.com/element-ui/lib/index.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.31.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.09.js></script><script src=//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.32.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.12.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=/marketing/static/js/manifest.8b4ab5c0a2a90e6ca1d2.js></script><script type=text/javascript src=/marketing/static/js/vendor.f6e5442e18ed1c7d4a4d.js></script><script type=text/javascript src=/marketing/static/js/main.2b88db9d8105943a6398.js></script></body></html>
\ No newline at end of file
gio('send');</script><link href=/marketing/static/css/main.f6baf626ad2346924d19fc2a42832914.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=https://unpkg.com/element-ui/lib/index.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.31.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.09.js></script><script src=//web-1251519181.file.myqcloud.com/components/confirm-people.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.32.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.12.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=/marketing/static/js/manifest.d1a15a2a7473e379e937.js></script><script type=text/javascript src=/marketing/static/js/vendor.f6e5442e18ed1c7d4a4d.js></script><script type=text/javascript src=/marketing/static/js/main.2b88db9d8105943a6398.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var r=window.webpackJsonp;window.webpackJsonp=function(n,o,c){for(var f,i,u,d=0,s=[];d<n.length;d++)i=n[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(r&&r(n,o,c);s.length;)s.shift()();if(c)for(d=0;d<c.length;d++)u=a(a.s=c[d]);return u};var n={},t={12:0};function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=t[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var n=new Promise(function(n,a){r=t[e]=[n,a]});r[2]=n;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+({0:"game",1:"card",2:"wechat",3:"ewash",4:"evaluation",5:"message",6:"ecm",7:"recharge",8:"msg",9:"calllog"}[e]||e)+"."+{0:"c35be618a89f24ecf5de",1:"31602c32289ae2816c8e",2:"dc31df9e7fef4aaa587c",3:"412babd99d8107d89a48",4:"82b6062b9f7c9e15698f",5:"040c5edae738dc44ee28",6:"d927629a33a65a838c3a",7:"6dfebb35a2cb22f7489d",8:"0b2924ec726a3f3d2b0f",9:"3faf4390ba184ad8f005"}[e]+".js";var f=setTimeout(i,12e4);function i(){c.onerror=c.onload=null,clearTimeout(f);var r=t[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=i,o.appendChild(c),n},a.m=e,a.c=n,a.d=function(e,r,n){a.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/marketing/",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var r=window.webpackJsonp;window.webpackJsonp=function(n,a,c){for(var f,i,u,d=0,s=[];d<n.length;d++)i=n[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(r&&r(n,a,c);s.length;)s.shift()();if(c)for(d=0;d<c.length;d++)u=o(o.s=c[d]);return u};var n={},t={12:0};function o(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var r=t[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var n=new Promise(function(n,o){r=t[e]=[n,o]});r[2]=n;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+({0:"game",1:"card",2:"wechat",3:"ewash",4:"evaluation",5:"message",6:"ecm",7:"recharge",8:"msg",9:"calllog"}[e]||e)+"."+{0:"9d10bb6c9e2ef9c45e0c",1:"31602c32289ae2816c8e",2:"dc31df9e7fef4aaa587c",3:"412babd99d8107d89a48",4:"82b6062b9f7c9e15698f",5:"040c5edae738dc44ee28",6:"d927629a33a65a838c3a",7:"6dfebb35a2cb22f7489d",8:"0b2924ec726a3f3d2b0f",9:"3faf4390ba184ad8f005"}[e]+".js";var f=setTimeout(i,12e4);function i(){c.onerror=c.onload=null,clearTimeout(f);var r=t[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=i,a.appendChild(c),n},o.m=e,o.c=n,o.d=function(e,r,n){o.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="/marketing/",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -112,7 +112,7 @@
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="saveLottery('form')" v-if="!isInfo">保 存</el-button>
<el-button type="primary" @click="saveLottery('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
<vue-gic-card :showCardDialog="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
......@@ -132,6 +132,7 @@ export default {
const that = this;
return {
loading: false,
canEdit: true,
// 参与门槛组件传递的数据
thresholdData: {
searchParams: '', // 会员筛选
......@@ -292,7 +293,7 @@ export default {
try {
let res = await detailLottery({ gameId: this.$route.params.id, gameType: 1 });
const gameDetail = res.result.gameDetail;
this.canEdit = this.isEdit ? res.result.canEdit : true; // 不是本人禁用按钮
this.form = Object.assign(this.form, {
gameId: gameDetail.gameId,
gameName: gameDetail.gameName, //1
......@@ -374,6 +375,9 @@ export default {
},
//提交保存
async saveLottery(formName) {
if (!this.canEdit) {
return;
}
if (this.form.gameLimitCount != -1 && this.form.gameFreeCount > this.form.gameLimitCount) {
this.$tips({ type: 'warning', message: '免费次数不能大于限制次数' });
return;
......
......@@ -98,7 +98,7 @@
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="saveLottery('form')" v-if="!isInfo">保 存</el-button>
<el-button type="primary" @click="saveLottery('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
<vue-gic-card :showCardDialog="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
......@@ -118,6 +118,7 @@ export default {
const that = this;
return {
loading: false,
canEdit: true,
// 参与门槛组件传递的数据
thresholdData: {
searchParams: '', // 会员筛选
......@@ -259,7 +260,7 @@ export default {
let res = await detailLottery({ gameId: this.$route.params.id, gameType: 2 });
this.loading = false;
const gameDetail = res.result.gameDetail;
this.canEdit = this.isEdit ? res.result.canEdit : true; // 不是本人禁用按钮
this.form = Object.assign(this.form, {
gameId: gameDetail.gameId,
gameName: gameDetail.gameName,
......@@ -335,6 +336,9 @@ export default {
},
//提交保存
async saveLottery(formName) {
if (!this.canEdit) {
return;
}
if (this.form.gameLimitCount != -1 && this.form.gameFreeCount > this.form.gameLimitCount) {
this.$tips({ type: 'warning', message: '免费次数不能大于限制次数' });
return;
......
......@@ -173,7 +173,7 @@
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="klflSave('form')" v-if="!isInfo">保 存</el-button>
<el-button type="primary" @click="klflSave('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
<vue-gic-card :showCardDialog="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
......@@ -203,6 +203,7 @@ export default {
const that = this;
return {
loading: false,
canEdit: true,
tableLoading: false,
prizeLoading: false,
// 参与门槛组件传递的数据
......@@ -488,6 +489,7 @@ export default {
.then(res => {
this.loading = false;
result = res.result;
this.canEdit = this.isEdit ? res.result.canEdit : true; // 不是本人禁用按钮
this.systemBakImgList = result.systemBakImgList;
this.systemBtnImgList = result.systemBtnImgList;
if (result.game) {
......@@ -579,6 +581,9 @@ export default {
},
//提交保存
async klflSave(formName) {
if (!this.canEdit) {
return;
}
if (this.form.memberType === 1 && !this.thresholdData.getSaveData) {
this.$tips({ type: 'warning', message: '会员筛选不能为空' });
return;
......
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-08-06 21:01:38
* @LastEditTime: 2019-08-13 16:17:48
* @LastEditors: Please set LastEditors
-->
<template>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="ptyx-add" v-loading="loading" element-loading-text="拼命加载中">
<section class="dm-form__wrap">
......@@ -109,7 +102,7 @@
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="savePtyx('form')" v-if="!isInfo">保 存</el-button>
<el-button type="primary" @click="savePtyx('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
</el-form>
......@@ -136,6 +129,7 @@ export default {
// eslint-disable-next-line
defaultImg: require('../../../assets/img/loaderror.png'),
loading: false,
canEdit: true,
// 参与门槛组件传递的数据
thresholdData: {
searchParams: '', // 会员筛选
......@@ -278,6 +272,7 @@ export default {
this.loading = true;
let res = await ptyxDetail({ gameActivityId: this.$route.params.id });
this.loading = false;
this.canEdit = this.isEdit ? res.result.canEdit : true; // 不是本人禁用按钮
gameInfo = res.result.gameInfo;
this.form = Object.assign(this.form, {
gameActivityId: gameInfo.gameActivityId,
......@@ -384,6 +379,9 @@ export default {
},
//提交保存
async savePtyx(formName) {
if (!this.canEdit) {
return;
}
let flag = false;
if (!this.form.puzzleImg.code) {
this.$tips({ type: 'warning', message: '游戏拼图图片不能为空' });
......
......@@ -63,7 +63,7 @@
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="znmSave('form')" v-if="!isInfo">保 存</el-button>
<el-button type="primary" @click="znmSave('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
<vue-gic-card :showCardDialog="showCardDialog" :cardLimit="3" @selectCard="selectCard"></vue-gic-card>
......@@ -86,6 +86,7 @@ export default {
const that = this;
return {
loading: false,
canEdit: true,
tableLoading: false,
// 参与门槛组件传递的数据
thresholdData: {
......@@ -222,7 +223,7 @@ export default {
this.loading = true;
let res = await znmDetail({ gameActivityId: isAdd ? '' : this.$route.params.id });
this.loading = false;
this.canEdit = this.isEdit ? res.result.canEdit : true; // 不是本人禁用按钮
if (typeof res.result === 'string') {
this.form.gameActivityId = res.result;
return;
......@@ -287,6 +288,9 @@ export default {
},
//提交保存
async znmSave(formName) {
if (!this.canEdit) {
return;
}
if (!this.firstStrategy.coupCardId || !this.lastStrategy.coupCardId) {
this.$tips({ type: 'warning', message: '首次奖项和后续奖不能为空' });
return;
......
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