Commit 3bdef470 authored by 徐一鸣's avatar 徐一鸣

技术支持fixed

parent 9b53e9f0
...@@ -246,8 +246,9 @@ export default { ...@@ -246,8 +246,9 @@ export default {
} }
.list_img { .list_img {
flex-shrink: 0; flex-shrink: 0;
width: 26px;
height: 26px; height: 26px;
border-radius: 13px; border-radius: 50%;
} }
.list_text { .list_text {
flex-grow: 1; flex-grow: 1;
......
...@@ -124,6 +124,11 @@ export default { ...@@ -124,6 +124,11 @@ export default {
}); });
}, },
selectSortType(type) { selectSortType(type) {
/* if (this.sortType === type) {
return;
} */
this.currentPage = 1;
this.sortType = type; this.sortType = type;
this.getAnwerList(); this.getAnwerList();
}, },
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<el-breadcrumb-item to="/technical_support/doc_manage"> <el-breadcrumb-item to="/technical_support/doc_manage">
开发文档 开发文档
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item> 文档编辑 - {{ title }} </el-breadcrumb-item> <el-breadcrumb-item> 文档编辑 </el-breadcrumb-item>
<el-breadcrumb-item> {{ title }} </el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-breadcrumb-item to="/technical_support"> <el-breadcrumb-item to="/technical_support">
技术支持 技术支持
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item to="/technical_support/doc"> <el-breadcrumb-item :to="parentPath">
开发文档 开发文档
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item> <el-breadcrumb-item>
...@@ -31,6 +31,12 @@ export default { ...@@ -31,6 +31,12 @@ export default {
components: { components: {
DocWidthNav, DocWidthNav,
}, },
props: {
parentPath: {
type: String,
default: "",
},
},
data() { data() {
return { return {
title: "", title: "",
...@@ -60,6 +66,7 @@ export default { ...@@ -60,6 +66,7 @@ export default {
}, },
}, },
created() { created() {
this.title = this.typeText;
this.getContent(); this.getContent();
}, },
methods: { methods: {
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
title="开发文档" title="开发文档"
imgSrc="tool_ic_kaifawendang" imgSrc="tool_ic_kaifawendang"
:nav-list="navList" :nav-list="navList"
:title-path="navList[0] && navList[0].path" :title-path="activePath"
style="width: 250px;" style="width: 250px;"
></side-nav-bar> ></side-nav-bar>
<div class="main_container"> <div class="main_container">
<router-view :key="$route.params.type + $route.params.id" /> <router-view :parent-path="activePath" :key="$route.params.type + $route.params.id" />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
SDK管理 SDK管理
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item> <el-breadcrumb-item>
SDK示例编辑 - {{ detail.example_name }} SDK示例编辑
</el-breadcrumb-item>
<el-breadcrumb-item>
{{ detail.example_name }}
</el-breadcrumb-item> </el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
...@@ -61,7 +64,7 @@ export default { ...@@ -61,7 +64,7 @@ export default {
}, },
methods: { methods: {
cancelAction() { cancelAction() {
this.$router.push("/technical_support/sdk_manage"); this.$router.push("/technical_support/sdk_manage/example");
}, },
submitAction() { submitAction() {
this.$http this.$http
......
...@@ -330,16 +330,17 @@ export default { ...@@ -330,16 +330,17 @@ export default {
let ids = []; let ids = [];
this.selection.forEach((item) => { this.selection.forEach((item) => {
names.push(item.example_name); names.push("" + item.example_name + "");
ids.push(item.id); ids.push(item.id);
}); });
this.deleteDialogInfo.msg = `您确认要删除${names.join("")}吗?`; this.deleteDialogInfo.msg = `您确认要删除${names.join("")}吗?`;
this.deleteDialogInfo.submit = () => { this.deleteDialogInfo.submit = () => {
this.deleteRequest(ids); this.deleteRequest(ids);
}; };
this.$refs.deleteDialog.show(); this.$refs.deleteDialog.show();
} else { } else {
this.$message.closeAll();
this.$message.warning("您尚未选中任何SDK示例"); this.$message.warning("您尚未选中任何SDK示例");
} }
}, },
...@@ -370,7 +371,7 @@ export default { ...@@ -370,7 +371,7 @@ export default {
this.$refs.detailDialog.show(); this.$refs.detailDialog.show();
}, },
deleteItem(item) { deleteItem(item) {
this.deleteDialogInfo.msg = `确认删除${item.example_name}吗?`; this.deleteDialogInfo.msg = `确认删除${item.example_name}吗?`;
this.deleteDialogInfo.submit = () => { this.deleteDialogInfo.submit = () => {
this.deleteRequest([item.id]); this.deleteRequest([item.id]);
}; };
......
...@@ -287,12 +287,13 @@ export default { ...@@ -287,12 +287,13 @@ export default {
ids.push(item.id); ids.push(item.id);
}); });
this.deleteDialogInfo.msg = `您确认要删除${names.join("")}吗?`; this.deleteDialogInfo.msg = `您确认要删除${names.join("")}吗?`;
this.deleteDialogInfo.submit = () => { this.deleteDialogInfo.submit = () => {
this.deleteRequest(ids); this.deleteRequest(ids);
}; };
this.$refs.deleteDialog.show(); this.$refs.deleteDialog.show();
} else { } else {
this.$message.closeAll();
this.$message.warning("您尚未选中任何SDK类型"); this.$message.warning("您尚未选中任何SDK类型");
} }
}, },
......
This diff is collapsed.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
style="width: 250px;" style="width: 250px;"
></side-nav-bar> ></side-nav-bar>
<div class="main_container"> <div class="main_container">
<router-view :key="$route.params.type + $route.params.id" /> <router-view :parent-path="activePath" :key="$route.params.type + $route.params.id" />
</div> </div>
</div> </div>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment