Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2023-02-21 14:14:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f0b21332b9b5386fdc4c1f24f36a0ecf470e2afa
f0b21332
1 parent
9f1f20cd
文本修正
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/settings.js
src/views/index.vue
src/settings.js
View file @
f0b2133
...
...
@@ -42,8 +42,8 @@ module.exports = {
/**
* logout
*/
log
outURL
:
'https://test-myapps.secure.fedex.com/L2/iMAC/'
,
//uat
// logoutURL: 'https://myapps.secure.fedex.com/iMAC/',//生产
log
inURL
:
'https://test-myapps.secure.fedex.com/L2/iMAC/'
,
logoutURL
:
'https://test-myapps.secure.fedex.com/logout/'
,
/**
* 后端接口
...
...
src/views/index.vue
View file @
f0b2133
...
...
@@ -44,7 +44,7 @@
<el-row class="card2">
<el-col :span="1" v-for="item in fltBox">
<div class="fltBox" @click="rowClick({ fltNo: item.fltNo, fltDate: item.fltDate, route: '' })"
:style="{ backgroundColor: (item.percentage * 100).toFixed(2) >=
10
0 ? '#13ce66' : (item.percentage * 100).toFixed(2) >= 75 ? '#ffba00' : '#ff4949' }">
:style="{ backgroundColor: (item.percentage * 100).toFixed(2) >=
9
0 ? '#13ce66' : (item.percentage * 100).toFixed(2) >= 75 ? '#ffba00' : '#ff4949' }">
<div class="fltName">{{ item.fltNo }}</div>
<div class="fltWeight">{{ (item.percentage == 0 ? 0 : ((item.percentage) * 100).toFixed(2)) + '%' }}
</div>
...
...
@@ -59,7 +59,7 @@
@currentChange="currentChange" @rowClick="rowClick">
<template v-slot:percentage="scope">
<el-progress stroke-width="100"
:color="(scope.row.percentage * 100).toFixed(2) >=
10
0 ? '#13ce66' : (scope.row.percentage * 100).toFixed(2) >= 75 ? '#ffba00' : '#ff4949'"
:color="(scope.row.percentage * 100).toFixed(2) >=
9
0 ? '#13ce66' : (scope.row.percentage * 100).toFixed(2) >= 75 ? '#ffba00' : '#ff4949'"
:stroke-width="18"
:percentage="scope.row.percentage == 0 ? 0 : Number((scope.row.percentage * 100).toFixed(2))">
</el-progress>
...
...
Please
register
or
login
to post a comment