diff --git a/package-lock.json b/package-lock.json
index 3091557..5eb7b50 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2573,6 +2573,16 @@
"integrity": "sha1-sEM9C06chH7xiGik7xb9X8gnHEg=",
"dev": true
},
+ "clipboard": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmmirror.com/clipboard/download/clipboard-2.0.8.tgz",
+ "integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==",
+ "requires": {
+ "good-listener": "^1.2.2",
+ "select": "^1.1.2",
+ "tiny-emitter": "^2.0.0"
+ }
+ },
"cliui": {
"version": "7.0.4",
"resolved": "https://registry.npm.taobao.org/cliui/download/cliui-7.0.4.tgz?cache=0&sync_timestamp=1604880226973&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-7.0.4.tgz",
@@ -3033,6 +3043,11 @@
"object-keys": "^1.0.12"
}
},
+ "delegate": {
+ "version": "3.2.0",
+ "resolved": "https://registry.nlark.com/delegate/download/delegate-3.2.0.tgz",
+ "integrity": "sha1-tmtxwxWFIuirV0T3INjKDCr1kWY="
+ },
"detect-file": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/detect-file/download/detect-file-1.0.0.tgz",
@@ -4018,6 +4033,14 @@
"type-fest": "^0.20.2"
}
},
+ "good-listener": {
+ "version": "1.2.2",
+ "resolved": "https://registry.nlark.com/good-listener/download/good-listener-1.2.2.tgz",
+ "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=",
+ "requires": {
+ "delegate": "^3.1.2"
+ }
+ },
"graceful-fs": {
"version": "4.2.8",
"resolved": "https://registry.nlark.com/graceful-fs/download/graceful-fs-4.2.8.tgz",
@@ -5715,6 +5738,11 @@
"integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=",
"dev": true
},
+ "select": {
+ "version": "1.1.2",
+ "resolved": "https://registry.nlark.com/select/download/select-1.1.2.tgz",
+ "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0="
+ },
"semver": {
"version": "7.3.5",
"resolved": "https://registry.nlark.com/semver/download/semver-7.3.5.tgz",
@@ -6095,6 +6123,11 @@
"readable-stream": "3"
}
},
+ "tiny-emitter": {
+ "version": "2.1.0",
+ "resolved": "https://registry.nlark.com/tiny-emitter/download/tiny-emitter-2.1.0.tgz",
+ "integrity": "sha1-HRpW7fxRxD6GPLtTgqcjMONVVCM="
+ },
"tmp": {
"version": "0.0.33",
"resolved": "https://registry.npm.taobao.org/tmp/download/tmp-0.0.33.tgz",
@@ -6527,6 +6560,14 @@
"@vue/shared": "3.2.20"
}
},
+ "vue-clipboard3": {
+ "version": "1.0.1",
+ "resolved": "https://registry.nlark.com/vue-clipboard3/download/vue-clipboard3-1.0.1.tgz",
+ "integrity": "sha1-OeMfv0HxHTcBszcuOKf7g7SEeWo=",
+ "requires": {
+ "clipboard": "^2.0.6"
+ }
+ },
"vue-demi": {
"version": "0.11.4",
"resolved": "https://registry.nlark.com/vue-demi/download/vue-demi-0.11.4.tgz",
diff --git a/package.json b/package.json
index 6644b10..ece90bc 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"vite-plugin-compression": "^0.3.5",
"vite-plugin-windicss": "^1.4.11",
"vue": "^3.2.16",
+ "vue-clipboard3": "^1.0.1",
"vue-router": "^4.0.12",
"vuex": "^4.0.2",
"windicss": "^3.1.9"
diff --git a/src/components/breadcrumb.vue b/src/components/breadcrumb.vue
new file mode 100644
index 0000000..6b56508
--- /dev/null
+++ b/src/components/breadcrumb.vue
@@ -0,0 +1,19 @@
+
+
+
+ {{
+ item.title
+ }}
+ {{ item.title }}
+
+
+
+
+
diff --git a/src/components/leftMenu.vue b/src/components/leftMenu.vue
index f5e4ed9..4658b8d 100644
--- a/src/components/leftMenu.vue
+++ b/src/components/leftMenu.vue
@@ -1,29 +1,32 @@
-
+
+
diff --git a/src/components/listSearchBar.vue b/src/components/listSearchBar.vue
new file mode 100644
index 0000000..ab10aa0
--- /dev/null
+++ b/src/components/listSearchBar.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
diff --git a/src/components/listTable.vue b/src/components/listTable.vue
new file mode 100644
index 0000000..1c262ca
--- /dev/null
+++ b/src/components/listTable.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+ 配置
+ 查看
+
+
+
+
+
+
+
+
diff --git a/src/components/navbar.vue b/src/components/navbar.vue
index 36de62b..4734d2f 100644
--- a/src/components/navbar.vue
+++ b/src/components/navbar.vue
@@ -17,7 +17,7 @@
}}
diff --git a/src/components/searchBar.vue b/src/components/searchBar.vue
index f5de585..60d8c7d 100644
--- a/src/components/searchBar.vue
+++ b/src/components/searchBar.vue
@@ -26,7 +26,7 @@
- 所属行业:
+ 所属分类:
import('views/index-list/plugin-shop.vue'),
},
- {
- path: '/store/home/add-plugin',
- name: 'add-plugin',
- component: () => import('views/index-list/add-plugin.vue'),
- },
{
path: '/store/home/console-desk',
name: 'console-desk',
component: () => import('views/index-list/console-desk.vue'),
children: [
{
- path: '/store/home/console-desk/plugin-shop',
- name: 'desk-plugin-shop',
- component: () => import('views/index-list/plugin-shop.vue'),
+ path: '/store/home/console-desk/plugin-list',
+ name: 'desk-plugin-list',
+ component: () => import('views/index-list/plugin-list.vue'),
},
{
path: '/store/home/console-desk/add-plugin',
@@ -81,8 +76,14 @@ const router = createRouter({
},
],
},
+ {
+ path: '/store/home/business-detail',
+ name: 'business-detail',
+ component: () => import('views/index-list/business-detail.vue'),
+ },
],
},
+
...user,
],
});
diff --git a/src/store/index.js b/src/store/index.js
index ece89b0..6393800 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,8 +1,9 @@
import { createStore } from 'vuex';
import user from './user';
+import plugin from './plugin';
export default createStore({
- modules: { user },
+ modules: { user, plugin },
state: { menu: { show: true, collapse: false } },
getters: {},
mutations: {
diff --git a/src/store/plugin.js b/src/store/plugin.js
new file mode 100644
index 0000000..32a2678
--- /dev/null
+++ b/src/store/plugin.js
@@ -0,0 +1,26 @@
+export default {
+ namespaced: true,
+ state: { leftIndex: 3, businessInfo: {} },
+ getters: {},
+ mutations: {
+ /**
+ * 设置控制台左侧菜单栏
+ * @param {*} state
+ * @param {number} data
+ */
+ setLeftIndex(state, data) {
+ state.leftIndex = data;
+ },
+
+ /**
+ * 设置当前查看的业务信息
+ * @param {*} state
+ * @param {object|null} data
+ */
+ setBusinessInfo(state, data) {
+ state.businessInfo = data;
+ },
+ },
+
+ actions: {},
+};
diff --git a/src/views/index-list/add-business.vue b/src/views/index-list/add-business.vue
index 8bc85f6..40ff08e 100644
--- a/src/views/index-list/add-business.vue
+++ b/src/views/index-list/add-business.vue
@@ -1,3 +1,116 @@
-
创建业务
+
+
+
配置业务
+
+
+
+
+ 业务名称:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是否开启debug模式
+
+ 发布
+ 重置
+
+
+
+
-
+
+
+
diff --git a/src/views/index-list/add-plugin.vue b/src/views/index-list/add-plugin.vue
index 3e99a28..e9c3556 100644
--- a/src/views/index-list/add-plugin.vue
+++ b/src/views/index-list/add-plugin.vue
@@ -1,52 +1,85 @@
-
上传插件
-
-
-
-
-
- 插件名称 ①:
-
-
-
-
-
-
-
-
-
-
+ 上传插件
+
+
+
+
+ 插件名称 ①:
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
- 是否压缩代码
+
+
+
+ 上传轮播图 ①:
+
+
+
+
+
+
+
+
+
+
+
+
+
发布
重置
@@ -57,30 +90,35 @@
-
diff --git a/src/views/index-list/business-detail.vue b/src/views/index-list/business-detail.vue
new file mode 100644
index 0000000..7cdfafd
--- /dev/null
+++ b/src/views/index-list/business-detail.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
业务名称
+
+
+
+ APPID: {{ businessInfo.appId }}
+
+
+
APPSecret: {{ businessInfo.secret }}
+
简介: {{ businessInfo.description }}
+
+
+ {{ item.name }}
+
+
行业: {{ businessInfo.appId }}
+
+
+
创建时间: {{ businessInfo.createTime }}
+
最新更新时间: {{ businessInfo.createTime }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/index-list/business-list.vue b/src/views/index-list/business-list.vue
index 1b620d3..6dc0670 100644
--- a/src/views/index-list/business-list.vue
+++ b/src/views/index-list/business-list.vue
@@ -1,9 +1,24 @@
-
-
业务列表
+
-
+
diff --git a/src/views/index-list/plugin-list.vue b/src/views/index-list/plugin-list.vue
new file mode 100644
index 0000000..aea2a3a
--- /dev/null
+++ b/src/views/index-list/plugin-list.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
diff --git a/src/views/index-list/plugin-shop.vue b/src/views/index-list/plugin-shop.vue
index 61128d9..d112625 100644
--- a/src/views/index-list/plugin-shop.vue
+++ b/src/views/index-list/plugin-shop.vue
@@ -1,50 +1,17 @@
-
-
![]()
-
-
- {{ list.name }} {{ list.versions }}
-
-
- 描述: {{ list.intro }}
-
-
- {{ item.name }}
-
-
- 行业: {{ list.industryName }} 分类: {{ list.sortName }}
-
-
- 更新日期: {{ list.updateTime }} 作者: {{ list.authorName }}
-
-
- 下载源代码
- 下载示例代码
- 添加到业务
-
-
-
-
+
-
+