index.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <div class="airportInfo scroll-y">
  3. <div class="wrap">
  4. <Minheader
  5. :is-Search="true"
  6. :is-statuser="true"
  7. :is-Show="true"
  8. @showForm="showForm"
  9. >
  10. <template #header>
  11. <div class="status flex-wrap">
  12. <div class="manageTitle">航班查询</div>
  13. </div>
  14. </template></Minheader
  15. >
  16. <div class="app-containers">
  17. <DataTable
  18. :tableHeader="state.list"
  19. :tableData="tableData"
  20. :tableProperty="{ rowKey: 'ID' }"
  21. @btnClick="btnClick"
  22. />
  23. </div>
  24. <Dialog
  25. :flag="dialogFlag"
  26. class="dialog-check-group"
  27. msgTitle="列设置"
  28. @resetForm="columnForm"
  29. >
  30. <div class="dialog-wrapper">
  31. <div class="content">
  32. <el-tree
  33. :data="tableCols"
  34. :class="colsCheckClass"
  35. show-checkbox
  36. node-key="index"
  37. :default-expand-all="true"
  38. :props="{
  39. label: 'label',
  40. children: 'children',
  41. }"
  42. :default-checked-keys="checkedKeysTemp"
  43. />
  44. </div>
  45. <!-- <div class="foot right t30">
  46. <el-button size="medium" class="r24" type="primary">确定</el-button>
  47. <el-button size="medium" @click="dialogFlag = false"
  48. >取消</el-button
  49. >
  50. </div> -->
  51. </div>
  52. </Dialog>
  53. </div>
  54. </div>
  55. </template>
  56. <script setup lang="ts">
  57. import DataTable from "@/components/tableTemp/index.vue";
  58. import Minheader from "@/components/minheader/index.vue";
  59. import Dialog from "@/components/dialog/index.vue";
  60. const dialogFlag = ref<Boolean>(false); //列设置弹窗开关
  61. const tableCols = ref([
  62. {
  63. prop: "flightNO",
  64. label: "航班号",
  65. desc: "指航班编号",
  66. width: 80,
  67. fixed: "left",
  68. filterable: true,
  69. sortable: true,
  70. },
  71. {
  72. prop: "flightDate",
  73. label: "执飞日期",
  74. desc:
  75. "指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)",
  76. width: 105,
  77. fixed: "left",
  78. filterable: true,
  79. sortable: true,
  80. },
  81. {
  82. prop: "planDepartureTime",
  83. label: "起飞时间",
  84. desc:
  85. "根据优先级别显示时间。优先级别:1.实际起飞时间,2.预计起飞时间,3.计划起飞时间",
  86. width: 150,
  87. filterable: true,
  88. sortable: true,
  89. },
  90. {
  91. prop: "targetAirport",
  92. label: "目的站",
  93. desc: "指航班执飞航段的目的航站,以航站三字码显示",
  94. filterable: true,
  95. sortable: true,
  96. },
  97. {
  98. prop: "departureBuild",
  99. label: "航站楼",
  100. desc: "指航班执飞航段的目的航站楼",
  101. filterable: true,
  102. sortable: true,
  103. },
  104. {
  105. prop: "bordingGate",
  106. label: "登机口",
  107. desc: "指航班的登机口代码,数据是变化的,仅显示最新信息",
  108. filterable: true,
  109. sortable: true,
  110. },
  111. {
  112. prop: "standForDepartrue",
  113. label: "停机位",
  114. desc: "指航班的停机位代码,数据是变化的,仅显示最新信息",
  115. filterable: true,
  116. sortable: true,
  117. },
  118. {
  119. prop: "checkInTravellerNumber",
  120. label: "托运旅客",
  121. desc: "指航班已办理行李托运业务的旅客人数,含取消托运的旅客人数",
  122. },
  123. {
  124. prop: "checkInNumber",
  125. label: "值机数",
  126. desc: "指已办理值机托运的行李数量,含取消托运的行李数量,含未激活",
  127. },
  128. {
  129. prop: "unActive",
  130. label: "未激活",
  131. desc:
  132. "指最后的 BSM 报文“.S”中行李状态为“I”的行李数量,含取消托运的行李数量",
  133. },
  134. {
  135. prop: "preLoad",
  136. label: "预计装载",
  137. desc: "指已办理值机托运的行李数量,不含取消托运的行李数量,不包含未激活",
  138. },
  139. {
  140. prop: "checkNumber",
  141. label: "安检",
  142. desc: "指进行安检的行李数量,含取消托运的行李数量",
  143. },
  144. {
  145. prop: "sortNumber",
  146. label: "分拣",
  147. desc: "指已分拣完成的行李数量,含取消托运的行李数量",
  148. },
  149. {
  150. prop: "loadNumber",
  151. label: "装车",
  152. desc: "指已在分拣口装车完成的行李数量,含取消托运的行李数量",
  153. },
  154. {
  155. prop: "boardID",
  156. label: "装机",
  157. desc: "指装机完成的行李数量,不含取消托运的行李数量",
  158. },
  159. {
  160. prop: "tounLoad",
  161. label: "待翻减",
  162. desc:
  163. "指旅客在办理行李托运后,旅客取消该行李的托运并且行李此时已经过装车节点,而没有完成翻减的行李数量(须翻减总数减去已翻减数)",
  164. },
  165. {
  166. prop: "OFFCount",
  167. label: "已翻减",
  168. desc:
  169. "指旅客在办理行李托运后,旅客取消该行李的托运并且行李此时已经过装车节点,且已完成翻减的行李数量",
  170. },
  171. {
  172. prop: "noCheckInNumber",
  173. label: "取消托运",
  174. desc: "指旅客在办理行李托运后,又取消托运的行李总数量",
  175. },
  176. {
  177. prop: "noBSM",
  178. label: "无BSM",
  179. desc: "行李有处理信息(BPM)但无值机信息(BSM)的行李数量",
  180. },
  181. {
  182. prop: "warning",
  183. label: "风险预警",
  184. desc:
  185. "指依据航班信息中预计起飞时间和当前时间差,与根据分拣到停机位设置的报警阈值对比,超过阈值的为风险行李,本项显示风险预警行李数量",
  186. },
  187. {
  188. prop: "exceptions",
  189. label: "未装机行李",
  190. desc: "指航班关闭货舱门后,应装而未装的行李数量",
  191. },
  192. {
  193. prop: "midIn",
  194. label: "中转进行李",
  195. desc: "指从其他航班中转到当前航班的行李数量",
  196. },
  197. ]);
  198. //列表
  199. const tableData = ref([
  200. {
  201. name: "测试",
  202. china: "测试",
  203. englin: "测试",
  204. two: "测试",
  205. three: "测试",
  206. text: "测试",
  207. text1: "测试",
  208. text2: "测试",
  209. text3: "测试",
  210. text4: "测试",
  211. },
  212. {
  213. name: "测试",
  214. china: "测试",
  215. englin: "测试",
  216. two: "测试",
  217. three: "测试",
  218. text: "测试",
  219. text1: "测试",
  220. text2: "测试",
  221. text3: "测试",
  222. text4: "测试",
  223. },
  224. {
  225. name: "测试",
  226. china: "测试",
  227. englin: "测试",
  228. two: "测试",
  229. three: "测试",
  230. text: "测试",
  231. text1: "测试",
  232. text2: "测试",
  233. text3: "测试",
  234. text4: "测试",
  235. },
  236. ]);
  237. //表头
  238. const state = reactive({
  239. list: [
  240. { label: "起飞航站", key: "name" },
  241. { label: "目的航站", key: "china" },
  242. { label: "航班号", key: "englin" },
  243. { label: "航班日期", key: "two" },
  244. { label: "直达/中转", key: "three" },
  245. { label: "货代数", key: "text" },
  246. { label: "运单数", key: "text1" },
  247. { label: "货物数", key: "text2" },
  248. { label: "机型", key: "text3" },
  249. { label: "航司", key: "text4" },
  250. ],
  251. listLoading: true,
  252. });
  253. //列设置
  254. const showForm = () => {
  255. dialogFlag.value = true;
  256. };
  257. //列设置取消
  258. const columnForm = () => {
  259. dialogFlag.value = false;
  260. };
  261. </script>
  262. <style lang="scss" scoped>
  263. ::v-deep .el-form-item__label {
  264. width: 100px;
  265. }
  266. .app-containers {
  267. height: calc(100vh - 180px);
  268. }
  269. </style>