ee7ed242 by 蔡俊立
2 parents 36aa58f3 dc3bba54
1 <template> 1 <template>
2 <div> 2 <div>
3 <lb-table :column="column" :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList"> 3 <lb-table :column="column" border :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList">
4 </lb-table> 4 </lb-table>
5 <addQlr v-model="dialog" :details="details" @updateDetail="updateDetail" /> 5 <addQlr v-model="dialog" :details="details" @updateDetail="updateDetail" />
6 </div> 6 </div>
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
39 width: '50', 39 width: '50',
40 renderHeader: (h, scope) => { 40 renderHeader: (h, scope) => {
41 return <div> { 41 return <div> {
42 this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i> 42 this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.addClick() }}></i>
43 } 43 }
44 </div> 44 </div>
45 }, 45 },
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
48 <div> 48 <div>
49 { 49 {
50 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> : 50 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> :
51 <i class="el-icon-minus pointer" onClick={() => { this.handleMinus(scope.$index, scope.row) }}></i> 51 <i class="el-icon-minus pointer" onClick={() => { this.deleClick(scope.$index, scope.row) }}></i>
52 } 52 }
53 </div> 53 </div>
54 ) 54 )
...@@ -86,10 +86,10 @@ export default { ...@@ -86,10 +86,10 @@ export default {
86 this.$route.query.viewtype == 1 ? <el-button 86 this.$route.query.viewtype == 1 ? <el-button
87 icon="el-icon-view" 87 icon="el-icon-view"
88 type="text" 88 type="text"
89 onClick={() => { this.handleView(scope.$index, scope.row) }}>查看</el-button> : <el-button 89 onClick={() => { this.queryViewClick(scope.$index, scope.row) }}>查看</el-button> : <el-button
90 icon="el-icon-edit-outline" 90 icon="el-icon-edit-outline"
91 type="text" 91 type="text"
92 onClick={() => { this.handleEdit(scope.$index, scope.row) }}>编辑</el-button> 92 onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button>
93 } 93 }
94 </div> 94 </div>
95 ) 95 )
...@@ -142,24 +142,29 @@ export default { ...@@ -142,24 +142,29 @@ export default {
142 this.key++ 142 this.key++
143 this.$emit('upDateQlrxxList', this.tableDataList) 143 this.$emit('upDateQlrxxList', this.tableDataList)
144 }, 144 },
145 // 添加 145
146 handleAdd () { 146 // 新增
147 addClick () {
147 this.dialog = true 148 this.dialog = true
148 }, 149 },
149 // 减 150
150 handleMinus (index, row) { 151 // 删除
152 deleClick (index, row) {
151 this.tableData.splice(index, 1) 153 this.tableData.splice(index, 1)
152 }, 154 },
155
153 // 身份证读取 156 // 身份证读取
154 readClick () { }, 157 readClick () { },
158
155 // 修改 159 // 修改
156 handleEdit (index, row) { 160 editClick (index, row) {
157 console.log(row, 'rowrowrowrowrow'); 161 console.log(row, 'rowrowrowrowrow');
158 this.dataIndex = index 162 this.dataIndex = index
159 this.dialog = true 163 this.dialog = true
160 this.details = row 164 this.details = row
161 }, 165 },
162 handleView () { 166
167 queryViewClick () {
163 this.dialog = true 168 this.dialog = true
164 } 169 }
165 } 170 }
......
...@@ -20,6 +20,9 @@ export function getForm(tabName, djywbm) { ...@@ -20,6 +20,9 @@ export function getForm(tabName, djywbm) {
20 case "fwsyqslxx300": 20 case "fwsyqslxx300":
21 form = require("@/views/ywbl/fdcq2/slxx300.vue"); 21 form = require("@/views/ywbl/fdcq2/slxx300.vue");
22 break; 22 break;
23 case "fwsyqslxx400":
24 form = require("@/views/ywbl/fdcq2/slxx400.vue");
25 break;
23 case "tdslxxCfdj": 26 case "tdslxxCfdj":
24 form = require("@/views/ywbl/cfdj/tdslxx.vue"); 27 form = require("@/views/ywbl/cfdj/tdslxx.vue");
25 break; 28 break;
......
...@@ -50,7 +50,7 @@ class data extends filter { ...@@ -50,7 +50,7 @@ class data extends filter {
50 { 50 {
51 prop: "zbhj", 51 prop: "zbhj",
52 label: "在办环节", 52 label: "在办环节",
53 width: '70' 53 width: '80'
54 }, 54 },
55 { 55 {
56 label: '业务号', 56 label: '业务号',
......
...@@ -2,17 +2,23 @@ ...@@ -2,17 +2,23 @@
2 <div class="from-clues"> 2 <div class="from-clues">
3 <!-- 表单部分 --> 3 <!-- 表单部分 -->
4 <div class="from-clues-header"> 4 <div class="from-clues-header">
5 <el-form :model="queryForm" ref="queryForm"> 5 <el-form :model="queryForm" ref="queryForm" label-width="100px">
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-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh"> 9 <el-input
10 placeholder="请输入不动产权证号"
11 v-model="queryForm.bdcqzh"
12 >
10 </el-input> 13 </el-input>
11 </el-form-item> 14 </el-form-item>
12 </el-col> 15 </el-col>
13 <el-col :span="5"> 16 <el-col :span="5">
14 <el-form-item label="印刷序列号"> 17 <el-form-item label="印刷序列号">
15 <el-input placeholder="请输入印刷序列号" v-model="queryForm.ysxlh"> 18 <el-input
19 placeholder="请输入印刷序列号"
20 v-model="queryForm.ysxlh"
21 >
16 </el-input> 22 </el-input>
17 </el-form-item> 23 </el-form-item>
18 </el-col> 24 </el-col>
...@@ -31,7 +37,11 @@ ...@@ -31,7 +37,11 @@
31 37
32 <el-col :span="4" class="btnColRight"> 38 <el-col :span="4" class="btnColRight">
33 <el-form-item> 39 <el-form-item>
34 <el-button type="primary" icon="el-icon-search" @click="fetchData">查询</el-button> 40 <el-button
41 type="primary"
42 @click="queryClick()"
43 >查询</el-button
44 >
35 <el-button @click="moreQueryClick()">高级查询</el-button> 45 <el-button @click="moreQueryClick()">高级查询</el-button>
36 </el-form-item> 46 </el-form-item>
37 </el-col> 47 </el-col>
...@@ -40,9 +50,15 @@ ...@@ -40,9 +50,15 @@
40 </div> 50 </div>
41 <!-- 表格 --> 51 <!-- 表格 -->
42 <div class="from-clues-content"> 52 <div class="from-clues-content">
43 <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" 53 <lb-table
44 @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" 54 :page-size="pageData.size"
45 :data="tableData.data"> 55 :current-page.sync="pageData.current"
56 :total="tableData.total"
57 @size-change="handleSizeChange"
58 @p-current-change="handleCurrentChange"
59 :column="tableData.columns"
60 :data="tableData.data"
61 >
46 </lb-table> 62 </lb-table>
47 </div> 63 </div>
48 </div> 64 </div>
...@@ -53,32 +69,34 @@ import { datas, sendThis } from "./zslqcx"; ...@@ -53,32 +69,34 @@ import { datas, sendThis } from "./zslqcx";
53 export default { 69 export default {
54 components: {}, 70 components: {},
55 mixins: [table], 71 mixins: [table],
56 mounted () { 72 mounted() {
57 sendThis(this); 73 sendThis(this);
58 }, 74 },
59 data () { 75 data() {
60 return { 76 return {
61 queryForm: { 77 queryForm: {
62 bdcqzh: '', 78 bdcqzh: "",
63 ysxlh: '', 79 ysxlh: "",
64 ywh: '', 80 ywh: "",
65 lqr: '' 81 lqr: "",
66 }, 82 },
67 tableData: { 83 tableData: {
68 columns: datas.columns(), 84 columns: datas.columns(),
69 data: [ 85 data: [],
70 { 86 },
71 qllx: 'A01' 87 };
72 }
73 ]
74 }
75 }
76 }, 88 },
77 methods: { 89 methods: {
90 // 查询
91 queryClick() {
92 this.fetchData();
93 },
94
78 // 初始化数据 95 // 初始化数据
79 fetchData () { }, 96 fetchData() {
80 } 97 },
81 } 98 },
99 };
82 </script> 100 </script>
83 <style scoped lang="scss"> 101 <style scoped lang="scss">
84 @import "~@/styles/public.scss"; 102 @import "~@/styles/public.scss";
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class="from-clues"> 2 <div class="from-clues">
3 <!-- 表单部分 --> 3 <!-- 表单部分 -->
4 <div class="from-clues-header"> 4 <div class="from-clues-header">
5 <el-form :model="queryForm" ref="queryForm"> 5 <el-form :model="queryForm" ref="queryForm" label-width="80px">
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="项目名称">
...@@ -31,7 +31,11 @@ ...@@ -31,7 +31,11 @@
31 31
32 <el-col :span="4" class="btnColRight"> 32 <el-col :span="4" class="btnColRight">
33 <el-form-item> 33 <el-form-item>
34 <el-button type="primary" icon="el-icon-search" @click="fetchData">查询</el-button> 34 <el-button
35 type="primary"
36 @click="queryClick()"
37 >查询</el-button
38 >
35 <el-button @click="moreQueryClick()">高级查询</el-button> 39 <el-button @click="moreQueryClick()">高级查询</el-button>
36 </el-form-item> 40 </el-form-item>
37 </el-col> 41 </el-col>
...@@ -40,9 +44,15 @@ ...@@ -40,9 +44,15 @@
40 </div> 44 </div>
41 <!-- 表格 --> 45 <!-- 表格 -->
42 <div class="from-clues-content"> 46 <div class="from-clues-content">
43 <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" 47 <lb-table
44 @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" 48 :page-size="pageData.size"
45 :data="tableData.data"> 49 :current-page.sync="pageData.current"
50 :total="tableData.total"
51 @size-change="handleSizeChange"
52 @p-current-change="handleCurrentChange"
53 :column="tableData.columns"
54 :data="tableData.data"
55 >
46 </lb-table> 56 </lb-table>
47 </div> 57 </div>
48 </div> 58 </div>
...@@ -53,29 +63,33 @@ import { datas, sendThis } from "./zxgcdycx"; ...@@ -53,29 +63,33 @@ import { datas, sendThis } from "./zxgcdycx";
53 export default { 63 export default {
54 components: {}, 64 components: {},
55 mixins: [table], 65 mixins: [table],
56 mounted () { 66 mounted() {
57 sendThis(this); 67 sendThis(this);
58 }, 68 },
59 data () { 69 data() {
60 return { 70 return {
61 queryForm: { 71 queryForm: {
62 xmmc: '', 72 xmmc: "",
63 xmbh: '', 73 xmbh: "",
64 zrzh: '', 74 zrzh: "",
65 zddm: '' 75 zddm: "",
66 }, 76 },
67 tableData: { 77 tableData: {
68 columns: datas.columns(), 78 columns: datas.columns(),
69 data: [ 79 data: [],
70 ] 80 },
71 } 81 };
72 }
73 }, 82 },
74 methods: { 83 methods: {
84 // 查询
85 queryClick() {
86 this.fetchData();
87 },
88
75 // 初始化数据 89 // 初始化数据
76 fetchData () { }, 90 fetchData() {},
77 } 91 },
78 } 92 };
79 </script> 93 </script>
80 <style scoped lang="scss"> 94 <style scoped lang="scss">
81 @import "~@/styles/public.scss"; 95 @import "~@/styles/public.scss";
......