Commit 4aa0046e by crushh

update: dist

parent 8c5d351f
......@@ -35,6 +35,11 @@ const attractFlowLinkRouter = [
component: _import('salesleads/actCodeManage/attractFlowLink', 'info')
},
{
path: '/attLinkRecord',
name: '查看记录',
component: _import('salesleads/actCodeManage/staffActCode', 'actCodeRecord')
},
{
path: '/ladingPageList',
name: '落地页列表',
component: _import('salesleads/actCodeManage/attractFlowLink/landingPage', 'list'),
......
......@@ -112,10 +112,10 @@
<el-input class="w-260" placeholder="请输入标题" v-model="landingPage.pageSearchText" @keyup.native="toInput" clearable @clear="getList"></el-input>
<el-button plain class="blueBtn" @click="addTemp">新建模板</el-button>
</div>
<el-table :data="landingData" height="426" :loading="landingLoading">
<el-table :data="landingData" height="426" :loading="landingLoading" @row-click="handleTableRowClick">
<el-table-column width="55">
<template slot-scope="{ row }">
<el-radio :label="row.pageId" v-model="form.pageId" @change.native="getCurrentRow(row)"> &nbsp;</el-radio>
<el-radio :label="row.pageId" v-model="form.pageId" @change.native="getCurrentRow(row)"><i></i></el-radio>
</template>
</el-table-column>
<el-table-column prop="pageCode" label="模板ID" minWidth="148"></el-table-column>
......@@ -293,6 +293,9 @@ export default {
this.form.memberLabelStatus = 1;
this.$refs.form.validateField('memberLabelId');
},
handleTableRowClick(row) {
this.form.pageId = row.pageId;
},
handleTagCloseTag() {
this.form.memberLabelName = '';
this.form.memberLabelId = '';
......
......@@ -110,9 +110,9 @@ export default {
wxEnterpriseList({}).then(res => {
let resData = res.data;
if (!!resData.result && !!resData.result.length) {
const { conactsPhone, enterpriseLogo, enterpriseName } = resData.result.filter(item => item.wxEnterpriseId == this.wxEnterpriseId)[0];
const { customerPhone, enterpriseLogo, enterpriseName } = resData.result.filter(item => item.wxEnterpriseId == this.wxEnterpriseId)[0];
this.form.merchantLogo = enterpriseLogo;
this.form.merchantPhoneNumber = conactsPhone;
this.form.merchantPhoneNumber = customerPhone;
this.form.merchantName = enterpriseName;
}
});
......
......@@ -241,13 +241,16 @@ export default {
const { clerkId, linkId, hmId } = row;
const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] : undefined;
const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] : undefined;
let query = { linkId, clerkId, hmId };
startTime ? (query.startTime = startTime) : '';
endTime ? (query.endTime = endTime) : '';
if (linkId) {
this.$router.push({ path: '/attLinkRecord', query: query });
} else {
this.$router.push({ path: '/actCodeRecord', query: query });
}
}
}
};
</script>
<style lang="less" scoped>
......
......@@ -29,10 +29,10 @@
<el-input class="w260" placeholder="请输入标题" v-model="welcomePage.title" @keyup.native="toInput" clearable @clear="onSearch"></el-input>
<el-button plain class="blueBtn" @click="changeRoute">新建欢迎语</el-button>
</div>
<el-table :data="welcomeTableData" max-height="300px">
<el-table :data="welcomeTableData" max-height="300px" @row-click="getCurrentRow">
<el-table-column width="55">
<template slot-scope="{ row }">
<el-radio :label="row.welcomeId" @change.native="getCurrentRow(row)" v-model="welcomeId">&nbsp;</el-radio>
<el-radio :label="row.welcomeId" @change.native="getCurrentRow(row)" v-model="welcomeId"><i></i></el-radio>
</template>
</el-table-column>
<el-table-column prop="title" label="标题" width="158px"></el-table-column>
......@@ -154,12 +154,12 @@ export default {
this.$router.push({ path: '/salutatorySet', query: { type: 2 } });
},
getCurrentRow(row) {
console.log(row);
const { welcomeMediaList, welcomeContent, welcomeId } = row;
this.$emit('update:welcomeId', welcomeId);
this.welcomeContent = welcomeContent;
this.welcomeMediaList = welcomeMediaList;
},
// 单选框点击事件
radioChange(e) {
this.$emit('update:welcomeType', e);
......
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