Commit 73061d80 by crushh

update: dist

parent 7fa1b50e
...@@ -76,7 +76,7 @@ Vue.axios.interceptors.request.use( ...@@ -76,7 +76,7 @@ Vue.axios.interceptors.request.use(
Vue.axios.interceptors.response.use( Vue.axios.interceptors.response.use(
data => { data => {
removePending(data.config); //在一个ajax响应后再执行一下取消操作,把已经完成的请求从pending中移除 removePending(data.config); //在一个ajax响应后再执行一下取消操作,把已经完成的请求从pending中移除
if (data.status && data.status == 200 && (data.data.errorCode != 1 || data.data.code != 1)) { if (data.status && data.status == 200 && data.data.errorCode != 1 && data.data.code != 0) {
if (data.data.errorCode == 4) { if (data.data.errorCode == 4) {
if (window.location.href.indexOf('gic-error') != -1) { if (window.location.href.indexOf('gic-error') != -1) {
return false; return false;
...@@ -86,6 +86,7 @@ Vue.axios.interceptors.response.use( ...@@ -86,6 +86,7 @@ Vue.axios.interceptors.response.use(
if (data.data.errorCode == 10 || data.data.errorCode == 7) { if (data.data.errorCode == 10 || data.data.errorCode == 7) {
window.location.href = gicHost + '/haoban-3/#/index'; window.location.href = gicHost + '/haoban-3/#/index';
} }
Message.error({ message: data.data.message });
return data; return data;
} }
return data; return data;
......
...@@ -211,11 +211,11 @@ export default { ...@@ -211,11 +211,11 @@ export default {
let str = ''; let str = '';
if (result) { if (result) {
if (result.qrCodeReferNum && result.linkReferNum) { if (result.qrCodeReferNum && result.linkReferNum) {
str = `当前模板已关联状态为正常的活码(${result.qrCodeReferNum})、链接(${result.linkReferNum}),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,取消关联后才可删除该模板`; str = `当前欢迎语已关联状态为正常的活码(${result.qrCodeReferNum})、链接(${result.linkReferNum}),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板`;
} else if (result.qrCodeReferNum) { } else if (result.qrCodeReferNum) {
str = `当前模板已关联状态为正常的活码(${result.qrCodeReferNum}),请确认相关活码是否不再使用该欢迎语,取消关联后才可删除该模板`; str = `当前欢迎语已关联状态为正常的活码(${result.qrCodeReferNum}),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板`;
} else if (result.linkReferNum) { } else if (result.linkReferNum) {
str = `当前模板已关联链接(${result.linkReferNum}),请确认相关链接已投放结束,取消关联后才可删除该模板`; str = `当前欢迎语已关联链接(${result.linkReferNum}),请确认相关链接已投放结束,解除关联后才可删除该模板`;
} }
this.$confirm(str, '无法删除该欢迎语', { this.$confirm(str, '无法删除该欢迎语', {
confirmButtonText: '关联详情', confirmButtonText: '关联详情',
...@@ -248,11 +248,10 @@ export default { ...@@ -248,11 +248,10 @@ export default {
this.welcomeId = item.welcomeId; this.welcomeId = item.welcomeId;
}, },
goLinkDetail(row) { goLinkDetail(row) {
this.dialogVisible = false;
if (row.type == 2) { if (row.type == 2) {
this.$router.push('/actCodeDetail?hmId=' + row.referId); window.open(`/haoban-3/#/actCodeDetail?hmId='${row.referId}`);
} else { } else {
this.$router.push(`/attractFlowLinkInfo/${row.referId}`); window.open(`/haoban-3/#/attractFlowLinkInfo/${row.referId}`);
} }
}, },
/** /**
......
<template> <template>
<div>
<div class="p-20" v-loading="loading"> <div class="p-20" v-loading="loading">
<el-form label-width="100px" :model="form" size="small" :rules="rules" ref="form"> <el-form label-width="100px" :model="form" size="small" :rules="rules" ref="form">
<dm-sub-title type="line">基础信息</dm-sub-title> <dm-sub-title type="line">基础信息</dm-sub-title>
...@@ -132,10 +133,11 @@ ...@@ -132,10 +133,11 @@
<p class="previewBottom">此二维码只是样式预览效果,请勿直接使用</p> <p class="previewBottom">此二维码只是样式预览效果,请勿直接使用</p>
</div> </div>
</div> </div>
</el-form>
</div>
<div class="footBtn"> <div class="footBtn">
<el-button type="primary" @click="save" :loading="btnLoading">保存</el-button> <el-button type="primary" @click="save" :loading="btnLoading">保存</el-button>
</div> </div>
</el-form>
</div> </div>
</template> </template>
...@@ -592,7 +594,7 @@ export default { ...@@ -592,7 +594,7 @@ export default {
} }
} }
.footBtn { .footBtn {
width: 100%; width: calc(100vw - 190px);
height: 56px; height: 56px;
background: #ffffff; background: #ffffff;
box-shadow: 1px -2px 8px 0px rgba(220, 223, 230, 0.6); box-shadow: 1px -2px 8px 0px rgba(220, 223, 230, 0.6);
......
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
pageNum: 1, pageNum: 1,
linkType: '', linkType: '',
searchParams: '', searchParams: '',
dateRange: [] dateRange: [],
sortColumn: ''
}, },
options: [ options: [
{ {
......
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
let link = document.createElement('a'); let link = document.createElement('a');
let url = img.getAttribute('src'); let url = img.getAttribute('src');
link.setAttribute('href', url); link.setAttribute('href', url);
link.setAttribute('download', `${this.link.linkId}_${this.link.name}.png`); link.setAttribute('download', `${this.link.shortCode}_${this.link.name}.png`);
link.click(); link.click();
}, },
goEdit() { goEdit() {
......
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
this.btnLoading = true; this.btnLoading = true;
guidePageEdit(this.form) guidePageEdit(this.form)
.then(_ => { .then(_ => {
this.$router.push('/ladingPageList'); this.$router.go(-1);
this.$message.success('保存成功'); this.$message.success('保存成功');
}) })
.finally(_ => { .finally(_ => {
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
this.btnLoading = true; this.btnLoading = true;
guidePageSave(this.form) guidePageSave(this.form)
.then(_ => { .then(_ => {
this.$router.push('/ladingPageList'); this.$router.go(-1);
this.$route.meta.refresh = true; this.$route.meta.refresh = true;
this.$message.success('保存成功'); this.$message.success('保存成功');
}) })
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
<style type="text/scss" lang="scss" scoped> <style type="text/scss" lang="scss" scoped>
.daily-set-content { .daily-set-content {
padding: 20px; padding: 20px;
margin-bottom: 56px;
} }
.form { .form {
float: left; float: left;
...@@ -182,7 +183,7 @@ export default { ...@@ -182,7 +183,7 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
} }
.footBtn { .footBtn {
width: 100%; width: calc(100vw - 190px);
height: 56px; height: 56px;
background: #ffffff; background: #ffffff;
box-shadow: 1px -2px 8px 0px rgba(220, 223, 230, 0.6); box-shadow: 1px -2px 8px 0px rgba(220, 223, 230, 0.6);
......
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
guidePageRelation({ pageId: item.pageId }).then(res => { guidePageRelation({ pageId: item.pageId }).then(res => {
const { totalCount } = res.data.result; const { totalCount } = res.data.result;
if (totalCount) { if (totalCount) {
this.$confirm(`当前模板已关联链接(${totalCount}),请确认投放链接已投放结束,取消关联后才可删除该模板`, '无法删除该模板', { this.$confirm(`当前模板已关联链接(${totalCount}),请确认投放链接已投放结束,解除关联后才可删除该模板`, '无法删除该模板', {
confirmButtonText: '关联详情', confirmButtonText: '关联详情',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -198,8 +198,7 @@ export default { ...@@ -198,8 +198,7 @@ export default {
this.$router.push(`/ladingPageEdit/${item.pageId}`); this.$router.push(`/ladingPageEdit/${item.pageId}`);
}, },
goLinkDetail(referId) { goLinkDetail(referId) {
this.dialogVisible = false; window.open(`/haoban-3/#/attractFlowLinkInfo/${referId}`);
this.$router.push(`/attractFlowLinkInfo/${referId}`);
} }
} }
}; };
......
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