Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
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
位宇华
klck
Commits
d01b6db0
Commit
d01b6db0
authored
Aug 14, 2023
by
xiangjiaojunxp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面大小和遮罩层
parent
b2c19a5f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
200 additions
and
170 deletions
+200
-170
ruoyi-ui/package.json
ruoyi-ui/package.json
+33
-35
ruoyi-ui/src/views/system/supplies/index.vue
ruoyi-ui/src/views/system/supplies/index.vue
+86
-48
ruoyi-ui/src/views/system/supplies/indexupload.vue
ruoyi-ui/src/views/system/supplies/indexupload.vue
+80
-86
ruoyi-ui/src/views/system/supplies/upload.vue
ruoyi-ui/src/views/system/supplies/upload.vue
+1
-1
No files found.
ruoyi-ui/package.json
View file @
d01b6db0
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
"author"
:
"若依"
,
"author"
:
"若依"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vue-cli-service serve"
,
"dev"
:
"
set NODE_OPTIONS=--openssl-legacy-provider &
vue-cli-service serve"
,
"build:prod"
:
"vue-cli-service build"
,
"build:prod"
:
"
set NODE_OPTIONS=--openssl-legacy-provider &
vue-cli-service build"
,
"build:stage"
:
"vue-cli-service build --mode staging"
,
"build:stage"
:
"
set NODE_OPTIONS=--openssl-legacy-provider &
vue-cli-service build --mode staging"
,
"preview"
:
"node build/index.js --preview"
,
"preview"
:
"node build/index.js --preview"
,
"lint"
:
"eslint --ext .js,.vue src"
"lint"
:
"eslint --ext .js,.vue src"
},
},
...
@@ -36,16 +36,21 @@
...
@@ -36,16 +36,21 @@
"url"
:
"https://gitee.com/y_project/RuoYi-Vue.git"
"url"
:
"https://gitee.com/y_project/RuoYi-Vue.git"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@riophae/vue-treeselect"
:
"0.4.0"
,
"@vue/cli-plugin-babel"
:
"4.4.6"
,
"@vue/cli-plugin-babel"
:
"4.4.6"
,
"@vue/cli-plugin-eslint"
:
"4.4.6"
,
"@vue/cli-plugin-eslint"
:
"4.4.6"
,
"@vue/cli-service"
:
"4.4.6"
,
"@vue/cli-service"
:
"4.4.6"
,
"@riophae/vue-treeselect"
:
"0.4.0"
,
"af-table-column"
:
"^1.0.3"
,
"af-table-column"
:
"^1.0.3"
,
"axios"
:
"0.21.0"
,
"axios"
:
"0.21.0"
,
"babel-eslint"
:
"10.1.0"
,
"chalk"
:
"4.1.0"
,
"clipboard"
:
"2.0.6"
,
"clipboard"
:
"2.0.6"
,
"connect"
:
"3.6.6"
,
"core-js"
:
"3.8.1"
,
"core-js"
:
"3.8.1"
,
"echarts"
:
"4.9.0"
,
"echarts"
:
"4.9.0"
,
"element-ui"
:
"2.15.0"
,
"element-ui"
:
"2.15.0"
,
"eslint"
:
"7.15.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"exceljs"
:
"^4.3.0"
,
"exceljs"
:
"^4.3.0"
,
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"fuse.js"
:
"6.4.3"
,
"fuse.js"
:
"6.4.3"
,
...
@@ -54,45 +59,44 @@
...
@@ -54,45 +59,44 @@
"js-beautify"
:
"1.13.0"
,
"js-beautify"
:
"1.13.0"
,
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"lint-staged"
:
"10.5.3"
,
"luckyexcel"
:
"^1.0.1"
,
"luckyexcel"
:
"^1.0.1"
,
"nprogress"
:
"0.2.0"
,
"nprogress"
:
"0.2.0"
,
"quill"
:
"1.3.7"
,
"quill"
:
"1.3.7"
,
"runjs"
:
"4.4.2"
,
"sass"
:
"1.32.0"
,
"sass-loader"
:
"10.1.0"
,
"screenfull"
:
"5.0.2"
,
"screenfull"
:
"5.0.2"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"scriptjs"
:
"^2.5.9"
,
"scriptjs"
:
"^2.5.9"
,
"sortablejs"
:
"1.10.2"
,
"svg-sprite-loader"
:
"5.1.1"
,
"uuid"
:
"^9.0.0"
,
"vue"
:
"2.6.12"
,
"vue"
:
"2.6.12"
,
"vue-append"
:
"^2.2.0"
,
"vue-append"
:
"^2.2.0"
,
"vue-count-to"
:
"1.0.13"
,
"vue-count-to"
:
"1.0.13"
,
"vue-cropper"
:
"0.5.5"
,
"vue-cropper"
:
"0.5.5"
,
"vue-router"
:
"3.4.9"
,
"vue-router"
:
"3.4.9"
,
"vue-template-compiler"
:
"2.6.12"
,
"vuedraggable"
:
"2.24.3"
,
"vuedraggable"
:
"2.24.3"
,
"vuex"
:
"3.6.0"
,
"vuex"
:
"3.6.0"
,
"xlsx"
:
"^0.17.5"
,
"xlsx"
:
"^0.17.5"
"babel-eslint"
:
"10.1.0"
,
"chalk"
:
"4.1.0"
,
"connect"
:
"3.6.6"
,
"eslint"
:
"7.15.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"lint-staged"
:
"10.5.3"
,
"runjs"
:
"4.4.2"
,
"sass"
:
"1.32.0"
,
"sass-loader"
:
"10.1.0"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"svg-sprite-loader"
:
"5.1.1"
,
"vue-template-compiler"
:
"2.6.12"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@riophae/vue-treeselect"
:
"0.4.0"
,
"@vue/cli-plugin-babel"
:
"4.4.6"
,
"@vue/cli-plugin-babel"
:
"4.4.6"
,
"@vue/cli-plugin-eslint"
:
"4.4.6"
,
"@vue/cli-plugin-eslint"
:
"4.4.6"
,
"@vue/cli-service"
:
"4.4.6"
,
"@vue/cli-service"
:
"4.4.6"
,
"@riophae/vue-treeselect"
:
"0.4.0"
,
"af-table-column"
:
"^1.0.3"
,
"af-table-column"
:
"^1.0.3"
,
"axios"
:
"0.21.0"
,
"axios"
:
"0.21.0"
,
"babel-eslint"
:
"10.1.0"
,
"chalk"
:
"4.1.0"
,
"clipboard"
:
"2.0.6"
,
"clipboard"
:
"2.0.6"
,
"connect"
:
"3.6.6"
,
"core-js"
:
"3.8.1"
,
"core-js"
:
"3.8.1"
,
"echarts"
:
"4.9.0"
,
"echarts"
:
"4.9.0"
,
"element-ui"
:
"2.15.0"
,
"element-ui"
:
"2.15.0"
,
"eslint"
:
"7.15.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"exceljs"
:
"^4.3.0"
,
"exceljs"
:
"^4.3.0"
,
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"fuse.js"
:
"6.4.3"
,
"fuse.js"
:
"6.4.3"
,
...
@@ -101,33 +105,27 @@
...
@@ -101,33 +105,27 @@
"js-beautify"
:
"1.13.0"
,
"js-beautify"
:
"1.13.0"
,
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"lint-staged"
:
"10.5.3"
,
"luckyexcel"
:
"^1.0.1"
,
"luckyexcel"
:
"^1.0.1"
,
"nprogress"
:
"0.2.0"
,
"nprogress"
:
"0.2.0"
,
"quill"
:
"1.3.7"
,
"quill"
:
"1.3.7"
,
"runjs"
:
"4.4.2"
,
"sass"
:
"1.32.0"
,
"sass-loader"
:
"10.1.0"
,
"screenfull"
:
"5.0.2"
,
"screenfull"
:
"5.0.2"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"scriptjs"
:
"^2.5.9"
,
"scriptjs"
:
"^2.5.9"
,
"sortablejs"
:
"1.10.2"
,
"sortablejs"
:
"^1.10.2"
,
"svg-sprite-loader"
:
"5.1.1"
,
"vue"
:
"2.6.12"
,
"vue"
:
"2.6.12"
,
"vue-append"
:
"^2.2.0"
,
"vue-append"
:
"^2.2.0"
,
"vue-count-to"
:
"1.0.13"
,
"vue-count-to"
:
"1.0.13"
,
"vue-cropper"
:
"0.5.5"
,
"vue-cropper"
:
"0.5.5"
,
"vue-router"
:
"3.4.9"
,
"vue-router"
:
"3.4.9"
,
"vue-template-compiler"
:
"2.6.12"
,
"vuedraggable"
:
"2.24.3"
,
"vuedraggable"
:
"2.24.3"
,
"vuex"
:
"3.6.0"
,
"vuex"
:
"3.6.0"
,
"xlsx"
:
"^0.17.5"
,
"xlsx"
:
"^0.17.5"
"babel-eslint"
:
"10.1.0"
,
"chalk"
:
"4.1.0"
,
"connect"
:
"3.6.6"
,
"eslint"
:
"7.15.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"lint-staged"
:
"10.5.3"
,
"runjs"
:
"4.4.2"
,
"sass"
:
"1.32.0"
,
"sass-loader"
:
"10.1.0"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"svg-sprite-loader"
:
"5.1.1"
,
"vue-template-compiler"
:
"2.6.12"
},
},
"engines"
:
{
"engines"
:
{
"node"
:
">=8.9"
,
"node"
:
">=8.9"
,
...
...
ruoyi-ui/src/views/system/supplies/index.vue
View file @
d01b6db0
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
...
@@ -42,17 +41,22 @@
...
@@ -42,17 +41,22 @@
:limit=
"1"
:limit=
"1"
:file-list=
"fileList"
:file-list=
"fileList"
:disabled=
"disableNextButton"
:disabled=
"disableNextButton"
:show-file-list=
false
>
>
<el-button
plain
size=
"mini"
icon=
"el-icon-download"
type=
"primary"
:disabled=
"disableNextButton"
>
导入
</el-button>
<el-button
plain
size=
"mini"
icon=
"el-icon-download"
type=
"primary"
:disabled=
"disableNextButton"
>
导入
</el-button>
</el-upload>
</el-upload>
</el-col>
</el-col>
</el-row>
</el-row>
<!-- luckysheet容器 -->
<!-- luckysheet容器 -->
<div
<div
id=
"luckysheet"
id=
"luckysheet"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;
left: 0px; top: 110px; height: 1000px
; z-index: 0"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;
height:78vh
; z-index: 0"
>
>
</div>
</div>
<div
v-if=
"showMask"
class=
"mask"
>
<div
class=
"loading-spinner"
></div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -77,6 +81,7 @@ export default {
...
@@ -77,6 +81,7 @@ export default {
name
:
"
Mymodule
"
,
name
:
"
Mymodule
"
,
data
()
{
data
()
{
return
{
return
{
showMask
:
false
,
uuid
:
''
,
uuid
:
''
,
//弹出页面的表名
//弹出页面的表名
from_name
:
""
,
from_name
:
""
,
...
@@ -245,7 +250,7 @@ export default {
...
@@ -245,7 +250,7 @@ export default {
/** 导入事件*/
/** 导入事件*/
async
handleFileChange
(
evt
)
{
async
handleFileChange
(
evt
)
{
let
exx
;
let
exx
;
this
.
showMask
=
true
;
const
cons
=
new
Promise
((
resolve
,
reject
)
=>
{
const
cons
=
new
Promise
((
resolve
,
reject
)
=>
{
LuckyExcel
.
transformExcelToLucky
(
evt
,
exportJson
=>
{
LuckyExcel
.
transformExcelToLucky
(
evt
,
exportJson
=>
{
exx
=
exportJson
;
exx
=
exportJson
;
...
@@ -257,7 +262,10 @@ export default {
...
@@ -257,7 +262,10 @@ export default {
const
exportJson
=
await
cons
;
const
exportJson
=
await
cons
;
await
this
.
summary
(
exportJson
);
await
this
.
summary
(
exportJson
);
console
.
log
(
'
summary 执行完毕
'
);
console
.
log
(
'
summary 执行完毕
'
);
// 导入完成后关闭遮罩层
this
.
showMask
=
false
;
this
.
submit
(
exportJson
);
this
.
submit
(
exportJson
);
}
catch
(
Error
)
{
}
catch
(
Error
)
{
this
.
$message
({
this
.
$message
({
message
:
Error
.
message
,
message
:
Error
.
message
,
...
@@ -1056,4 +1064,34 @@ function generateUUID() {
...
@@ -1056,4 +1064,34 @@ function generateUUID() {
return
array
.
join
(
"
-
"
);
return
array
.
join
(
"
-
"
);
}
}
</
script
>
</
script
>
<
style
>
.mask
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.loading-spinner
{
/* 添加你的加载动画样式 */
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
border
:
4px
solid
#f3f3f3
;
border-top
:
4px
solid
#3498db
;
animation
:
spin
1s
linear
infinite
;
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
</
style
>
ruoyi-ui/src/views/system/supplies/indexupload.vue
View file @
d01b6db0
...
@@ -60,18 +60,15 @@
...
@@ -60,18 +60,15 @@
>
导出
</el-button>
>
导出
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
icon=
"el-icon-s-opportunity
<el-button
icon=
"el-icon-s-opportunity"
size=
"mini"
@
click=
"addToMap"
>
生成
</el-button>
"
size=
"mini"
@
click=
"addToMap"
>
生成
</el-button>
</el-col>
</el-col>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
class=
"right-float"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
class=
"right-float"
>
重置
</el-button>
</el-row>
</el-row>
<!-- luckysheet容器 -->
<!-- luckysheet容器 -->
<div
<div
id=
"luckysheet"
id=
"luckysheet"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;left: 0px; top: 105px; height: 1000px; z-index: 0"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;left: 0px; top: 105px; height: 75vh; z-index: 0"
>
></div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -441,10 +438,7 @@ export default {
...
@@ -441,10 +438,7 @@ export default {
}
}
})
}
)
},
},
/** 导出设置 */
/** 导出设置 */
handleExport
:
debounce
(
function
()
{
handleExport
:
debounce
(
function
()
{
...
...
ruoyi-ui/src/views/system/supplies/upload.vue
View file @
d01b6db0
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<!-- luckysheet容器 -->
<!-- luckysheet容器 -->
<div
<div
id=
"luckysheet"
id=
"luckysheet"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;
left: 0px; top: 60px; height: 1000px
; z-index: 0"
style=
"margin: 0px; padding: 0px; position: absolute; width: 100%;
height: 78vh
; z-index: 0"
>
>
</div>
</div>
...
...
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