Commit e46ac1d6 by crushh

update: dist

parent ac57fd3d
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
this.welcomeId = item.welcomeId; this.welcomeId = item.welcomeId;
}, },
goLinkDetail(row) { goLinkDetail(row) {
console.log(row); this.dialogVisible = false;
if (row.type == 2) { if (row.type == 2) {
this.$router.push('/actCodeDetail?hmId=' + row.referId); this.$router.push('/actCodeDetail?hmId=' + row.referId);
} else { } else {
......
<template> <template>
<div class="p-20"> <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>
<div class="section"> <div class="section">
...@@ -164,6 +164,7 @@ export default { ...@@ -164,6 +164,7 @@ export default {
}, },
link: 'link', link: 'link',
landingLoading: false, landingLoading: false,
loading: false,
landingData: [], landingData: [],
total: 0, total: 0,
landingForm: {}, landingForm: {},
...@@ -264,25 +265,31 @@ export default { ...@@ -264,25 +265,31 @@ export default {
}); });
}, },
getDetail() { getDetail() {
linkDetail({ linkId: this.$route.params.id }).then(res => { this.loading = true;
const { result } = res.data; linkDetail({ linkId: this.$route.params.id })
if (result) { .then(res => {
const { link, page } = result; const { result } = res.data;
link.customRuleJson = JSON.parse(link.customRuleJson); if (result) {
link.storeRuleJson = JSON.parse(link.storeRuleJson); const { link, page } = result;
link.storeList = link.storeList ? link.storeList : []; link.customRuleJson = JSON.parse(link.customRuleJson);
this.form = link; link.storeRuleJson = JSON.parse(link.storeRuleJson);
this.landingForm = page; link.storeList = link.storeList ? link.storeList : [];
this.getStoreList(); this.form = link;
} this.landingForm = page;
console.log(result); this.getStoreList();
}); }
console.log(result);
})
.finally(_ => {
this.loading = false;
});
}, },
saveTagPop(data) { saveTagPop(data) {
const { tagItemId, tagItemName } = data; const { tagItemId, tagItemName } = data;
this.form.memberLabelName = tagItemName; this.form.memberLabelName = tagItemName;
this.form.memberLabelId = tagItemId; this.form.memberLabelId = tagItemId;
this.form.memberLabelStatus = 1; this.form.memberLabelStatus = 1;
this.$refs.form.validateField('memberLabelId');
}, },
handleTagCloseTag() { handleTagCloseTag() {
this.form.memberLabelName = ''; this.form.memberLabelName = '';
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="flex flex-space-between m-b-16"> <div class="flex flex-space-between m-b-16">
<div class="flex flex-align-center"> <div class="flex flex-align-center">
<el-input placeholder="请输入模板ID/名称、创建人" class="w-260" v-model="form.searchParams" @keyup.native="value => toInput(value, searchInput)" clearable @clear="getList"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input placeholder="请输入链接ID/名称、创建人" class="w-260" v-model="form.searchParams" @keyup.native="value => toInput(value, searchInput)" clearable @clear="getList"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
<el-select class="m-l-10 w-160" v-model="form.linkType" placeholder="全部类型" @change="getList" clearable @clear="clear"> <el-select class="m-l-10 w-160" v-model="form.linkType" placeholder="全部类型" @change="getList" clearable @clear="clear">
<el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.key"> </el-option> <el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.key"> </el-option>
</el-select> </el-select>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="fixed-tab" v-if="scrollTop > 300"> <div class="fixed-tab" v-if="scrollTop >= fixedHeight">
<el-tabs v-model="activeName" type="card"> <el-tabs v-model="activeName" type="card">
<el-tab-pane label="详情信息" name="first"> <div></div> </el-tab-pane> <el-tab-pane label="详情信息" name="first"> <div></div> </el-tab-pane>
<el-tab-pane label="数据统计" name="second"> <el-tab-pane label="数据统计" name="second">
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
mixins: [mixin], mixins: [mixin],
data() { data() {
return { return {
fixedHeight: 280,
filters, filters,
statisticsClerk, statisticsClerk,
loading: false, loading: false,
...@@ -277,11 +278,12 @@ export default { ...@@ -277,11 +278,12 @@ export default {
.fixed-tab { .fixed-tab {
position: absolute; position: absolute;
top: 80px; top: 110px;
z-index: 1; z-index: 1;
padding-bottom: 0; padding-bottom: 0;
height: 40px; height: 40px;
background: white; background: white;
width: calc(100% - 180px);
} }
.welcome-left-view { .welcome-left-view {
width: 639px; width: 639px;
......
<template> <template>
<div> <div>
<div class="daily-set-content"> <div class="daily-set-content" v-loading="loading">
<el-form label-width="100px" ref="form" :model="form" :rules="rules" class="form"> <el-form label-width="100px" ref="form" :model="form" :rules="rules" class="form">
<el-form-item label="模板名称" prop="pageName" required> <el-form-item label="模板名称" prop="pageName" required>
<el-input show-word-limit placeholder="请输入模板名称" type="text" v-model="form.pageName" maxlength="20" class="w-340"></el-input> <el-input show-word-limit placeholder="请输入模板名称" type="text" v-model="form.pageName" maxlength="20" class="w-340"></el-input>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
<div class="footBtn"> <div class="footBtn">
<el-button type="primary" @click="save">保存</el-button> <el-button type="primary" @click="save" :loading="btnLoading">保存</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
isEdit: this.$route.meta.type == 'edit', isEdit: this.$route.meta.type == 'edit',
isAdd: this.$route.meta.type == 'add', isAdd: this.$route.meta.type == 'add',
loading: false, loading: false,
btnLoading: false,
rules: { rules: {
merchantPhoneNumber: [{ validator: merchantPhoneNumberVal }] merchantPhoneNumber: [{ validator: merchantPhoneNumberVal }]
} }
...@@ -92,12 +93,17 @@ export default { ...@@ -92,12 +93,17 @@ export default {
methods: { methods: {
getDetail() { getDetail() {
console.log(this.$route); console.log(this.$route);
guidePageDetail({ pageId: this.$route.params.id }).then(res => { this.loading = true;
if (res.data.result) { guidePageDetail({ pageId: this.$route.params.id })
const result = res.data.result; .then(res => {
this.form = result; if (res.data.result) {
} const result = res.data.result;
}); this.form = result;
}
})
.finally(_ => {
this.loading = false;
});
}, },
getEchoEnterpriseInfo() { getEchoEnterpriseInfo() {
wxEnterpriseList({}).then(res => { wxEnterpriseList({}).then(res => {
...@@ -111,18 +117,18 @@ export default { ...@@ -111,18 +117,18 @@ export default {
}); });
}, },
guidePageEdit() { guidePageEdit() {
this.loading = true; this.btnLoading = true;
guidePageEdit(this.form) guidePageEdit(this.form)
.then(_ => { .then(_ => {
this.$router.go(-1); this.$router.go(-1);
this.$message.success('保存成功'); this.$message.success('保存成功');
}) })
.finally(_ => { .finally(_ => {
this.loading = false; this.btnLoading = false;
}); });
}, },
guidePageSave() { guidePageSave() {
this.loading = true; this.btnLoading = true;
guidePageSave(this.form) guidePageSave(this.form)
.then(_ => { .then(_ => {
this.$router.go(-1); this.$router.go(-1);
...@@ -130,7 +136,7 @@ export default { ...@@ -130,7 +136,7 @@ export default {
this.$message.success('保存成功'); this.$message.success('保存成功');
}) })
.finally(_ => { .finally(_ => {
this.loading = false; this.btnLoading = false;
}); });
}, },
save() { save() {
......
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