Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
5b343c7b
Commit
5b343c7b
authored
Jun 19, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加dee-mes
parent
cfdf6c68
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
665 additions
and
2 deletions
+665
-2
dee.config.js
applications/architecture-dee/dee.config.js
+3
-0
modules.js
applications/architecture-dee/public/modules.js
+1
-0
modules.js
applications/architecture-dee/src/modules.js
+1
-0
modulesServiceApplicationMap.js
...ions/architecture-dee/src/modulesServiceApplicationMap.js
+2
-1
.eslintignore
applications/dee-mes/.eslintignore
+4
-0
.eslintrc.js
applications/dee-mes/.eslintrc.js
+198
-0
.gitignore
applications/dee-mes/.gitignore
+22
-0
README.md
applications/dee-mes/README.md
+29
-0
babel.config.js
applications/dee-mes/babel.config.js
+5
-0
jest.config.js
applications/dee-mes/jest.config.js
+24
-0
package.json
applications/dee-mes/package.json
+84
-0
config.js
applications/dee-mes/src/api/config.js
+7
-0
main.js
applications/dee-mes/src/main.js
+30
-0
index.vue
...src/privateComponents/components/AddDisplayForm/index.vue
+27
-0
index.vue
...src/privateComponents/components/SupplierSelect/index.vue
+58
-0
index.js
applications/dee-mes/src/privateComponents/index.js
+20
-0
signConfig.js
applications/dee-mes/src/privateComponents/signConfig.js
+22
-0
store.js
applications/dee-mes/src/store.js
+40
-0
http.js
applications/dee-mes/src/utils/http.js
+26
-0
vue.config.js
applications/dee-mes/vue.config.js
+57
-0
host.json
host.json
+1
-1
move.js
move.js
+4
-0
No files found.
applications/architecture-dee/dee.config.js
View file @
5b343c7b
...
...
@@ -2,6 +2,9 @@
module
.
exports
=
{
'PROXY'
:
{
/* 新模块添加位置 */
'/dee-mes/'
:
{
'target'
:
'http://localhost:10805/'
},
'/dee-global-config/'
:
{
'target'
:
'http://localhost:10803/'
},
...
...
applications/architecture-dee/public/modules.js
View file @
5b343c7b
...
...
@@ -16,6 +16,7 @@ const submodules = [
]
const
subMicroModules
=
[
/* 新模块添加位置 */
'dee-mes'
,
'dee-user'
,
'dee-dashboard'
,
'dee-dic'
,
...
...
applications/architecture-dee/src/modules.js
View file @
5b343c7b
...
...
@@ -16,6 +16,7 @@ export const modules = [
]
export
const
microModules
=
[
/* 新模块添加位置 */
'dee-mes'
,
'dee-user'
,
'dee-dashboard'
,
'dee-dic'
,
...
...
applications/architecture-dee/src/modulesServiceApplicationMap.js
View file @
5b343c7b
...
...
@@ -11,6 +11,7 @@ export default {
'dxstinventoryaccount'
:
[
'dee-storage'
],
'dxstinvaccountdetail'
:
[
'dee-storage'
],
'productionbasicinfo'
:
[
'dee-storage'
],
'leanproductionkit'
:
[
'dee-production'
]
'leanproductionkit'
:
[
'dee-production'
],
'mom'
:
[
'dee-mes'
,
'dee-doc'
]
}
applications/dee-mes/.eslintignore
0 → 100644
View file @
5b343c7b
build/*.js
src/assets
public
dist
applications/dee-mes/.eslintrc.js
0 → 100644
View file @
5b343c7b
module
.
exports
=
{
root
:
true
,
parserOptions
:
{
parser
:
'babel-eslint'
,
sourceType
:
'module'
},
env
:
{
browser
:
true
,
node
:
true
,
es6
:
true
,
},
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
],
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
rules
:
{
"vue/max-attributes-per-line"
:
[
2
,
{
"singleline"
:
10
,
"multiline"
:
{
"max"
:
1
,
"allowFirstLine"
:
false
}
}],
"vue/singleline-html-element-content-newline"
:
"off"
,
"vue/multiline-html-element-content-newline"
:
"off"
,
"vue/name-property-casing"
:
[
"error"
,
"PascalCase"
],
"vue/no-v-html"
:
"off"
,
'accessor-pairs'
:
2
,
'arrow-spacing'
:
[
2
,
{
'before'
:
true
,
'after'
:
true
}],
'block-spacing'
:
[
2
,
'always'
],
'brace-style'
:
[
2
,
'1tbs'
,
{
'allowSingleLine'
:
true
}],
'camelcase'
:
[
0
,
{
'properties'
:
'always'
}],
'comma-dangle'
:
[
2
,
'never'
],
'comma-spacing'
:
[
2
,
{
'before'
:
false
,
'after'
:
true
}],
'comma-style'
:
[
2
,
'last'
],
'constructor-super'
:
2
,
'curly'
:
[
2
,
'multi-line'
],
'dot-location'
:
[
2
,
'property'
],
'eol-last'
:
2
,
'eqeqeq'
:
[
"error"
,
"always"
,
{
"null"
:
"ignore"
}],
'generator-star-spacing'
:
[
2
,
{
'before'
:
true
,
'after'
:
true
}],
'handle-callback-err'
:
[
2
,
'^(err|error)$'
],
'indent'
:
[
2
,
2
,
{
'SwitchCase'
:
1
}],
'jsx-quotes'
:
[
2
,
'prefer-single'
],
'key-spacing'
:
[
2
,
{
'beforeColon'
:
false
,
'afterColon'
:
true
}],
'keyword-spacing'
:
[
2
,
{
'before'
:
true
,
'after'
:
true
}],
'new-cap'
:
[
2
,
{
'newIsCap'
:
true
,
'capIsNew'
:
false
}],
'new-parens'
:
2
,
'no-array-constructor'
:
2
,
'no-caller'
:
2
,
'no-console'
:
'off'
,
'no-class-assign'
:
2
,
'no-cond-assign'
:
2
,
'no-const-assign'
:
2
,
'no-control-regex'
:
0
,
'no-delete-var'
:
2
,
'no-dupe-args'
:
2
,
'no-dupe-class-members'
:
2
,
'no-dupe-keys'
:
2
,
'no-duplicate-case'
:
2
,
'no-empty-character-class'
:
2
,
'no-empty-pattern'
:
2
,
'no-eval'
:
2
,
'no-ex-assign'
:
2
,
'no-extend-native'
:
2
,
'no-extra-bind'
:
2
,
'no-extra-boolean-cast'
:
2
,
'no-extra-parens'
:
[
2
,
'functions'
],
'no-fallthrough'
:
2
,
'no-floating-decimal'
:
2
,
'no-func-assign'
:
2
,
'no-implied-eval'
:
2
,
'no-inner-declarations'
:
[
2
,
'functions'
],
'no-invalid-regexp'
:
2
,
'no-irregular-whitespace'
:
2
,
'no-iterator'
:
2
,
'no-label-var'
:
2
,
'no-labels'
:
[
2
,
{
'allowLoop'
:
false
,
'allowSwitch'
:
false
}],
'no-lone-blocks'
:
2
,
'no-mixed-spaces-and-tabs'
:
2
,
'no-multi-spaces'
:
2
,
'no-multi-str'
:
2
,
'no-multiple-empty-lines'
:
[
2
,
{
'max'
:
1
}],
'no-native-reassign'
:
2
,
'no-negated-in-lhs'
:
2
,
'no-new-object'
:
2
,
'no-new-require'
:
2
,
'no-new-symbol'
:
2
,
'no-new-wrappers'
:
2
,
'no-obj-calls'
:
2
,
'no-octal'
:
2
,
'no-octal-escape'
:
2
,
'no-path-concat'
:
2
,
'no-proto'
:
2
,
'no-redeclare'
:
2
,
'no-regex-spaces'
:
2
,
'no-return-assign'
:
[
2
,
'except-parens'
],
'no-self-assign'
:
2
,
'no-self-compare'
:
2
,
'no-sequences'
:
2
,
'no-shadow-restricted-names'
:
2
,
'no-spaced-func'
:
2
,
'no-sparse-arrays'
:
2
,
'no-this-before-super'
:
2
,
'no-throw-literal'
:
2
,
'no-trailing-spaces'
:
2
,
'no-undef'
:
2
,
'no-undef-init'
:
2
,
'no-unexpected-multiline'
:
2
,
'no-unmodified-loop-condition'
:
2
,
'no-unneeded-ternary'
:
[
2
,
{
'defaultAssignment'
:
false
}],
'no-unreachable'
:
2
,
'no-unsafe-finally'
:
2
,
'no-unused-vars'
:
[
2
,
{
'vars'
:
'all'
,
'args'
:
'none'
}],
'no-useless-call'
:
2
,
'no-useless-computed-key'
:
2
,
'no-useless-constructor'
:
2
,
'no-useless-escape'
:
0
,
'no-whitespace-before-property'
:
2
,
'no-with'
:
2
,
'one-var'
:
[
2
,
{
'initialized'
:
'never'
}],
'operator-linebreak'
:
[
2
,
'after'
,
{
'overrides'
:
{
'?'
:
'before'
,
':'
:
'before'
}
}],
'padded-blocks'
:
[
2
,
'never'
],
'quotes'
:
[
2
,
'single'
,
{
'avoidEscape'
:
true
,
'allowTemplateLiterals'
:
true
}],
'semi'
:
[
2
,
'never'
],
'semi-spacing'
:
[
2
,
{
'before'
:
false
,
'after'
:
true
}],
'space-before-blocks'
:
[
2
,
'always'
],
'space-before-function-paren'
:
[
2
,
'never'
],
'space-in-parens'
:
[
2
,
'never'
],
'space-infix-ops'
:
2
,
'space-unary-ops'
:
[
2
,
{
'words'
:
true
,
'nonwords'
:
false
}],
'spaced-comment'
:
[
2
,
'always'
,
{
'markers'
:
[
'global'
,
'globals'
,
'eslint'
,
'eslint-disable'
,
'*package'
,
'!'
,
','
]
}],
'template-curly-spacing'
:
[
2
,
'never'
],
'use-isnan'
:
2
,
'valid-typeof'
:
2
,
'wrap-iife'
:
[
2
,
'any'
],
'yield-star-spacing'
:
[
2
,
'both'
],
'yoda'
:
[
2
,
'never'
],
'prefer-const'
:
2
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
2
:
0
,
'object-curly-spacing'
:
[
2
,
'always'
,
{
objectsInObjects
:
false
}],
'array-bracket-spacing'
:
[
2
,
'never'
]
}
}
applications/dee-mes/.gitignore
0 → 100644
View file @
5b343c7b
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
applications/dee-mes/README.md
0 → 100644
View file @
5b343c7b
# app-javascript
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn run serve
```
### Compiles and minifies for production
```
yarn run build
```
### Run your tests
```
yarn run test
```
### Lints and fixes files
```
yarn run lint
```
### Customize configuration
See
[
Configuration Reference
](
https://cli.vuejs.org/config/
)
.
applications/dee-mes/babel.config.js
0 → 100644
View file @
5b343c7b
module
.
exports
=
{
presets
:
[
'@vue/app'
]
}
applications/dee-mes/jest.config.js
0 → 100644
View file @
5b343c7b
module
.
exports
=
{
moduleFileExtensions
:
[
'js'
,
'jsx'
,
'json'
,
'vue'
],
transform
:
{
'^.+
\\
.vue$'
:
'vue-jest'
,
'.+
\\
.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$'
:
'jest-transform-stub'
,
'^.+
\\
.jsx?$'
:
'babel-jest'
},
moduleNameMapper
:
{
'^@/(.*)$'
:
'<rootDir>/src/$1'
},
snapshotSerializers
:
[
'jest-serializer-vue'
],
testMatch
:
[
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
collectCoverageFrom
:
[
'src/utils/**/*.{js,vue}'
,
'!src/utils/auth.js'
,
'!src/utils/request.js'
,
'src/components/**/*.{js,vue}'
],
coverageDirectory
:
'<rootDir>/tests/unit/coverage'
,
// 'collectCoverage': true,
'coverageReporters'
:
[
'lcov'
,
'text-summary'
],
testURL
:
'http://localhost/'
}
applications/dee-mes/package.json
0 → 100644
View file @
5b343c7b
{
"name"
:
"dee-mes"
,
"devPort"
:
10805
,
"version"
:
"0.1.0"
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"lint"
:
"vue-cli-service lint"
,
"build"
:
"vue-cli-service build --report"
},
"dependencies"
:
{
"axios"
:
"^0.19.2"
,
"bpmn-js"
:
"^7.0.0"
,
"camunda-bpmn-moddle"
:
"^4.4.0"
,
"lodash.foreach"
:
"^4.5.0"
,
"moment"
:
"^2.26.0"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
},
"devDependencies"
:
{
"@babel/core"
:
"7.0.0"
,
"@babel/register"
:
"7.0.0"
,
"@vue/cli-plugin-babel"
:
"3.6.0"
,
"@vue/cli-plugin-eslint"
:
"^3.9.1"
,
"@vue/cli-plugin-unit-jest"
:
"3.6.3"
,
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/test-utils"
:
"1.0.0-beta.29"
,
"autoprefixer"
:
"^9.5.1"
,
"babel-core"
:
"7.0.0-bridge.0"
,
"babel-eslint"
:
"^8.0.1"
,
"babel-jest"
:
"23.6.0"
,
"chalk"
:
"2.4.2"
,
"connect"
:
"3.6.6"
,
"eslint"
:
"5.15.3"
,
"eslint-plugin-prettier"
:
"^3.1.3"
,
"eslint-plugin-vue"
:
"5.2.2"
,
"html-webpack-plugin"
:
"3.2.0"
,
"lint-staged"
:
"^10.2.9"
,
"mockjs"
:
"1.0.1-beta3"
,
"node-sass"
:
"^4.14.1"
,
"runjs"
:
"^4.3.2"
,
"sass-loader"
:
"^8.0.2"
,
"script-ext-html-webpack-plugin"
:
"2.1.3"
,
"script-loader"
:
"0.7.2"
,
"serve-static"
:
"^1.13.2"
,
"svg-sprite-loader"
:
"4.1.3"
,
"svgo"
:
"1.2.2"
,
"vue-template-compiler"
:
"^2.6.10"
},
"postcss"
:
{
"plugins"
:
{
"autoprefixer"
:
{}
}
},
"eslintConfig"
:
{
"root"
:
true
,
"env"
:
{
"node"
:
true
},
"extends"
:
[
"plugin:vue/essential"
,
"@vue/prettier"
],
"rules"
:
{
"no-console"
:
"off"
,
"no-unused-vars"
:
"off"
},
"parserOptions"
:
{
"parser"
:
"babel-eslint"
}
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
,
"not ie <= 8"
],
"lint-staged"
:
{
"*.{js,vue}"
:
[
"vue-cli-service lint"
,
"git add"
]
},
"license"
:
"MIT"
}
applications/dee-mes/src/api/config.js
0 → 100644
View file @
5b343c7b
import
{
get
}
from
'../utils/http'
// 删除索引
export
function
get
(
params
)
{
return
get
(
`/demo`
)
}
applications/dee-mes/src/main.js
0 → 100644
View file @
5b343c7b
// import Vue from 'vue'
// import routes from './routes'
import
signConfig
from
'./privateComponents/signConfig'
import
privateComponents
from
'./privateComponents/index'
// const sharePool = (Vue.__share_pool__ = Vue.__share_pool__ || {})
// const store = (sharePool.store = sharePool.store || {})
function
loadComponent
(
comName
,
type
)
{
let
resolveComponent
if
(
type
===
'customComponent'
)
{
resolveComponent
=
resolve
=>
{
require
([
`@/customComponent
${
comName
}
`
],
resolve
)
}
}
else
if
(
type
===
'privateComponents'
)
{
resolveComponent
=
resolve
=>
{
require
([
`@/privateComponents/
${
'components'
+
comName
}
`
],
resolve
)
}
}
else
if
(
type
===
'view'
)
{
resolveComponent
=
resolve
=>
{
require
([
`@/views/
${
comName
}
`
],
resolve
)
}
}
return
resolveComponent
}
export
default
{
/* 模块名称 */
name
:
'dee-mes'
,
privateComponents
,
signConfig
,
loadComponent
,
beforeEach
(
from
,
to
,
next
)
{
next
()
},
init
()
{}
}
applications/dee-mes/src/privateComponents/components/AddDisplayForm/index.vue
0 → 100644
View file @
5b343c7b
/**
* @Description: 新增表单
* @author xioln
* @date 2023-06-16
* @FilePath: applications/dee-mes/src/privateComponents/components/addDisplayForm/index.vue
*/
<
template
>
<div
class=
"className"
/>
</
template
>
<
script
>
export
default
{
name
:
''
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
data
()
{
return
{
}
},
computed
:
{},
created
()
{
// 初始化数据
},
methods
:
{
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/components/SupplierSelect/index.vue
0 → 100644
View file @
5b343c7b
/**
* @Description: 供应商选择
* @author xioln
* @date 2023-06-16
*/
<
template
>
<div
class=
"supplierSelect-com"
>
<el-autocomplete
v-model=
"value"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入内容"
@
select=
"handleSelect"
>
<template
slot-scope=
"
{ item }">
<div
class=
"item"
>
{{
item
.
value
}}
</div>
</
template
>
</el-autocomplete>
</div>
</template>
<
script
>
export
default
{
componentName
:
'供应商选择'
,
name
:
'DxSupplierSelect'
,
components
:
{},
data
()
{
return
{
value
:
''
,
options
:
[
{
value
:
'选项1'
},
{
value
:
'选项2'
},
{
value
:
'选项3'
},
{
value
:
'选项4'
},
{
value
:
'选项5'
}
]
}
},
computed
:
{},
created
()
{
// 初始化数据
},
methods
:
{
querySearch
(
queryString
,
cb
)
{
const
results
=
queryString
?
this
.
options
.
filter
(
this
.
createFilter
(
queryString
))
:
this
.
options
cb
(
results
)
},
createFilter
(
queryString
)
{
return
(
option
)
=>
{
return
option
.
value
.
toLowerCase
().
indexOf
(
queryString
.
toLowerCase
())
!==
-
1
}
},
handleSelect
(
item
)
{
console
.
log
(
item
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/index.js
0 → 100644
View file @
5b343c7b
const
requireComponent
=
require
.
context
(
'./components'
,
// 在当前目录下查找
true
,
// 遍历子文件夹
/
\.
vue$/
// 正则匹配 以 .vue结尾的文件
)
const
privateComponents
=
[]
requireComponent
.
keys
().
forEach
(
fileName
=>
{
const
comp
=
requireComponent
(
fileName
)
if
(
comp
.
default
.
componentName
)
{
privateComponents
.
push
(
{
componentName
:
comp
.
default
.
componentName
,
name
:
comp
.
default
.
name
,
path
:
fileName
.
slice
(
1
)
}
)
}
})
export
default
privateComponents
applications/dee-mes/src/privateComponents/signConfig.js
0 → 100644
View file @
5b343c7b
// 容器级组件
const
containerComponents
=
[
'DxSupplierSelect'
]
// form可选组件
const
formListComponents
=
[
'DxSupplierSelect'
]
// 组合表单可选组件
const
tabComponents
=
[
'DxSupplierSelect'
]
// table可选组件
const
tableListComponents
=
[
'DxSupplierSelect'
]
export
default
{
containerComponents
,
formListComponents
,
tabComponents
,
tableListComponents
}
applications/dee-mes/src/store.js
0 → 100644
View file @
5b343c7b
/* store module */
import
config
from
'@/api/config'
import
{
actionInit
}
from
'@/utils/store.js'
import
axios
from
'axios'
export
default
{
namespaced
:
true
,
// namespaced must be true in module app.
state
:
{
name
:
process
.
env
.
VUE_APP_NAME
},
mutations
:
{},
actions
:
actionInit
(
config
,
{
getpvoList
({
commit
},
params
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
.
all
([
config
.
getPOByName
(
params
),
config
.
getVOByName
(
params
)])
.
then
(
axios
.
spread
(
function
(
res1
,
res2
)
{
const
optionsList
=
[]
res1
.
items
.
forEach
(
element
=>
{
optionsList
.
push
({
label
:
element
.
field
,
value
:
element
.
field
,
...
element
})
})
res2
.
items
.
forEach
(
element
=>
{
optionsList
.
push
({
label
:
element
.
field
,
value
:
element
.
field
,
voLabel
:
true
,
...
element
})
})
resolve
(
optionsList
)
}))
.
catch
(
e
=>
{
reject
(
e
)
})
})
}
})
}
applications/dee-mes/src/utils/http.js
0 → 100644
View file @
5b343c7b
import
Vue
from
'vue'
const
sharePool
=
(
Vue
.
__share_pool__
=
Vue
.
__share_pool__
||
{})
const
http
=
(
sharePool
.
http
=
sharePool
.
http
||
{})
function
get
(
url
,
params
)
{
return
http
.
get
(
url
,
params
)
}
function
post
(
url
,
params
)
{
return
http
.
post
(
url
,
params
)
}
function
put
(
url
,
params
)
{
return
http
.
put
(
url
,
params
)
}
function
patch
(
url
,
params
)
{
return
http
.
patch
(
url
,
params
)
}
function
del
(
url
,
params
)
{
return
http
.
del
(
url
,
params
)
}
function
downloadFile
(
url
,
type
)
{
return
http
.
downloadFile
(
url
,
type
)
}
function
downloadZip
(
url
,
type
)
{
return
http
.
downloadZip
(
url
,
type
)
}
export
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
applications/dee-mes/vue.config.js
0 → 100644
View file @
5b343c7b
const
webpack
=
require
(
'webpack'
)
const
APP_NAME
=
require
(
'./package.json'
).
name
const
PORT
=
require
(
'./package.json'
).
devPort
const
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'development'
const
path
=
require
(
'path'
)
log
(
'APP_NAME: '
,
APP_NAME
)
log
(
'NODE_ENV: '
,
NODE_ENV
)
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
module
.
exports
=
{
publicPath
:
`
${
NODE_ENV
===
'development'
?
''
:
'.'
}
/
${
APP_NAME
}
/`
,
css
:
{
extract
:
false
},
productionSourceMap
:
false
,
configureWebpack
:
{
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
)
}
}
},
chainWebpack
:
(
config
)
=>
{
config
.
externals
({
'vue'
:
'Vue'
})
config
.
output
.
filename
(
'main.js'
)
.
chunkFilename
(
'[name].[chunkhash:8].js'
)
.
jsonpFunction
(
`webpackJsonp-
${
APP_NAME
}
`
)
.
library
(
`app-
${
APP_NAME
}
`
)
.
libraryExport
(
'default'
)
.
libraryTarget
(
'umd'
)
config
.
optimization
.
splitChunks
(
false
)
config
.
plugin
(
'define'
).
use
(
webpack
.
DefinePlugin
,
[{
'process.env.VUE_APP_NAME'
:
JSON
.
stringify
(
APP_NAME
)
}])
config
.
plugins
.
delete
(
'html'
)
.
delete
(
'preload'
)
.
delete
(
'prefetch'
)
},
devServer
:
{
port
:
PORT
}
}
function
log
(
label
,
content
,
options
)
{
console
.
log
(
'
\
x1b[1m%s
\
x1b[31m%s
\
x1b[0m'
,
label
,
content
)
}
host.json
View file @
5b343c7b
{
"host"
:
10805
}
\ No newline at end of file
{
"host"
:
10806
}
\ No newline at end of file
move.js
View file @
5b343c7b
...
...
@@ -7,6 +7,10 @@ const tasks = [
dest
:
'dist'
,
},
/* 新模块添加位置 */
{
src
:
'applications/dee-mes/dist'
,
dest
:
'dist/dee-mes'
},
{
src
:
'applications/dee-user/dist'
,
dest
:
'dist/dee-user'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment