Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
4b74bb74
Commit
4b74bb74
authored
Feb 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
22b6a871
459aeeb3
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
590 additions
and
76 deletions
+590
-76
sample-form-client-ui/admin/.browserslistrc
sample-form-client-ui/admin/.browserslistrc
+1
-1
sample-form-client-ui/admin/.gitignore
sample-form-client-ui/admin/.gitignore
+1
-1
sample-form-client-ui/admin/package.json
sample-form-client-ui/admin/package.json
+2
-1
sample-form-client-ui/admin/src/components/SearchBox.vue
sample-form-client-ui/admin/src/components/SearchBox.vue
+1
-1
sample-form-client-ui/admin/src/pages/home/Home.vue
sample-form-client-ui/admin/src/pages/home/Home.vue
+1
-1
sample-form-client-ui/admin/vue.config.js
sample-form-client-ui/admin/vue.config.js
+35
-12
sample-form-client-ui/admin/yarn.lock
sample-form-client-ui/admin/yarn.lock
+233
-6
sample-form-manager-ui/admin/.browserslistrc
sample-form-manager-ui/admin/.browserslistrc
+1
-1
sample-form-manager-ui/admin/.env.development
sample-form-manager-ui/admin/.env.development
+1
-4
sample-form-manager-ui/admin/.env.production
sample-form-manager-ui/admin/.env.production
+5
-1
sample-form-manager-ui/admin/.env.test
sample-form-manager-ui/admin/.env.test
+5
-1
sample-form-manager-ui/admin/.gitignore
sample-form-manager-ui/admin/.gitignore
+1
-1
sample-form-manager-ui/admin/package.json
sample-form-manager-ui/admin/package.json
+2
-1
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
...manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
+1
-1
sample-form-manager-ui/admin/src/pages/jump/jump.vue
sample-form-manager-ui/admin/src/pages/jump/jump.vue
+1
-1
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
.../admin/src/pages/software/librarymanage/LibraryManage.vue
+1
-0
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
...ui/admin/src/pages/software/materials/MaterialsManage.vue
+1
-0
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
...nager-ui/admin/src/pages/software/matter/MatterManage.vue
+2
-0
sample-form-manager-ui/admin/src/pages/software/skinManage/SkinManage.vue
...ger-ui/admin/src/pages/software/skinManage/SkinManage.vue
+18
-17
sample-form-manager-ui/admin/src/router/index.js
sample-form-manager-ui/admin/src/router/index.js
+16
-0
sample-form-manager-ui/admin/src/utils/request.js
sample-form-manager-ui/admin/src/utils/request.js
+1
-1
sample-form-manager-ui/admin/vue.config.js
sample-form-manager-ui/admin/vue.config.js
+27
-18
sample-form-manager-ui/admin/yarn.lock
sample-form-manager-ui/admin/yarn.lock
+233
-6
No files found.
sample-form-client-ui/admin/.browserslistrc
View file @
4b74bb74
> 1%
> 1%
last 2 versions
last 2 versions
not
dead
not
ie <= 10
sample-form-client-ui/admin/.gitignore
View file @
4b74bb74
.DS_Store
.DS_Store
node_modules
node_modules
/dist
/dist
样表终端系统.zip
# local env files
# local env files
.env.local
.env.local
...
...
sample-form-client-ui/admin/package.json
View file @
4b74bb74
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"scripts"
:
{
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"dev"
:
"vue-cli-service serve"
,
"dev"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build
--mode production
"
,
"lint"
:
"vue-cli-service lint"
,
"lint"
:
"vue-cli-service lint"
,
"test"
:
"vue-cli-service build --mode test"
,
"test"
:
"vue-cli-service build --mode test"
,
"build:prod"
:
"vue-cli-service build --model prod"
"build:prod"
:
"vue-cli-service build --model prod"
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
"@vue/cli-service"
:
"~5.0.0"
,
"@vue/cli-service"
:
"~5.0.0"
,
"eslint"
:
"^7.32.0"
,
"eslint"
:
"^7.32.0"
,
"eslint-plugin-vue"
:
"^8.0.3"
,
"eslint-plugin-vue"
:
"^8.0.3"
,
"filemanager-webpack-plugin"
:
"^8.0.0"
,
"less"
:
"^4.0.0"
,
"less"
:
"^4.0.0"
,
"less-loader"
:
"^8.0.0"
,
"less-loader"
:
"^8.0.0"
,
"svg-sprite-loader"
:
"^4.1.6"
,
"svg-sprite-loader"
:
"^4.1.6"
,
...
...
sample-form-client-ui/admin/src/components/SearchBox.vue
View file @
4b74bb74
...
@@ -81,7 +81,7 @@ export default {
...
@@ -81,7 +81,7 @@ export default {
right: 200px;
right: 200px;
}
}
.el-icon-circle-close {
.el-icon-circle-close {
font-size:
2
0px;
font-size:
3
0px;
}
}
:deep(.el-input__inner) {
:deep(.el-input__inner) {
height: 72px;
height: 72px;
...
...
sample-form-client-ui/admin/src/pages/home/Home.vue
View file @
4b74bb74
...
@@ -440,7 +440,7 @@ export default {
...
@@ -440,7 +440,7 @@ export default {
right: 200px;
right: 200px;
}
}
.el-icon-circle-close {
.el-icon-circle-close {
font-size:
2
0px;
font-size:
3
0px;
}
}
.search-btn {
.search-btn {
width: 167px;
width: 167px;
...
...
sample-form-client-ui/admin/vue.config.js
View file @
4b74bb74
const
{
defineConfig
}
=
require
(
'
@vue/cli-service
'
)
const
{
defineConfig
}
=
require
(
"
@vue/cli-service
"
);
const
FileManagerPlugin
=
require
(
"
filemanager-webpack-plugin
"
);
// 压缩文件夹
const
isDev
=
process
.
env
.
NODE_ENV
===
"
development
"
;
let
plugins
=
[];
// 避免打本地启项目时自动打zip包
if
(
!
isDev
)
{
plugins
.
push
(
new
FileManagerPlugin
({
events
:
{
onEnd
:
{
mkdir
:
[
"
./dist
"
],
delete
:
[
"
./样表终端系统.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./样表终端系统.zip
"
}],
},
},
})
);
}
module
.
exports
=
defineConfig
({
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
transpileDependencies
:
true
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
assetsDir
:
'
s
'
,
lintOnSave
:
false
,
// webpack 插件
lintOnSave
:
false
,
configureWebpack
:
{
plugins
:
[...
plugins
],
},
transpileDependencies
:
true
,
// 打包输出目录
outputDir
:
"
dist/dist
"
,
publicPath
:
"
./
"
,
devServer
:
{
devServer
:
{
port
:
9086
,
port
:
9086
,
hot
:
"
only
"
,
//自动保存
hot
:
"
only
"
,
//自动保存
proxy
:
{
proxy
:
{
'
/sampleform
'
:
{
"
/sampleform
"
:
{
target
:
'
http://localhost:17002
'
,
target
:
"
http://localhost:17002
"
,
changeOrigin
:
true
,
changeOrigin
:
true
,
secure
:
false
,
secure
:
false
,
cookieDomainRewrite
:
'
localhost
'
,
cookieDomainRewrite
:
"
localhost
"
,
}
}
,
}
}
,
}
}
,
})
})
;
sample-form-client-ui/admin/yarn.lock
View file @
4b74bb74
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/.browserslistrc
View file @
4b74bb74
> 1%
> 1%
last 2 versions
last 2 versions
not
dead
not
ie <= 10
sample-form-manager-ui/admin/.env.development
View file @
4b74bb74
#开发环境
#开发环境
NODE_ENV = "development"
NODE_ENV = "development"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078
VUE_APP_API_BASE_URL=http://192.168.0.98:11078
#VUE_APP_API_BASE_URL=http://192.168.0.98:11071/zwfw
\ No newline at end of file
#VUE_APP_API_BASE_URL=http://192.168.0.98:11023
#VUE_APP_API_BASE_URL=http://192.168.0.217:17311
\ No newline at end of file
sample-form-manager-ui/admin/.env.production
View file @
4b74bb74
#生产环境
#生产环境
NODE_ENV = "production"
NODE_ENV = "production"
VUE_APP_API_BASE_URL=http://192.168.0.98:17008
VUE_APP_API_BASE_URL=/basics_api
#基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
sample-form-manager-ui/admin/.env.test
View file @
4b74bb74
#开发环境
#开发环境
NODE_ENV
=
"test"
NODE_ENV
=
"test"
VUE_APP_API_BASE_URL
=
http
://
192.168
.
0.98
:
11078
VUE_APP_API_BASE_URL
=/
basics_api
\ No newline at end of file
#基础设置
VUE_APP_API_basics_URL
=/
basics_api
/
base
#门户
VUE_APP_API_portal_URL
=/
portal_home
\ No newline at end of file
sample-form-manager-ui/admin/.gitignore
View file @
4b74bb74
.DS_Store
.DS_Store
node_modules
node_modules
/dist
/dist
样表管理系统.zip
# local env files
# local env files
.env.local
.env.local
...
...
sample-form-manager-ui/admin/package.json
View file @
4b74bb74
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vue-cli-service serve"
,
"dev"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build
--mode production
"
,
"test"
:
"vue-cli-service build --mode test"
,
"test"
:
"vue-cli-service build --mode test"
,
"lint"
:
"vue-cli-service lint"
,
"lint"
:
"vue-cli-service lint"
,
"stage"
:
"vue-cli-service build --mode stage"
,
"stage"
:
"vue-cli-service build --mode stage"
,
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
"@vue/cli-service"
:
"~5.0.0"
,
"@vue/cli-service"
:
"~5.0.0"
,
"eslint"
:
"^7.32.0"
,
"eslint"
:
"^7.32.0"
,
"eslint-plugin-vue"
:
"^8.0.3"
,
"eslint-plugin-vue"
:
"^8.0.3"
,
"filemanager-webpack-plugin"
:
"^8.0.0"
,
"less"
:
"^4.0.0"
,
"less"
:
"^4.0.0"
,
"less-loader"
:
"^8.0.0"
,
"less-loader"
:
"^8.0.0"
,
"svg-sprite-loader"
:
"^4.1.6"
,
"svg-sprite-loader"
:
"^4.1.6"
,
...
...
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
View file @
4b74bb74
...
@@ -329,4 +329,4 @@ export default {
...
@@ -329,4 +329,4 @@ export default {
.
el
-
switch
.
el
-
switch__label
{
.
el
-
switch
.
el
-
switch__label
{
width
:
60
px
!
important
;
/*开关按钮的宽度大小*/
width
:
60
px
!
important
;
/*开关按钮的宽度大小*/
}
}
<
/style>
<
/style
>
\ No newline at end of file
sample-form-manager-ui/admin/src/pages/jump/jump.vue
View file @
4b74bb74
...
@@ -8,7 +8,7 @@ import local from "@/utils/local";
...
@@ -8,7 +8,7 @@ import local from "@/utils/local";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
portal
:
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
,
portal
:
process
.
env
.
VUE_APP_API_portal_URL
,
};
};
},
},
created
()
{
created
()
{
...
...
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
View file @
4b74bb74
...
@@ -251,6 +251,7 @@ export default {
...
@@ -251,6 +251,7 @@ export default {
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
this
.
getPbuList
();
this
.
getPbuList
();
this
.
$refs
.
multipleTable
.
clearSelection
();
this
.
selectKeys
=
[];
this
.
selectKeys
=
[];
}
}
}
)
}
)
...
...
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
View file @
4b74bb74
...
@@ -504,6 +504,7 @@ export default {
...
@@ -504,6 +504,7 @@ export default {
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
this
.
getMaterialsList
();
this
.
getMaterialsList
();
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
this
.
$refs
.
rightTable
.
clearSelection
();
this
.
rightSelectedRowKeys
=
[];
this
.
rightSelectedRowKeys
=
[];
}
}
}
)
}
)
...
...
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
View file @
4b74bb74
...
@@ -471,6 +471,8 @@ export default {
...
@@ -471,6 +471,8 @@ export default {
let
{
code
,
msg
}
=
res
.
data
;
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
this
.
$refs
.
leftTable
.
clearSelection
();
this
.
leftSelectedRowKeys
=
[];
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
this
.
getMatterSubList
();
this
.
getMatterSubList
();
}
}
...
...
sample-form-manager-ui/admin/src/pages/software/skinManage/SkinManage.vue
View file @
4b74bb74
...
@@ -77,23 +77,24 @@ export default {
...
@@ -77,23 +77,24 @@ export default {
methods
:
{
methods
:
{
// 选择使用皮肤
// 选择使用皮肤
async
changeSkin
(
device
,
row
)
{
async
changeSkin
(
device
,
row
)
{
if
(
row
.
check
===
"
1
"
)
{
// if (row.check === "1") {
// let obj = {
// // let obj = {
// skin_id: "",
// // skin_id: "",
// css_path: "",
// // css_path: "",
// skin_name: "",
// // skin_name: "",
// previewImagePath: "",
// // previewImagePath: "",
// skinFieldList: "",
// // skinFieldList: "",
// device,
// // device,
// };
// // };
row
.
check
=
"
0
"
;
// row.check = "0";
console
.
log
(
check
,
device
);
// console.log(check, device);
// if (code === 1) {
// // if (code === 1) {
// this.$message.success("设置" + msg);
// // this.$message.success("设置" + msg);
// }
// // }
}
else
{
// } else {
row
.
check
=
"
1
"
;
// row.check = "1";
}
// }
console
.
log
(
device
,
row
);
},
},
// 预览皮肤
// 预览皮肤
handlePreview
(
url
)
{
handlePreview
(
url
)
{
...
...
sample-form-manager-ui/admin/src/router/index.js
View file @
4b74bb74
...
@@ -2,6 +2,7 @@ import Vue from "vue";
...
@@ -2,6 +2,7 @@ import Vue from "vue";
import
VueRouter
from
"
vue-router
"
;
import
VueRouter
from
"
vue-router
"
;
import
Layouts
from
"
@/pages/layouts/Layouts.vue
"
;
import
Layouts
from
"
@/pages/layouts/Layouts.vue
"
;
import
store
from
"
@/store
"
;
import
store
from
"
@/store
"
;
import
local
from
"
@/utils/local
"
;
// 解决重复点击同一个路由报错
// 解决重复点击同一个路由报错
const
originalPush
=
VueRouter
.
prototype
.
push
;
const
originalPush
=
VueRouter
.
prototype
.
push
;
VueRouter
.
prototype
.
push
=
function
(
location
)
{
VueRouter
.
prototype
.
push
=
function
(
location
)
{
...
@@ -30,6 +31,21 @@ const router = new VueRouter({
...
@@ -30,6 +31,21 @@ const router = new VueRouter({
routes
,
routes
,
});
});
// 前置路由卫士
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
let
islogin
=
local
.
getLocal
(
"
sampleToken
"
)
?
true
:
false
;
if
(
islogin
)
{
next
();
}
else
{
if
(
to
.
path
===
"
/jump
"
)
{
next
();
}
else
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
// next({ path: "/login" });
}
}
});
// 动态菜单
// 动态菜单
const
dynamicRouter
=
[
const
dynamicRouter
=
[
{
{
...
...
sample-form-manager-ui/admin/src/utils/request.js
View file @
4b74bb74
...
@@ -40,7 +40,7 @@ axios.interceptors.response.use(
...
@@ -40,7 +40,7 @@ axios.interceptors.response.use(
message
:
msg
,
message
:
msg
,
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
},
2000
);
},
2000
);
}
}
}
}
...
...
sample-form-manager-ui/admin/vue.config.js
View file @
4b74bb74
const
{
defineConfig
}
=
require
(
'
@vue/cli-service
'
)
const
{
defineConfig
}
=
require
(
"
@vue/cli-service
"
);
const
FileManagerPlugin
=
require
(
"
filemanager-webpack-plugin
"
);
// 压缩文件夹
const
isDev
=
process
.
env
.
NODE_ENV
===
"
development
"
;
let
plugins
=
[];
// 避免打本地启项目时自动打zip包
if
(
!
isDev
)
{
plugins
.
push
(
new
FileManagerPlugin
({
events
:
{
onEnd
:
{
mkdir
:
[
"
./dist
"
],
delete
:
[
"
./样表管理系统.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./样表管理系统.zip
"
}],
},
},
})
);
}
module
.
exports
=
defineConfig
({
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
transpileDependencies
:
true
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
assetsDir
:
'
s
'
,
// webpack 插件
configureWebpack
:
{
lintOnSave
:
false
,
plugins
:
[...
plugins
],
devServer
:
{
},
port
:
8086
,
transpileDependencies
:
true
,
hot
:
"
only
"
,
//自动保存
// 打包输出目录
proxy
:
{
outputDir
:
"
dist/dist
"
,
'
/sampleform
'
:
{
publicPath
:
"
./
"
,
target
:
'
http://localhost:17215
'
,
});
changeOrigin
:
true
,
secure
:
false
,
cookieDomainRewrite
:
'
localhost
'
,
}
}
}
})
sample-form-manager-ui/admin/yarn.lock
View file @
4b74bb74
This diff is collapsed.
Click to expand it.
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