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
a67cbec6
Commit
a67cbec6
authored
Nov 17, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样表系统上传
parent
c590cb26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
sample-form-manager-ui/admin/src/api/baseSet.js
sample-form-manager-ui/admin/src/api/baseSet.js
+2
-2
sample-form-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
...-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
+22
-16
No files found.
sample-form-manager-ui/admin/src/api/baseSet.js
View file @
a67cbec6
...
@@ -5,7 +5,7 @@ import request from '@/utils/request'
...
@@ -5,7 +5,7 @@ import request from '@/utils/request'
// 查看基础设置
// 查看基础设置
export
const
getBaseSetInfo
=
(
data
)
=>
{
export
const
getBaseSetInfo
=
(
data
)
=>
{
return
request
({
return
request
({
url
:
"
/sampleform/
setting/info
"
,
url
:
"
/sampleform/
hotword/list
"
,
method
:
"
post
"
,
method
:
"
post
"
,
data
,
data
,
});
});
...
@@ -13,7 +13,7 @@ export const getBaseSetInfo = (data) => {
...
@@ -13,7 +13,7 @@ export const getBaseSetInfo = (data) => {
// 保存基础设置
// 保存基础设置
export
const
saveBaseSet
=
(
data
)
=>
{
export
const
saveBaseSet
=
(
data
)
=>
{
return
request
({
return
request
({
url
:
"
/sampleform/
setting
/save
"
,
url
:
"
/sampleform/
hotword
/save
"
,
method
:
"
post
"
,
method
:
"
post
"
,
data
,
data
,
});
});
...
...
sample-form-manager-ui/admin/src/pages/software/basics/BasicsSet.vue
View file @
a67cbec6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</div>
</div>
<!-- 标签 -->
<!-- 标签 -->
<div
class=
"mt20"
>
<div
class=
"mt20"
>
<template
v-for=
"tag in baseSetInfo.hot
W
ords"
>
<template
v-for=
"tag in baseSetInfo.hot
w
ords"
>
<el-tooltip
<el-tooltip
class=
"item"
class=
"item"
effect=
"dark"
effect=
"dark"
...
@@ -79,13 +79,17 @@
...
@@ -79,13 +79,17 @@
<
script
>
<
script
>
import
{
getBaseSetInfo
,
saveBaseSet
}
from
"
@/api/baseSet
"
;
import
{
getBaseSetInfo
,
saveBaseSet
}
from
"
@/api/baseSet
"
;
import
local
from
"
@/utils/local
"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
inputVisible
:
false
,
inputVisible
:
false
,
inputValue
:
""
,
inputValue
:
""
,
baseSetInfo
:
{
baseSetInfo
:
{
hot
W
ords
:
[],
hot
w
ords
:
[],
printDisplay
:
""
,
printDisplay
:
""
,
}
,
}
,
}
;
}
;
...
@@ -96,26 +100,27 @@ export default {
...
@@ -96,26 +100,27 @@ export default {
methods
:
{
methods
:
{
// 获取基础设置
// 获取基础设置
async
getBaseSetInfo
()
{
async
getBaseSetInfo
()
{
let
res
=
await
getBaseSetInfo
();
let
res
=
await
getBaseSetInfo
({
let
{
data
,
code
}
=
res
.
data
;
siteId
:
this
.
siteId
if
(
code
===
1
)
{
}
);
if
(
data
.
hotWords
)
{
console
.
log
(
"
res:
"
,
res
)
data
.
hotWords
=
data
.
hotWords
.
split
(
"
,
"
);
if
(
res
.
data
.
code
===
1
)
{
this
.
baseSetInfo
=
data
;
console
.
log
(
"
len:
"
,
res
.
data
.
data
.
data
)
}
else
{
if
(
res
.
data
.
data
.
data
.
length
>
0
){
this
.
baseSetInfo
.
printDisplay
=
data
.
printDisplay
;
this
.
baseSetInfo
.
hotwords
=
res
.
data
.
data
.
data
[
0
].
hotwords
.
split
(
"
,
"
)
this
.
baseSetInfo
.
printDisplay
=
res
.
data
.
data
.
data
[
0
].
printDisplay
;
}
}
}
}
}
,
}
,
handleClose
(
tag
)
{
handleClose
(
tag
)
{
this
.
baseSetInfo
.
hot
W
ords
.
splice
(
this
.
baseSetInfo
.
hot
w
ords
.
splice
(
this
.
baseSetInfo
.
hot
W
ords
.
indexOf
(
tag
),
this
.
baseSetInfo
.
hot
w
ords
.
indexOf
(
tag
),
1
1
);
);
}
,
}
,
showInput
()
{
showInput
()
{
if
(
this
.
baseSetInfo
.
hot
W
ords
.
length
>=
10
)
{
if
(
this
.
baseSetInfo
.
hot
w
ords
.
length
>=
10
)
{
return
;
return
;
}
}
this
.
inputVisible
=
true
;
this
.
inputVisible
=
true
;
...
@@ -127,7 +132,7 @@ export default {
...
@@ -127,7 +132,7 @@ export default {
handleInputConfirm
()
{
handleInputConfirm
()
{
let
inputValue
=
this
.
inputValue
;
let
inputValue
=
this
.
inputValue
;
if
(
inputValue
)
{
if
(
inputValue
)
{
this
.
baseSetInfo
.
hot
W
ords
.
push
(
inputValue
);
this
.
baseSetInfo
.
hot
w
ords
.
push
(
inputValue
);
}
}
this
.
inputVisible
=
false
;
this
.
inputVisible
=
false
;
this
.
inputValue
=
""
;
this
.
inputValue
=
""
;
...
@@ -136,7 +141,8 @@ export default {
...
@@ -136,7 +141,8 @@ export default {
async
handleOk
()
{
async
handleOk
()
{
let
res
=
await
saveBaseSet
({
let
res
=
await
saveBaseSet
({
...
this
.
baseSetInfo
,
...
this
.
baseSetInfo
,
hotWords
:
this
.
baseSetInfo
.
hotWords
.
join
(
"
,
"
),
hotwords
:
this
.
baseSetInfo
.
hotwords
.
join
(
"
,
"
),
siteId
:
this
.
siteId
}
);
}
);
let
{
code
,
msg
}
=
res
.
data
;
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
...
@@ -147,7 +153,7 @@ export default {
...
@@ -147,7 +153,7 @@ export default {
}
,
}
,
// 重置
// 重置
handleReset
()
{
handleReset
()
{
this
.
baseSetInfo
.
hot
W
ords
=
[];
this
.
baseSetInfo
.
hot
w
ords
=
[];
this
.
baseSetInfo
.
printDisplay
=
""
;
this
.
baseSetInfo
.
printDisplay
=
""
;
}
,
}
,
}
,
}
,
...
...
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