|
|
@@ -52,6 +52,19 @@
|
|
|
<span>社区</span>
|
|
|
</div>
|
|
|
|
|
|
+ <div
|
|
|
+ class="a-d-t-l-item"
|
|
|
+ :style="
|
|
|
+ tagIndex == 3
|
|
|
+ ? 'background: rgba(226, 238, 255, 1);color: rgba(54, 129, 252, 1)'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ @click="changeTagIndex(3)"
|
|
|
+ >
|
|
|
+ <svg viewBox="0 0 1024 1024" width="16" height="16" :fill="tagIndex == 3 ? 'rgba(54, 129, 252, 1)' : ''"><path d="M924.95 594.07h-109.2v-96.54H539.47v-67.6h120.51c23.29 0 35.05-11.76 35.05-35.05v-279.9c0-23.29-11.76-35.05-35.05-35.05h-279.9c-23.29 0-35.05 11.76-35.05 35.05v279.9c0 23.29 11.76 35.05 35.05 35.05H499.9v67.6H224.3v96.54H99.05c-23.29 0-35.05 11.76-35.05 35.05v279.9c0 23.29 11.76 35.05 35.05 35.05h279.9c23.29 0 35.05-11.76 35.05-35.05v-279.9c0-23.29-11.76-35.05-35.05-35.05H263.41v-61.95h513.45v61.95H645.05c-23.29 0-35.05 11.76-35.05 35.05v279.9c0 23.29 11.76 35.05 35.05 35.05h279.9c23.29 0 35.05-11.76 35.05-35.05v-279.9c0-23.29-11.76-35.05-35.05-35.05z"></path></svg>
|
|
|
+ <span>组织</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div
|
|
|
class="a-d-t-l-item"
|
|
|
:style="
|
|
|
@@ -378,7 +391,7 @@ export default {
|
|
|
tagSubject: "",
|
|
|
tagIndex: 0,
|
|
|
tagBox: 0, //0 列表 1详细 2预览
|
|
|
- dialogTagList: ["社区", "我的", "收藏"],
|
|
|
+ dialogTagList: ["社区", "我的", "收藏", "组织"],
|
|
|
tagSubjectList: [
|
|
|
{ value: "1", label: "语文" },
|
|
|
{ value: "2", label: "数学" },
|
|
|
@@ -399,6 +412,7 @@ export default {
|
|
|
defaultData: null,
|
|
|
templateData: [],
|
|
|
collectData: [],
|
|
|
+ orgData: [],
|
|
|
analysisDetail: null,
|
|
|
pageData: {
|
|
|
nowPage: 1,
|
|
|
@@ -504,6 +518,36 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ getOrgData(flag = true){
|
|
|
+ console.log("getOrgData");
|
|
|
+
|
|
|
+ this.loading = true;
|
|
|
+ if (flag) {
|
|
|
+ this.templateData = [];
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ uid: this.userId,
|
|
|
+ txt: this.text,
|
|
|
+ sub: this.tagSubject,
|
|
|
+ type1: 3
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectClassroomTemplate", params)
|
|
|
+ .then(res => {
|
|
|
+ let _data = res.data[0];
|
|
|
+ if (flag) {
|
|
|
+ this.templateData = _data;
|
|
|
+ }
|
|
|
+ this.orgData = _data;
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error("获取数据失败");
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
getPublicData() {
|
|
|
this.loading = true;
|
|
|
this.templateData = [];
|
|
|
@@ -534,6 +578,8 @@ export default {
|
|
|
this.getMyselfData();
|
|
|
} else if (this.tagIndex == 2) {
|
|
|
this.getCollectData();
|
|
|
+ }else if(this.tagIndex == 3){
|
|
|
+ this.getOrgData();
|
|
|
}
|
|
|
},
|
|
|
// 使用
|