hookehuyr

新增成员列表功能

1 /* 1 /*
2 * @Date: 2021-08-18 12:47:05 2 * @Date: 2021-08-18 12:47:05
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-10-26 10:10:07 4 + * @LastEditTime: 2023-10-27 11:05:12
5 - * @FilePath: /vue-flow-editor-for-vue3.0-master/build/docs.js 5 + * @FilePath: /vue-flow-editor/build/docs.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
8 const $utils = require('./build.utils') 8 const $utils = require('./build.utils')
...@@ -10,9 +10,6 @@ const $utils = require('./build.utils') ...@@ -10,9 +10,6 @@ const $utils = require('./build.utils')
10 module.exports = { 10 module.exports = {
11 publicPath: './', 11 publicPath: './',
12 outputDir: 'docs', 12 outputDir: 'docs',
13 - devServer: {
14 - port: '4488'
15 - },
16 pages: { 13 pages: {
17 index: { 14 index: {
18 entry: $utils.resolve('doc/main.ts'), 15 entry: $utils.resolve('doc/main.ts'),
...@@ -33,4 +30,33 @@ module.exports = { ...@@ -33,4 +30,33 @@ module.exports = {
33 ] 30 ]
34 } 31 }
35 }, 32 },
33 + devServer: {
34 + open: true,
35 + // open: process.platform === 'darwin',
36 + host: '0.0.0.0',
37 + port: 4418,
38 + https: false,
39 + hotOnly: false,
40 + compress: true,
41 + // 设置代理
42 + proxy: {
43 + '/srv/': {
44 + // filter: ['/op/', '/fi/', '/de/', '/st/', '/fr/', '/pr/', '/pu/', '/dl/', '/b/', '/t/', '/rpt/', '/mm/', '/mp/'],
45 + target: 'https://oa.onwall.cn',
46 + changeOrigin: true,
47 + // pathRewrite: {
48 + // '^/api': ''
49 + // },
50 + onProxyReq: function (proxyReq, req, res, options) {
51 + proxyReq.setHeader('X-Proxy-Host', req.header('host'));
52 + proxyReq.setHeader('X-Proxy-Request-URI', req.url);
53 + }
54 + }
55 + },
56 + before: app => {},
57 + overlay: {
58 + warnings: false,
59 + errors: true
60 + }
61 + },
36 } 62 }
......
This diff is collapsed. Click to expand it.
1 +/*
2 + * @Date: 2023-10-27 11:12:24
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2023-10-27 11:13:00
5 + * @FilePath: /vue-flow-editor/doc/axios.js
6 + * @Description: 文件描述
7 + */
8 +import axios from 'axios';
9 +
10 +axios.defaults.params = {
11 + f: 'custom_form',
12 +};
13 +
14 +/**
15 + * @description 请求拦截器
16 + */
17 +axios.interceptors.request.use(
18 + config => {
19 + // const url_params = parseQueryString(location.href);
20 + // GET请求默认打上时间戳,避免从缓存中拿数据。
21 + const timestamp = config.method === 'get' ? (new Date()).valueOf() : '';
22 + /**
23 + * POST PHP需要修改数据格式
24 + * 序列化POST请求时需要屏蔽上传相关接口,上传相关接口序列化后报错
25 + */
26 + // 绑定默认请求头
27 + config.params = { ...config.params, timestamp }
28 + return config;
29 + },
30 + error => {
31 + // 请求错误处理
32 + return Promise.reject(error);
33 + });
34 +
35 +/**
36 + * @description 响应拦截器
37 + */
38 +axios.interceptors.response.use(
39 + response => {
40 + return response;
41 + },
42 + error => {
43 + return Promise.reject(error);
44 + });
45 +
46 +export default axios;
1 /* 1 /*
2 * @Date: 2021-08-18 12:47:05 2 * @Date: 2021-08-18 12:47:05
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-10-26 10:01:48 4 + * @LastEditTime: 2023-10-30 14:36:13
5 - * @FilePath: /vue-flow-editor-for-vue3.0-master/doc/main.ts 5 + * @FilePath: /vue-flow-editor/doc/main.ts
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
8 import { createApp ,h } from 'vue'; 8 import { createApp ,h } from 'vue';
...@@ -12,15 +12,19 @@ import App from './App.vue' ...@@ -12,15 +12,19 @@ import App from './App.vue'
12 import VueFlowEditor from '../src/index' 12 import VueFlowEditor from '../src/index'
13 import element from 'element-plus' 13 import element from 'element-plus'
14 import 'element-plus/dist/index.css' 14 import 'element-plus/dist/index.css'
15 +import * as ElementPlusIconsVue from '@element-plus/icons-vue'
15 16
16 -const Vue = createApp({ 17 +const app = createApp(App);
17 - render: ()=>h(App) 18 +for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
18 -}); 19 + app.component(key, component)
20 +}
19 21
20 -Vue.use(VueFlowEditor) 22 +// 屏蔽警告信息
23 +app.config.warnHandler = () => null;
24 +
25 +app.use(VueFlowEditor).use(element)
21 // @ts-ignore 26 // @ts-ignore
22 //Vue.use(window.ELEMENT) 27 //Vue.use(window.ELEMENT)
23 //Vue.config.productionTip = false 28 //Vue.config.productionTip = false
24 -Vue.use(element)
25 29
26 -Vue.mount("#app") 30 +app.mount("#app")
......
...@@ -22,9 +22,12 @@ ...@@ -22,9 +22,12 @@
22 "编辑器" 22 "编辑器"
23 ], 23 ],
24 "dependencies": { 24 "dependencies": {
25 + "@element-plus/icons-vue": "^2.1.0",
25 "@vue/composition-api": "^1.7.2", 26 "@vue/composition-api": "^1.7.2",
27 + "axios": "^1.6.0",
26 "echarts": "^5.1.2", 28 "echarts": "^5.1.2",
27 "element-plus": "^2.4.1", 29 "element-plus": "^2.4.1",
30 + "jquery": "^3.7.1",
28 "sass": "^1.69.4", 31 "sass": "^1.69.4",
29 "sass-loader": "10.1.1", 32 "sass-loader": "10.1.1",
30 "vue": "^3.0.0", 33 "vue": "^3.0.0",
......
...@@ -958,7 +958,7 @@ ...@@ -958,7 +958,7 @@
958 resolved "https://mirrors.cloud.tencent.com/npm/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31" 958 resolved "https://mirrors.cloud.tencent.com/npm/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31"
959 integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA== 959 integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==
960 960
961 -"@element-plus/icons-vue@^2.0.6": 961 +"@element-plus/icons-vue@^2.0.6", "@element-plus/icons-vue@^2.1.0":
962 version "2.1.0" 962 version "2.1.0"
963 resolved "https://mirrors.cloud.tencent.com/npm/@element-plus/icons-vue/-/icons-vue-2.1.0.tgz#7ad90d08a8c0d5fd3af31c4f73264ca89614397a" 963 resolved "https://mirrors.cloud.tencent.com/npm/@element-plus/icons-vue/-/icons-vue-2.1.0.tgz#7ad90d08a8c0d5fd3af31c4f73264ca89614397a"
964 integrity sha512-PSBn3elNoanENc1vnCfh+3WA9fimRC7n+fWkf3rE5jvv+aBohNHABC/KAR5KWPecxWxDTVT1ERpRbOMRcOV/vA== 964 integrity sha512-PSBn3elNoanENc1vnCfh+3WA9fimRC7n+fWkf3rE5jvv+aBohNHABC/KAR5KWPecxWxDTVT1ERpRbOMRcOV/vA==
...@@ -2236,6 +2236,15 @@ aws4@^1.8.0: ...@@ -2236,6 +2236,15 @@ aws4@^1.8.0:
2236 resolved "https://registry.nlark.com/aws4/download/aws4-1.11.0.tgz" 2236 resolved "https://registry.nlark.com/aws4/download/aws4-1.11.0.tgz"
2237 integrity sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk= 2237 integrity sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk=
2238 2238
2239 +axios@^1.6.0:
2240 + version "1.6.0"
2241 + resolved "https://mirrors.cloud.tencent.com/npm/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102"
2242 + integrity sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==
2243 + dependencies:
2244 + follow-redirects "^1.15.0"
2245 + form-data "^4.0.0"
2246 + proxy-from-env "^1.1.0"
2247 +
2239 babel-code-frame@^6.22.0: 2248 babel-code-frame@^6.22.0:
2240 version "6.26.0" 2249 version "6.26.0"
2241 resolved "https://registry.nlark.com/babel-code-frame/download/babel-code-frame-6.26.0.tgz?cache=0&sync_timestamp=1618847032171&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fbabel-code-frame%2Fdownload%2Fbabel-code-frame-6.26.0.tgz" 2250 resolved "https://registry.nlark.com/babel-code-frame/download/babel-code-frame-6.26.0.tgz?cache=0&sync_timestamp=1618847032171&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fbabel-code-frame%2Fdownload%2Fbabel-code-frame-6.26.0.tgz"
...@@ -2940,7 +2949,7 @@ colorette@^1.2.1, colorette@^1.2.2: ...@@ -2940,7 +2949,7 @@ colorette@^1.2.1, colorette@^1.2.2:
2940 resolved "https://registry.nlark.com/colorette/download/colorette-1.3.0.tgz" 2949 resolved "https://registry.nlark.com/colorette/download/colorette-1.3.0.tgz"
2941 integrity sha1-/0XS8O2yRAadO3cq3rBP7TjQoK8= 2950 integrity sha1-/0XS8O2yRAadO3cq3rBP7TjQoK8=
2942 2951
2943 -combined-stream@^1.0.6, combined-stream@~1.0.6: 2952 +combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
2944 version "1.0.8" 2953 version "1.0.8"
2945 resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz" 2954 resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz"
2946 integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8= 2955 integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8=
...@@ -4280,6 +4289,11 @@ follow-redirects@^1.0.0: ...@@ -4280,6 +4289,11 @@ follow-redirects@^1.0.0:
4280 resolved "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.1.tgz" 4289 resolved "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.1.tgz"
4281 integrity sha1-2RFN7Qoc/dM04WTmZirQK/2R/0M= 4290 integrity sha1-2RFN7Qoc/dM04WTmZirQK/2R/0M=
4282 4291
4292 +follow-redirects@^1.15.0:
4293 + version "1.15.3"
4294 + resolved "https://mirrors.cloud.tencent.com/npm/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
4295 + integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
4296 +
4283 for-in@^1.0.2: 4297 for-in@^1.0.2:
4284 version "1.0.2" 4298 version "1.0.2"
4285 resolved "https://registry.nlark.com/for-in/download/for-in-1.0.2.tgz" 4299 resolved "https://registry.nlark.com/for-in/download/for-in-1.0.2.tgz"
...@@ -4321,6 +4335,15 @@ fork-ts-checker-webpack-plugin@^3.1.1: ...@@ -4321,6 +4335,15 @@ fork-ts-checker-webpack-plugin@^3.1.1:
4321 tapable "^1.0.0" 4335 tapable "^1.0.0"
4322 worker-rpc "^0.1.0" 4336 worker-rpc "^0.1.0"
4323 4337
4338 +form-data@^4.0.0:
4339 + version "4.0.0"
4340 + resolved "https://mirrors.cloud.tencent.com/npm/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
4341 + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
4342 + dependencies:
4343 + asynckit "^0.4.0"
4344 + combined-stream "^1.0.8"
4345 + mime-types "^2.1.12"
4346 +
4324 form-data@~2.3.2: 4347 form-data@~2.3.2:
4325 version "2.3.3" 4348 version "2.3.3"
4326 resolved "https://registry.nlark.com/form-data/download/form-data-2.3.3.tgz" 4349 resolved "https://registry.nlark.com/form-data/download/form-data-2.3.3.tgz"
...@@ -5389,6 +5412,11 @@ jest-worker@^27.0.2: ...@@ -5389,6 +5412,11 @@ jest-worker@^27.0.2:
5389 merge-stream "^2.0.0" 5412 merge-stream "^2.0.0"
5390 supports-color "^8.0.0" 5413 supports-color "^8.0.0"
5391 5414
5415 +jquery@^3.7.1:
5416 + version "3.7.1"
5417 + resolved "https://mirrors.cloud.tencent.com/npm/jquery/-/jquery-3.7.1.tgz#083ef98927c9a6a74d05a6af02806566d16274de"
5418 + integrity sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==
5419 +
5392 js-message@1.0.7: 5420 js-message@1.0.7:
5393 version "1.0.7" 5421 version "1.0.7"
5394 resolved "https://registry.nlark.com/js-message/download/js-message-1.0.7.tgz" 5422 resolved "https://registry.nlark.com/js-message/download/js-message-1.0.7.tgz"
...@@ -7075,6 +7103,11 @@ proxy-addr@~2.0.5: ...@@ -7075,6 +7103,11 @@ proxy-addr@~2.0.5:
7075 forwarded "0.2.0" 7103 forwarded "0.2.0"
7076 ipaddr.js "1.9.1" 7104 ipaddr.js "1.9.1"
7077 7105
7106 +proxy-from-env@^1.1.0:
7107 + version "1.1.0"
7108 + resolved "https://mirrors.cloud.tencent.com/npm/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
7109 + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
7110 +
7078 prr@~1.0.1: 7111 prr@~1.0.1:
7079 version "1.0.1" 7112 version "1.0.1"
7080 resolved "https://registry.nlark.com/prr/download/prr-1.0.1.tgz" 7113 resolved "https://registry.nlark.com/prr/download/prr-1.0.1.tgz"
......