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
774323c1
Commit
774323c1
authored
Feb 23, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4bdeaea1
f6ac76b4
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
66 additions
and
62 deletions
+66
-62
sample-form-client-ui/admin/package.json
sample-form-client-ui/admin/package.json
+1
-0
sample-form-client-ui/admin/src/App.vue
sample-form-client-ui/admin/src/App.vue
+8
-2
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/components/MateralsList.vue
sample-form-client-ui/admin/src/components/MateralsList.vue
+4
-4
sample-form-client-ui/admin/src/pages/home/Home.vue
sample-form-client-ui/admin/src/pages/home/Home.vue
+25
-39
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
...form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
+12
-7
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
sample-form-manager-ui/admin/public/favicon.ico
sample-form-manager-ui/admin/public/favicon.ico
+0
-0
sample-form-manager-ui/admin/src/pages/layouts/components/Header.vue
...-manager-ui/admin/src/pages/layouts/components/Header.vue
+3
-3
No files found.
sample-form-client-ui/admin/package.json
View file @
774323c1
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"@babel/parser"
:
"^7.7.4"
,
"@babel/parser"
:
"^7.7.4"
,
"@babel/polyfill"
:
"^7.12.1"
,
"axios"
:
"^0.27.2"
,
"axios"
:
"^0.27.2"
,
"beautifier"
:
"^0.1.7"
,
"beautifier"
:
"^0.1.7"
,
"clipboard"
:
"^2.0.4"
,
"clipboard"
:
"^2.0.4"
,
...
...
sample-form-client-ui/admin/src/App.vue
View file @
774323c1
...
@@ -18,6 +18,13 @@ export default {
...
@@ -18,6 +18,13 @@ export default {
linkDom
:
null
,
// 换皮
linkDom
:
null
,
// 换皮
};
};
},
},
watch
:
{
"
$route.path
"
(
newVal
)
{
if
(
newVal
==
"
/
"
||
newVal
==
"
/home
"
)
{
this
.
getHomeInfo
();
}
},
},
created
()
{
created
()
{
this
.
getInfo
();
this
.
getInfo
();
// 开发环境
// 开发环境
...
@@ -73,10 +80,9 @@ export default {
...
@@ -73,10 +80,9 @@ export default {
getInfo
()
{
getInfo
()
{
let
routeQuery
=
this
.
urlGet
();
let
routeQuery
=
this
.
urlGet
();
if
(
JSON
.
stringify
(
routeQuery
)
!==
"
{}
"
)
{
if
(
JSON
.
stringify
(
routeQuery
)
!==
"
{}
"
)
{
let
{
devicenum
,
deviceInfo
}
=
routeQuery
;
let
{
devicenum
}
=
routeQuery
;
this
.
devicenum
=
devicenum
;
this
.
devicenum
=
devicenum
;
local
.
setLocal
(
"
devicenum
"
,
devicenum
);
local
.
setLocal
(
"
devicenum
"
,
devicenum
);
local
.
setLocal
(
"
siteId
"
,
deviceInfo
.
siteId
);
}
}
},
},
// 获取首页信息
// 获取首页信息
...
...
sample-form-client-ui/admin/src/api/index.js
View file @
774323c1
...
@@ -5,13 +5,11 @@ import request from "@/utils/request";
...
@@ -5,13 +5,11 @@ import request from "@/utils/request";
export
const
getHomeInfo
=
(
data
)
=>
{
export
const
getHomeInfo
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
devicenum
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/info`
,
url
:
`
${
baseUrl
}
sampleform/home/info`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
devicenum
,
...
data
,
...
data
,
},
},
});
});
...
...
sample-form-client-ui/admin/src/components/Header.vue
View file @
774323c1
...
@@ -31,7 +31,7 @@ export default {
...
@@ -31,7 +31,7 @@ export default {
.header {
.header {
width: 100%;
width: 100%;
height: 100px;
height: 100px;
padding: 0px
4
0px;
padding: 0px
6
0px;
background: url("../assets/img/title.jpg") no-repeat center;
background: url("../assets/img/title.jpg") no-repeat center;
background-size: 100% 100%;
background-size: 100% 100%;
box-shadow: 0px 2px 6px 6px #ccc;
box-shadow: 0px 2px 6px 6px #ccc;
...
...
sample-form-client-ui/admin/src/components/MateralsList.vue
View file @
774323c1
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
>
>
<div
<div
class=
"matterDatumList-item flex flexc aic"
class=
"matterDatumList-item flex flexc aic"
v-for=
"
(v, i)
in matterInfo.matterDatumList"
v-for=
"
v
in matterInfo.matterDatumList"
:key=
"v.id"
:key=
"v.id"
@
click=
"handleCheck(
i
)"
@
click=
"handleCheck(
v
)"
>
>
<div
class=
"pic-box"
>
<div
class=
"pic-box"
>
<div
class=
"pic-img-box"
>
<div
class=
"pic-img-box"
>
...
@@ -84,13 +84,13 @@ export default {
...
@@ -84,13 +84,13 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
handleCheck
(
index
)
{
handleCheck
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"
/showMaterials
"
,
path
:
"
/showMaterials
"
,
query
:
{
query
:
{
matterName
:
this
.
matterInfo
.
matterName
,
matterName
:
this
.
matterInfo
.
matterName
,
matterId
:
this
.
matterInfo
.
id
,
matterId
:
this
.
matterInfo
.
id
,
i
ndex
,
i
d
:
row
.
id
,
},
},
});
});
},
},
...
...
sample-form-client-ui/admin/src/pages/home/Home.vue
View file @
774323c1
...
@@ -14,15 +14,17 @@
...
@@ -14,15 +14,17 @@
<div
class=
"right flex"
>
<div
class=
"right flex"
>
<p
class=
"flex aic mr25"
>
<p
class=
"flex aic mr25"
>
<span
class=
"tips-name"
>
今日节约能量:
</span>
<span
class=
"tips-name"
>
今日节约能量:
</span>
<span
class=
"count count1"
>
{{
<span
class=
"count count1"
v-if=
"homeInfo.dayThrift"
>
{{
homeInfo
.
dayThrift
??
0
|
filterCount
homeInfo
.
dayThrift
|
filterCount
}}
</span>
}}
</span>
<span
class=
"count count1"
v-else
>
0
</span>
</p>
</p>
<p
class=
"flex aic"
>
<p
class=
"flex aic"
>
<span
class=
"tips-name"
>
累计节约能量:
</span>
<span
class=
"tips-name"
>
累计节约能量:
</span>
<span
class=
"count count2"
>
{{
<span
class=
"count count2"
v-if=
"homeInfo.totalThrift"
>
{{
homeInfo
.
totalThrift
??
0
|
filterCount
homeInfo
.
totalThrift
|
filterCount
}}
</span>
}}
</span>
<span
class=
"count count2"
v-else
>
0
</span>
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -63,12 +65,12 @@
...
@@ -63,12 +65,12 @@
>
>
<span
<span
:data-value=
"v"
:data-value=
"v"
v-if=
"v
?
.length
<
=
6
"
v-if=
"v
.length && v
.length
<
=
6
"
class=
"hot-search-item"
class=
"hot-search-item"
>
{{
v
}}
</span
>
{{
v
}}
</span
>
>
<span
:data-value=
"v"
v-else
class=
"hot-search-item"
>
{{
<span
:data-value=
"v"
v-else
class=
"hot-search-item"
>
{{
v
?
.
slice
(
0
,
6
)
+
"
...
"
v
.
slice
(
0
,
6
)
+
"
...
"
}}
</span>
}}
</span>
<span
class=
"line"
></span>
<span
class=
"line"
></span>
</div>
</div>
...
@@ -98,7 +100,7 @@
...
@@ -98,7 +100,7 @@
<img
v-if=
"i
<
3
"
:src=
"checkTopImg(i)"
/>
<img
v-if=
"i
<
3
"
:src=
"checkTopImg(i)"
/>
<span
v-else
>
{{
i
+
1
}}
.
</span>
<span
v-else
>
{{
i
+
1
}}
.
</span>
</div>
</div>
<p
class=
"flex1"
v-ellipsis
@
click=
"checkMaterial(
i,
v)"
>
<p
class=
"flex1"
v-ellipsis
@
click=
"checkMaterial(v)"
>
{{
v
.
materialName
?
v
.
materialName
:
v
.
materiaFullName
}}
{{
v
.
materialName
?
v
.
materialName
:
v
.
materiaFullName
}}
</p>
</p>
</div>
</div>
...
@@ -130,11 +132,6 @@
...
@@ -130,11 +132,6 @@
class=
"hot-matter-list flex1 mt10"
class=
"hot-matter-list flex1 mt10"
v-if=
"matterList && matterList.length"
v-if=
"matterList && matterList.length"
>
>
<vue-seamless-scroll
:class-option=
"optionTop"
class=
"seamless-warp"
>
<div>
<div
<div
class=
"hot-matter-item flex aic"
class=
"hot-matter-item flex aic"
v-for=
"(v, i) in matterList"
v-for=
"(v, i) in matterList"
...
@@ -149,8 +146,6 @@
...
@@ -149,8 +146,6 @@
</p>
</p>
</div>
</div>
</div>
</div>
</vue-seamless-scroll>
</div>
<div
v-else
class=
"tac empty-text"
>
暂无数据
</div>
<div
v-else
class=
"tac empty-text"
>
暂无数据
</div>
</div>
</div>
</div>
</div>
...
@@ -161,7 +156,7 @@
...
@@ -161,7 +156,7 @@
<span
class=
"data-name"
>
入驻表单量:
</span>
<span
class=
"data-name"
>
入驻表单量:
</span>
<div
class=
"count-box"
>
<div
class=
"count-box"
>
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
homeInfo
.
datumCont
?
?
0
homeInfo
.
datumCont
?
homeInfo
.
datumCont
:
0
}}
</span>
}}
</span>
<span>
份
</span>
<span>
份
</span>
</div>
</div>
...
@@ -171,7 +166,7 @@
...
@@ -171,7 +166,7 @@
<span
class=
"data-name"
>
入驻事项量:
</span>
<span
class=
"data-name"
>
入驻事项量:
</span>
<div
class=
"count-box"
>
<div
class=
"count-box"
>
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
<span
class=
"data-count"
v-format=
"'#,##0'"
>
{{
homeInfo
.
matterCont
?
?
0
homeInfo
.
matterCont
?
homeInfo
.
matterCont
:
0
}}
</span>
}}
</span>
<span>
件
</span>
<span>
件
</span>
</div>
</div>
...
@@ -217,15 +212,6 @@ export default {
...
@@ -217,15 +212,6 @@ export default {
waitTime
:
2500
,
// 单行停顿时间(singleHeight,waitTime)
waitTime
:
2500
,
// 单行停顿时间(singleHeight,waitTime)
};
};
},
},
optionTop
()
{
return
{
direction
:
1
,
// 滚动方向
step
:
0.5
,
// 数值越大速度滚动越快
limitMoveNum
:
4
,
// 开启无缝滚动的数据量 设置(数值
<=
页面展示数据条数不滚
)(
超过页面展示条数滚动
)
openWatch
:
true
,
// 开启数据实时监控刷新dom
waitTime
:
2500
,
// 单行停顿时间(singleHeight,waitTime)
};
},
...
mapState
([
"
homeInfo
"
,
"
datumList
"
,
"
matterList
"
]),
...
mapState
([
"
homeInfo
"
,
"
datumList
"
,
"
matterList
"
]),
},
},
created
()
{
created
()
{
...
@@ -299,12 +285,12 @@ export default {
...
@@ -299,12 +285,12 @@ export default {
this
.
visible
=
true
;
this
.
visible
=
true
;
},
},
// 查看材料
// 查看材料
checkMaterial
(
index
,
row
)
{
checkMaterial
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"
/showmaterials
"
,
path
:
"
/showmaterials
"
,
query
:
{
query
:
{
matterId
:
row
.
matterId
,
matterId
:
row
.
matterId
,
i
ndex
,
i
d
:
row
.
id
,
},
},
});
});
},
},
...
@@ -509,7 +495,7 @@ export default {
...
@@ -509,7 +495,7 @@ export default {
.ranking-list {
.ranking-list {
padding: 0px 14px;
padding: 0px 14px;
.ranking-item {
.ranking-item {
height: 5
6
px;
height: 5
0
px;
margin-bottom: 10px;
margin-bottom: 10px;
line-height: 56px;
line-height: 56px;
border-radius: 8px;
border-radius: 8px;
...
...
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
View file @
774323c1
...
@@ -55,12 +55,12 @@
...
@@ -55,12 +55,12 @@
</span>
</span>
</div>
</div>
<!-- 申请编号 -->
<!-- 申请编号 -->
<div
class=
"apply-num tac"
v-ellipsis=
"'340px'"
>
<
!--
<
div
class=
"apply-num tac"
v-ellipsis=
"'340px'"
>
申请编号:DX123456789
申请编号:DX123456789
</div>
</div>
-->
<!-- 事项名称 -->
<!-- 事项名称 -->
<div
class=
"matter-name tac"
v-ellipsis=
"'340px'"
>
<div
class=
"matter-name tac"
v-ellipsis=
"'340px'"
>
{{
matter
Info
.
matter
Name
}}
{{
matterName
}}
</div>
</div>
<!-- 材料列表 -->
<!-- 材料列表 -->
<div
class=
"materails-list scroll3"
>
<div
class=
"materails-list scroll3"
>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
:key="v.id"
:key="v.id"
@click="active = i"
@click="active = i"
>
>
{{
v
.
materiaFullName
}}
{{
v
.
materia
lName
?
v
.
materialName
:
v
.
materia
FullName
}}
<div
class=
"line"
></div>
<div
class=
"line"
></div>
</div>
</div>
</div>
</div>
...
@@ -110,7 +110,8 @@ export default {
...
@@ -110,7 +110,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
api
:
local
.
getLocal
(
"
serverUrl
"
)
+
"
/
"
,
api
:
local
.
getLocal
(
"
serverUrl
"
)
+
"
/
"
,
matterInfo
:
this
.
$route
.
query
,
matterInfo
:
{},
matterName
:
""
,
// 事项名称
materailsList
:
[],
materailsList
:
[],
active
:
0
,
active
:
0
,
scale
:
100
,
scale
:
100
,
...
@@ -134,7 +135,7 @@ export default {
...
@@ -134,7 +135,7 @@ export default {
let
res
=
await
getMaterialsList
({
let
res
=
await
getMaterialsList
({
page
:
1
,
page
:
1
,
size
:
-
1
,
size
:
-
1
,
matterId
:
this
.
matterInfo
.
matterId
,
matterId
:
this
.
$route
.
query
.
matterId
,
});
});
let
{
data
}
=
res
.
data
.
data
;
let
{
data
}
=
res
.
data
.
data
;
data
.
forEach
((
v
)
=>
{
data
.
forEach
((
v
)
=>
{
...
@@ -145,7 +146,11 @@ export default {
...
@@ -145,7 +146,11 @@ export default {
};
};
});
});
this
.
materailsList
=
data
;
this
.
materailsList
=
data
;
this
.
active
=
+
this
.
$route
.
query
.
index
;
this
.
matterName
=
this
.
$route
.
query
.
matterName
?
this
.
$route
.
query
.
matterName
:
data
[
0
].
matterName
;
let
id
=
this
.
$route
.
query
.
id
;
this
.
active
=
this
.
materailsList
.
findIndex
((
v
)
=>
v
.
id
==
id
);
},
},
// 放大
// 放大
...
...
sample-form-client-ui/admin/src/utils/request.js
View file @
774323c1
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
*/
*/
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
import
{
Message
}
from
"
element-ui
"
;
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
(
axios
.
interceptors
.
request
.
use
(
(
config
)
=>
{
(
config
)
=>
{
...
...
sample-form-client-ui/admin/yarn.lock
View file @
774323c1
...
@@ -832,6 +832,14 @@
...
@@ -832,6 +832,14 @@
"@babel/helper-create-regexp-features-plugin" "^7.18.6"
"@babel/helper-create-regexp-features-plugin" "^7.18.6"
"@babel/helper-plugin-utils" "^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":
"@babel/preset-env@^7.12.16":
version "7.19.1"
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.19.1.tgz#9f04c916f9c0205a48ebe5cc1be7768eb1983f67"
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:
...
@@ -3036,7 +3044,7 @@ core-js-compat@^3.25.1, core-js-compat@^3.8.3:
dependencies:
dependencies:
browserslist "^4.21.4"
browserslist "^4.21.4"
core-js@^2.4.0:
core-js@^2.4.0
, core-js@^2.6.5
:
version "2.6.12"
version "2.6.12"
resolved "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
resolved "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
...
...
sample-form-manager-ui/admin/public/favicon.ico
View replaced file @
4bdeaea1
View file @
774323c1
5.34 KB
|
W:
|
H:
4.19 KB
|
W:
|
H:
2-up
Swipe
Onion skin
sample-form-manager-ui/admin/src/pages/layouts/components/Header.vue
View file @
774323c1
<
template
>
<
template
>
<div
class=
"header flex aic jcb"
>
<div
class=
"header flex aic jcb"
>
<div
class=
"left flex aic"
>
<div
class=
"left flex aic"
>
<img
<
!--
<
img
class=
"pointer"
class=
"pointer"
width=
"32"
width=
"32"
src=
"../../../assets/img/logo.png"
src=
"../../../assets/img/logo.png"
alt=
"LOGO"
alt=
"LOGO"
@
click=
"handleGoHome"
@
click=
"handleGoHome"
/>
/>
-->
<h1
class=
"title
ml10
pointer"
@
click=
"handleGoHome"
>
<h1
class=
"title pointer"
@
click=
"handleGoHome"
>
智慧政务一体化综合管理平台
智慧政务一体化综合管理平台
</h1>
</h1>
<HeaderSite
class=
"mr50 ml20"
></HeaderSite>
<HeaderSite
class=
"mr50 ml20"
></HeaderSite>
...
...
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