|
@@ -12,16 +12,20 @@
|
|
|
text-color="#000"
|
|
|
active-text-color="#FF9900"
|
|
|
>
|
|
|
- <el-menu-item index="TEXTBOOK">教师用书</el-menu-item>
|
|
|
+ <el-menu-item index="TEXTBOOK">教辅资料</el-menu-item>
|
|
|
<el-menu-item index="TEACHING">教研资料</el-menu-item>
|
|
|
+ <el-menu-item index="ToolBook">工具书</el-menu-item>
|
|
|
+
|
|
|
</el-menu>
|
|
|
<div class="seek" @keyup="keyDownSeekData">
|
|
|
- <el-input
|
|
|
+ <input
|
|
|
+ type="text"
|
|
|
+ name=""
|
|
|
+ id=""
|
|
|
+ placeholder="搜索课程"
|
|
|
v-model="SeekName"
|
|
|
- style="width: 300px"
|
|
|
- placeholder="请输入内容"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
+ @change="SeekName = SeekName.trim()"
|
|
|
+ />
|
|
|
<img
|
|
|
@click="gotoSeekResult"
|
|
|
src="../../assets/teacherdev/Group2149.png"
|
|
@@ -38,6 +42,9 @@
|
|
|
<div id="TEACHING" v-if="teachingList">
|
|
|
<Teaching v-if="teachingList.data" :classList="teachingList.data" />
|
|
|
</div>
|
|
|
+ <div id="ToolBook" v-if="toolBookList">
|
|
|
+ <ToolBook v-if="toolBookList.data" :classList="toolBookList.data" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -50,6 +57,8 @@ import Pdf from "@/components/teacher-dev/Pdf";
|
|
|
import Excel from "@/components/teacher-dev/Excel";
|
|
|
import Textbook from "@/components/teacher-dev/Textbook";
|
|
|
import Teaching from "@/components/teacher-dev/Teaching";
|
|
|
+import ToolBook from "@/components/teacher-dev/ToolBook";
|
|
|
+
|
|
|
import Cookies from "js-cookie";
|
|
|
import { VerifyLogin, materiallist } from "@/api/api";
|
|
|
import { getToken } from "../../utils/auth";
|
|
@@ -63,61 +72,19 @@ export default {
|
|
|
Excel,
|
|
|
Teaching,
|
|
|
Textbook,
|
|
|
+ ToolBook,
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
activeIndex: "TEXTBOOK",
|
|
|
navName: "CLASSICAL COURSE",
|
|
|
- classList: [
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.ppt",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.pdf",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.pdf",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.word",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.exceil",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.exceil",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Learn Chinese with Ease-Learn Chinese with",
|
|
|
- price: "19.99",
|
|
|
- coverUrl: "",
|
|
|
- file_name: "123123.ppt",
|
|
|
- },
|
|
|
- ],
|
|
|
SeekName: "",
|
|
|
loading: false,
|
|
|
dataList: null,
|
|
|
textBookList: null, //book数据
|
|
|
teachingList: null, // tea数据
|
|
|
+ toolBookList: null, //工具书
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -159,7 +126,7 @@ export default {
|
|
|
materiallist({
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- tagList: ["TEXTBOOK"],
|
|
|
+ tagList: ["教辅资料"],
|
|
|
keyWord: this.keyWord,
|
|
|
})
|
|
|
.then((res) => {
|
|
@@ -171,7 +138,7 @@ export default {
|
|
|
materiallist({
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- tagList: ["TEACHING"],
|
|
|
+ tagList: ["教研资料"],
|
|
|
keyWord: this.keyWord,
|
|
|
})
|
|
|
.then((res) => {
|
|
@@ -181,6 +148,19 @@ export default {
|
|
|
.catch((res) => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
+ materiallist({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ tagList: ["工具书"],
|
|
|
+ keyWord: this.keyWord,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.toolBookList = res.data;
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
@@ -215,13 +195,25 @@ export default {
|
|
|
min-height: 100vh;
|
|
|
background: #f6f6f6;
|
|
|
.seek {
|
|
|
- position: relative;
|
|
|
+ width: 300px;
|
|
|
+ height: 40px;
|
|
|
+ background: #ffffff;
|
|
|
+ border: 1px solid #d9d9d9;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 8px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 16px;
|
|
|
+ input {
|
|
|
+ width: 90%;
|
|
|
+ border: none;
|
|
|
+ outline: none;
|
|
|
+ margin-left: 5px;
|
|
|
+ }
|
|
|
img {
|
|
|
- width: 24px;
|
|
|
- position: absolute;
|
|
|
- right: 19px;
|
|
|
- top: 7px;
|
|
|
- cursor: pointer;
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
}
|
|
|
}
|
|
|
.nav_title {
|