8aed46f3 by 任超

style;分屏

1 parent 6aa973ce
...@@ -6,66 +6,31 @@ ...@@ -6,66 +6,31 @@
6 <el-row> 6 <el-row>
7 <el-col :span="5"> 7 <el-col :span="5">
8 <el-form-item label="业务来源"> 8 <el-form-item label="业务来源">
9 <el-select 9 <el-select v-model="queryForm.ywly" filterable clearable placeholder="请选择业务来源">
10 v-model="queryForm.ywly" 10 <el-option v-for="item in ywlys" :key="item.value" :label="item.label" :value="item.value">
11 filterable
12 clearable
13 placeholder="请选择业务来源"
14 >
15 <el-option
16 v-for="item in ywlys"
17 :key="item.value"
18 :label="item.label"
19 :value="item.value"
20 >
21 </el-option> 11 </el-option>
22 </el-select> 12 </el-select>
23 </el-form-item> 13 </el-form-item>
24 </el-col> 14 </el-col>
25 <el-col :span="5"> 15 <el-col :span="5">
26 <el-form-item label="权利类型"> 16 <el-form-item label="权利类型">
27 <el-select 17 <el-select v-model="queryForm.qllx" filterable clearable placeholder="请选择权利类型">
28 v-model="queryForm.qllx" 18 <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
29 filterable
30 clearable
31 placeholder="请选择权利类型"
32 >
33 <el-option
34 v-for="item in qllxs"
35 :key="item.value"
36 :label="item.label"
37 :value="item.value"
38 >
39 </el-option> 19 </el-option>
40 </el-select> 20 </el-select>
41 </el-form-item> 21 </el-form-item>
42 </el-col> 22 </el-col>
43 <el-col :span="5"> 23 <el-col :span="5">
44 <el-form-item label="登记类型"> 24 <el-form-item label="登记类型">
45 <el-select 25 <el-select v-model="queryForm.djlx" filterable clearable placeholder="请选择登记类型">
46 v-model="queryForm.djlx" 26 <el-option v-for="item in djlxs" :key="item.value" :label="item.label" :value="item.value">
47 filterable
48 clearable
49 placeholder="请选择登记类型"
50 >
51 <el-option
52 v-for="item in djlxs"
53 :key="item.value"
54 :label="item.label"
55 :value="item.value"
56 >
57 </el-option> 27 </el-option>
58 </el-select> 28 </el-select>
59 </el-form-item> 29 </el-form-item>
60 </el-col> 30 </el-col>
61 <el-col :span="5"> 31 <el-col :span="5">
62 <el-form-item label="业务号"> 32 <el-form-item label="业务号">
63 <el-input 33 <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
64 placeholder="请输入业务号"
65 v-model="queryForm.ywh"
66 clearable
67 class="width200px"
68 >
69 </el-input> 34 </el-input>
70 </el-form-item> 35 </el-form-item>
71 </el-col> 36 </el-col>
...@@ -80,30 +45,30 @@ ...@@ -80,30 +45,30 @@
80 </el-form> 45 </el-form>
81 </div> 46 </div>
82 <!-- 表格 --> 47 <!-- 表格 -->
83 <!-- 表格 --> 48 <!-- 表格 -->
84 <div class="from-clues-content"> 49 <div class="from-clues-content">
85 <lb-table :page-size="pageData.size" heightNumSetting :current-page.sync="pageData.current" 50 <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total"
86 :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" 51 @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
87 :column="tableData.columns" :data="tableData.data"> 52 :data="tableData.data">
88 </lb-table> 53 </lb-table>
89 </div> 54 </div>
90 </div> 55 </div>
91 </template> 56 </template>
92 <script> 57 <script>
93 import table from "@/utils/mixin/table"; 58 import table from "@/utils/mixin/table";
94 import { datas, sendThis } from "./dbxdata"; 59 import { datas, sendThis } from "./dbxdata";
95 import {searchTaskToDo} from "@/api/ywbl.js" 60 import { searchTaskToDo } from "@/api/ywbl.js"
96 export default { 61 export default {
97 name: "dbx", 62 name: "dbx",
98 components: {}, 63 components: {},
99 mixins: [table], 64 mixins: [table],
100 mounted() { 65 mounted () {
101 sendThis(this); 66 sendThis(this);
102 }, 67 },
103 data() { 68 data () {
104 return { 69 return {
105 qllxs:[], 70 qllxs: [],
106 djlxs:[], 71 djlxs: [],
107 queryForm: { 72 queryForm: {
108 ywly: "", 73 ywly: "",
109 qllx: "", 74 qllx: "",
...@@ -117,7 +82,7 @@ export default { ...@@ -117,7 +82,7 @@ export default {
117 }, 82 },
118 83
119 ywlys: datas.ywlys(), 84 ywlys: datas.ywlys(),
120 85
121 tableData: { 86 tableData: {
122 columns: datas.columns(), 87 columns: datas.columns(),
123 data: [], 88 data: [],
...@@ -127,8 +92,8 @@ export default { ...@@ -127,8 +92,8 @@ export default {
127 created () { }, 92 created () { },
128 methods: { 93 methods: {
129 // 列表渲染接口 94 // 列表渲染接口
130 fetchData(){ 95 fetchData () {
131 searchTaskToDo({...this.queryForm,...this.pageData}).then(res=>{ 96 searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => {
132 if (res.code === 200) { 97 if (res.code === 200) {
133 let { total, records } = res.result 98 let { total, records } = res.result
134 this.pageData.total = total; 99 this.pageData.total = total;
...@@ -136,18 +101,18 @@ export default { ...@@ -136,18 +101,18 @@ export default {
136 } 101 }
137 }) 102 })
138 }, 103 },
139 queryClick(){ 104 queryClick () {
140 this.fetchData() 105 this.fetchData()
141 }, 106 },
142 handleSort(name, sort) { 107 handleSort (name, sort) {
143 console.log(name, sort); 108 console.log(name, sort);
144 }, 109 },
145 openDialog() { 110 openDialog () {
146 console.log(999999999999999); 111 console.log(999999999999999);
147 }, 112 },
148 ywhClick(bsmSlsq){ 113 ywhClick (bsmSlsq) {
149 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + bsmSlsq) 114 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + bsmSlsq)
150 window.open(href, '_blank'); 115 window.open(href, '_blank');
151 }, 116 },
152 }, 117 },
153 }; 118 };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class='fqsq'> 2 <div class='fqsq'>
3 <div class="fqsq-header"> 3 <div class="fqsq-header">
4 <ul> 4 <ul>
5 <li @click="operation(index)" v-for="(item, index) in headerleftList.slice(0, headerleftList.length - 4)" 5 <li @click="operation(index, item)" v-for="(item, index) in headerleftList.slice(0, headerleftList.length - 4)"
6 :key="index"> 6 :key="index">
7 <svg-icon :icon-class="item.icon" /> 7 <svg-icon :icon-class="item.icon" />
8 <span class="iconName">{{ item.name }}</span> 8 <span class="iconName">{{ item.name }}</span>
...@@ -15,11 +15,18 @@ ...@@ -15,11 +15,18 @@
15 </li> 15 </li>
16 </ul> 16 </ul>
17 </div> 17 </div>
18 <el-tabs v-model="activeName"> 18 <div class="tabsList">
19 <el-tab-pane :label="item.name" :name="index + 1 + ''" v-for="(item, index) in tabList" :key="index"> 19 <p v-show="issplitScreen" class="splitScreen tabsList-title">材料信息</p>
20 </el-tab-pane> 20 <el-tabs v-model="activeName">
21 </el-tabs> 21 <el-tab-pane :label="item.name" :name="index + 1 + ''" v-for="(item, index) in tabList" :key="index">
22 <component :is="editItem" /> 22 </el-tab-pane>
23 </el-tabs>
24 </div>
25
26 <div class="splitScreen-con">
27 <div class="splitScreen" v-show="issplitScreen"></div>
28 <component :is="editItem" :key="key" />
29 </div>
23 </div> 30 </div>
24 </template> 31 </template>
25 <script> 32 <script>
...@@ -29,6 +36,7 @@ export default { ...@@ -29,6 +36,7 @@ export default {
29 components: {}, 36 components: {},
30 data () { 37 data () {
31 return { 38 return {
39 key: 0,
32 headerleftList: [ 40 headerleftList: [
33 { 41 {
34 name: '图形定位', 42 name: '图形定位',
...@@ -76,7 +84,7 @@ export default { ...@@ -76,7 +84,7 @@ export default {
76 } 84 }
77 ], 85 ],
78 activeName: '1', 86 activeName: '1',
79 tabList: [ 87 tabList1: [
80 { 88 {
81 name: '受理申请', 89 name: '受理申请',
82 }, 90 },
...@@ -93,7 +101,9 @@ export default { ...@@ -93,7 +101,9 @@ export default {
93 name: '权利信息', 101 name: '权利信息',
94 }, 102 },
95 ], 103 ],
96 editItem: '' 104 tabList: [],
105 editItem: '',
106 issplitScreen: false
97 }; 107 };
98 }, 108 },
99 watch: { 109 watch: {
...@@ -105,11 +115,23 @@ export default { ...@@ -105,11 +115,23 @@ export default {
105 immediate: true 115 immediate: true
106 } 116 }
107 }, 117 },
118 created () {
119 this.tabList = [...this.tabList1]
120 },
108 methods: { 121 methods: {
109 operation (index) { 122 operation (index, item) {
110 if (index == 3) { 123 if (item.icon == 'fqsq5') {
111 window.close() 124 this.key++
125 this.issplitScreen = !this.issplitScreen
126 if (this.issplitScreen) {
127 this.tabList.splice(1, 1)
128 } else {
129 this.tabList = [...this.tabList1]
130 }
112 } 131 }
132 // if (index == 3) {
133 // window.close()
134 // }
113 }, 135 },
114 loadView (view) { 136 loadView (view) {
115 return r => require.ensure([], () => r(require(`./components/${view}.vue`))) 137 return r => require.ensure([], () => r(require(`./components/${view}.vue`)))
...@@ -119,10 +141,12 @@ export default { ...@@ -119,10 +141,12 @@ export default {
119 </script> 141 </script>
120 <style scoped lang='scss'> 142 <style scoped lang='scss'>
121 @import "~@/styles/mixin.scss"; 143 @import "~@/styles/mixin.scss";
122 /deep/.svg-icon{ 144
145 /deep/.svg-icon {
123 width: 1.5em; 146 width: 1.5em;
124 height: 1.5em; 147 height: 1.5em;
125 } 148 }
149
126 /deep/.el-tabs__nav-wrap { 150 /deep/.el-tabs__nav-wrap {
127 padding: 5px 0 0 15px; 151 padding: 5px 0 0 15px;
128 } 152 }
...@@ -130,24 +154,39 @@ export default { ...@@ -130,24 +154,39 @@ export default {
130 /deep/.el-tabs__nav-wrap::after { 154 /deep/.el-tabs__nav-wrap::after {
131 height: 1px; 155 height: 1px;
132 } 156 }
133 .iconName{ 157
158 .iconName {
134 line-height: 30px; 159 line-height: 30px;
135 } 160 }
161
136 .fqsq { 162 .fqsq {
137 width: 100%; 163 width: 100%;
138 height: 100%; 164 height: 100%;
139 padding: 0 10%; 165 padding: 0 3%;
140 box-sizing: border-box; 166 box-sizing: border-box;
141 background-color: #ffffff; 167 background-color: #ffffff;
142 168
169 .splitScreen-con {
170 display: flex;
171 }
172
173 .splitScreen {
174 min-width: 500px;
175 width: 550px;
176 border-right: 1px solid $borderColor;
177 }
178
143 &-header { 179 &-header {
144 @include flex; 180 @include flex;
145 width: 100%; 181 width: 100%;
146 height: 64px; 182 height: 80px;
147 background-color: #10CCB8; 183 background-color: #10CCB8;
148 color: #ffffff; 184 color: #ffffff;
149 justify-content: space-between; 185 justify-content: space-between;
150 padding-left: 15px; 186 padding-left: 15px;
187 position: sticky;
188 top: 0;
189 z-index: 100;
151 190
152 ul { 191 ul {
153 @include flex; 192 @include flex;
...@@ -160,5 +199,23 @@ export default { ...@@ -160,5 +199,23 @@ export default {
160 } 199 }
161 } 200 }
162 } 201 }
202
203 .tabsList {
204 width: 100%;
205 position: sticky;
206 top: 80px;
207 background-color: #ffffff;
208 z-index: 100;
209 @include flex;
210 }
211
212 .tabsList-title {
213 display: block;
214 line-height: 59px;
215 }
216
217 /deep/.el-tabs {
218 width: 100%;
219 }
163 } 220 }
164 </style> 221 </style>
...\ No newline at end of file ...\ No newline at end of file
......