| | |
| | | |
| | | <el-table-column label="大小" prop="VideoSize" sortable> |
| | | <template slot-scope="scope" style="cursor: pointer"> |
| | | <div>{{ Math.round((+scope.row.VideoSize) / (1024*1024)) + " MB" }}</div> |
| | | <div> |
| | | {{ Math.round(+scope.row.VideoSize / (1024 * 1024)) + " MB" }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="视频时间" prop="StartTime" sortable></el-table-column> |
| | | <el-table-column |
| | | label="视频时间" |
| | | prop="StartTime" |
| | | sortable |
| | | ></el-table-column> |
| | | <!-- <el-table-column label="创建日期" prop="VideoCreateDate" sortable></el-table-column> --> |
| | | |
| | | <el-table-column label="操作"> |
| | |
| | | this.filterSearchData(); |
| | | }, |
| | | //二级查询 |
| | | filterSearchData() { |
| | | filterSearchData(val) { |
| | | let _this = this; |
| | | let isFollow = ""; |
| | | if (this.IsFollow === "") { |
| | | isFollow = ""; |
| | | } else if (!!this.IsFollow) { |
| | | isFollow = "1"; |
| | | } else { |
| | | isFollow = "0"; |
| | | } |
| | | let query = { |
| | | KeyWord: this.keyword, |
| | | StartDate: this.searchTime[0], |
| | |
| | | PageSize: |
| | | this.showType == "list" ? this.tablePageSize : this.tabPageSize, |
| | | IsDetail: this.showType == "list", |
| | | IsFollow: isFollow, |
| | | IsFollow: this.IsFollow ? "0" : "1", |
| | | IsOperate: this.IsOperate, |
| | | }; |
| | | let filterQuerys = []; |
| | |
| | | IsFollow: this.IsFollow, |
| | | IsOperate: this.IsOperate, |
| | | }; |
| | | let filterQuerys = []; |
| | | let filterQuerys = []; |
| | | this.checkedConfigs.forEach((config) => { |
| | | let checkedOpts = config.data.filter((option) => option.isChecked); |
| | | if (checkedOpts.length) { |
| | |
| | | toggleFollow(data) { |
| | | data.IsFollow == "0" ? (data.IsFollow = "1") : (data.IsFollow = "0"); |
| | | updateFollow({ |
| | | id : data.id, |
| | | id: data.id, |
| | | IsFollow: data.IsFollow, |
| | | }).then((res) => { |
| | | this.$notify({ |
| | | type: "success", |
| | | message: data.IsFollow == "0"? "已添加关注!":"已取消关注!", |
| | | message: data.IsFollow == "0" ? "已添加关注!" : "已取消关注!", |
| | | }); |
| | | }); |
| | | }, |