feat:接收规则管理
Showing
4 changed files
with
121 additions
and
0 deletions
| ... | @@ -111,6 +111,19 @@ export const asyncRoutes = [ | ... | @@ -111,6 +111,19 @@ export const asyncRoutes = [ |
| 111 | } | 111 | } |
| 112 | ] | 112 | ] |
| 113 | }, | 113 | }, |
| 114 | // 接收规则管理 | ||
| 115 | { | ||
| 116 | path: '/jsgzgl', | ||
| 117 | component: Layout, | ||
| 118 | children: [ | ||
| 119 | { | ||
| 120 | path: 'index', | ||
| 121 | component: () => import('@/views/jsgzgl/index'), | ||
| 122 | name: 'jsgzgl', | ||
| 123 | meta: { title: '接收规则管理', icon: 'zhcx' } | ||
| 124 | } | ||
| 125 | ] | ||
| 126 | }, | ||
| 114 | // 接入业务信息 | 127 | // 接入业务信息 |
| 115 | { | 128 | { |
| 116 | path: '/busineInfo', | 129 | path: '/busineInfo', | ... | ... |
src/views/jsgzgl/data/index.js
0 → 100644
| 1 | import filter from '@/utils/filter.js' | ||
| 2 | class data extends filter { | ||
| 3 | constructor() { | ||
| 4 | super() | ||
| 5 | } | ||
| 6 | columns () { | ||
| 7 | return [ | ||
| 8 | { | ||
| 9 | prop: "gzbm", | ||
| 10 | label: "规则编码", | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | prop: "gzmc", | ||
| 14 | label: "规则名称", | ||
| 15 | }, | ||
| 16 | { | ||
| 17 | prop: 'isqy', | ||
| 18 | label: '是否启用', | ||
| 19 | render: (h, scope) => { | ||
| 20 | return ( | ||
| 21 | <div> | ||
| 22 | { | ||
| 23 | scope.row.isqy | ||
| 24 | ? <el-tag type='success'>启用</el-tag> | ||
| 25 | : <el-tag type='success'>启用1</el-tag> | ||
| 26 | } | ||
| 27 | </div> | ||
| 28 | ) | ||
| 29 | } | ||
| 30 | }, | ||
| 31 | ] | ||
| 32 | } | ||
| 33 | } | ||
| 34 | export default new data() |
src/views/jsgzgl/index.scss
0 → 100644
src/views/jsgzgl/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="jsgzgl from-clues"> | ||
| 3 | <lb-table ref="table" :heightNum="195" :total="pageData.total" :page-size="pageData.size" | ||
| 4 | :current-page.sync="pageData.current" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | ||
| 5 | :column="tableData.columns" :data="tableData.data"> | ||
| 6 | </lb-table> | ||
| 7 | </div> | ||
| 8 | </template> | ||
| 9 | |||
| 10 | <script> | ||
| 11 | import data from "./data" | ||
| 12 | import tableMixin from '@/mixins/tableMixin.js' | ||
| 13 | export default { | ||
| 14 | name: "jsgzgl", | ||
| 15 | mixins: [tableMixin], | ||
| 16 | data () { | ||
| 17 | return { | ||
| 18 | tableData: { | ||
| 19 | columns: [{ | ||
| 20 | label: '序号', | ||
| 21 | type: 'index', | ||
| 22 | width: '50', | ||
| 23 | index: this.indexMethod, | ||
| 24 | }].concat(data.columns()).concat([ | ||
| 25 | { | ||
| 26 | label: "操作", | ||
| 27 | width: '80', | ||
| 28 | render: (h, scope) => { | ||
| 29 | return ( | ||
| 30 | <div> | ||
| 31 | <el-button | ||
| 32 | type="text" | ||
| 33 | size="mini" | ||
| 34 | icon="el-icon-edit" | ||
| 35 | style="margin-left: 10px" | ||
| 36 | onClick={() => { this.handleEdit(scope.row) }} | ||
| 37 | > | ||
| 38 | 修改 | ||
| 39 | </el-button> | ||
| 40 | </div> | ||
| 41 | ) | ||
| 42 | } | ||
| 43 | } | ||
| 44 | ]), | ||
| 45 | data: [{}] | ||
| 46 | }, | ||
| 47 | pageData: { | ||
| 48 | total: 0, | ||
| 49 | pageSize: 15, | ||
| 50 | current: 1, | ||
| 51 | }, | ||
| 52 | } | ||
| 53 | }, | ||
| 54 | methods: { | ||
| 55 | resetForm () { | ||
| 56 | this.$refs.ruleForm.resetFields(); | ||
| 57 | }, | ||
| 58 | async featchData () { | ||
| 59 | }, | ||
| 60 | handleEdit (row) { | ||
| 61 | |||
| 62 | } | ||
| 63 | } | ||
| 64 | } | ||
| 65 | </script> | ||
| 66 | <style scoped lang="scss"> | ||
| 67 | @import "~@/styles/public.scss"; | ||
| 68 | @import "./index.scss"; | ||
| 69 | </style> | ||
| 70 |
-
Please register or sign in to post a comment