| | |
| | | <template> |
| | | <div class="titleHeader"> |
| | | <div class="title-left"> |
| | | <span class="title">{{title}}</span> |
| | | |
| | | <!-- <span class="title">{{title}}</span> --> |
| | | <el-menu :default-active="activeIndex" class="el-menu" mode="horizontal" @select="handleMenuSelect"> |
| | | <el-menu-item :index="index" v-for="(item,index) in titles" :key="index">{{ item }}</el-menu-item> |
| | | </el-menu> |
| | | |
| | | <span class="more" v-if="more" @click="getToMore">查看更多</span> |
| | | |
| | | <el-select class="platform" v-if="platform" v-model="platformType" @change="changePlatformType"> |
| | |
| | | <script> |
| | | export default { |
| | | props:{ |
| | | title:{ |
| | | type: String, |
| | | titles:{ |
| | | type: Array, |
| | | default: '' |
| | | }, |
| | | more: { |
| | |
| | | platformType: 1, // 1-抖音,2-快手 |
| | | date: [], |
| | | dateList:[{label:'昨日',value:1},{label:'最近7天',value:7},{label:'最近30天',value:30}], |
| | | type:7 |
| | | type:7, |
| | | activeIndex:0, |
| | | }; |
| | | }, |
| | | mounted(){ |
| | |
| | | this.type = 7 |
| | | this.$emit('change',this.type) |
| | | } |
| | | }, |
| | | //数据类型选择 |
| | | handleMenuSelect(index){ |
| | | this.$emit('menuChange',index) |
| | | } |
| | | } |
| | | }; |
| | |
| | | margin-right: 12px; |
| | | margin-left: 30px; |
| | | } |
| | | .el-menu{ |
| | | font-weight: bold; |
| | | font-size: 16px; |
| | | } |
| | | </style> |
| | |
| | | console.log(res.comment ,res.post ,res.profile) |
| | | if(res.taskProcess) { |
| | | this.finish = true; |
| | | this.showLoading = false; |
| | | } |
| | | }); |
| | | }, 1000 * 20) |
| | |
| | | </el-row> |
| | | </div> |
| | | |
| | | <TitleHeader title="核心数据" @change="handleDateChange" :com-type="2" /> |
| | | <TitleHeader :titles=titles @change="handleDateChange" :com-type="2" /> |
| | | <div class="charts"> |
| | | <!-- 抖音矩阵分发 --> |
| | | <div class="charts-item"> |
| | |
| | | hotTemplateList: [], |
| | | videoPlayVisible: false, |
| | | operateVideoUrl: '', |
| | | titles:["核心数据", "获客数据"] |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | this.$message.success('启动成功'); |
| | | this.$message.success('执行成功'); |
| | | setTimeout(()=> this.dialogTableVisible = true, 1000); |
| | | this.loadLog(); |
| | | }).catch(() =>{ |
| | |
| | | }, |
| | | loadLog(){ |
| | | let data = [{ |
| | | log: '任务启动中...', |
| | | log: '正在启动...', |
| | | date: '2024-09-04 14:30:20', |
| | | }, { |
| | | log: '任务作品采集运行中...', |
| | | log: '任务作品采集启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | }, { |
| | | log: '任务完善用户信息运行中...', |
| | | log: '任务完善用户信息启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | }, { |
| | | log: '任务抖音评论采集运行中...', |
| | | log: '任务抖音评论采集启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | }, { |
| | | log: '任务完善用户信息运行中', |
| | | log: '任务完善用户信息启动中', |
| | | date: '2024-09-04 14:30:20', |
| | | },{ |
| | | log: '任务抖音评论采集运行中...', |
| | | log: '任务抖音评论采集启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | },{ |
| | | log: '所有任务已完成', |
| | | log: '任务抖音评论采集启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | },{ |
| | | log: '任务抖音评论采集启动中...', |
| | | date: '2024-09-04 14:30:20', |
| | | },{ |
| | | log: '任务启动完成', |
| | | date: '2024-09-04 14:30:20', |
| | | }]; |
| | | |
| | | for (let i = 0; i < data.length; i++) { |
| | | var timeInterval = setTimeout(() => { |
| | | this.logData.push(data[i]); |
| | | this.$nextTick(() => { |
| | | const container = document.querySelector('.dialog-box'); |
| | | container.scrollTop = container.scrollHeight; |
| | | }); |
| | | }, 3000 + i * 2000); |
| | | if(i === data.length-1) { |
| | | clearInterval(timeInterval); |
| | | } |
| | | } |
| | | }, |
| | | getDeviceUserData(){ |
| | |
| | | } |
| | | .dialog-box{ |
| | | height: 240px; |
| | | width: 450px; |
| | | overflow-y: auto; |
| | | text-align: center; |
| | | } |
| | | |
| | | .dialog-table { |
| | | width: 420px; |
| | | width: 450px; |
| | | margin: auto; |
| | | } |
| | | </style> |