{{ document?.title || document?.api?.title }}
@@ -37,6 +41,11 @@ export default defineComponent({
documentType: IDocumentType
};
},
+ computed: {
+ id() {
+ return this.$route.params?.id?.toString();
+ }
+ },
methods: {
onClick() {
this.$router.push({
@@ -55,16 +64,23 @@ $height: 35px;
.item {
height: $height;
line-height: $height;
- padding-left: 5px;
+ padding-left: 10px;
cursor: pointer;
border-radius: 5px;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
overflow: hidden;
position: relative;
+ border-left: 3px solid transparent;
&:hover {
background-color: rgba(0, 0, 0, 0.1);
}
+ &.active {
+ border-left: 3px solid var(--el-color-primary);
+ }
+
.link {
color: #333;
.name {
diff --git a/src/i18n/zh/common/button.ts b/src/i18n/zh/common/button.ts
index d94d89d3..d41050e9 100644
--- a/src/i18n/zh/common/button.ts
+++ b/src/i18n/zh/common/button.ts
@@ -21,5 +21,6 @@ export default {
apply: '申请',
refresh: '刷新',
pay: '支付',
- repay: '继续支付'
+ repay: '继续支付',
+ applied: '已申请'
};
diff --git a/src/layouts/Document.vue b/src/layouts/Document.vue
index b4399499..83ebf0b3 100644
--- a/src/layouts/Document.vue
+++ b/src/layouts/Document.vue
@@ -55,6 +55,7 @@ export default {
float: left;
width: 280px;
height: 100%;
+ padding: 30px;
box-shadow: 1px 0 0 #eee;
}
}
diff --git a/src/operators/api/models.ts b/src/operators/api/models.ts
index a1b59a63..01b6da8b 100644
--- a/src/operators/api/models.ts
+++ b/src/operators/api/models.ts
@@ -53,6 +53,7 @@ export interface IApi {
introduction?: string;
apply_count?: number;
free_count?: number;
+ applied?: boolean;
tags?: string[];
request: IRequest;
request_id: string;
diff --git a/src/pages/console/order/Detail.vue b/src/pages/console/order/Detail.vue
index 49cc4b3a..9d374066 100644
--- a/src/pages/console/order/Detail.vue
+++ b/src/pages/console/order/Detail.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/src/pages/document/Detail.vue b/src/pages/document/Detail.vue
index 664e3b8d..726c5f0f 100644
--- a/src/pages/document/Detail.vue
+++ b/src/pages/document/Detail.vue
@@ -1,21 +1,33 @@
-