4021e7e7 by 蔡俊立
2 parents 7805d0e7 2ed542b4
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>
...@@ -39,12 +42,12 @@ ...@@ -39,12 +42,12 @@
39 <div class="splitScreen"></div> 42 <div class="splitScreen"></div>
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="item.value" 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,
...@@ -164,9 +167,9 @@ export default { ...@@ -164,9 +167,9 @@ export default {
164 editItem: '', 167 editItem: '',
165 issplitScreen: false, 168 issplitScreen: false,
166 unitData: [], 169 unitData: [],
167 taskId:"", 170 taskId: "",
168 bsmBusiness:"", 171 bsmBusiness: "",
169 id:"", 172 id: "",
170 }; 173 };
171 }, 174 },
172 watch: { 175 watch: {
...@@ -208,21 +211,8 @@ export default { ...@@ -208,21 +211,8 @@ export default {
208 } 211 }
209 }) 212 })
210 }, 213 },
211 //获取环节扩展信息 214 activeClick (tab, event) {
212 expandInfo(bestepid){ 215 if (tab.name == '1') {
213 let that = this
214 var formdata = new FormData();
215 formdata.append("bestepid", bestepid);
216 stepExpandInfo(formdata).then(res => {
217 if (res.code === 200) {
218 this.tabList1 = [...res.result.form]
219 this.tabList = res.result.form;
220 this.headerleftList = res.result.button
221 }
222 })
223 },
224 activeClick(tab,event){
225 if(tab.name=='slxx'){
226 this.list(this.id) 216 this.list(this.id)
227 } 217 }
228 }, 218 },
...@@ -234,11 +224,11 @@ export default { ...@@ -234,11 +224,11 @@ export default {
234 this.$refs.slxx[0].list(item.bsmSldy) 224 this.$refs.slxx[0].list(item.bsmSldy)
235 }) 225 })
236 }, 226 },
237 operation (index, item) { 227 operation (index, item) {
238 if(item.value == 'zsyl'){ 228 if (item.icon == 'fqsq3') {
239 this.zsylFlag = true 229 this.zsylFlag = true
240 230
241 } else if (item.value == 'clfp') { 231 } else if (item.icon == 'fqsq5') {
242 this.key++ 232 this.key++
243 this.issplitScreen = !this.issplitScreen 233 this.issplitScreen = !this.issplitScreen
244 this.flag = !this.flag 234 this.flag = !this.flag
...@@ -288,6 +278,16 @@ export default { ...@@ -288,6 +278,16 @@ export default {
288 font-size: 12px; 278 font-size: 12px;
289 } 279 }
290 280
281 /deep/.el-tabs__content {
282 height: calc(100vh - 135px) !important;
283 overflow-y: auto !important;
284 }
285
286 .splitScreen-con {
287 padding: 0 15px;
288 box-sizing: border-box;
289 }
290
291 .fqsq { 291 .fqsq {
292 width: 100%; 292 width: 100%;
293 height: 100%; 293 height: 100%;
...@@ -378,7 +378,8 @@ export default { ...@@ -378,7 +378,8 @@ export default {
378 .tabsList-left { 378 .tabsList-left {
379 border-right: 1px solid #EBEEF5; 379 border-right: 1px solid #EBEEF5;
380 position: relative; 380 position: relative;
381 381 width: 250px;
382 box-sizing: border-box;
382 ul { 383 ul {
383 position: relative; 384 position: relative;
384 385
...@@ -427,8 +428,6 @@ export default { ...@@ -427,8 +428,6 @@ export default {
427 428
428 /deep/.el-tabs { 429 /deep/.el-tabs {
429 width: 100%; 430 width: 100%;
430 height: 90vh;
431 overflow-y: scroll;
432 } 431 }
433 } 432 }
434 </style> 433 </style>
...\ No newline at end of file ...\ No newline at end of file
......