Commit b7c0d79f by 无尘

feat: 增加发送记录页面

parent a2fba38e
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:24:50
* @LastEditors: 无尘
* @LastEditTime: 2019-10-24 15:48:13
* @LastEditTime: 2019-10-24 17:55:02
-->
<!--
......@@ -97,7 +97,7 @@ components: {
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row)">发送记录</el-button>
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row, '4')">发送记录</el-button>
</template>
</el-table-column>
</el-table>
......@@ -157,7 +157,7 @@ components: {
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row)">发送记录</el-button>
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row, '1')">发送记录</el-button>
</template>
</el-table-column>
</el-table>
......@@ -201,7 +201,7 @@ components: {
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row)">发送记录</el-button>
<el-button type="text" size="small" @click="toSendDetail(scope.$index, scope.row, '2')">发送记录</el-button>
</template>
</el-table-column>
</el-table>
......@@ -299,9 +299,9 @@ export default {
/**
* 发送记录
*/
toSendDetail(index, row) {
toSendDetail(index, row, tabType) {
const that = this;
that.$router.push(`/sendRecord?appIcon=${this.$route.query.appIcon}`);
that.$router.push(`/sendRecord?activeTab=${that.activeTab}&tabType=${tabType}&appIcon=${this.$route.query.appIcon}&relatedId=${row.id || row.goodId}`);
},
/**
* 改变chatFlag
......@@ -592,6 +592,9 @@ export default {
if (that.brandId != '') {
that.getChatSet(that.brandId);
}
if (that.$route.query.activeTab != '') {
that.activeTab = that.$route.query.activeTab || '2';
}
}
};
</script>
......
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