Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FTT_Board
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
FTT_Board
Commits
7e777252
Commit
7e777252
authored
Dec 19, 2023
by
吴驭时
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【编号:13566】看板优化
parent
9d639c4e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
284 additions
and
22 deletions
+284
-22
.postcssrc.js
FTT.Board.VueUI/.postcssrc.js
+15
-1
package-lock.json
FTT.Board.VueUI/package-lock.json
+206
-21
package.json
FTT.Board.VueUI/package.json
+2
-0
rem.js
FTT.Board.VueUI/src/function/rem.js
+15
-0
main.js
FTT.Board.VueUI/src/main.js
+2
-0
kanbanView.vue
FTT.Board.VueUI/src/views/board/workShopList/kanbanView.vue
+26
-0
kanbanViewCX.vue
...Board.VueUI/src/views/board/workShopList/kanbanViewCX.vue
+18
-0
No files found.
FTT.Board.VueUI/.postcssrc.js
View file @
7e777252
...
@@ -5,6 +5,20 @@ module.exports = {
...
@@ -5,6 +5,20 @@ module.exports = {
"postcss-import"
:
{},
"postcss-import"
:
{},
"postcss-url"
:
{},
"postcss-url"
:
{},
// to edit target browsers: use "browserslist" field in package.json
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer"
:
{}
"autoprefixer"
:
{},
"postcss-pxtorem"
:
{
rootValue
:
192
,
propList
:
[
'*'
],
exclude
:
function
(
file
){
if
(
/src
(\\
|
\/)
views
(\\
|
\/)
board
(\\
|
\/)
workShopList
(\\
|
\/)
kanbanView/
.
test
(
file
)
||
/src
(\\
|
\/)
views
(\\
|
\/)
board
(\\
|
\/)
workShopList
(\\
|
\/)
kanbanViewCX/
.
test
(
file
))
{
return
false
;
}
return
true
;
}
// exclude:function(file){
// console.log
// return
// }
}
}
}
}
}
FTT.Board.VueUI/package-lock.json
View file @
7e777252
This diff is collapsed.
Click to expand it.
FTT.Board.VueUI/package.json
View file @
7e777252
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"echarts"
:
"^4.2.1"
,
"echarts"
:
"^4.2.1"
,
"element-ui"
:
"^2.11.1"
,
"element-ui"
:
"^2.11.1"
,
"moment"
:
"^2.24.0"
,
"moment"
:
"^2.24.0"
,
"postcss-px2rem-exclude"
:
"0.0.6"
,
"swiper"
:
"^6.3.5"
,
"swiper"
:
"^6.3.5"
,
"uglifyjs-webpack-plugin"
:
"^1.0.0"
,
"uglifyjs-webpack-plugin"
:
"^1.0.0"
,
"vue"
:
"^2.5.2"
,
"vue"
:
"^2.5.2"
,
...
@@ -48,6 +49,7 @@
...
@@ -48,6 +49,7 @@
"portfinder"
:
"^1.0.13"
,
"portfinder"
:
"^1.0.13"
,
"postcss-import"
:
"^11.0.0"
,
"postcss-import"
:
"^11.0.0"
,
"postcss-loader"
:
"^2.0.8"
,
"postcss-loader"
:
"^2.0.8"
,
"postcss-pxtorem"
:
"^5.1.1"
,
"postcss-url"
:
"^7.2.1"
,
"postcss-url"
:
"^7.2.1"
,
"rimraf"
:
"^2.6.0"
,
"rimraf"
:
"^2.6.0"
,
"sass-loader"
:
"^7.3.1"
,
"sass-loader"
:
"^7.3.1"
,
...
...
FTT.Board.VueUI/src/function/rem.js
0 → 100644
View file @
7e777252
// 基准大小
const
baseSize
=
192
//跟postcss.config.js中rootValue的值是一致的
// 设置 rem 函数
function
setRem
()
{
// 当前页面宽度相对于 750 宽的缩放比例,可根据自己需要修改。
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
// 设置页面根节点字体大小
document
.
documentElement
.
style
.
fontSize
=
(
baseSize
*
Math
.
min
(
scale
,
2
))
+
'px'
}
// 初始化
setRem
()
// 改变窗口大小时重新设置 rem
window
.
onresize
=
function
()
{
setRem
()
}
\ No newline at end of file
FTT.Board.VueUI/src/main.js
View file @
7e777252
...
@@ -5,6 +5,8 @@ import App from './App'
...
@@ -5,6 +5,8 @@ import App from './App'
import
router
from
'./router'
import
router
from
'./router'
import
'./assets/font/iconfont.css'
import
'./assets/font/iconfont.css'
import
axios
from
'axios'
import
axios
from
'axios'
// import './function/rem.js'
// axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded';
// axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded';
axios
.
defaults
.
headers
.
post
[
'Content-Type'
]
=
"application/json; charset=UTF-8"
;
axios
.
defaults
.
headers
.
post
[
'Content-Type'
]
=
"application/json; charset=UTF-8"
;
Vue
.
prototype
.
axios
=
axios
Vue
.
prototype
.
axios
=
axios
...
...
FTT.Board.VueUI/src/views/board/workShopList/kanbanView.vue
View file @
7e777252
...
@@ -165,6 +165,21 @@ export default {
...
@@ -165,6 +165,21 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// 基准大小
const
baseSize
=
192
//跟postcss.config.js中rootValue的值是一致的
// 设置 rem 函数
function
setRem
()
{
// 当前页面宽度相对于 750 宽的缩放比例,可根据自己需要修改。
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
// 设置页面根节点字体大小
document
.
documentElement
.
style
.
fontSize
=
(
baseSize
*
Math
.
min
(
scale
,
2
))
+
'px'
}
// 初始化
setRem
()
// 改变窗口大小时重新设置 rem
window
.
onresize
=
function
()
{
setRem
()
}
this
.
loadData
();
this
.
loadData
();
this
.
timer
=
window
.
setInterval
(()
=>
{
this
.
timer
=
window
.
setInterval
(()
=>
{
this
.
loadData
();
this
.
loadData
();
...
@@ -309,6 +324,9 @@ export default {
...
@@ -309,6 +324,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
img
{
display
:
block
;
}
.main_view
{
.main_view
{
/* width: 100%; */
/* width: 100%; */
height
:
100%
;
height
:
100%
;
...
@@ -624,4 +642,12 @@ export default {
...
@@ -624,4 +642,12 @@ export default {
margin-top
:
32px
;
margin-top
:
32px
;
height
:
auto
;
height
:
auto
;
}
}
/* @media screen and (max-width: 1024px) {
.main_view{
transform: scaleX(0.54) scaleY(0.71111) translateX(-44%) translateY(0%);
}
} */
/* @media screen and (min-width: 1024px) {
} */
</
style
>
</
style
>
FTT.Board.VueUI/src/views/board/workShopList/kanbanViewCX.vue
View file @
7e777252
...
@@ -172,6 +172,21 @@ export default {
...
@@ -172,6 +172,21 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// 基准大小
const
baseSize
=
192
//跟postcss.config.js中rootValue的值是一致的
// 设置 rem 函数
function
setRem
()
{
// 当前页面宽度相对于 750 宽的缩放比例,可根据自己需要修改。
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
// 设置页面根节点字体大小
document
.
documentElement
.
style
.
fontSize
=
(
baseSize
*
Math
.
min
(
scale
,
2
))
+
'px'
}
// 初始化
setRem
()
// 改变窗口大小时重新设置 rem
window
.
onresize
=
function
()
{
setRem
()
}
this
.
loadData
();
this
.
loadData
();
this
.
loadDataLeft
();
this
.
loadDataLeft
();
this
.
timer
=
window
.
setInterval
(()
=>
{
this
.
timer
=
window
.
setInterval
(()
=>
{
...
@@ -376,6 +391,9 @@ export default {
...
@@ -376,6 +391,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
img
{
display
:
block
;
}
.main_view
{
.main_view
{
/* width: 100%; */
/* width: 100%; */
height
:
100%
;
height
:
100%
;
...
...
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