99ecccec by 任超

style:受理申请

1 parent e9a215c6
1 <template> 1 <template>
2 <div> 2 <div>
3 <lb-table :column="InformationTable" border :key="key" :heightNum="390" :pagination="false" heightNumSetting 3 <lb-table :column="InformationTable" :maxHeight="300" heightNumSetting :pagination="false" :data="tableData">
4 :data="tableData"> 4 </lb-table>
5 </lb-table>
6 </div> 5 </div>
7 </template> 6 </template>
8 <script> 7 <script>
8 import { mapGetters } from 'vuex'
9 export default { 9 export default {
10 /**注册组件*/ 10 computed: {
11 components: {}, 11 ...mapGetters(["dictData"]),
12 },
12 data () { 13 data () {
13 return { 14 return {
14 key: 0, 15 tableData: [{
15 tableData:[{ 16 xm: '12',
16 xm: '12', 17 zjzl: '32',
17 zjzl: '32', 18 zjh: '123',
18 zjh: '123', 19 fr: "213123",
19 fr: "213123", 20 }],
20 }], 21 InformationTable: [
21 InformationTable:[ 22 {
22 {
23 width: '60', 23 width: '60',
24 renderHeader: (h, scope) => { 24 renderHeader: (h, scope) => {
25 return <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }} style="color:#409EFF"></i> 25 return <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }} style="color:#409EFF"></i>
...@@ -30,40 +30,62 @@ export default { ...@@ -30,40 +30,62 @@ export default {
30 ) 30 )
31 } 31 }
32 }, 32 },
33 { 33 {
34 label: '身份证读卡器', 34 label: '身份证读卡器',
35 align: 'center', 35 align: 'center',
36 render: (h, scope) => { 36 render: (h, scope) => {
37 return <el-button type="text" icon="el-icon-delete" onClick={() => { this.readClick(scope) }}>读取</el-button> 37 return <el-button type="text" icon="el-icon-tickets" onClick={() => { this.readClick(scope) }}>读取</el-button>
38 } 38 }
39 }, 39 },
40 { 40 {
41 prop: "xm", 41 prop: "xm",
42 label: "姓名/名称", 42 label: "姓名/名称",
43 }, 43 render: (h, scope) => {
44 { 44 return (
45 prop: "zjzl", 45 <el-input placeholder="姓名/名称" value={scope.row[scope.column.property]}
46 label: "证件种类", 46 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
47 }, 47 )
48 { 48 }
49 prop: "zjh", 49 },
50 label: "证件号", 50 {
51 }, 51 prop: "zjzl",
52 { 52 label: "证件种类",
53 prop: "fr", 53 render: (h, scope) => {
54 label: "法人", 54 return (
55 }, 55 <el-select value={scope.row[scope.column.property]}>
56 { 56 {
57 label: '操作', 57 this.dictData['A30'].map(option => {
58 width: '80', 58 return (
59 align: 'center', 59 <el-option label={option.label} value={option.value}></el-option>
60 fixed: 'right', 60 )
61 render: (h, scope) => { 61 })
62 return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.editClick(scope) }}>修改</el-button> 62 }
63 </el-select>
64 )
65 }
66 },
67 {
68 prop: "zjh",
69 label: "证件号",
70 render: (h, scope) => {
71 return (
72 <el-input placeholder="证件号" value={scope.row[scope.column.property]}
73 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
74 )
75 }
76 },
77 {
78 prop: "fr",
79 label: "法人",
80 render: (h, scope) => {
81 return (
82 <el-input placeholder="法人" value={scope.row[scope.column.property]}
83 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
84 )
85 }
63 } 86 }
64 } 87 ]
65 ] 88 }
66 };
67 }, 89 },
68 watch: { 90 watch: {
69 tableData: { 91 tableData: {
...@@ -73,16 +95,15 @@ export default { ...@@ -73,16 +95,15 @@ export default {
73 deep: true 95 deep: true
74 } 96 }
75 }, 97 },
76 created(){}, 98 methods: {
77 methods:{
78 // 添加 99 // 添加
79 handleAdd () { 100 handleAdd () {
80 this.tableData.push( 101 this.tableData.push(
81 { 102 {
82 xm: '22', 103 xm: '',
83 zjzl: '33', 104 zjzl: '',
84 zjh: '44', 105 zjh: '',
85 fr: "55", 106 fr: ''
86 } 107 }
87 ) 108 )
88 this.key++ 109 this.key++
...@@ -92,12 +113,13 @@ export default { ...@@ -92,12 +113,13 @@ export default {
92 this.tableData.splice(index, 1) 113 this.tableData.splice(index, 1)
93 }, 114 },
94 // 身份证读取 115 // 身份证读取
95 readClick(){}, 116 readClick () { },
96 117
97 // 修改 118 // 修改
98 editClick(){}, 119 editClick () { },
99 } 120 }
100 } 121 }
101 </script> 122 </script>
102 <style scoped lang='scss'> 123 <style scoped lang='scss'>
124
103 </style> 125 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -28,7 +28,10 @@ ...@@ -28,7 +28,10 @@
28 <ul v-if='this.isShowdrawer'> 28 <ul v-if='this.isShowdrawer'>
29 <p class="title">受理单元列表({{unitData.length}})</p> 29 <p class="title">受理单元列表({{unitData.length}})</p>
30 <div v-for='(item,index) in unitData' :key='index'> 30 <div v-for='(item,index) in unitData' :key='index'>
31 <li @click='unitClick(item)'><p>{{item.bdcdyh}}</p><p>{{item.zl}}</p></li> 31 <li @click='unitClick(item)'>
32 <p>{{item.bdcdyh}}</p>
33 <p>{{item.zl}}</p>
34 </li>
32 <div class="xian"></div> 35 <div class="xian"></div>
33 </div> 36 </div>
34 </ul> 37 </ul>
...@@ -40,11 +43,11 @@ ...@@ -40,11 +43,11 @@
40 </div> 43 </div>
41 <el-tabs v-model="activeName" @tab-click='activeClick'> 44 <el-tabs v-model="activeName" @tab-click='activeClick'>
42 <el-tab-pane :label="item.name" :name="index + 1 + ''" v-for="(item, index) in tabList" :key="index"> 45 <el-tab-pane :label="item.name" :name="index + 1 + ''" v-for="(item, index) in tabList" :key="index">
43 <div class="splitScreen-con" v-if='index == 0'> 46 <div class="splitScreen-con">
44 <component ref='slxx' :is="editItem" :flag="flag" :key="key" /> 47 <component ref='slxx' v-if='index == 0' :is="editItem" :flag="flag" :key="key" />
48 <component ref='clxx' :is="editItem" v-else-if="index == 1" :key="key" />
49 <component :is="editItem" v-else :key="key" />
45 </div> 50 </div>
46 <component ref='clxx' :is="editItem" v-else-if="index == 1" :key="key" />
47 <component :is="editItem" v-else :key="key" />
48 </el-tab-pane> 51 </el-tab-pane>
49 </el-tabs> 52 </el-tabs>
50 </div> 53 </div>
...@@ -64,12 +67,12 @@ export default { ...@@ -64,12 +67,12 @@ export default {
64 components: { zc, thDialog, zsylDialog }, 67 components: { zc, thDialog, zsylDialog },
65 data () { 68 data () {
66 return { 69 return {
67 zsylFlag:false, 70 zsylFlag: false,
68 zcDialog:false, 71 zcDialog: false,
69 thflag:false, 72 thflag: false,
70 queryForm:{ 73 queryForm: {
71 bsmSlsq:"", 74 bsmSlsq: "",
72 bestepid:"", 75 bestepid: "",
73 }, 76 },
74 isShowdrawer: true, 77 isShowdrawer: true,
75 key: 0, 78 key: 0,
...@@ -142,9 +145,9 @@ export default { ...@@ -142,9 +145,9 @@ export default {
142 editItem: '', 145 editItem: '',
143 issplitScreen: false, 146 issplitScreen: false,
144 unitData: [], 147 unitData: [],
145 taskId:"", 148 taskId: "",
146 bsmBusiness:"", 149 bsmBusiness: "",
147 id:"", 150 id: "",
148 }; 151 };
149 }, 152 },
150 watch: { 153 watch: {
...@@ -187,8 +190,8 @@ export default { ...@@ -187,8 +190,8 @@ export default {
187 } 190 }
188 }) 191 })
189 }, 192 },
190 activeClick(tab,event){ 193 activeClick (tab, event) {
191 if(tab.name=='1'){ 194 if (tab.name == '1') {
192 this.list(this.id) 195 this.list(this.id)
193 } 196 }
194 }, 197 },
...@@ -201,10 +204,10 @@ export default { ...@@ -201,10 +204,10 @@ export default {
201 }) 204 })
202 }, 205 },
203 operation (index, item) { 206 operation (index, item) {
204 if(item.icon == 'fqsq3'){ 207 if (item.icon == 'fqsq3') {
205 this.zsylFlag = true 208 this.zsylFlag = true
206 209
207 } else if (item.icon == 'fqsq5') { 210 } else if (item.icon == 'fqsq5') {
208 this.key++ 211 this.key++
209 this.issplitScreen = !this.issplitScreen 212 this.issplitScreen = !this.issplitScreen
210 this.flag = !this.flag 213 this.flag = !this.flag
...@@ -253,6 +256,16 @@ export default { ...@@ -253,6 +256,16 @@ export default {
253 font-size: 12px; 256 font-size: 12px;
254 } 257 }
255 258
259 /deep/.el-tabs__content {
260 height: calc(100vh - 135px) !important;
261 overflow-y: auto !important;
262 }
263
264 .splitScreen-con {
265 padding: 0 15px;
266 box-sizing: border-box;
267 }
268
256 .fqsq { 269 .fqsq {
257 width: 100%; 270 width: 100%;
258 height: 100%; 271 height: 100%;
...@@ -343,7 +356,8 @@ export default { ...@@ -343,7 +356,8 @@ export default {
343 .tabsList-left { 356 .tabsList-left {
344 border-right: 1px solid #EBEEF5; 357 border-right: 1px solid #EBEEF5;
345 position: relative; 358 position: relative;
346 359 width: 250px;
360 box-sizing: border-box;
347 ul { 361 ul {
348 position: relative; 362 position: relative;
349 363
...@@ -392,8 +406,6 @@ export default { ...@@ -392,8 +406,6 @@ export default {
392 406
393 /deep/.el-tabs { 407 /deep/.el-tabs {
394 width: 100%; 408 width: 100%;
395 height: 90vh;
396 overflow-y: scroll;
397 } 409 }
398 } 410 }
399 </style> 411 </style>
...\ No newline at end of file ...\ No newline at end of file
......