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
2022-11-22 11:11:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8bac154d8c11714f93ef12f35a440498fcf5b9f
d8bac154
1 parent
4fa4fff1
增加白名单开关按钮,接口,航班维护增加白名单状态字段
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
2 deletions
src/api/findAllFltData.js
src/assets/languages/tableHeaders.js
src/utils/request.js
src/views/basicInformation/flightInformationMaintenance/index.vue
src/api/findAllFltData.js
View file @
d8bac15
...
...
@@ -72,3 +72,17 @@ export function updateAutoPushBatch(data) {
data
:
data
})
}
//白名单自动配舱开关
/**
* @param updateIds idList *
* @param status 状态 * 1开 0关
*/
export
function
updateWhiteListSwitchBatch
(
data
)
{
return
request
({
url
:
'/FlightPreserveController/updateWhiteListSwitchBatch'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/assets/languages/tableHeaders.js
View file @
d8bac15
...
...
@@ -521,6 +521,12 @@ let tableHeaders = {
status
:
1
},
{
columnChineseName
:
"白名单是否自动配舱"
,
columnName
:
"whiteListSwitch"
,
columnWidth
:
"160"
,
status
:
1
},
{
columnChineseName
:
"总重量"
,
columnName
:
"totalWeight"
,
columnWidth
:
"90"
,
...
...
src/utils/request.js
View file @
d8bac15
...
...
@@ -79,7 +79,7 @@ service.interceptors.response.use(res => {
type
:
'error'
})
return
Promise
.
reject
(
new
Error
(
msg
))
}
else
if
(
code
!==
200
&&
code
!==
201
&&
code
!==
202
)
{
}
else
if
(
code
!==
200
&&
code
!==
201
&&
code
!==
202
&&
code
!=
203
)
{
Message
({
message
:
msg
,
type
:
'error'
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
d8bac15
...
...
@@ -60,6 +60,12 @@
@click="autoPushBatch('open')" v-hasPermi="['base:flightInfo:autoPushOpen']">自动推送开启</el-button>
<el-button type="primary" icon="el-icon-circle-close" size="mini" :disabled="ids.length == 0"
@click="autoPushBatch('close')" v-hasPermi="['base:flightInfo:autoPushClose']">自动推送关闭</el-button>
<el-button type="primary" icon="el-icon-circle-check" size="mini" :disabled="ids.length == 0"
@click="whiteListSwitchStatus(1)" v-hasPermi="['base:flightInfo:whiteOpen']">白名单自动配舱开启
</el-button>
<el-button type="primary" icon="el-icon-circle-close" size="mini" :disabled="ids.length == 0"
@click="whiteListSwitchStatus(0)" v-hasPermi="['base:flightInfo:whiteClose']">白名单自动配舱关闭
</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" :disabled="ids.length == 0" @click="handleDelete"
v-hasPermi="['base:flightInfo:delete']">删除
</el-button>
...
...
@@ -278,6 +284,7 @@ import {
findFltCommonConf,
updateStatusBatch,
updateAutoPushBatch,
updateWhiteListSwitchBatch
} from "@/api/findAllFltData";
import { getpreAudit } from '@/api/system/preReview.js'
import { queryRouteByFltNo } from '@/api/destinationFlight.js'
...
...
@@ -775,9 +782,9 @@ export default {
// this.form.highLowPriceFlg = this.form.highLowPriceFlg === 1 ? true : false;
//是否预审
// this.form.isNeedRequired = this.form.isNeedRequired === 1 ? true : false;
this.ishighPriceWeightPercent = this.form.highLowPriceFlg === 1 ? false : true
// 计算高低价可配
// this.LowHighAvailable();
this.ishighPriceWeightPercent = this.form.highLowPriceFlg === 1 ? false : true
} else {
this.msgError(response.msg);
}
...
...
@@ -974,6 +981,26 @@ export default {
this.findAllFltData();
}
},
//白名单配舱开关
whiteListSwitchStatus(val) {
let obj = {
updateIds: []
}
obj.status = val
this.ids.forEach(item => {
obj.updateIds.push(item.id)
})
updateWhiteListSwitchBatch(obj).then(res => {
if (res.code === 200) {
this.msgSuccess(res.msg)
this.findAllFltData()
} else {
this.msgWarning(res.msg)
}
}).catch(err => {
console.log(err)
})
},
//航线修改
routeChange(val) {
this.$forceUpdate()
...
...
Please
register
or
login
to post a comment