导出-点击导出,导出文件

  exportList() {
      const token = getStore("Token");
      let options = "";
      // const options = `mStartTime=${this.search.mStartTime}&mEndTime=${this.search.mEndTime}&cStartTime=${this.search.cStartTime}&cEndTime=${this.search.cEndTime}`+
      // `&vStartTime=${this.search.vStartTime}&vEndTime=${this.search.vEndTime}&name=${this.search.name}&channelId=${this.search.channelId}&vvMax=${this.search.vvMax}`+
      // `&vvMin=${this.search.vvMin}&source=${this.search.source}&video_source=${this.search.video_source}&status=${this.search.status}&video_status=${this.search.video_status}`+
      // `&orientation=${this.search.orientation}&id=${this.search.id}&platId=${this.search.platId}&providerId=${this.search.providerId}&providerName=${this.search.providerName}`+
      // `&sortName=${this.search.sortName}&sortType=${this.search.sortType}`;
      for (var i in this.search) {
        options = options + `&${i}=${this.search[i]}`;
      }
      // console.log('options',options)
      const url = `${window.CONFIG.API_URL}/video/list/export?token=${token}${options}`;
      return url;
    },
 
 
     
     exportList() {
            const token = getStore("Token");
            let options = "";
            let result = this.ToAssign()
            for (let i in result) {
                options = options + `&${i}=${result[i]}`;
            }
            const url = `${window.CONFIG.API_URL}${this.expUrl}token=${token}${options}`;
            return url;
        },

 

 
 

posted on 2021-04-13 16:04  执着的烙印  阅读(134)  评论(0编辑  收藏  举报

导航