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
a88ca93f
Commit
a88ca93f
authored
Feb 20, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改语法
parent
877df31b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
15 deletions
+24
-15
sample-form-client-ui/admin/package.json
sample-form-client-ui/admin/package.json
+1
-0
sample-form-client-ui/admin/src/api/index.js
sample-form-client-ui/admin/src/api/index.js
+0
-2
sample-form-client-ui/admin/src/components/Header.vue
sample-form-client-ui/admin/src/components/Header.vue
+1
-1
sample-form-client-ui/admin/src/pages/home/Home.vue
sample-form-client-ui/admin/src/pages/home/Home.vue
+10
-8
sample-form-client-ui/admin/src/utils/request.js
sample-form-client-ui/admin/src/utils/request.js
+3
-3
sample-form-client-ui/admin/yarn.lock
sample-form-client-ui/admin/yarn.lock
+9
-1
No files found.
sample-form-client-ui/admin/package.json
View file @
a88ca93f
...
...
@@ -12,6 +12,7 @@
},
"dependencies"
:
{
"@babel/parser"
:
"^7.7.4"
,
"@babel/polyfill"
:
"^7.12.1"
,
"axios"
:
"^0.27.2"
,
"beautifier"
:
"^0.1.7"
,
"clipboard"
:
"^2.0.4"
,
...
...
sample-form-client-ui/admin/src/api/index.js
View file @
a88ca93f
...
...
@@ -5,13 +5,11 @@ import request from "@/utils/request";
export
const
getHomeInfo
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
devicenum
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/info`
,
method
:
"
post
"
,
data
:
{
siteId
,
devicenum
,
...
data
,
},
});
...
...
sample-form-client-ui/admin/src/components/Header.vue
View file @
a88ca93f
...
...
@@ -31,7 +31,7 @@ export default {
.header {
width: 100%;
height: 100px;
padding: 0px
4
0px;
padding: 0px
6
0px;
background: url("../assets/img/title.jpg") no-repeat center;
background-size: 100% 100%;
box-shadow: 0px 2px 6px 6px #ccc;
...
...
sample-form-client-ui/admin/src/pages/home/Home.vue
View file @
a88ca93f
...
...
@@ -14,15 +14,17 @@
<div
class=
"right flex"
>
<p
class=
"flex aic mr25"
>
<span
class=
"tips-name"
>
今日节约能量:
</span>
<span
class=
"count count1"
>
{{
homeInfo
.
dayThrift
??
0
|
filterCount
<span
class=
"count count1"
v-if=
"homeInfo.dayThrift"
>
{{
homeInfo
.
dayThrift
|
filterCount
}}
</span>
<span
class=
"count count1"
v-else
>
0
</span>
</p>
<p
class=
"flex aic"
>
<span
class=
"tips-name"
>
累计节约能量:
</span>
<span
class=
"count count2"
>
{{
homeInfo
.
totalThrift
??
0
|
filterCount
<span
class=
"count count2"
v-if=
"homeInfo.totalThrift"
>
{{
homeInfo
.
totalThrift
|
filterCount
}}
</span>
<span
class=
"count count2"
v-else
>
0
</span>
</p>
</div>
</div>
...
...
@@ -63,12 +65,12 @@
>
<span
:data-value=
"v"
v-if=
"v
?
.length
<
=
6
"
v-if=
"v
.length && v
.length
<
=
6
"
class=
"hot-search-item"
>
{{
v
}}
</span
>
<span
:data-value=
"v"
v-else
class=
"hot-search-item"
>
{{
v
?
.
slice
(
0
,
6
)
+
"
...
"
v
.
slice
(
0
,
6
)
+
"
...
"
}}
</span>
<span
class=
"line"
></span>
</div>
...
...
@@ -161,7 +163,7 @@
<span
class=
"data-name"
>
入驻表单量:
</span>
<div
class=
"count-box"
>
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
homeInfo
.
datumCont
?
?
0
homeInfo
.
datumCont
?
homeInfo
.
datumCont
:
0
}}
</span>
<span>
份
</span>
</div>
...
...
@@ -171,7 +173,7 @@
<span
class=
"data-name"
>
入驻事项量:
</span>
<div
class=
"count-box"
>
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
homeInfo
.
matterCont
?
?
0
homeInfo
.
matterCont
?
homeInfo
.
matterCont
:
0
}}
</span>
<span>
件
</span>
</div>
...
...
sample-form-client-ui/admin/src/utils/request.js
View file @
a88ca93f
...
...
@@ -3,12 +3,12 @@
*/
import
axios
from
"
axios
"
;
import
{
Message
}
from
"
element-ui
"
;
import
local
from
"
@/utils/local
"
;
//
import local from "@/utils/local";
// 请求超时时间
axios
.
defaults
.
timeout
=
15
*
1000
;
//
axios.defaults.timeout = 15 * 1000;
// 设置统一服务器地址
axios
.
defaults
.
baseURL
=
local
.
getLocal
(
"
serverUrl
"
);
//
axios.defaults.baseURL = local.getLocal("serverUrl");
// 请求拦截
axios
.
interceptors
.
request
.
use
(
(
config
)
=>
{
...
...
sample-form-client-ui/admin/yarn.lock
View file @
a88ca93f
...
...
@@ -832,6 +832,14 @@
"@babel/helper-create-regexp-features-plugin" "^7.18.6"
"@babel/helper-plugin-utils" "^7.18.6"
"@babel/polyfill@^7.12.1":
version "7.12.1"
resolved "https://registry.npmmirror.com/@babel/polyfill/-/polyfill-7.12.1.tgz#1f2d6371d1261bbd961f3c5d5909150e12d0bd96"
integrity sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"
"@babel/preset-env@^7.12.16":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.19.1.tgz#9f04c916f9c0205a48ebe5cc1be7768eb1983f67"
...
...
@@ -3036,7 +3044,7 @@ core-js-compat@^3.25.1, core-js-compat@^3.8.3:
dependencies:
browserslist "^4.21.4"
core-js@^2.4.0:
core-js@^2.4.0
, core-js@^2.6.5
:
version "2.6.12"
resolved "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
...
...
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