|
@@ -1,106 +1,103 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <el-container style="padding: 30px">
|
|
|
- <el-descriptions class="margin-top" title="一级渠道信息" :column="4">
|
|
|
- <template slot="extra">
|
|
|
- <el-button type="primary" size="small" @click="oneTOEdit(id)">编辑</el-button>
|
|
|
- <el-button type="primary" @click="value5 = true" size="small">历史记录</el-button>
|
|
|
- </template>
|
|
|
- <el-descriptions-item label="渠道名称">
|
|
|
- <template slot="label"> 渠道名称 </template>
|
|
|
- {{ content.channelName }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="渠道编码">
|
|
|
- <template slot="label"> 渠道编码 </template>
|
|
|
- {{ content.channelCode }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="渠道类别">
|
|
|
- <template slot="label"> 渠道类别 </template>
|
|
|
- {{ content.channelType }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="生效日期">
|
|
|
- <template slot="label"> 生效日期 </template>
|
|
|
- {{ content.onlineTime }}
|
|
|
- </el-descriptions-item>
|
|
|
-
|
|
|
- <el-descriptions-item label="联系人">
|
|
|
- <template slot="label"> 联系人 </template>
|
|
|
- {{ content.partnerContacts }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="联系人电话">
|
|
|
- <template slot="label"> 联系人电话 </template>
|
|
|
- {{ content.partnerPhone }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="负责人">
|
|
|
- <template slot="label"> 负责人 </template>
|
|
|
- {{ content.unicomContacts }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="联系方式">
|
|
|
- <template slot="label"> 联系方式 </template>
|
|
|
- {{ content.partnerPhone }}
|
|
|
- </el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
-
|
|
|
- <el-header>
|
|
|
- <el-form :inline="true" :model="searchForm" ref="searchForm" class="demo-form-inline">
|
|
|
- <el-form-item label="渠道名称">
|
|
|
- <el-input v-model="searchForm.channelName" name="searchForm.channelName" placeholder="策略名称" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="合作方">
|
|
|
- <el-input v-model="searchForm.channelPartner" placeholder="合作方" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item style="float: right">
|
|
|
- <el-button type="primary" size="mini" @click="search()">搜索</el-button>
|
|
|
- <el-button type="danger" size="mini" @click="pushdata = true">同步科创</el-button>
|
|
|
- <el-button size="mini" @click="reset('searchForm')">重置</el-button>
|
|
|
- <el-button size="mini" type="warning" @click="download()">导出</el-button>
|
|
|
- </el-form-item>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-descriptions class="margin-top" title="一级渠道信息" :column="4">
|
|
|
+ <template slot="extra">
|
|
|
+ <el-button type="primary" size="mini" @click="oneTOEdit(id)">编辑</el-button>
|
|
|
+ <el-button type="primary" @click="value5 = true" size="mini">历史记录</el-button>
|
|
|
+ </template>
|
|
|
+ <el-descriptions-item label="渠道名称">
|
|
|
+ <template slot="label"> 渠道名称 </template>
|
|
|
+ {{ content.channelName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="渠道编码">
|
|
|
+ <template slot="label"> 渠道编码 </template>
|
|
|
+ {{ content.channelCode }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="渠道类别">
|
|
|
+ <template slot="label"> 渠道类别 </template>
|
|
|
+ {{ content.channelType }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="生效日期">
|
|
|
+ <template slot="label"> 生效日期 </template>
|
|
|
+ {{ content.onlineTime }}
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="add({ id: content.id }, 'erji', content.channelName)">新增</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="info" icon="el-icon-upload2" size="mini" @click="init()">刷新</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-descriptions-item label="联系人">
|
|
|
+ <template slot="label"> 联系人 </template>
|
|
|
+ {{ content.partnerContacts }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="联系人电话">
|
|
|
+ <template slot="label"> 联系人电话 </template>
|
|
|
+ {{ content.partnerPhone }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="负责人">
|
|
|
+ <template slot="label"> 负责人 </template>
|
|
|
+ {{ content.unicomContacts }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="联系方式">
|
|
|
+ <template slot="label"> 联系方式 </template>
|
|
|
+ {{ content.partnerPhone }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
|
|
|
- </el-form>
|
|
|
- </el-header>
|
|
|
- <el-divider></el-divider>
|
|
|
-
|
|
|
- <el-dialog title="二维码下载" :visible.sync="dialogVisible">
|
|
|
- <div style="text-align: center">
|
|
|
- <div id="qrcode"></div>
|
|
|
- <div style="height: 25px; line-height: 25px; margin-top: 30px">
|
|
|
- 鼠标右键图片另存为
|
|
|
- </div>
|
|
|
+ <el-header>
|
|
|
+ <el-form :inline="true" :model="searchForm" ref="searchForm" class="demo-form-inline">
|
|
|
+ <el-form-item label="渠道名称">
|
|
|
+ <el-input v-model="searchForm.channelName" name="searchForm.channelName" placeholder="策略名称" size="mini" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="合作方">
|
|
|
+ <el-input v-model="searchForm.channelPartner" placeholder="合作方" size="mini" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item style="float: right">
|
|
|
+ <el-button type="primary" size="mini" @click="search()">搜索</el-button>
|
|
|
+ <el-button type="danger" size="mini" @click="pushdata = true">同步科创</el-button>
|
|
|
+ <el-button size="mini" @click="reset('searchForm')">重置</el-button>
|
|
|
+ <el-button size="mini" type="warning" @click="download()">导出</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-header>
|
|
|
+
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="add({ id: content.id }, 'erji', content.channelName)">新增</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="info" icon="el-icon-upload2" size="mini" @click="init()">刷新</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-dialog title="二维码下载" :visible.sync="dialogVisible">
|
|
|
+ <div style="text-align: center">
|
|
|
+ <div id="qrcode"></div>
|
|
|
+ <div style="height: 25px; line-height: 25px; margin-top: 30px">
|
|
|
+ 鼠标右键图片另存为
|
|
|
</div>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <vxe-modal v-model="value5" width="60%" title="历史记录">
|
|
|
- <template #default>
|
|
|
- <vxe-toolbar>
|
|
|
- <template #buttons>
|
|
|
- <vxe-input v-model="channelogParam.notes" type="search" clearable placeholder="搜索操作记录"></vxe-input>
|
|
|
- <vxe-input v-model="channelogParam.userName" type="search" clearable placeholder="搜索操作人"></vxe-input>
|
|
|
- <vxe-button @click="searchEvent" content="搜索"></vxe-button>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <vxe-modal v-model="value5" width="60%" title="历史记录">
|
|
|
+ <template #default>
|
|
|
+ <vxe-toolbar>
|
|
|
+ <template #buttons>
|
|
|
+ <vxe-input v-model="channelogParam.notes" type="search" clearable placeholder="搜索操作记录"></vxe-input>
|
|
|
+ <vxe-input v-model="channelogParam.userName" type="search" clearable placeholder="搜索操作人"></vxe-input>
|
|
|
+ <vxe-button @click="searchEvent" content="搜索"></vxe-button>
|
|
|
+ </template>
|
|
|
+ </vxe-toolbar>
|
|
|
+
|
|
|
+ <vxe-table auto-resize height="600" :data="channelog">
|
|
|
+ <vxe-table-column field="createTime" title="时间"></vxe-table-column>
|
|
|
+ <vxe-table-column field="notes" title="操作记录">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <div v-html="props.row.notes"></div>
|
|
|
</template>
|
|
|
- </vxe-toolbar>
|
|
|
-
|
|
|
- <vxe-table auto-resize height="600" :data="channelog">
|
|
|
- <vxe-table-column field="createTime" title="时间"></vxe-table-column>
|
|
|
- <vxe-table-column field="notes" title="操作记录">
|
|
|
- <template slot-scope="props">
|
|
|
- <div v-html="props.row.notes"></div>
|
|
|
- </template>
|
|
|
- </vxe-table-column>
|
|
|
- <vxe-table-column field="userName" title="操作人"></vxe-table-column>
|
|
|
- </vxe-table>
|
|
|
- <vxe-pager :loading="loading" :current-page="channelogParam.pageNum" :page-size="channelogParam.pageSize" :total="channelogParam.totalResult" :layouts="[
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="userName" title="操作人"></vxe-table-column>
|
|
|
+ </vxe-table>
|
|
|
+ <vxe-pager :loading="loading" :current-page="channelogParam.pageNo" :page-size="channelogParam.pageSize" :total="channelogParam.totalResult" :layouts="[
|
|
|
'PrevPage',
|
|
|
'JumpNumber',
|
|
|
'NextPage',
|
|
@@ -108,64 +105,63 @@
|
|
|
'Sizes',
|
|
|
'Total',
|
|
|
]" @page-change="handlePageChangeChannelog" />
|
|
|
+ </template>
|
|
|
+ </vxe-modal>
|
|
|
+ <!-- 同步 -->
|
|
|
+ <vxe-modal title="同步" v-model="pushdata" width="600">
|
|
|
+ <template #default>
|
|
|
+ <el-form ref="form" label-width="80px">
|
|
|
+ <el-form-item label="选择时间">
|
|
|
+ <el-date-picker v-model="pushdataDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" mini @click="onSubmit">立即同步</el-button>
|
|
|
+ <el-button @click="pushdata = false" mini>取消</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </vxe-modal>
|
|
|
+
|
|
|
+ <!-- 表格 -->
|
|
|
+ <el-table :data="tableData" style="width: 100%">
|
|
|
+ <el-table-column prop="channelName" label="渠道名称" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="channelKey" label="渠道key" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="fullCode" label="完整渠道编码">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="address" label="渠道类别"> </el-table-column>
|
|
|
+ <el-table-column prop="channelStatus" label="渠道形态">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="channelStatus" label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-switch :value="scope.row.channelStatus" :active-value="1" :inactive-value="0"></el-switch>
|
|
|
</template>
|
|
|
- </vxe-modal>
|
|
|
- <!-- 同步 -->
|
|
|
- <vxe-modal title="同步" v-model="pushdata" width="600">
|
|
|
- <template #default>
|
|
|
- <el-form ref="form" label-width="80px">
|
|
|
- <el-form-item label="选择时间">
|
|
|
- <el-date-picker v-model="pushdataDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="onSubmit">立即同步</el-button>
|
|
|
- <el-button @click="pushdata = false">取消</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="onlineTime" label="生效时间"> </el-table-column>
|
|
|
+ <el-table-column prop="channelCode" label="操作">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <el-button @click="toEdit(row.id, 'erji')" size="mini" type="text" icon="el-icon-edit">编辑</el-button>
|
|
|
+ <el-button @click="checkpushdata(row)" size="mini" type="text" icon="el-icon-edit">查询同步</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-plus" @click="copy(row)">复制链接</el-button>
|
|
|
+ <el-button @click="giveShort(row)" size="mini" type="text" icon="el-icon-share">短链接</el-button>
|
|
|
+ <el-button @click="ewm(row)" size="mini" type="text" icon="el-icon-mobile-phone">二维码</el-button>
|
|
|
</template>
|
|
|
- </vxe-modal>
|
|
|
-
|
|
|
- <!-- 表格 -->
|
|
|
- <el-table :data="tableData" style="width: 100%">
|
|
|
- <el-table-column prop="channelName" label="渠道名称" width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="channelKey" label="渠道key" width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="fullCode" label="完整渠道编码">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="address" label="渠道类别"> </el-table-column>
|
|
|
- <el-table-column prop="channelStatus" label="渠道形态">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="channelStatus" label="状态"> </el-table-column>
|
|
|
-
|
|
|
- <el-table-column prop="onlineTime" label="生效时间"> </el-table-column>
|
|
|
- <el-table-column prop="channelCode" label="操作">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-button @click="toEdit(row.id, 'erji')" size="mini" type="text" icon="el-icon-edit">编辑</el-button>
|
|
|
- <el-button @click="checkpushdata(row)" size="mini" type="text" icon="el-icon-edit">查询同步</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-plus" @click="copy(row)">复制链接</el-button>
|
|
|
- <el-button @click="giveShort(row)" size="mini" type="text" icon="el-icon-share">短链接</el-button>
|
|
|
- <el-button @click="ewm(row)" size="mini" type="text" icon="el-icon-mobile-phone">二维码</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-container>、
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination v-show="total>0" :total="total" :page.sync="tableData.pageNo" :limit.sync="tableData.pageSize" @pagination="pagination" />
|
|
|
+ </el-container>
|
|
|
|
|
|
- <pagination v-show="total>0" :total="total" :page.sync="tableData.pageNo" :limit.sync="tableData.pageSize" @pagination="search" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { exportChannel } from './api'
|
|
|
-import {
|
|
|
- post,
|
|
|
- get,
|
|
|
-
|
|
|
-} from "@/api/common";
|
|
|
+import { post, get, } from "@/api/common";
|
|
|
import QRCode from "qrcodejs2";
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
name: "SchemeEdit",
|
|
|
data () {
|
|
@@ -175,14 +171,13 @@ export default {
|
|
|
channelName: "",
|
|
|
channelPartner: "",
|
|
|
parentId: 0,
|
|
|
- pageNum: 1,
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
|
totalResult: 0,
|
|
|
},
|
|
|
pageNo: 1,
|
|
|
total: 100,
|
|
|
- pageSizes: 20,
|
|
|
+ pageSizes: 10,
|
|
|
initfrom: {
|
|
|
channelName: "",
|
|
|
pageNo: 1,
|
|
@@ -238,7 +233,6 @@ export default {
|
|
|
],
|
|
|
|
|
|
dialogVisible: false,
|
|
|
-
|
|
|
value5: false,
|
|
|
pushdata: false,
|
|
|
pushdataDate: "",
|
|
@@ -256,10 +250,8 @@ export default {
|
|
|
watch: {
|
|
|
value5 (val) {
|
|
|
if (val) {
|
|
|
- console.log(val, "val");
|
|
|
+
|
|
|
get("/channel/log/page", this.channelogParam).then((res) => {
|
|
|
- // console.log(this.channelogParam, "历史记录");
|
|
|
- // console.log(res, "历史记录");
|
|
|
this.channelog = res.data.list;
|
|
|
this.channelogParam.totalResult = res.data.total;
|
|
|
});
|
|
@@ -271,14 +263,19 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created () {
|
|
|
- // console.log(this.initfrom);
|
|
|
- // 在哪呢?
|
|
|
this.getSecondList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 改变页码触发
|
|
|
+ pagination (page) {
|
|
|
+ this.pageNo = page.page;
|
|
|
+ // 重新获取列表数据
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+
|
|
|
//重置
|
|
|
reset () {
|
|
|
-
|
|
|
+ this.searchForm = {}
|
|
|
},
|
|
|
|
|
|
//获取列表
|
|
@@ -288,13 +285,11 @@ export default {
|
|
|
get("/channel/info/get", {
|
|
|
id: this.$route.query.id,
|
|
|
}).then((res) => {
|
|
|
- // console.log(res, "一级列表详情");
|
|
|
this.content = res.data;
|
|
|
- this.total = res.data.list.length;
|
|
|
+ this.total = res.data.total;
|
|
|
|
|
|
});
|
|
|
this.init();
|
|
|
- // console.log(this.$route.query.id);
|
|
|
},
|
|
|
|
|
|
pagination (page) {
|
|
@@ -302,14 +297,20 @@ export default {
|
|
|
// 重新获取列表数据
|
|
|
this.getSecondList();
|
|
|
},
|
|
|
+ //搜索按钮
|
|
|
search () {
|
|
|
- get("/channel/info/listChannels", this.searchForm).then((res) => {
|
|
|
- console.log(res);
|
|
|
- this.tableData = res.data.list
|
|
|
- this.total = res.data.list.length;
|
|
|
- console.log(res);
|
|
|
+ if (!this.searchForm.channelName || !this.searchForm.channelPartner) {
|
|
|
+ this.$message.error("请输入内容")
|
|
|
+ } else {
|
|
|
+ get("/channel/info/listChannels", this.searchForm).then((res) => {
|
|
|
+
|
|
|
+ this.tableData = res.data.list
|
|
|
+ this.total = res.data.list.length;
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
- });
|
|
|
},
|
|
|
|
|
|
// 一级编辑
|
|
@@ -342,9 +343,7 @@ export default {
|
|
|
//短链接
|
|
|
giveShort (row) {
|
|
|
let stUrl = row.shortUrl;
|
|
|
- // console.log(row);
|
|
|
if (stUrl) {
|
|
|
- // console.log(111);
|
|
|
let oInput = document.createElement("input");
|
|
|
oInput.value = `http://v.mige.tv/${stUrl}`;
|
|
|
document.body.appendChild(oInput);
|
|
@@ -356,14 +355,11 @@ export default {
|
|
|
});
|
|
|
oInput.remove();
|
|
|
} else {
|
|
|
- // console.log(222);
|
|
|
let data = {
|
|
|
channel: row.channelKey,
|
|
|
longUrl: `https://operation.mige.tv/a/#/${row.channelKey}`,
|
|
|
};
|
|
|
- // console.log(data);
|
|
|
post("/channel/info/shorturl", data).then((res) => {
|
|
|
- // console.log(res);
|
|
|
let resUrl = res.data.shortCode;
|
|
|
let oInput = document.createElement("input");
|
|
|
oInput.value = `http://v.mige.tv/${resUrl}`;
|
|
@@ -388,43 +384,33 @@ export default {
|
|
|
this.$download.excel(response, '渠道数据.xlsx');
|
|
|
})
|
|
|
},
|
|
|
- handlePageChange ({ currentPage, pageSize }) {
|
|
|
- this.searchForm.pageNum = currentPage;
|
|
|
- this.searchForm.pageSize = pageSize;
|
|
|
- this.init();
|
|
|
- },
|
|
|
- handlePageChange ({
|
|
|
- currentPage,
|
|
|
- pageSize
|
|
|
- }) {
|
|
|
- this.searchForm.pageNum = currentPage;
|
|
|
- this.searchForm.pageSize = pageSize;
|
|
|
- this.init();
|
|
|
- },
|
|
|
+
|
|
|
+ //历史记录分页
|
|
|
handlePageChangeChannelog ({
|
|
|
currentPage,
|
|
|
pageSize
|
|
|
}) {
|
|
|
- this.channelogParam.pageNum = currentPage;
|
|
|
+ this.channelogParam.pageNo = currentPage;
|
|
|
this.channelogParam.pageSize = pageSize;
|
|
|
get("/channelInfo/channelogpage", this.channelogParam).then((res) => {
|
|
|
+
|
|
|
this.channelog = res.data.list;
|
|
|
this.channelogParam.totalResult = res.data.total;
|
|
|
});
|
|
|
},
|
|
|
+ //获取二级列表
|
|
|
init () {
|
|
|
get("/channel/info/listChannels", this.initfrom).then((res) => {
|
|
|
- // console.log(this.$route.query.id);
|
|
|
let secondList = res.data.list.filter((item) => {
|
|
|
return item.parentId == this.$route.query.id;
|
|
|
});
|
|
|
+
|
|
|
this.tableData = secondList;
|
|
|
- this.total = res.data.total;
|
|
|
+ this.total = secondList.length;
|
|
|
this.oldform = secondList;
|
|
|
- // console.log(this.tableData, "一级下的二级");
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ //历史记录搜索
|
|
|
searchEvent () {
|
|
|
get("/channelInfo/channelogpage", this.channelogParam).then((res) => {
|
|
|
this.channelog = res.data.list;
|
|
@@ -442,21 +428,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- // onSubmit() {
|
|
|
- // post(
|
|
|
- // "/channelInfo/pushdata?beginTime=" +
|
|
|
- // this.pushdataDate[0] +
|
|
|
- // "&endTime=" +
|
|
|
- // this.pushdataDate[1],
|
|
|
- // {}
|
|
|
- // ).then((res) => {
|
|
|
- // this.$message({
|
|
|
- // message: res.message,
|
|
|
- // type: "success",
|
|
|
- // });
|
|
|
- // this.pushdata = false;
|
|
|
- // });
|
|
|
- // },
|
|
|
+
|
|
|
checkpushdata (e) {
|
|
|
get("/channelInfo/detail", {
|
|
|
id: e.id,
|
|
@@ -482,53 +454,15 @@ export default {
|
|
|
"&endTime=" +
|
|
|
this.pushdataDate[1], {}
|
|
|
).then((res) => {
|
|
|
- // console.log(res);
|
|
|
this.$message({
|
|
|
message: channel.channelName + "同步成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
- // console.log("success");
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- // dateNew(timestamp) {
|
|
|
- // var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
|
|
|
- // var Y = date.getFullYear() + "-";
|
|
|
- // var M =
|
|
|
- // (date.getMonth() + 1 < 10
|
|
|
- // ? "0" + (date.getMonth() + 1)
|
|
|
- // : date.getMonth() + 1) + "-";
|
|
|
- // // var D = date.getDate() + ' ';
|
|
|
- // var D =
|
|
|
- // (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
|
|
|
- // var h = date.getHours() + ":";
|
|
|
- // var m = date.getMinutes() + ":";
|
|
|
- // var s = date.getSeconds();
|
|
|
- // return Y + M + D + h + m + s;
|
|
|
- // },
|
|
|
-
|
|
|
- // editClosedEvent({ row, column }) {
|
|
|
- // const $table = this.$refs.xTable;
|
|
|
- // const field = column.property;
|
|
|
- // const cellValue = row[field];
|
|
|
- // // 判断单元格值是否被修改
|
|
|
- // if ($table.isUpdateByRow(row, field)) {
|
|
|
- // setTimeout(() => {
|
|
|
- // let param = {};
|
|
|
- // param[field] = cellValue;
|
|
|
- // post("/channelInfo/update/" + row.id, row).then((res) => {
|
|
|
- // this.$message({
|
|
|
- // message: res.message,
|
|
|
- // type: "success",
|
|
|
- // });
|
|
|
- // });
|
|
|
- // // 局部更新单元格为已保存状态
|
|
|
- // $table.reloadRow(row, null, field);
|
|
|
- // }, 300);
|
|
|
- // }
|
|
|
- // },
|
|
|
|
|
|
add (e, type, channelName) {
|
|
|
this.$router.push(
|