style:企业信息备案
Showing
2 changed files
with
165 additions
and
7 deletions
src/views/xxba/qyxxba/data.js
0 → 100644
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-09-01 10:17:27 | ||
5 | */ | ||
6 | import filter from '@/utils/filter.js' | ||
7 | let vm = null | ||
8 | |||
9 | const sendThis = (_this) => { | ||
10 | vm = _this | ||
11 | } | ||
12 | class data extends filter { | ||
13 | constructor() { | ||
14 | super() | ||
15 | } | ||
16 | columns () { | ||
17 | return [ | ||
18 | { | ||
19 | label: '序号', | ||
20 | type: 'index', | ||
21 | width: '50', | ||
22 | render: (h, scope) => { | ||
23 | return ( | ||
24 | <div> | ||
25 | {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1} | ||
26 | </div> | ||
27 | ) | ||
28 | } | ||
29 | }, | ||
30 | { | ||
31 | prop: "sqrmc", | ||
32 | label: "姓名/名称", | ||
33 | }, | ||
34 | { | ||
35 | prop: "zjzl", | ||
36 | label: "证件种类", | ||
37 | render: (h, scope) => { | ||
38 | return ( | ||
39 | <el-select | ||
40 | class="width100" | ||
41 | clearable | ||
42 | value={scope.row[scope.column.property]} | ||
43 | onChange={(val) => { | ||
44 | scope.row[scope.column.property] = val; | ||
45 | }} | ||
46 | > | ||
47 | {vm.dictData["A30"].map((option) => { | ||
48 | return ( | ||
49 | <el-option | ||
50 | label={option.dname} | ||
51 | value={option.dcode} | ||
52 | ></el-option> | ||
53 | ); | ||
54 | })} | ||
55 | </el-select> | ||
56 | ); | ||
57 | }, | ||
58 | }, | ||
59 | { | ||
60 | prop: "zjh", | ||
61 | label: "证件号", | ||
62 | }, | ||
63 | { | ||
64 | prop: "frmc", | ||
65 | label: "法人名称", | ||
66 | }, | ||
67 | { | ||
68 | prop: "txdz", | ||
69 | label: "地址", | ||
70 | }, | ||
71 | { | ||
72 | prop: "dh", | ||
73 | label: "联系电话", | ||
74 | }, | ||
75 | { | ||
76 | label: '操作', | ||
77 | width: '80', | ||
78 | align: 'center', | ||
79 | render: (h, scope) => { | ||
80 | return ( | ||
81 | <div> | ||
82 | <el-button type="text" onClick={() => { this.handleDelete(scope.row) }}>删除</el-button> | ||
83 | </div> | ||
84 | ) | ||
85 | } | ||
86 | } | ||
87 | ] | ||
88 | } | ||
89 | } | ||
90 | let datas = new data() | ||
91 | export { | ||
92 | datas, | ||
93 | sendThis | ||
94 | } |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-25 08:59:16 | 4 | * @LastEditTime: 2023-09-01 10:17:48 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class='qyxxba'> <el-empty description="正在开发"></el-empty></div> | 7 | <div class="from-clues"> |
8 | <!-- 表单部分 --> | ||
9 | <div class="from-clues-header"> | ||
10 | <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="80px"> | ||
11 | <el-row> | ||
12 | <el-col :span="5"> | ||
13 | <el-form-item label="姓名/名称"> | ||
14 | <el-input placeholder="姓名/名称" v-model="queryForm.sqrmc" clearable class="width100"> | ||
15 | </el-input> | ||
16 | </el-form-item> | ||
17 | </el-col> | ||
18 | <el-col :span="5"> | ||
19 | <el-form-item label="证件号"> | ||
20 | <el-input placeholder="证件号" v-model="queryForm.zjh" clearable class="width100"> | ||
21 | </el-input> | ||
22 | </el-form-item> | ||
23 | </el-col> | ||
24 | <el-col :span="14" class="btnColRight"> | ||
25 | <el-form-item> | ||
26 | <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button> | ||
27 | </el-form-item> | ||
28 | </el-col> | ||
29 | </el-row> | ||
30 | </el-form> | ||
31 | </div> | ||
32 | <div class="from-clues-content"> | ||
33 | <lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :heightNum="280" | ||
34 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | ||
35 | :column="tableData.columns" :data="tableData.data"> | ||
36 | </lb-table> | ||
37 | </div> | ||
38 | </div> | ||
8 | </template> | 39 | </template> |
9 | <script> | 40 | <script> |
10 | 41 | import table from "@/utils/mixin/table" | |
42 | import { datas, sendThis } from "./data" | ||
11 | export default { | 43 | export default { |
44 | name: "cwrz", | ||
12 | components: {}, | 45 | components: {}, |
46 | mixins: [table], | ||
47 | mounted () { | ||
48 | sendThis(this); | ||
49 | }, | ||
50 | computed: { | ||
51 | }, | ||
13 | data () { | 52 | data () { |
14 | return { | 53 | return { |
15 | } | 54 | queryForm: { |
55 | sqrmc: "", | ||
56 | zjh: "", | ||
57 | }, | ||
58 | pageData: { | ||
59 | current: 1, | ||
60 | size: 10, | ||
61 | }, | ||
62 | tableData: { | ||
63 | total: 0, | ||
64 | columns: datas.columns(), | ||
65 | data: [], | ||
66 | }, | ||
67 | }; | ||
68 | }, | ||
69 | methods: { | ||
70 | /** | ||
71 | * @description: queryClick | ||
72 | * @author: renchao | ||
73 | */ | ||
74 | queryClick () { | ||
75 | }, | ||
76 | handleSearch () { }, | ||
77 | handleDelete () { } | ||
16 | } | 78 | } |
17 | } | 79 | } |
18 | </script> | 80 | </script> |
19 | <style scoped lang='scss'> | ||
20 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
81 | <style scoped lang="scss"> | ||
82 | @import "~@/styles/public.scss"; | ||
83 | </style> | ||
84 | ... | ... |
-
Please register or sign in to post a comment