|
@@ -26,7 +26,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="filt-box">
|
|
|
- <div class="filt-item">
|
|
|
+ <!-- <div class="filt-item">
|
|
|
<label>类型</label>
|
|
|
<ul>
|
|
|
<li
|
|
@@ -42,9 +42,9 @@
|
|
|
{{ items.label }}
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<template v-if="itemType === 'kecheng'">
|
|
|
- <div class="filt-item">
|
|
|
+ <!-- <div class="filt-item">
|
|
|
<label>学段</label>
|
|
|
<ul>
|
|
|
<li
|
|
@@ -65,7 +65,7 @@
|
|
|
{{ items.study_phase_name }}
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="filt-item">
|
|
|
<label>类别</label>
|
|
|
<ul>
|
|
@@ -88,6 +88,23 @@
|
|
|
</template>
|
|
|
<template v-else-if="itemType === 'baozhi'">
|
|
|
<div class="filt-item">
|
|
|
+ <label>订阅</label>
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ :class="[itemy.value === baozhiForm.orderValue ? 'active' : '']"
|
|
|
+ v-for="(itemy, indexy) in orderList"
|
|
|
+ :key="indexy"
|
|
|
+ @click="handleClick('baozhiForm', 'orderValue', itemy.value)"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ v-if="itemy.value === baozhiForm.orderValue"
|
|
|
+ class="el-icon-success"
|
|
|
+ ></i>
|
|
|
+ {{ itemy.label }}
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="filt-item">
|
|
|
<label>年份</label>
|
|
|
<ul>
|
|
|
<li
|
|
@@ -104,7 +121,7 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="filt-item">
|
|
|
+ <!-- <div class="filt-item">
|
|
|
<label>学段</label>
|
|
|
<ul>
|
|
|
<li
|
|
@@ -129,7 +146,7 @@
|
|
|
{{ items.study_phase_name }}
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="filt-item">
|
|
|
<label>类型</label>
|
|
|
<ul>
|
|
@@ -168,7 +185,7 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="filt-item">
|
|
|
+ <!-- <div class="filt-item">
|
|
|
<label>学段</label>
|
|
|
<ul>
|
|
|
<li
|
|
@@ -193,7 +210,7 @@
|
|
|
{{ items.study_phase_name }}
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</template>
|
|
|
<template v-else-if="itemType === 'huakan'">
|
|
|
<div class="filt-item">
|
|
@@ -330,7 +347,24 @@ export default {
|
|
|
total_count: 0,
|
|
|
loading: false,
|
|
|
tableLoading: false,
|
|
|
- itemType: "baozhi",
|
|
|
+ itemType:
|
|
|
+ window.localStorage.getItem("albumType") * 1 === 0
|
|
|
+ ? "kecheng"
|
|
|
+ : window.localStorage.getItem("albumType") * 1 === 2
|
|
|
+ ? "baozhi"
|
|
|
+ : window.localStorage.getItem("albumType") * 1 === 3
|
|
|
+ ? "jingdu"
|
|
|
+ : "huakan",
|
|
|
+ orderList: [
|
|
|
+ {
|
|
|
+ label: "非订阅",
|
|
|
+ value: "false",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订阅",
|
|
|
+ value: "true",
|
|
|
+ },
|
|
|
+ ],
|
|
|
typeSelectList: [
|
|
|
{
|
|
|
label: "报纸",
|
|
@@ -430,18 +464,23 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
courseForm: {
|
|
|
- studyValue: -1,
|
|
|
+ studyValue: window.localStorage.getItem("albumStudyPhase")
|
|
|
+ ? window.localStorage.getItem("albumStudyPhase") * 1
|
|
|
+ : -1,
|
|
|
categoryValue: "LB",
|
|
|
},
|
|
|
baozhiForm: {
|
|
|
yearValue: -1,
|
|
|
- studyValue: window.localStorage.getItem("baozhiFormstudyValue")
|
|
|
- ? window.localStorage.getItem("baozhiFormstudyValue") * 1
|
|
|
+ studyValue: window.localStorage.getItem("albumStudyPhase")
|
|
|
+ ? window.localStorage.getItem("albumStudyPhase") * 1
|
|
|
: 11,
|
|
|
typeValue: 0,
|
|
|
+ orderValue: "false",
|
|
|
},
|
|
|
jingduForm: {
|
|
|
- studyValue: 11,
|
|
|
+ studyValue: window.localStorage.getItem("albumStudyPhase")
|
|
|
+ ? window.localStorage.getItem("albumStudyPhase") * 1
|
|
|
+ : 11,
|
|
|
categoryValue: "",
|
|
|
},
|
|
|
huakanForm: {
|
|
@@ -641,9 +680,9 @@ export default {
|
|
|
value === "LB"
|
|
|
) {
|
|
|
this.courseForm.studyValue = window.localStorage.getItem(
|
|
|
- "courseFormstudyValue"
|
|
|
+ "albumStudyPhase"
|
|
|
)
|
|
|
- ? window.localStorage.getItem("courseFormstudyValue") * 1
|
|
|
+ ? window.localStorage.getItem("albumStudyPhase") * 1
|
|
|
: -1;
|
|
|
}
|
|
|
if (
|
|
@@ -686,49 +725,6 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 学段列表
|
|
|
- getStudyList() {
|
|
|
- let MethodName = "/OrgServer/DictManager/GetStudyPhaseList";
|
|
|
- getLogin(MethodName, {})
|
|
|
- .then((res) => {
|
|
|
- if (res.status === 1) {
|
|
|
- this.baozhiStudyList = res.study_phase_list;
|
|
|
- this.baozhiForm.studyValue = window.localStorage.getItem(
|
|
|
- "baozhiFormstudyValue"
|
|
|
- )
|
|
|
- ? window.localStorage.getItem("baozhiFormstudyValue") * 1
|
|
|
- : res.study_phase_list[0]
|
|
|
- ? res.study_phase_list[0].study_phase
|
|
|
- : 11;
|
|
|
- if (this.itemType === "baozhi") {
|
|
|
- this.titleName = window.localStorage.getItem(
|
|
|
- "baozhiFormstudyValueName"
|
|
|
- )
|
|
|
- ? window.localStorage.getItem("baozhiFormstudyValueName")
|
|
|
- : res.study_phase_list[0]
|
|
|
- ? res.study_phase_list[0].study_phase_name
|
|
|
- : "";
|
|
|
- } else if (this.itemType === "jingdu") {
|
|
|
- this.titleName = window.localStorage.getItem(
|
|
|
- "jingduFormstudyValueName"
|
|
|
- )
|
|
|
- ? window.localStorage.getItem("jingduFormstudyValueName")
|
|
|
- : res.study_phase_list[0]
|
|
|
- ? res.study_phase_list[0].study_phase_name
|
|
|
- : "";
|
|
|
- } else if (this.itemType === "kecheng") {
|
|
|
- this.titleName = window.localStorage.getItem(
|
|
|
- "courseFormstudyValueName"
|
|
|
- )
|
|
|
- ? window.localStorage.getItem("courseFormstudyValueName")
|
|
|
- : res.study_phase_list[0]
|
|
|
- ? res.study_phase_list[0].study_phase_name
|
|
|
- : "";
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
// 获取年份列表
|
|
|
getYearList() {
|
|
|
this.yearList = [
|
|
@@ -808,7 +804,6 @@ export default {
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
this.getTableHeight();
|
|
|
- this.getStudyList();
|
|
|
this.getYearList();
|
|
|
this.getLabelList();
|
|
|
this.getList();
|