hookehuyr

新增成员列表功能

/*
* @Date: 2021-08-18 12:47:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-10-26 10:10:07
* @FilePath: /vue-flow-editor-for-vue3.0-master/build/docs.js
* @LastEditTime: 2023-10-27 11:05:12
* @FilePath: /vue-flow-editor/build/docs.js
* @Description: 文件描述
*/
const $utils = require('./build.utils')
......@@ -10,9 +10,6 @@ const $utils = require('./build.utils')
module.exports = {
publicPath: './',
outputDir: 'docs',
devServer: {
port: '4488'
},
pages: {
index: {
entry: $utils.resolve('doc/main.ts'),
......@@ -33,4 +30,33 @@ module.exports = {
]
}
},
devServer: {
open: true,
// open: process.platform === 'darwin',
host: '0.0.0.0',
port: 4418,
https: false,
hotOnly: false,
compress: true,
// 设置代理
proxy: {
'/srv/': {
// filter: ['/op/', '/fi/', '/de/', '/st/', '/fr/', '/pr/', '/pu/', '/dl/', '/b/', '/t/', '/rpt/', '/mm/', '/mp/'],
target: 'https://oa.onwall.cn',
changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// },
onProxyReq: function (proxyReq, req, res, options) {
proxyReq.setHeader('X-Proxy-Host', req.header('host'));
proxyReq.setHeader('X-Proxy-Request-URI', req.url);
}
}
},
before: app => {},
overlay: {
warnings: false,
errors: true
}
},
}
......
This diff is collapsed. Click to expand it.
/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-10-27 11:13:00
* @FilePath: /vue-flow-editor/doc/axios.js
* @Description: 文件描述
*/
import axios from 'axios';
axios.defaults.params = {
f: 'custom_form',
};
/**
* @description 请求拦截器
*/
axios.interceptors.request.use(
config => {
// const url_params = parseQueryString(location.href);
// GET请求默认打上时间戳,避免从缓存中拿数据。
const timestamp = config.method === 'get' ? (new Date()).valueOf() : '';
/**
* POST PHP需要修改数据格式
* 序列化POST请求时需要屏蔽上传相关接口,上传相关接口序列化后报错
*/
// 绑定默认请求头
config.params = { ...config.params, timestamp }
return config;
},
error => {
// 请求错误处理
return Promise.reject(error);
});
/**
* @description 响应拦截器
*/
axios.interceptors.response.use(
response => {
return response;
},
error => {
return Promise.reject(error);
});
export default axios;
/*
* @Date: 2021-08-18 12:47:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-10-26 10:01:48
* @FilePath: /vue-flow-editor-for-vue3.0-master/doc/main.ts
* @LastEditTime: 2023-10-30 14:36:13
* @FilePath: /vue-flow-editor/doc/main.ts
* @Description: 文件描述
*/
import { createApp ,h } from 'vue';
......@@ -12,15 +12,19 @@ import App from './App.vue'
import VueFlowEditor from '../src/index'
import element from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const Vue = createApp({
render: ()=>h(App)
});
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
Vue.use(VueFlowEditor)
// 屏蔽警告信息
app.config.warnHandler = () => null;
app.use(VueFlowEditor).use(element)
// @ts-ignore
//Vue.use(window.ELEMENT)
//Vue.config.productionTip = false
Vue.use(element)
Vue.mount("#app")
app.mount("#app")
......
......@@ -22,9 +22,12 @@
"编辑器"
],
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
"@vue/composition-api": "^1.7.2",
"axios": "^1.6.0",
"echarts": "^5.1.2",
"element-plus": "^2.4.1",
"jquery": "^3.7.1",
"sass": "^1.69.4",
"sass-loader": "10.1.1",
"vue": "^3.0.0",
......
......@@ -958,7 +958,7 @@
resolved "https://mirrors.cloud.tencent.com/npm/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31"
integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==
"@element-plus/icons-vue@^2.0.6":
"@element-plus/icons-vue@^2.0.6", "@element-plus/icons-vue@^2.1.0":
version "2.1.0"
resolved "https://mirrors.cloud.tencent.com/npm/@element-plus/icons-vue/-/icons-vue-2.1.0.tgz#7ad90d08a8c0d5fd3af31c4f73264ca89614397a"
integrity sha512-PSBn3elNoanENc1vnCfh+3WA9fimRC7n+fWkf3rE5jvv+aBohNHABC/KAR5KWPecxWxDTVT1ERpRbOMRcOV/vA==
......@@ -2236,6 +2236,15 @@ aws4@^1.8.0:
resolved "https://registry.nlark.com/aws4/download/aws4-1.11.0.tgz"
integrity sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk=
axios@^1.6.0:
version "1.6.0"
resolved "https://mirrors.cloud.tencent.com/npm/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102"
integrity sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==
dependencies:
follow-redirects "^1.15.0"
form-data "^4.0.0"
proxy-from-env "^1.1.0"
babel-code-frame@^6.22.0:
version "6.26.0"
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:
resolved "https://registry.nlark.com/colorette/download/colorette-1.3.0.tgz"
integrity sha1-/0XS8O2yRAadO3cq3rBP7TjQoK8=
combined-stream@^1.0.6, combined-stream@~1.0.6:
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
version "1.0.8"
resolved "https://registry.nlark.com/combined-stream/download/combined-stream-1.0.8.tgz"
integrity sha1-w9RaizT9cwYxoRCoolIGgrMdWn8=
......@@ -4280,6 +4289,11 @@ follow-redirects@^1.0.0:
resolved "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.1.tgz"
integrity sha1-2RFN7Qoc/dM04WTmZirQK/2R/0M=
follow-redirects@^1.15.0:
version "1.15.3"
resolved "https://mirrors.cloud.tencent.com/npm/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
for-in@^1.0.2:
version "1.0.2"
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:
tapable "^1.0.0"
worker-rpc "^0.1.0"
form-data@^4.0.0:
version "4.0.0"
resolved "https://mirrors.cloud.tencent.com/npm/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
dependencies:
asynckit "^0.4.0"
combined-stream "^1.0.8"
mime-types "^2.1.12"
form-data@~2.3.2:
version "2.3.3"
resolved "https://registry.nlark.com/form-data/download/form-data-2.3.3.tgz"
......@@ -5389,6 +5412,11 @@ jest-worker@^27.0.2:
merge-stream "^2.0.0"
supports-color "^8.0.0"
jquery@^3.7.1:
version "3.7.1"
resolved "https://mirrors.cloud.tencent.com/npm/jquery/-/jquery-3.7.1.tgz#083ef98927c9a6a74d05a6af02806566d16274de"
integrity sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==
js-message@1.0.7:
version "1.0.7"
resolved "https://registry.nlark.com/js-message/download/js-message-1.0.7.tgz"
......@@ -7075,6 +7103,11 @@ proxy-addr@~2.0.5:
forwarded "0.2.0"
ipaddr.js "1.9.1"
proxy-from-env@^1.1.0:
version "1.1.0"
resolved "https://mirrors.cloud.tencent.com/npm/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
prr@~1.0.1:
version "1.0.1"
resolved "https://registry.nlark.com/prr/download/prr-1.0.1.tgz"
......