From 82c791bc2d7d66f0d478a2fa2714209ce835295f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 11 May 2022 15:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E4=BC=99=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 33 ++ package.json | 1 + src/components/Sidebar.vue | 5 + src/libs/clipboard.js | 32 ++ src/router/index.js | 5 + src/setting.js | 2 +- src/views/customer/customer.vue | 1 - src/views/parner/index.vue | 58 ++++ src/views/parner/role.vue | 270 ++++++++++++++++ src/views/parner/staff.vue | 524 ++++++++++++++++++++++++++++++++ 10 files changed, 929 insertions(+), 2 deletions(-) create mode 100644 src/libs/clipboard.js create mode 100644 src/views/parner/index.vue create mode 100644 src/views/parner/role.vue create mode 100644 src/views/parner/staff.vue diff --git a/package-lock.json b/package-lock.json index 3146368..9eff37d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2724,6 +2724,16 @@ "integrity": "sha512-tgU3fKwzYjiLEQgPMD9Jt+JjHVL9kW93FiIMX/l7rivvOD4/LL0Mf7gda3+4U2KJBloybwgj5KEoQgGRioMiKQ==", "dev": true }, + "clipboard": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz", + "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "requires": { + "good-listener": "^1.2.2", + "select": "^1.1.2", + "tiny-emitter": "^2.0.0" + } + }, "clipboardy": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-2.1.0.tgz", @@ -3829,6 +3839,11 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, + "delegate": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", + "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==" + }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -5840,6 +5855,14 @@ "sparkles": "^1.0.0" } }, + "good-listener": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", + "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=", + "requires": { + "delegate": "^3.1.2" + } + }, "graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", @@ -10990,6 +11013,11 @@ } } }, + "select": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", + "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=" + }, "select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -12053,6 +12081,11 @@ "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", "dev": true }, + "tiny-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", + "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" + }, "to-arraybuffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", diff --git a/package.json b/package.json index 0b43014..8b5ec85 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "axios": "^0.18.0", "babel-polyfill": "^6.26.0", "blueimp-md5": "^2.19.0", + "clipboard": "^2.0.11", "element-theme": "^2.0.1", "element-ui": "^2.13.0", "js-cookie": "^3.0.1", diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 543fcbb..2a48182 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -92,6 +92,11 @@ export default { index: '/system', title: '系统配置' }, + { + icon: 'el-icon-s-check', + index: '/parner', + title: '合伙管理' + }, ], menus: [], onRoutes: this.$route.path diff --git a/src/libs/clipboard.js b/src/libs/clipboard.js new file mode 100644 index 0000000..0839493 --- /dev/null +++ b/src/libs/clipboard.js @@ -0,0 +1,32 @@ +import Vue from 'vue' +import Clipboard from 'clipboard' + +function clipboardSuccess(message = 'Copy successfully') { + Vue.prototype.$message({ + message, + type: 'success', + duration: 1500 + }) +} + +function clipboardError() { + Vue.prototype.$message({ + message: 'Copy failed', + type: 'error' + }) +} + +export default function handleClipboard(text, event, message) { + const clipboard = new Clipboard(event.target, { + text: () => text + }) + clipboard.on('success', () => { + clipboardSuccess(message) + clipboard.destroy() + }) + clipboard.on('error', () => { + clipboardError() + clipboard.destroy() + }) + clipboard.onClick(event) +} diff --git a/src/router/index.js b/src/router/index.js index 39d6ddc..295c2d6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -137,6 +137,11 @@ let router = new Router({ component: () => import('../views/setting'), // meta: { title: '个人中心' } }, + { + path: '/parner', + component: () => import('../views/parner'), + // meta: { title: '个人中心' } + }, { path: '/404', component: () => import('../views/404.vue'), diff --git a/src/setting.js b/src/setting.js index 913910d..4cef5e3 100644 --- a/src/setting.js +++ b/src/setting.js @@ -41,7 +41,7 @@ const Setting = { } ], // 是否使用动态路由 - dynamicRoute: true, + dynamicRoute: false, /** * @description 默认密码 */ diff --git a/src/views/customer/customer.vue b/src/views/customer/customer.vue index db2c7b6..af46f5e 100644 --- a/src/views/customer/customer.vue +++ b/src/views/customer/customer.vue @@ -82,7 +82,6 @@ 查看 编辑 删除 - 应用权限 diff --git a/src/views/parner/index.vue b/src/views/parner/index.vue new file mode 100644 index 0000000..349f52e --- /dev/null +++ b/src/views/parner/index.vue @@ -0,0 +1,58 @@ + + + + {{ item }} + + + + + + + + + + \ No newline at end of file diff --git a/src/views/parner/role.vue b/src/views/parner/role.vue new file mode 100644 index 0000000..76f6fef --- /dev/null +++ b/src/views/parner/role.vue @@ -0,0 +1,270 @@ + + + 筛选 + + + + + + + + 新增角色 + 批量删除 + + + + + + + + + + + + + + + 查看 + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + \ No newline at end of file diff --git a/src/views/parner/staff.vue b/src/views/parner/staff.vue new file mode 100644 index 0000000..4e4c083 --- /dev/null +++ b/src/views/parner/staff.vue @@ -0,0 +1,524 @@ + + + + + + + 或然城市合伙人 + 添加分类 + + + + + + {{ node.label }} + + addOrg(node, data)"> + + editOrg(node, data)"> + + delOrg(node, data)"> + + + + + + + + + + + + + + {{ orgForm.parentName }} + + + + + + 取 消 + 确 定 + + + + + + 筛选 + + + + + + + + 添加城市合伙人 + + + + + + + + + + + + + + + + + 链接/二维码失效日期:2022-11-11 + 城市合伙人 邀请链接 + 加盟商、合作伙伴可以通过这个链接加入 城市合伙人计划 + + https://modao.cc/app/0023f7e0e933f5fc4f01a1a7c138dbfc47448580#screen=sl2soyh8c61vnmp + 复制链接 + + 城市合伙人 邀请二维码 + 加盟商、合作伙伴可以通过这个二维码加入 城市合伙人计划 + + + + + + + 模板下载 + + + 上传文件 + + 部分数据导入失败,查看失败原因 + + + 取 消 + 确 定 + + + + + + + + + \ No newline at end of file
链接/二维码失效日期:2022-11-11
城市合伙人 邀请链接
加盟商、合作伙伴可以通过这个链接加入 城市合伙人计划
城市合伙人 邀请二维码
加盟商、合作伙伴可以通过这个二维码加入 城市合伙人计划