jinhui.wang

无用代码删除,代码更新

This diff is collapsed. Click to expand it.
1 -<template>
2 - <div class="tableInfo">
3 - <el-dropdown trigger="click" :hide-on-click="false">
4 - <el-button
5 - type="primary"
6 - icon="el-icon-edit"
7 - size="medium"
8 - circle
9 - ></el-button>
10 - <el-dropdown-menu slot="dropdown">
11 - <el-checkbox-group v-model="checkList">
12 - <el-dropdown-item
13 - v-for="(item, index) in infoData"
14 - :key="index"
15 - v-if="!item.type"
16 - class="dropItem"
17 - >
18 - <el-checkbox
19 - :label="item.name"
20 - :checked="true"
21 - @change="checkChange"
22 - ></el-checkbox>
23 - <span class="itemRight">
24 - <i class="el-icon-caret-top" @click.stop="top(index)"></i>
25 - <i class="el-icon-caret-bottom" @click.stop="bottom(index)"></i>
26 - </span>
27 - </el-dropdown-item>
28 - </el-checkbox-group>
29 - </el-dropdown-menu>
30 - </el-dropdown>
31 - </div>
32 -</template>
33 -
34 -<script>
35 -export default {
36 - props: { infoData: { type: Array, default: null } },
37 - inheritAttrs: false,
38 - data() {
39 - return {
40 - checkList: [],
41 - };
42 - },
43 - methods: {
44 - checkChange(val) {
45 - this.$emit("checkChange", { type: val });
46 - },
47 - top(val) {
48 - this.$emit("top", val);
49 - },
50 - bottom(val) {
51 - this.$emit("bottom", val);
52 - },
53 - },
54 - created() {},
55 -};
56 -</script>
57 -
58 -<style scope lang="scss">
59 -.itemRight {
60 - display: -webkit-inline-box;
61 - display: -ms-inline-flexbox;
62 - display: inline-flex;
63 - -webkit-box-orient: vertical;
64 - -webkit-box-direction: normal;
65 - -ms-flex-direction: column;
66 - flex-direction: column;
67 - -webkit-box-align: center;
68 - -ms-flex-align: center;
69 - align-items: center;
70 - height: 34px;
71 - width: 24px;
72 - vertical-align: middle;
73 - cursor: pointer;
74 - overflow: initial;
75 - position: relative;
76 - .el-icon-caret-bottom,
77 - .el-icon-caret-top {
78 - width: 0;
79 - height: 0;
80 - border: solid 5px transparent;
81 - position: absolute;
82 - left: 10px;
83 - }
84 - .el-icon-caret-bottom {
85 - bottom: 12px;
86 - }
87 - .el-icon-caret-top {
88 - top: 5px;
89 - }
90 -}
91 -.dropItem {
92 - display: flex;
93 - justify-content: space-between;
94 -}
95 -</style>
96 -
97 -<style>
98 -.tableInfo {
99 - position: fixed;
100 - right: 30px;
101 - bottom: 40px;
102 - z-index: 99999999;
103 -}
104 -</style>
...\ No newline at end of file ...\ No newline at end of file
1 -<script>
2 -export default {
3 - name: "Item",
4 - inheritAttrs: false,
5 - props: {
6 - dom: {
7 - type: Object,
8 - default: null,
9 - },
10 - },
11 - render() {
12 - let newDom = [];
13 - newDom.push(this.dom);
14 - return newDom;
15 - },
16 - methods: {
17 - change(val){
18 - this.$emit('change',val)
19 - }
20 - },
21 -};
22 -</script>
...@@ -138,8 +138,6 @@ ...@@ -138,8 +138,6 @@
138 v-hasPermi="['base:flightInfo:close']" 138 v-hasPermi="['base:flightInfo:close']"
139 >自动配舱关闭</el-button 139 >自动配舱关闭</el-button
140 > 140 >
141 - <!-- <el-button type="primary" icon="el-icon-circle-check" size="mini">自动推送开启</el-button>
142 - <el-button type="primary" icon="el-icon-circle-close" size="mini">自动推送关闭</el-button> -->
143 </el-form> 141 </el-form>
144 <Tables 142 <Tables
145 ref="flightInfoTable" 143 ref="flightInfoTable"
...@@ -222,18 +220,6 @@ ...@@ -222,18 +220,6 @@
222 </el-date-picker> 220 </el-date-picker>
223 </el-form-item> 221 </el-form-item>
224 </el-col> 222 </el-col>
225 - <!-- <el-col :span="12">
226 - <el-form-item label="cutOff时间" prop="cutOffTime">
227 - <el-select v-model="form.cutOffTime" clearable placeholder="选择时间" type="string">
228 - <el-option
229 - v-for="item in selectOption.cutOffTime"
230 - :key="item"
231 - :label="item"
232 - :value="item">
233 - </el-option>
234 - </el-select>
235 - </el-form-item>
236 - </el-col> -->
237 <el-col :span="12"> 223 <el-col :span="12">
238 <el-form-item label="航班路线" prop="route"> 224 <el-form-item label="航班路线" prop="route">
239 <el-input 225 <el-input
...@@ -536,16 +522,6 @@ export default { ...@@ -536,16 +522,6 @@ export default {
536 fixed: false, 522 fixed: false,
537 disabled: true, 523 disabled: true,
538 }, 524 },
539 - // {
540 - // type: "",
541 - // name: "cutOff时间",
542 - // value: "cutOffTime",
543 - // width: "110",
544 - // align: "center",
545 - // sorTable: false,
546 - // fixed: false,
547 - // disabled:true
548 - // },
549 { 525 {
550 type: "", 526 type: "",
551 name: "航班号", 527 name: "航班号",
......