|  | @@ -92,7 +92,7 @@
 | 
	
		
			
				|  |  |  import Header from "@/components/Header";
 | 
	
		
			
				|  |  |  import HeaderOne from "@/components/teacher-dev/HeaderOne";
 | 
	
		
			
				|  |  |  import Teaching from "@/components/teacher-dev/Teaching";
 | 
	
		
			
				|  |  | -import { materiallist, teacherlist } from "@/api/api";
 | 
	
		
			
				|  |  | +import { materiallistAll, teacherlist } from "@/api/api";
 | 
	
		
			
				|  |  |  import { updateWordPack } from "@/utils/i18n";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    //import引入的组件需要注入到对象中才能使用
 | 
	
	
		
			
				|  | @@ -113,13 +113,14 @@ export default {
 | 
	
		
			
				|  |  |        DataList: null,
 | 
	
		
			
				|  |  |        pageNum: 1,
 | 
	
		
			
				|  |  |        pageSize: 10,
 | 
	
		
			
				|  |  | -      tag: [],
 | 
	
		
			
				|  |  | +      tag: '',
 | 
	
		
			
				|  |  |        SeekSuggest: [],
 | 
	
		
			
				|  |  |        keycode: "",
 | 
	
		
			
				|  |  |        TeacherName: "",
 | 
	
		
			
				|  |  |        orderType: "", // DESC降序 ASC升序
 | 
	
		
			
				|  |  |        orderColumn: "", //1 名称  2 发布时间 3 浏览次数
 | 
	
		
			
				|  |  |        text: "",
 | 
	
		
			
				|  |  | +      orderColumnLis: ['name','updata_time','visit_count']
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    //计算属性 类似于data概念
 | 
	
	
		
			
				|  | @@ -205,17 +206,32 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getdata() {
 | 
	
		
			
				|  |  |        this.loading = true;
 | 
	
		
			
				|  |  | -      materiallist({
 | 
	
		
			
				|  |  | -        pageNum: this.pageNum,
 | 
	
		
			
				|  |  | -        pageSize: this.pageSize,
 | 
	
		
			
				|  |  | -        keyWord: this.keycode,
 | 
	
		
			
				|  |  | -        tagList: this.tag,
 | 
	
		
			
				|  |  | -        orderType: this.orderType,
 | 
	
		
			
				|  |  | -        orderColumn: this.orderColumn,
 | 
	
		
			
				|  |  | -        teacherList: this.TeacherName ? [`${this.TeacherName}`] : [],
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      let data = {
 | 
	
		
			
				|  |  | +        cur_page: this.pageNum,
 | 
	
		
			
				|  |  | +        page_capacity: this.pageSize,
 | 
	
		
			
				|  |  | +        name: this.keycode,
 | 
	
		
			
				|  |  | +        tag: this.tag,
 | 
	
		
			
				|  |  | +        order_column_list: []
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if(this.orderColumn){
 | 
	
		
			
				|  |  | +        let text = this.orderColumnLis[Number(this.orderColumn)-1]
 | 
	
		
			
				|  |  | +        if(this.orderType){
 | 
	
		
			
				|  |  | +            // 升序不传值
 | 
	
		
			
				|  |  | +            if(this.orderType=='ASC'){
 | 
	
		
			
				|  |  | +                data.order_column_list = [text]
 | 
	
		
			
				|  |  | +            }else if(this.orderType=='DESC'){
 | 
	
		
			
				|  |  | +                data.order_column_list = [text + ':desc']
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  | +                data.order_column_list = []
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      materiallistAll(data)
 | 
	
		
			
				|  |  |          .then((res) => {
 | 
	
		
			
				|  |  | -          this.DataList = res.data;
 | 
	
		
			
				|  |  | +          this.DataList = {
 | 
	
		
			
				|  |  | +            data: res.material_list,
 | 
	
		
			
				|  |  | +            total: res.total_count
 | 
	
		
			
				|  |  | +          };
 | 
	
		
			
				|  |  |            this.loading = false;
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .catch((res) => {
 | 
	
	
		
			
				|  | @@ -274,7 +290,7 @@ export default {
 | 
	
		
			
				|  |  |        if(this.$route.query.classify == "TOOLBOOK"){
 | 
	
		
			
				|  |  |          this.text = this.$t("Key555"); //"工具书";
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.tag.push(this.$route.query.classify);
 | 
	
		
			
				|  |  | +      this.tag = this.$route.query.classify;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      if (this.$route.query.keyWord) {
 | 
	
		
			
				|  |  |        this.text = this.$t("Key248"); //"搜索结果";
 |