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
be91e179
Commit
be91e179
authored
Aug 04, 2023
by
xiangjiaojunxp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件导入修改
parent
a3d95a9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
50 deletions
+52
-50
ruoyi-ui/src/views/system/supplies/indexupload.vue
ruoyi-ui/src/views/system/supplies/indexupload.vue
+52
-50
No files found.
ruoyi-ui/src/views/system/supplies/indexupload.vue
View file @
be91e179
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
v-model=
"row"
v-model=
"row"
placeholder=
"请输入开始行"
placeholder=
"请输入开始行"
clearable
clearable
@
keyup.enter.native=
"handle
FileChange1
"
@
keyup.enter.native=
"handle
Enter
"
maxlength=
"8"
maxlength=
"8"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
action=
''
action=
''
:limit=
"1"
:limit=
"1"
:file-list=
"fileList"
:file-list=
"fileList"
:show-file-list=
false
>
>
<el-button
plain
size=
"mini"
icon=
"el-icon-download"
type=
"primary"
>
导入初始文件
</el-button>
<el-button
plain
size=
"mini"
icon=
"el-icon-download"
type=
"primary"
>
导入初始文件
</el-button>
</el-upload>
</el-upload>
...
@@ -35,6 +36,7 @@
...
@@ -35,6 +36,7 @@
: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>
...
@@ -110,7 +112,7 @@ export default {
...
@@ -110,7 +112,7 @@ export default {
if
(
event
.
keyCode
===
13
)
{
if
(
event
.
keyCode
===
13
)
{
event
.
preventDefault
();
// 阻止默认的回车事件
event
.
preventDefault
();
// 阻止默认的回车事件
// 触发确定操作
// 触发确定操作
this
.
submit_from
();
this
.
handleFileChange1
();
}
}
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
@@ -221,8 +223,8 @@ export default {
...
@@ -221,8 +223,8 @@ export default {
}
}
)
)
},
},
/** 生成标签*/
addToMap
(){
addToMap
(){
console
.
log
(
map
);
map
.
forEach
((
value
,
key
)
=>
{
map
.
forEach
((
value
,
key
)
=>
{
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
){
let
row
=
value
[
i
][
0
],
cell
=
value
[
i
][
1
];
let
row
=
value
[
i
][
0
],
cell
=
value
[
i
][
1
];
...
@@ -247,7 +249,7 @@ export default {
...
@@ -247,7 +249,7 @@ export default {
"
top
"
:
10
,
//批注框上边距
"
top
"
:
10
,
//批注框上边距
"
width
"
:
91
,
//批注框宽度
"
width
"
:
91
,
//批注框宽度
"
height
"
:
48
,
//批注框高度
"
height
"
:
48
,
//批注框高度
"
value
"
:
sd
+
"
,
"
+
key
+
"
表有误
"
,
//批准内容
"
value
"
:
sd
+
'
\n
;
'
+
key
+
"
表有误
"
,
//批准内容
"
isshow
"
:
false
//批注框为显示状态
"
isshow
"
:
false
//批注框为显示状态
}
}
})
})
...
@@ -299,8 +301,9 @@ export default {
...
@@ -299,8 +301,9 @@ export default {
for
(
let
j
=
0
;
j
<=
d1
[
0
].
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<=
d1
[
0
].
length
;
j
++
)
{
if
(
d1
[
i
][
j
]
===
null
){
if
(
d1
[
i
][
j
]
===
null
){
break
}
else
if
(
d1
[
i
][
j
].
m
===
undefined
&&
d2
[
i
][
j
].
m
===
undefined
){
}
if
(
d1
[
i
][
j
].
m
===
undefined
&&
d2
[
i
][
j
].
m
===
undefined
){
}
else
if
(
d1
[
i
][
j
].
m
===
undefined
||
d2
[
i
][
j
].
m
===
undefined
){
}
else
if
(
d1
[
i
][
j
].
m
===
undefined
||
d2
[
i
][
j
].
m
===
undefined
){
luckysheet
.
setCellValue
(
i
,
j
,
{
bg
:
"
#FF0000
"
})
luckysheet
.
setCellValue
(
i
,
j
,
{
bg
:
"
#FF0000
"
})
...
@@ -327,7 +330,6 @@ export default {
...
@@ -327,7 +330,6 @@ export default {
}
}
}
}
map
.
set
(
name1
,
array
);
map
.
set
(
name1
,
array
);
console
.
log
(
map
);
if
(
as
>
0
){
if
(
as
>
0
){
this
.
$message
({
this
.
$message
({
message
:
"
导入完成,本次导入共发现
"
+
as
+
"
条不同数据
"
,
message
:
"
导入完成,本次导入共发现
"
+
as
+
"
条不同数据
"
,
...
...
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