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
Elements-SY
2023-10-12 18:10:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78da04c2e5b4efa257c99b294ea648347daaf64c
78da04c2
1 parent
297f94c2
modify
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
24 deletions
src/App.vue
src/components/YlForm/index.vue
src/components/YlTable/index.vue
src/router/index.js
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/et86Config/errorInfo/tableConfig.js
src/views/et86Config/et86HsCodeBlack/index.vue
src/views/et86Config/et86RuleConfig/edit/index.vue
src/views/et86Config/et86RuleConfig/index.vue
src/App.vue
View file @
78da04c
...
...
@@ -6,6 +6,6 @@
<script>
export default {
name:
'App'
}
name:
"App",
}
;
</script>
...
...
src/components/YlForm/index.vue
View file @
78da04c
...
...
@@ -462,6 +462,7 @@ export default {
deep: true,
immediate: true,
},
//
},
};
</script>
...
...
src/components/YlTable/index.vue
View file @
78da04c
...
...
@@ -183,13 +183,15 @@ export default {
methods: {
getTrCurrentHeight: debounce(function () {
this.$nextTick(() => {
const trEl =
this.$refs.tableRef.$refs.bodyWrapper.children[0].children[1]
.children[0];
if (trEl) {
this.trHeight = trEl.clientHeight;
}
// const trEl =
// this.$refs.tableRef.$refs.bodyWrapper.children[0].children[1]
// .children[0];
// console.log(trEl)
// if (trEl) {
// this.trHeight = trEl.clientHeight;
// }
});
}, 800),
...
...
src/router/index.js
View file @
78da04c
...
...
@@ -77,7 +77,7 @@ export const constantRoutes = [
component
:
(
resolve
)
=>
require
([
"@/views/et86Config/et86RuleConfig/edit"
],
resolve
),
name
:
"edit"
,
meta
:
{
title
:
"ET86规则"
,
icon
:
"user"
,
noCache
:
fals
e
},
meta
:
{
title
:
"ET86规则"
,
icon
:
"user"
,
noCache
:
tru
e
},
},
{
path
:
"/errorInfo"
,
...
...
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
78da04c
...
...
@@ -128,7 +128,7 @@ export default {
isEtesRoute.map((item) => {
routes.push({ config: false, route: item.route });
});
this.routeList =
data.list
;
this.routeList =
isEtesRoute
;
this.routesInfo = routes;
} else {
this.routeList = [];
...
...
src/views/et86Config/errorInfo/tableConfig.js
View file @
78da04c
...
...
@@ -19,7 +19,7 @@ export const columnHeader = () => [
{
label
:
"错误信息"
,
prop
:
"msg"
,
align
:
"
center
"
,
align
:
"
left
"
,
minWidth
:
150
,
},
];
...
...
src/views/et86Config/et86HsCodeBlack/index.vue
View file @
78da04c
...
...
@@ -199,10 +199,10 @@ export default {
});
},
// 翻页序号递增
indexAdd(index){
const page = this.pageConfig.pageData.page // 当前页码
const pagesize = this.pageConfig.pageData.size // 每页条数
return index + 1 + (page - 1) * pagesize
indexAdd(index)
{
const page = this.pageConfig.pageData.page
;
// 当前页码
const pagesize = this.pageConfig.pageData.size
;
// 每页条数
return index + 1 + (page - 1) * pagesize
;
},
//条数变化
handleSizeChange(e) {
...
...
src/views/et86Config/et86RuleConfig/edit/index.vue
View file @
78da04c
...
...
@@ -49,7 +49,7 @@
v-model="scope.row.flightNo"
clearable
:disabled="scope.row.edit"
@focus="inputFocus(scope)"
@focus="inputF
lightNoF
ocus(scope)"
@blur="blurSearch"
placeholder="请输入航班号"
size="small"
...
...
@@ -95,9 +95,9 @@
<template slot-scope="scope">
<el-select
v-model="scope.row.flightRoute"
:placeholder="scope.row.flightNo ? (scope.row.routeList.length ? '请选择' : '暂无航线') : '请先输入航班号'"
size="small"
:disabled="scope.row.edit"
@focus="inputFlightRoute(scope)"
>
<el-option
v-for="item in scope.row.routeList"
...
...
@@ -649,8 +649,13 @@ export default {
if (isEtesRoute.length == 0) {
this.msgError("该航班下的航线均为普通航线");
}
// console.log(this.currentIndex)
// console.log(this.tableData)
// console.log(this.tableData[this.currentIndex])
// console.log(isEtesRoute)
this.tableData[this.currentIndex].flightRoute = "";
this.tableData[this.currentIndex].routeList = isEtesRoute;
// this.$set(this.tableData[this.currentIndex].routeList, index, isEtesRoute);
} else {
this.msgError("暂无航线");
this.tableData[this.currentIndex].routeList = [];
...
...
@@ -661,7 +666,7 @@ export default {
.catch(() => {});
},
// 航班号input 聚焦事件
inputFocus({ $index }) {
inputF
lightNoF
ocus({ $index }) {
this.currentIndex = $index;
},
// 失焦查询
...
...
@@ -700,6 +705,15 @@ export default {
this.msgError("请输入航班号");
}
},
// 航线聚焦事件
inputFlightRoute({ $index, row }){
this.currentIndex = $index;
let params = {
fltNo: row.flightNo
}
// 航线查询
// this.getQueryRouteByFltNo(params);
},
// 添加ET86配舱航班顺位
addBtn(item) {
this.id++;
...
...
src/views/et86Config/et86RuleConfig/index.vue
View file @
78da04c
...
...
@@ -38,6 +38,7 @@ import {
deleteEtesRuleById, // 删除
} from "@/api/et86";
export default {
name: "et86RuleConfig",
components: {
YlForm,
YlTable,
...
...
@@ -45,8 +46,12 @@ export default {
data() {
return {
formConfig: formConfig, // 表单配置项
originOfFlightNo: "",
queryForm: {
// 表单参数
originOfFlightNo: "",
startTime: "",
endTime: "",
status: "有效",
},
pageConfig: {
...
...
@@ -59,7 +64,12 @@ export default {
},
},
tableAttr: tableAttr, // table配置项
columns: columnHeader(this.indexAdd, this.viewRow, this.editRow, this.deleteRow), // 表头
columns: columnHeader(
this.indexAdd,
this.viewRow,
this.editRow,
this.deleteRow
), // 表头
tableData: [], // 表格数据
};
},
...
...
@@ -76,6 +86,7 @@ export default {
window.innerHeight - restTableHeight(this.$refs);
});
},
computed: {},
methods: {
// ET86查询
queryFindAllEtesRules() {
...
...
@@ -120,10 +131,10 @@ export default {
});
},
// 翻页序号递增
indexAdd(index){
const page = this.pageConfig.pageData.page // 当前页码
const pagesize = this.pageConfig.pageData.size // 每页条数
return index + 1 + (page - 1) * pagesize
indexAdd(index)
{
const page = this.pageConfig.pageData.page
;
// 当前页码
const pagesize = this.pageConfig.pageData.size
;
// 每页条数
return index + 1 + (page - 1) * pagesize
;
},
//条数变化
handleSizeChange(e) {
...
...
@@ -180,7 +191,8 @@ export default {
center: true,
})
.then(() => {
deleteEtesRuleById({ id: row.id }).then((res) => {
delete row.status;
deleteEtesRuleById(row).then((res) => {
const { code, msg } = res;
if (code == 200) {
this.searchBtn();
...
...
Please
register
or
login
to post a comment