mftcc-base-npm 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -18
- package/build/sonarqube.config.js +21 -0
- package/build/webpack.prod.conf.js +36 -37
- package/config/index.js +14 -16
- package/package.json +9 -12
- package/src/api/flowable.js +70 -14
- package/src/api/model.js +3 -0
- package/src/api/plt.js +7 -1
- package/src/assets/common/trapezoidal.png +0 -0
- package/src/axios/index.js +134 -63
- package/src/axios/sso.js +191 -0
- package/src/components/bus/dialog/mftccFlowableTable.vue +209 -203
- package/src/components/bus/dialog/mftccFlowableUserTable.vue +125 -128
- package/src/components/bus/dialog/mftccPltBrTree.vue +256 -243
- package/src/components/bus/dialog/mftccPltRoleTable.vue +117 -119
- package/src/components/bus/dialog/mftccPltUserTable.vue +74 -68
- package/src/components/bus/dialog/mftccRuleTable.vue +244 -0
- package/src/components/dialog/mftccDialogCheckbox.vue +66 -18
- package/src/components/dialog/mftccDialogRadio.vue +65 -18
- package/src/components/dialog/mftccDialogTable.vue +42 -3
- package/src/components/form/area.vue +403 -0
- package/src/components/form/cascader.vue +336 -337
- package/src/components/form/checkbox.vue +10 -8
- package/src/components/form/date.vue +217 -186
- package/src/components/form/datetime.vue +217 -103
- package/src/components/form/dialog.vue +111 -98
- package/src/components/form/flowableuser.vue +112 -85
- package/src/components/form/multipleSelection.vue +129 -126
- package/src/components/form/password.vue +8 -9
- package/src/components/form/pltbr.vue +104 -85
- package/src/components/form/pltflowmodel.vue +72 -72
- package/src/components/form/pltform.vue +28 -24
- package/src/components/form/pltrole.vue +101 -84
- package/src/components/form/pltuser.vue +128 -103
- package/src/components/form/plugins/formItem.vue +235 -39
- package/src/components/form/plugins/mftccForm.vue +492 -570
- package/src/components/form/radio.vue +11 -7
- package/src/components/form/rulemodel.vue +89 -0
- package/src/components/form/select.vue +81 -23
- package/src/components/form/switch.vue +92 -7
- package/src/components/form/text.vue +179 -38
- package/src/components/form/textGroup.vue +107 -0
- package/src/components/form/textarea.vue +114 -88
- package/src/components/layout/card.vue +1 -1
- package/src/components/layout/collapse.vue +34 -43
- package/src/components/layout/plugins/container.vue +31 -50
- package/src/components/layout/plugins/mftccLayout.vue +79 -65
- package/src/components/mftccLibrarySelect.vue +74 -23
- package/src/components/table/customFilter/filterItem.vue +137 -3
- package/src/components/table/customFilter/index.vue +14 -5
- package/src/components/table/plugins/components/hyperlinks.vue +53 -0
- package/src/components/table/plugins/mftccTable.vue +1324 -642
- package/src/index.js +8 -23
- package/src/plugins/Export2Excel.js +142 -123
- package/src/router/handle.js +0 -134
- package/src/router/index.js +53 -41
- package/src/store/index.js +32 -20
- package/src/utils/formUtil.js +262 -117
- package/src/utils/mftccTableInfiniteScroll/index.js +11 -0
- package/src/utils/mftccTableInfiniteScroll/mftccTableScroll.js +67 -0
- package/src/utils/watermark.js +97 -0
- package/src/assets/flowable/active.png +0 -0
- package/src/components/flowable/appDetail.vue +0 -972
- package/src/components/flowable/appDetailPage.vue +0 -889
- package/src/components/flowable/bizTimeLine.vue +0 -268
- package/src/components/flowable/flowCharts.vue +0 -75
- package/src/components/flowable/selectBr.vue +0 -65
- package/src/components/flowable/selectBrUser.vue +0 -85
- package/src/components/flowable/timeLine.vue +0 -451
- package/src/components/flowable/wkfUserDialog.vue +0 -243
- package/src/components/flowable/wkfUserDialogForDesign.vue +0 -229
- package/src/layout/Iframe.vue +0 -25
- package/src/layout/breadcrumb.vue +0 -63
- package/src/layout/default/header.vue +0 -128
- package/src/layout/default/images/Group23.png +0 -0
- package/src/layout/default/images/jiantou.png +0 -0
- package/src/layout/default/images/op_user.jpg +0 -0
- package/src/layout/default/images/op_user.png +0 -0
- package/src/layout/default/images/plus.png +0 -0
- package/src/layout/default/images/slideClose.png +0 -0
- package/src/layout/default/images/slideOpen.png +0 -0
- package/src/layout/default/main.vue +0 -409
- package/src/layout/default/menu.vue +0 -134
- package/src/layout/default/theme/default/components.css +0 -792
- package/src/layout/default/theme/default/components_expand.css +0 -50
- package/src/layout/default/theme/default/components_query.css +0 -302
- package/src/layout/default/theme/default/components_search.css +0 -51
- package/src/layout/default/theme/default/header.css +0 -184
- package/src/layout/default/theme/default/main.css +0 -803
- package/src/layout/default/theme/default/menu.css +0 -125
- package/src/layout/main.vue +0 -441
- package/src/layout/menu.vue +0 -113
- package/src/layout/tab.vue +0 -118
- package/src/utils/scrollbarUtil.js +0 -34
- package/static/images/logo.png +0 -0
- package/static/images/logo_title.png +0 -0
- package/test/App.vue +0 -91
- package/test/api/flowable/flowable.js +0 -47
- package/test/api/login/login.js +0 -27
- package/test/assets/flowable/active.png +0 -0
- package/test/assets/home/memData1.png +0 -0
- package/test/assets/home/memData2.png +0 -0
- package/test/assets/home/memData3.png +0 -0
- package/test/assets/home/memData4.png +0 -0
- package/test/assets/home/memMess1.png +0 -0
- package/test/assets/home/memMess2.png +0 -0
- package/test/assets/home/memMess3.png +0 -0
- package/test/assets/home/memMess4.png +0 -0
- package/test/assets/home/memMess5.png +0 -0
- package/test/assets/home/memMess6.png +0 -0
- package/test/assets/home/memMess7.png +0 -0
- package/test/assets/home/memTit1.png +0 -0
- package/test/assets/home/memTit2.png +0 -0
- package/test/assets/home/memTit3.png +0 -0
- package/test/assets/home/menICon1.png +0 -0
- package/test/assets/home/menICon2.png +0 -0
- package/test/assets/home/menICon3.png +0 -0
- package/test/assets/home/menICon4.png +0 -0
- package/test/assets/home/op_user.png +0 -0
- package/test/assets/login/login_bg_zx.png +0 -0
- package/test/assets/login/login_code.png +0 -0
- package/test/assets/login/login_password.png +0 -0
- package/test/assets/login/login_user.png +0 -0
- package/test/assets/login/logo-bg_zx_input.png +0 -0
- package/test/assets/login/logo_bg.png +0 -0
- package/test/assets/login/logo_img.png +0 -0
- package/test/assets/login/logo_img_zx.png +0 -0
- package/test/assets/login/logo_zx.png +0 -0
- package/test/main.js +0 -66
- package/test/router/handle-test.js +0 -139
- package/test/router/index.js +0 -82
- package/test/router/top.js +0 -9
- package/test/views/flowable/index.vue +0 -378
- package/test/views/login/login.vue +0 -560
package/README.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# mftcc-base-npm
|
|
2
2
|
|
|
3
3
|
## 版本说明
|
|
4
|
-
|
|
4
|
+
# 1.2.2
|
|
5
|
+
视图和列表加载组件支持单体项目
|
|
5
6
|
#### 3.0.0
|
|
6
|
-
优化表单整体样式结构,修复表单内元素状态切换时,元素移除后样式丢失的问题。
|
|
7
|
-
修复综合视图表单打开时,组件状态切换失效的问题。
|
|
8
|
-
修复表单弹层组件中,获取表单组件对象时重复加载导致表单组件中状态切换失效的问题。
|
|
9
|
-
修复选择表单配置文件弹层组件在详情页面中打不开的问题
|
|
10
|
-
修复表单组件中的文本后添加按钮,按钮没有正确触发事件的问题
|
|
11
|
-
优化表单组件中单选,复选框,开关组件样式,优化文本域内的文字字体与整体架构统一
|
|
12
|
-
优化表单下拉框组件,只读时不让展开下拉菜单,优化所有表单组件,只读时取消鼠标悬浮特殊效果
|
|
13
|
-
新增支持列表组件操作列显隐设置时,可以在设计器中禁用某些列勾选为灰色状态
|
|
14
|
-
重构表单文本框组件后设置图标和按钮的结构,将插槽模式调整为追加模式,解决字段设置单位、字数统计、快速清除的功能时遮挡覆盖的问题
|
|
15
|
-
修复表单组件中的跨列组件切换状态为隐藏显示时,表单没有正常向上缩进的问题
|
|
16
|
-
修复表单中日期格式字段,校验设置逻辑表达式,页面不填写该字段时,点击保存无效的问题
|
|
17
|
-
修复字段数据类型设置为整数、校验设置非必填,修改时,数据值为null,点击保存时,会校验字段,提示内容不是整数的问题
|
|
18
|
-
修复布局中折叠面板标题固定样式与菜单样式冲突的问题
|
|
19
|
-
优化表单设计器中级联选择器组件配置属性时多次加载请求地址的问题
|
|
20
|
-
修复级联选择器组件库中选择请求参数无效的问题
|
|
21
|
-
修复综合视图查看页面中使用级联选择器组件懒加载后,不能显示全路径的问题
|
|
22
|
-
修复打开标准表单编辑页面中使用级联选择器组件懒加载后,数据不能正确回显的问题
|
|
7
|
+
优化表单整体样式结构,修复表单内元素状态切换时,元素移除后样式丢失的问题。
|
|
8
|
+
修复综合视图表单打开时,组件状态切换失效的问题。
|
|
9
|
+
修复表单弹层组件中,获取表单组件对象时重复加载导致表单组件中状态切换失效的问题。
|
|
10
|
+
修复选择表单配置文件弹层组件在详情页面中打不开的问题
|
|
11
|
+
修复表单组件中的文本后添加按钮,按钮没有正确触发事件的问题
|
|
12
|
+
优化表单组件中单选,复选框,开关组件样式,优化文本域内的文字字体与整体架构统一
|
|
13
|
+
优化表单下拉框组件,只读时不让展开下拉菜单,优化所有表单组件,只读时取消鼠标悬浮特殊效果
|
|
14
|
+
新增支持列表组件操作列显隐设置时,可以在设计器中禁用某些列勾选为灰色状态
|
|
15
|
+
重构表单文本框组件后设置图标和按钮的结构,将插槽模式调整为追加模式,解决字段设置单位、字数统计、快速清除的功能时遮挡覆盖的问题
|
|
16
|
+
修复表单组件中的跨列组件切换状态为隐藏显示时,表单没有正常向上缩进的问题
|
|
17
|
+
修复表单中日期格式字段,校验设置逻辑表达式,页面不填写该字段时,点击保存无效的问题
|
|
18
|
+
修复字段数据类型设置为整数、校验设置非必填,修改时,数据值为null,点击保存时,会校验字段,提示内容不是整数的问题
|
|
19
|
+
修复布局中折叠面板标题固定样式与菜单样式冲突的问题
|
|
20
|
+
优化表单设计器中级联选择器组件配置属性时多次加载请求地址的问题
|
|
21
|
+
修复级联选择器组件库中选择请求参数无效的问题
|
|
22
|
+
修复综合视图查看页面中使用级联选择器组件懒加载后,不能显示全路径的问题
|
|
23
|
+
修复打开标准表单编辑页面中使用级联选择器组件懒加载后,数据不能正确回显的问题
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const scanner = require('sonarqube-scanner');
|
|
2
|
+
|
|
3
|
+
scanner(
|
|
4
|
+
{
|
|
5
|
+
// 连接的服务器地址
|
|
6
|
+
serverUrl: 'http://192.168.110.109:19000',
|
|
7
|
+
// token: "75ffc2a907cb7e7eed412ba902ae4bfe22f31a36",
|
|
8
|
+
options: {
|
|
9
|
+
// 生成检查结果的项目名称
|
|
10
|
+
'sonar.projectName': 'mftcc-base-npm',
|
|
11
|
+
// 生成检查结果的项目描述
|
|
12
|
+
'sonar.projectDescription': '前端组件库',
|
|
13
|
+
// 需要检查的代码目录路径(多个可用逗号分隔)
|
|
14
|
+
'sonar.sources': 'src',
|
|
15
|
+
'sonar.tests': '',
|
|
16
|
+
'sonar.login': "mftcc",
|
|
17
|
+
'sonar.password': "mftcc",
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
() => process.exit()
|
|
21
|
+
)
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
const path = require(
|
|
3
|
-
const utils = require(
|
|
4
|
-
const webpack = require(
|
|
5
|
-
const config = require(
|
|
6
|
-
const merge = require(
|
|
7
|
-
const baseWebpackConfig = require(
|
|
8
|
-
const CopyWebpackPlugin = require(
|
|
9
|
-
const HtmlWebpackPlugin = require(
|
|
10
|
-
const ExtractTextPlugin = require(
|
|
11
|
-
const OptimizeCSSPlugin = require(
|
|
12
|
-
const UglifyJsPlugin = require(
|
|
13
|
-
const VueLoaderPlugin = require(
|
|
14
|
-
const env = require(
|
|
1
|
+
"use strict";
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const utils = require("./utils");
|
|
4
|
+
const webpack = require("webpack");
|
|
5
|
+
const config = require("../config");
|
|
6
|
+
const merge = require("webpack-merge");
|
|
7
|
+
const baseWebpackConfig = require("./webpack.base.conf");
|
|
8
|
+
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
9
|
+
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
10
|
+
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
|
11
|
+
const OptimizeCSSPlugin = require("optimize-css-assets-webpack-plugin");
|
|
12
|
+
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|
13
|
+
const VueLoaderPlugin = require("vue-loader/lib/plugin");
|
|
14
|
+
const env = require("../config/prod.env");
|
|
15
15
|
|
|
16
16
|
const webpackConfig = merge(baseWebpackConfig, {
|
|
17
|
-
mode:
|
|
17
|
+
mode: "production",
|
|
18
18
|
entry: {
|
|
19
|
-
app: [
|
|
19
|
+
app: ["babel-polyfill", "./src/index.js"]
|
|
20
20
|
},
|
|
21
21
|
module: {
|
|
22
22
|
rules: utils.styleLoaders({
|
|
@@ -28,8 +28,8 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
|
28
28
|
devtool: config.build.productionSourceMap ? config.build.devtool : false,
|
|
29
29
|
output: {
|
|
30
30
|
path: config.build.assetsRoot,
|
|
31
|
-
filename: utils.assetsPath(
|
|
32
|
-
chunkFilename: utils.assetsPath(
|
|
31
|
+
filename: utils.assetsPath("js/[name].js"),
|
|
32
|
+
chunkFilename: utils.assetsPath("js/[id].[chunkhash].js")
|
|
33
33
|
},
|
|
34
34
|
/* optimization: {
|
|
35
35
|
splitChunks: {
|
|
@@ -52,15 +52,15 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
|
52
52
|
plugins: [
|
|
53
53
|
new VueLoaderPlugin(),
|
|
54
54
|
new webpack.DefinePlugin({
|
|
55
|
-
|
|
55
|
+
"process.env": require("../config/prod.env")
|
|
56
56
|
}),
|
|
57
57
|
new ExtractTextPlugin({
|
|
58
|
-
filename: utils.assetsPath(
|
|
58
|
+
filename: utils.assetsPath("css/[name].css"),
|
|
59
59
|
// Setting the following option to `false` will not extract CSS from codesplit chunks.
|
|
60
60
|
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
|
|
61
61
|
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
|
|
62
62
|
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
|
|
63
|
-
allChunks: true
|
|
63
|
+
allChunks: true
|
|
64
64
|
}),
|
|
65
65
|
// Compress extracted CSS. We are using this plugin so that possible
|
|
66
66
|
// duplicated CSS from different components can be deduped.
|
|
@@ -74,8 +74,8 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
|
74
74
|
// see https://github.com/ampedandwired/html-webpack-plugin
|
|
75
75
|
new HtmlWebpackPlugin({
|
|
76
76
|
filename: config.build.index,
|
|
77
|
-
template:
|
|
78
|
-
inject: true
|
|
77
|
+
template: "index.html",
|
|
78
|
+
inject: true
|
|
79
79
|
// minify: {
|
|
80
80
|
// removeComments: true,
|
|
81
81
|
// collapseWhitespace: true,
|
|
@@ -95,35 +95,34 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
|
95
95
|
// copy custom static assets
|
|
96
96
|
new CopyWebpackPlugin([
|
|
97
97
|
{
|
|
98
|
-
from: path.resolve(__dirname,
|
|
98
|
+
from: path.resolve(__dirname, "../static"),
|
|
99
99
|
to: config.build.assetsSubDirectory,
|
|
100
|
-
ignore: [
|
|
100
|
+
ignore: [".*"]
|
|
101
101
|
}
|
|
102
|
-
])
|
|
102
|
+
])
|
|
103
103
|
]
|
|
104
|
-
})
|
|
104
|
+
});
|
|
105
105
|
|
|
106
106
|
if (config.build.productionGzip) {
|
|
107
|
-
const CompressionWebpackPlugin = require(
|
|
107
|
+
const CompressionWebpackPlugin = require("compression-webpack-plugin");
|
|
108
108
|
|
|
109
109
|
webpackConfig.plugins.push(
|
|
110
110
|
new CompressionWebpackPlugin({
|
|
111
|
-
asset:
|
|
112
|
-
algorithm:
|
|
111
|
+
asset: "[path].gz[query]",
|
|
112
|
+
algorithm: "gzip",
|
|
113
113
|
test: new RegExp(
|
|
114
|
-
|
|
115
|
-
config.build.productionGzipExtensions.join('|') +
|
|
116
|
-
')$'
|
|
114
|
+
"\\.(" + config.build.productionGzipExtensions.join("|") + ")$"
|
|
117
115
|
),
|
|
118
116
|
threshold: 10240,
|
|
119
117
|
minRatio: 0.8
|
|
120
118
|
})
|
|
121
|
-
)
|
|
119
|
+
);
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
if (config.build.bundleAnalyzerReport) {
|
|
125
|
-
const BundleAnalyzerPlugin = require(
|
|
126
|
-
|
|
123
|
+
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
|
|
124
|
+
.BundleAnalyzerPlugin;
|
|
125
|
+
webpackConfig.plugins.push(new BundleAnalyzerPlugin());
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
module.exports = webpackConfig
|
|
128
|
+
module.exports = webpackConfig;
|
package/config/index.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
// Template version: 1.3.1
|
|
3
3
|
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
4
4
|
|
|
5
|
-
const path = require(
|
|
5
|
+
const path = require("path");
|
|
6
6
|
|
|
7
|
-
const packageConfig = require(
|
|
7
|
+
const packageConfig = require("../package.json");
|
|
8
8
|
//项目名称
|
|
9
9
|
const productName = packageConfig.name;
|
|
10
10
|
|
|
11
11
|
module.exports = {
|
|
12
|
-
|
|
13
12
|
productName: productName,
|
|
14
13
|
//开发环境
|
|
15
14
|
dev: {
|
|
16
|
-
|
|
17
15
|
// Paths
|
|
18
|
-
assetsSubDirectory:
|
|
19
|
-
assetsPublicPath:
|
|
16
|
+
assetsSubDirectory: "static",
|
|
17
|
+
assetsPublicPath: "/" + productName + "/",
|
|
20
18
|
proxyTable: {},
|
|
21
19
|
|
|
22
20
|
// Various Dev Server settings
|
|
23
|
-
host:
|
|
21
|
+
host: "0.0.0.0", // can be overwritten by process.env.HOST
|
|
24
22
|
port: 7777, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
25
23
|
autoOpenBrowser: false,
|
|
26
24
|
errorOverlay: true,
|
|
@@ -40,7 +38,7 @@ module.exports = {
|
|
|
40
38
|
*/
|
|
41
39
|
|
|
42
40
|
// https://webpack.js.org/configuration/devtool/#development
|
|
43
|
-
devtool:
|
|
41
|
+
devtool: "cheap-module-eval-source-map",
|
|
44
42
|
|
|
45
43
|
// If you have problems debugging vue-files in devtools,
|
|
46
44
|
// set this to false - it *may* help
|
|
@@ -52,11 +50,11 @@ module.exports = {
|
|
|
52
50
|
//打包环境
|
|
53
51
|
build: {
|
|
54
52
|
// Template for index.html
|
|
55
|
-
index: path.resolve(__dirname,
|
|
53
|
+
index: path.resolve(__dirname, "../dist/" + productName + "/index.html"),
|
|
56
54
|
// Paths
|
|
57
|
-
assetsRoot: path.resolve(__dirname,
|
|
58
|
-
assetsSubDirectory:
|
|
59
|
-
assetsPublicPath:
|
|
55
|
+
assetsRoot: path.resolve(__dirname, "../dist/" + productName),
|
|
56
|
+
assetsSubDirectory: "static",
|
|
57
|
+
assetsPublicPath: "/" + productName + "/",
|
|
60
58
|
|
|
61
59
|
/**
|
|
62
60
|
* Source Maps
|
|
@@ -64,14 +62,14 @@ module.exports = {
|
|
|
64
62
|
|
|
65
63
|
productionSourceMap: true,
|
|
66
64
|
// https://webpack.js.org/configuration/devtool/#production
|
|
67
|
-
devtool:
|
|
65
|
+
devtool: "#source-map",
|
|
68
66
|
|
|
69
67
|
// Gzip off by default as many popular static hosts such as
|
|
70
68
|
// Surge or Netlify already gzip all static assets for you.
|
|
71
69
|
// Before setting to `true`, make sure to:
|
|
72
70
|
// npm install --save-dev compression-webpack-plugin
|
|
73
71
|
productionGzip: false,
|
|
74
|
-
productionGzipExtensions: [
|
|
72
|
+
productionGzipExtensions: ["js", "css"],
|
|
75
73
|
|
|
76
74
|
// Run the build command with an extra argument to
|
|
77
75
|
// View the bundle analyzer report after build finishes:
|
|
@@ -79,4 +77,4 @@ module.exports = {
|
|
|
79
77
|
// Set to `true` or `false` to always turn it on or off
|
|
80
78
|
bundleAnalyzerReport: process.env.npm_config_report
|
|
81
79
|
}
|
|
82
|
-
}
|
|
80
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mftcc-base-npm",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "mftcc-base-npm",
|
|
5
5
|
"author": "mftcc",
|
|
6
6
|
"scripts": {
|
|
@@ -11,21 +11,18 @@
|
|
|
11
11
|
"npm": "npm i",
|
|
12
12
|
"nrm-npm": "nrm use npm",
|
|
13
13
|
"publish": "npm publish --access public",
|
|
14
|
-
"nrm-taobao": "nrm use taobao"
|
|
14
|
+
"nrm-taobao": "nrm use taobao",
|
|
15
|
+
"scanner": "node build/sonarqube.config.js"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"babel-polyfill": "^6.26.0",
|
|
18
19
|
"crypto-js": "^3.1.9-1",
|
|
20
|
+
"el-table-draggable": "^1.4.12",
|
|
19
21
|
"file-saver": "^2.0.2",
|
|
20
|
-
"moment": "^2.26.0",
|
|
21
|
-
"redis": "^3.0.2",
|
|
22
|
-
"script-loader": "^0.7.2",
|
|
23
|
-
"vuex-persistedstate": "^2.7.1",
|
|
24
|
-
"xlsx": "^0.16.3",
|
|
25
|
-
"single-spa-vue": "^2.1.0",
|
|
26
|
-
"systemjs-webpack-interop": "^2.3.4",
|
|
27
22
|
"html2canvas": "^1.0.0-rc.7",
|
|
28
|
-
"jspdf": "^2.3.1"
|
|
23
|
+
"jspdf": "^2.3.1",
|
|
24
|
+
"vuex-persistedstate": "^2.7.1",
|
|
25
|
+
"xlsx": "^0.16.9"
|
|
29
26
|
},
|
|
30
27
|
"engines": {
|
|
31
28
|
"node": ">= 6.0.0",
|
|
@@ -38,7 +35,7 @@
|
|
|
38
35
|
"chrome >= 65"
|
|
39
36
|
],
|
|
40
37
|
"devDependencies": {
|
|
41
|
-
"mftcc-dev-npm": "^1.
|
|
42
|
-
"
|
|
38
|
+
"mftcc-dev-npm": "^1.2.1",
|
|
39
|
+
"sonarqube-scanner": "^2.8.1"
|
|
43
40
|
}
|
|
44
41
|
}
|
package/src/api/flowable.js
CHANGED
|
@@ -1,23 +1,43 @@
|
|
|
1
|
-
import { get, postJson, postForm, del, putJson, findByPage } from
|
|
1
|
+
import { get, postJson, postForm, del, putJson, findByPage } from "../axios";
|
|
2
2
|
|
|
3
3
|
const api = {
|
|
4
|
-
getBizList:
|
|
4
|
+
getBizList: success => {
|
|
5
5
|
get($servers.flowable + "/appcenter/getBizList", null, true, success);
|
|
6
6
|
},
|
|
7
7
|
getColList: (bizMark, success) => {
|
|
8
|
-
get(
|
|
8
|
+
get(
|
|
9
|
+
$servers.flowable + "/appcenter/getColList/" + bizMark,
|
|
10
|
+
null,
|
|
11
|
+
true,
|
|
12
|
+
success
|
|
13
|
+
);
|
|
9
14
|
},
|
|
10
15
|
getSysTaskInfo: (data, success) => {
|
|
11
|
-
postJson(
|
|
16
|
+
postJson(
|
|
17
|
+
$servers.flowable + "/appcenter/getSysTaskInfo",
|
|
18
|
+
data,
|
|
19
|
+
true,
|
|
20
|
+
success
|
|
21
|
+
);
|
|
12
22
|
},
|
|
13
23
|
getTimeLine: (data, success) => {
|
|
14
24
|
postJson($servers.flowable + "/bpmn/getTimeLine", data, true, success);
|
|
15
25
|
},
|
|
16
26
|
simulationByTraceNo: (data, success) => {
|
|
17
|
-
postJson(
|
|
27
|
+
postJson(
|
|
28
|
+
$servers.flowable + "/bpmn/simulationByTraceNo",
|
|
29
|
+
data,
|
|
30
|
+
true,
|
|
31
|
+
success
|
|
32
|
+
);
|
|
18
33
|
},
|
|
19
34
|
getApprovalDetail: (data, success) => {
|
|
20
|
-
postJson(
|
|
35
|
+
postJson(
|
|
36
|
+
$servers.flowable + "/appcenter/getApprovalDetail",
|
|
37
|
+
data,
|
|
38
|
+
true,
|
|
39
|
+
success
|
|
40
|
+
);
|
|
21
41
|
},
|
|
22
42
|
needOperated: (data, success) => {
|
|
23
43
|
postForm($servers.flowable + "/flowable/needOperated", data, true, success);
|
|
@@ -26,29 +46,65 @@ const api = {
|
|
|
26
46
|
postForm($servers.flowable + "/flowable/doCommitDemo", data, true, success);
|
|
27
47
|
},
|
|
28
48
|
recallAndCancel: (data, success) => {
|
|
29
|
-
postForm(
|
|
49
|
+
postForm(
|
|
50
|
+
$servers.flowable + "/flowable/recallAndCancel",
|
|
51
|
+
data,
|
|
52
|
+
true,
|
|
53
|
+
success
|
|
54
|
+
);
|
|
30
55
|
},
|
|
31
56
|
getFinishNodeList: (data, success) => {
|
|
32
|
-
postJson(
|
|
57
|
+
postJson(
|
|
58
|
+
$servers.flowable + "/appcenter/getFinishNodeList",
|
|
59
|
+
data,
|
|
60
|
+
true,
|
|
61
|
+
success
|
|
62
|
+
);
|
|
33
63
|
},
|
|
34
64
|
getFinishParentNodeList: (data, success) => {
|
|
35
|
-
postJson(
|
|
65
|
+
postJson(
|
|
66
|
+
$servers.flowable + "/appcenter/getFinishParentNodeList",
|
|
67
|
+
data,
|
|
68
|
+
true,
|
|
69
|
+
success
|
|
70
|
+
);
|
|
36
71
|
},
|
|
37
72
|
getNextAllNodeList: (data, success) => {
|
|
38
|
-
postJson(
|
|
73
|
+
postJson(
|
|
74
|
+
$servers.flowable + "/appcenter/getNextAllNodeList",
|
|
75
|
+
data,
|
|
76
|
+
true,
|
|
77
|
+
success
|
|
78
|
+
);
|
|
39
79
|
},
|
|
40
80
|
getCountForToDoTask: (data, success) => {
|
|
41
|
-
postJson(
|
|
81
|
+
postJson(
|
|
82
|
+
$servers.flowable + "/appcenter/getCountForToDoTask",
|
|
83
|
+
data,
|
|
84
|
+
true,
|
|
85
|
+
success
|
|
86
|
+
);
|
|
42
87
|
},
|
|
43
88
|
getCountListForToDoTask: (data, success) => {
|
|
44
|
-
postJson(
|
|
89
|
+
postJson(
|
|
90
|
+
$servers.flowable + "/appcenter/getCountListForToDoTask",
|
|
91
|
+
data,
|
|
92
|
+
true,
|
|
93
|
+
success
|
|
94
|
+
);
|
|
45
95
|
},
|
|
46
96
|
getBrTree: (data, success, error) => {
|
|
47
97
|
postJson($servers.flowable + "/br/listForTree", data, true, success, error);
|
|
48
98
|
},
|
|
49
99
|
getUserData: (data, success, error) => {
|
|
50
|
-
postJson(
|
|
51
|
-
|
|
100
|
+
postJson(
|
|
101
|
+
$servers.flowable + "/user/listByBrNo",
|
|
102
|
+
data,
|
|
103
|
+
true,
|
|
104
|
+
success,
|
|
105
|
+
error
|
|
106
|
+
);
|
|
107
|
+
}
|
|
52
108
|
};
|
|
53
109
|
|
|
54
110
|
export default api;
|
package/src/api/model.js
CHANGED
|
@@ -7,6 +7,9 @@ const api = {
|
|
|
7
7
|
findByPage: (data, success, error) => {
|
|
8
8
|
findByPage($servers.flowable + "/manager/model/modelList", data, true, success, error);
|
|
9
9
|
},
|
|
10
|
+
getRuleTreeData: (data, success, error) => {
|
|
11
|
+
postForm($servers.rule + "/modelTree/find4ListForForm.action", data, true, success, error);
|
|
12
|
+
},
|
|
10
13
|
};
|
|
11
14
|
|
|
12
15
|
export default api;
|
package/src/api/plt.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { get, postJson, postForm, del, putJson, findByPage } from
|
|
1
|
+
import { get, postJson, postForm, del, putJson, findByPage } from "../axios";
|
|
2
2
|
|
|
3
3
|
const api = {
|
|
4
4
|
brFindByPage: (data, success) => {
|
|
5
5
|
postJson($servers.sys + "/sys/sysDept/findByPage", data, true, success);
|
|
6
6
|
},
|
|
7
|
+
brFindAllByPage: (data, success) => {
|
|
8
|
+
postJson($servers.sys + "/sys/sysDept/findAllByPage", data, true, success);
|
|
9
|
+
},
|
|
10
|
+
customAPI: (url, data, success) => {
|
|
11
|
+
postJson(url, data, true, success);
|
|
12
|
+
},
|
|
7
13
|
};
|
|
8
14
|
|
|
9
15
|
export default api;
|
|
Binary file
|