style:登薄日志查询
Showing
4 changed files
with
33 additions
and
76 deletions
| ... | @@ -75,14 +75,14 @@ export const asyncRoutes = [ | ... | @@ -75,14 +75,14 @@ export const asyncRoutes = [ |
| 75 | }, | 75 | }, |
| 76 | // 登簿日志 | 76 | // 登簿日志 |
| 77 | { | 77 | { |
| 78 | path: '/registerLog', | 78 | path: '/dbrzcx', |
| 79 | component: Layout, | 79 | component: Layout, |
| 80 | children: [ | 80 | children: [ |
| 81 | { | 81 | { |
| 82 | path: 'index', | 82 | path: 'index', |
| 83 | component: () => import('@/views/registerLog/index'), | 83 | component: () => import('@/views/dbrzcx/index'), |
| 84 | name: 'registerLog', | 84 | name: 'dbrzcx', |
| 85 | meta: { title: '登簿日志', icon: 'zhcx' } | 85 | meta: { title: '登簿日志查询', icon: 'zhcx' } |
| 86 | } | 86 | } |
| 87 | ] | 87 | ] |
| 88 | }, | 88 | }, | ... | ... |
| ... | @@ -2,30 +2,16 @@ class data { | ... | @@ -2,30 +2,16 @@ class data { |
| 2 | columns () { | 2 | columns () { |
| 3 | return [ | 3 | return [ |
| 4 | { | 4 | { |
| 5 | prop: "areaname", | 5 | prop: "qumc", |
| 6 | label: "行政区名称", | 6 | label: "区域名称", |
| 7 | width: 100 | ||
| 8 | }, | 7 | }, |
| 9 | { | 8 | { |
| 10 | prop: "areacode", | 9 | prop: "date", |
| 11 | label: "行政区代码", | 10 | label: "日期", |
| 12 | width: 100 | ||
| 13 | }, | 11 | }, |
| 14 | { | 12 | { |
| 15 | prop: "accessdate", | 13 | prop: "type", |
| 16 | width: 135, | 14 | label: "类型" |
| 17 | label: "上报日期" | ||
| 18 | }, | ||
| 19 | { | ||
| 20 | label: "类别", | ||
| 21 | render: (h, scope) => { | ||
| 22 | return ( | ||
| 23 | <div> | ||
| 24 | <p>登簿</p> | ||
| 25 | <p>接入</p> | ||
| 26 | </div> | ||
| 27 | ) | ||
| 28 | }, | ||
| 29 | }, | 15 | }, |
| 30 | { | 16 | { |
| 31 | label: "总量", | 17 | label: "总量", |
| ... | @@ -39,6 +25,10 @@ class data { | ... | @@ -39,6 +25,10 @@ class data { |
| 39 | }, | 25 | }, |
| 40 | }, | 26 | }, |
| 41 | { | 27 | { |
| 28 | prop: "ywlxsl", | ||
| 29 | label: "业务类型数量" | ||
| 30 | }, | ||
| 31 | { | ||
| 42 | label: "首次登记", | 32 | label: "首次登记", |
| 43 | render: (h, scope) => { | 33 | render: (h, scope) => { |
| 44 | return ( | 34 | return ( | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="registerLog from-clues"> | 2 | <!-- 登簿日志查询 --> |
| 3 | <div class="registerLog-header from-clues-header"> | 3 | <div class="from-clues"> |
| 4 | <!-- 头部搜索 --> | ||
| 5 | <div class="from-clues-header"> | ||
| 4 | <el-form ref="ruleForm" :model="form" label-width="80px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="80px"> |
| 5 | <el-row> | 7 | <el-row> |
| 6 | <el-col :span="6"> | 8 | <el-col :span="6"> |
| 7 | <el-form-item label="行政区"> | 9 | <el-form-item label="行政区" label-width="60px"> |
| 8 | <el-select v-model="form.pcode" class="width100" filterable placeholder="请选择行政区"> | 10 | <el-select v-model="form.pcode" class="width100" filterable placeholder="请选择行政区"> |
| 9 | <el-option v-for="item in []" :key="item.dcode" :label="item.dname" :value="item.dcode"> | 11 | <el-option v-for="item in []" :key="item.dcode" :label="item.dname" :value="item.dcode"> |
| 10 | </el-option> | 12 | </el-option> |
| ... | @@ -23,6 +25,7 @@ | ... | @@ -23,6 +25,7 @@ |
| 23 | clearable v-model="form.endTime" value-format="yyyy-MM-dd"></el-date-picker> | 25 | clearable v-model="form.endTime" value-format="yyyy-MM-dd"></el-date-picker> |
| 24 | </el-form-item> | 26 | </el-form-item> |
| 25 | </el-col> | 27 | </el-col> |
| 28 | <!-- 操作按钮 --> | ||
| 26 | <el-col :span="6" class="btnColRight"> | 29 | <el-col :span="6" class="btnColRight"> |
| 27 | <el-button @click="resetForm('ruleForm')">重置</el-button> | 30 | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| 28 | <el-button type="primary" @click="handleSubmit">查询结果</el-button> | 31 | <el-button type="primary" @click="handleSubmit">查询结果</el-button> |
| ... | @@ -30,33 +33,26 @@ | ... | @@ -30,33 +33,26 @@ |
| 30 | </el-row> | 33 | </el-row> |
| 31 | </el-form> | 34 | </el-form> |
| 32 | </div> | 35 | </div> |
| 36 | <!-- 列表区域 --> | ||
| 33 | <div class="from-clues-content"> | 37 | <div class="from-clues-content"> |
| 34 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" | 38 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" |
| 35 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 39 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
| 36 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| 37 | </lb-table> | 41 | </lb-table> |
| 38 | </div> | 42 | </div> |
| 39 | <!-- 预览弹框 --> | ||
| 40 | <dialogBox ref="dialog" isReset saveButton="关闭" divider title="XML报文"> | ||
| 41 | <div class="xmlMessage"> | ||
| 42 | {{ xml }} | ||
| 43 | </div> | ||
| 44 | </dialogBox> | ||
| 45 | </div> | 43 | </div> |
| 46 | </template> | 44 | </template> |
| 47 | |||
| 48 | <script> | 45 | <script> |
| 49 | // 登簿日志 | 46 | // 登簿日志查询 |
| 47 | // 引入列表数据 | ||
| 50 | import data from "./data" | 48 | import data from "./data" |
| 51 | import journal from '@/api/journal.js' | 49 | // 引入表格混入方法 |
| 52 | import fromMixin from '@/mixins/fromMixin.js' | ||
| 53 | import tableMixin from '@/mixins/tableMixin.js' | 50 | import tableMixin from '@/mixins/tableMixin.js' |
| 54 | export default { | 51 | export default { |
| 55 | name: "registerLog", | 52 | name: "dbrzcx", |
| 56 | mixins: [fromMixin, tableMixin], | 53 | mixins: [tableMixin], |
| 57 | data () { | 54 | data () { |
| 58 | return { | 55 | return { |
| 59 | xml: '', | ||
| 60 | // 开始结束日期限制 | 56 | // 开始结束日期限制 |
| 61 | pickerOptionsStart: { | 57 | pickerOptionsStart: { |
| 62 | disabledDate: (time) => { | 58 | disabledDate: (time) => { |
| ... | @@ -77,40 +73,26 @@ export default { | ... | @@ -77,40 +73,26 @@ export default { |
| 77 | } | 73 | } |
| 78 | } | 74 | } |
| 79 | }, | 75 | }, |
| 76 | // 表单 | ||
| 80 | form: { | 77 | form: { |
| 81 | pcode: '', | 78 | pcode: '', |
| 82 | startTime: '', | 79 | startTime: '', |
| 83 | endTime: '', | 80 | endTime: '', |
| 84 | currentPage: 1 | 81 | currentPage: 1 |
| 85 | }, | 82 | }, |
| 83 | // table数据 | ||
| 86 | tableData: { | 84 | tableData: { |
| 85 | // 表头 | ||
| 87 | columns: [{ | 86 | columns: [{ |
| 88 | label: '序号', | 87 | label: '序号', |
| 89 | type: 'index', | 88 | type: 'index', |
| 90 | width: '50', | 89 | width: '50', |
| 91 | index: this.indexMethod, | 90 | index: this.indexMethod, |
| 92 | }].concat(data.columns()) | 91 | }].concat(data.columns()), |
| 93 | .concat([ | 92 | // 列表 |
| 94 | { | ||
| 95 | label: "XML报文", | ||
| 96 | width: 130, | ||
| 97 | render: (h, scope) => { | ||
| 98 | return ( | ||
| 99 | <div> | ||
| 100 | <el-button | ||
| 101 | type="text" | ||
| 102 | icon="el-icon-view" | ||
| 103 | onClick={() => { this.handlePreview(scope.$index, scope.row) }} | ||
| 104 | > | ||
| 105 | 预览 | ||
| 106 | </el-button> | ||
| 107 | </div> | ||
| 108 | ); | ||
| 109 | }, | ||
| 110 | }, | ||
| 111 | ]), | ||
| 112 | data: [] | 93 | data: [] |
| 113 | }, | 94 | }, |
| 95 | // 分页 | ||
| 114 | pageData: { | 96 | pageData: { |
| 115 | total: 0, | 97 | total: 0, |
| 116 | pageSize: 15 | 98 | pageSize: 15 |
| ... | @@ -118,26 +100,11 @@ export default { | ... | @@ -118,26 +100,11 @@ export default { |
| 118 | } | 100 | } |
| 119 | }, | 101 | }, |
| 120 | methods: { | 102 | methods: { |
| 103 | // 重置表单 | ||
| 121 | resetForm () { | 104 | resetForm () { |
| 122 | this.$refs.ruleForm.resetFields(); | 105 | this.$refs.ruleForm.resetFields(); |
| 123 | }, | 106 | }, |
| 124 | async featchData () { | 107 | async featchData () { |
| 125 | try { | ||
| 126 | this.form = Object.assign(this.form, this.formData) | ||
| 127 | let { list, total, pages: pageSize, pageNum: current | ||
| 128 | } = await journal.queryAccessLogs(this.form) | ||
| 129 | this.tableData.data = list | ||
| 130 | this.pageData = { | ||
| 131 | pageSize, | ||
| 132 | current, | ||
| 133 | total | ||
| 134 | } | ||
| 135 | } catch (error) { | ||
| 136 | this.message = error | ||
| 137 | } | ||
| 138 | }, | ||
| 139 | async handlePreview (index, row) { | ||
| 140 | |||
| 141 | } | 108 | } |
| 142 | } | 109 | } |
| 143 | } | 110 | } | ... | ... |
-
Please register or sign in to post a comment