feat:报文重新入库日志
Showing
2 changed files
with
34 additions
and
48 deletions
| 1 | <template> | 1 | <template> |
| 2 | <div class="reportLog from-clues"> | 2 | <!-- 报文重新入库日志 --> |
| 3 | <div class="from-clues"> | ||
| 4 | <!-- 头部搜索 --> | ||
| 3 | <div class="from-clues-header"> | 5 | <div class="from-clues-header"> |
| 4 | <el-form ref="ruleForm" :model="form" label-width="100px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="100px"> |
| 5 | <el-row class="marginbtm5"> | 7 | <el-row class="marginbtm5"> |
| ... | @@ -41,6 +43,7 @@ | ... | @@ -41,6 +43,7 @@ |
| 41 | </el-select> | 43 | </el-select> |
| 42 | </el-form-item> | 44 | </el-form-item> |
| 43 | </el-col> | 45 | </el-col> |
| 46 | <!-- 操作按钮 --> | ||
| 44 | <el-col :span="18" class="btnColRight"> | 47 | <el-col :span="18" class="btnColRight"> |
| 45 | <el-button @click="resetForm('ruleForm')">重置</el-button> | 48 | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| 46 | <el-button type="primary" @click="handleSubmit">查询结果</el-button> | 49 | <el-button type="primary" @click="handleSubmit">查询结果</el-button> |
| ... | @@ -48,6 +51,7 @@ | ... | @@ -48,6 +51,7 @@ |
| 48 | </el-row> | 51 | </el-row> |
| 49 | </el-form> | 52 | </el-form> |
| 50 | </div> | 53 | </div> |
| 54 | <!-- 列表 --> | ||
| 51 | <div class="from-clues-content"> | 55 | <div class="from-clues-content"> |
| 52 | <lb-table ref="table" :heightNum="300" :page-size="pageData.size" :current-page.sync="pageData.current" | 56 | <lb-table ref="table" :heightNum="300" :page-size="pageData.size" :current-page.sync="pageData.current" |
| 53 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 57 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
| ... | @@ -56,10 +60,11 @@ | ... | @@ -56,10 +60,11 @@ |
| 56 | </div> | 60 | </div> |
| 57 | </div> | 61 | </div> |
| 58 | </template> | 62 | </template> |
| 59 | |||
| 60 | <script> | 63 | <script> |
| 64 | // 报文重新入库日志 | ||
| 65 | // 引入列表头部 | ||
| 61 | import data from "./data" | 66 | import data from "./data" |
| 62 | import journal from '@/api/journal.js' | 67 | // 引入表格混入方法 |
| 63 | import tableMixin from '@/mixins/tableMixin.js' | 68 | import tableMixin from '@/mixins/tableMixin.js' |
| 64 | export default { | 69 | export default { |
| 65 | name: "bwcxrkrz", | 70 | name: "bwcxrkrz", |
| ... | @@ -86,8 +91,7 @@ export default { | ... | @@ -86,8 +91,7 @@ export default { |
| 86 | } | 91 | } |
| 87 | } | 92 | } |
| 88 | }, | 93 | }, |
| 89 | bsmSjsb: '', | 94 | // 头部表单 |
| 90 | diaData: [], | ||
| 91 | form: { | 95 | form: { |
| 92 | pcode: '', | 96 | pcode: '', |
| 93 | bwmc: '', | 97 | bwmc: '', |
| ... | @@ -96,6 +100,7 @@ export default { | ... | @@ -96,6 +100,7 @@ export default { |
| 96 | rkjg: '', | 100 | rkjg: '', |
| 97 | currentPage: 1 | 101 | currentPage: 1 |
| 98 | }, | 102 | }, |
| 103 | // 表单校验 | ||
| 99 | rules: { | 104 | rules: { |
| 100 | pcode: [ | 105 | pcode: [ |
| 101 | { required: true, message: '响应结果', trigger: 'change' } | 106 | { required: true, message: '响应结果', trigger: 'change' } |
| ... | @@ -106,17 +111,20 @@ export default { | ... | @@ -106,17 +111,20 @@ export default { |
| 106 | endTime: [ | 111 | endTime: [ |
| 107 | { required: true, message: '结束日期', trigger: 'change' } | 112 | { required: true, message: '结束日期', trigger: 'change' } |
| 108 | ], | 113 | ], |
| 109 | |||
| 110 | }, | 114 | }, |
| 115 | // 表格 | ||
| 111 | tableData: { | 116 | tableData: { |
| 117 | // 表格头部 | ||
| 112 | columns: [{ | 118 | columns: [{ |
| 113 | label: '序号', | 119 | label: '序号', |
| 114 | type: 'index', | 120 | type: 'index', |
| 115 | width: '50', | 121 | width: '50', |
| 116 | index: this.indexMethod, | 122 | index: this.indexMethod, |
| 117 | }].concat(data.columns()), | 123 | }].concat(data.columns()), |
| 124 | // 表格列表 | ||
| 118 | data: [] | 125 | data: [] |
| 119 | }, | 126 | }, |
| 127 | // 分页 | ||
| 120 | pageData: { | 128 | pageData: { |
| 121 | total: 0, | 129 | total: 0, |
| 122 | pageSize: 15, | 130 | pageSize: 15, |
| ... | @@ -144,27 +152,12 @@ export default { | ... | @@ -144,27 +152,12 @@ export default { |
| 144 | } | 152 | } |
| 145 | }, | 153 | }, |
| 146 | methods: { | 154 | methods: { |
| 155 | // 重置表单 | ||
| 147 | resetForm () { | 156 | resetForm () { |
| 148 | this.$refs.ruleForm.resetFields(); | 157 | this.$refs.ruleForm.resetFields(); |
| 149 | }, | 158 | }, |
| 159 | // 数据请求 | ||
| 150 | async featchData () { | 160 | async featchData () { |
| 151 | try { | ||
| 152 | this.form = Object.assign(this.form, this.formData) | ||
| 153 | let { result: { list, total, pages: pageSize, pageNum: current } | ||
| 154 | } = await journal.querySjsbTask(this.form) | ||
| 155 | if (this.$store.state.dictionaries.addDic) { | ||
| 156 | this.tableData.data = list | ||
| 157 | this.pageData = { | ||
| 158 | pageSize, | ||
| 159 | current, | ||
| 160 | total | ||
| 161 | } | ||
| 162 | } else { | ||
| 163 | this.featchData() | ||
| 164 | } | ||
| 165 | } catch (error) { | ||
| 166 | this.message = error | ||
| 167 | } | ||
| 168 | } | 161 | } |
| 169 | } | 162 | } |
| 170 | } | 163 | } | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="reportLog from-clues"> | 2 | <!-- 接收报文重新入库 --> |
| 3 | <div class="from-clues"> | ||
| 4 | <!-- 头部搜索 --> | ||
| 3 | <div class="from-clues-header"> | 5 | <div class="from-clues-header"> |
| 4 | <el-form ref="ruleForm" :model="form" label-width="55px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="55px"> |
| 5 | <el-row class="marginbtm5"> | 7 | <el-row class="marginbtm5"> |
| 6 | <el-col :span="6"> | 8 | <el-col :span="6"> |
| 7 | <el-form-item label="行政区" prop="pcode"> | 9 | <el-form-item label="行政区" prop="pcode"> |
| 8 | <el-select v-model="form.pcode" class="width100" clearable placeholder="行政区"> | 10 | <el-select v-model="form.pcode" class="width100" clearable placeholder="行政区"> |
| 9 | <el-option v-for="item in xzqOptions" :key="item.value" :label="item.label" :value="item.value"> | 11 | <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value"> |
| 10 | </el-option> | 12 | </el-option> |
| 11 | </el-select> | 13 | </el-select> |
| 12 | </el-form-item> | 14 | </el-form-item> |
| ... | @@ -19,6 +21,7 @@ | ... | @@ -19,6 +21,7 @@ |
| 19 | </el-select> | 21 | </el-select> |
| 20 | </el-form-item> | 22 | </el-form-item> |
| 21 | </el-col> | 23 | </el-col> |
| 24 | <!-- 操作按钮 --> | ||
| 22 | <el-col :span="12" class="btnColRight"> | 25 | <el-col :span="12" class="btnColRight"> |
| 23 | <el-form-item> | 26 | <el-form-item> |
| 24 | <el-button @click="resetForm('ruleForm')">重置</el-button> | 27 | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| ... | @@ -28,6 +31,7 @@ | ... | @@ -28,6 +31,7 @@ |
| 28 | </el-row> | 31 | </el-row> |
| 29 | </el-form> | 32 | </el-form> |
| 30 | </div> | 33 | </div> |
| 34 | <!-- 列表 --> | ||
| 31 | <div class="from-clues-content"> | 35 | <div class="from-clues-content"> |
| 32 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" | 36 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" |
| 33 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 37 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
| ... | @@ -36,26 +40,32 @@ | ... | @@ -36,26 +40,32 @@ |
| 36 | </div> | 40 | </div> |
| 37 | </div> | 41 | </div> |
| 38 | </template> | 42 | </template> |
| 39 | |||
| 40 | <script> | 43 | <script> |
| 44 | // 接收报文重新入库 | ||
| 45 | // 引入列表头部数据 | ||
| 41 | import data from "./data" | 46 | import data from "./data" |
| 47 | // 引入混入方法 | ||
| 42 | import tableMixin from '@/mixins/tableMixin.js' | 48 | import tableMixin from '@/mixins/tableMixin.js' |
| 43 | export default { | 49 | export default { |
| 44 | name: "reportLog", | 50 | name: "reportLog", |
| 45 | mixins: [tableMixin], | 51 | mixins: [tableMixin], |
| 46 | data () { | 52 | data () { |
| 47 | return { | 53 | return { |
| 54 | // 表单 | ||
| 48 | form: { | 55 | form: { |
| 49 | pcode: '', | 56 | pcode: '', |
| 50 | status: '', | 57 | status: '', |
| 51 | currentPage: 1 | 58 | currentPage: 1 |
| 52 | }, | 59 | }, |
| 60 | // 表单校验 | ||
| 53 | rules: { | 61 | rules: { |
| 54 | pcode: [ | 62 | pcode: [ |
| 55 | { required: true, message: '请选择行政区', trigger: 'change' } | 63 | { required: true, message: '请选择行政区', trigger: 'change' } |
| 56 | ], | 64 | ], |
| 57 | }, | 65 | }, |
| 66 | // 列表 | ||
| 58 | tableData: { | 67 | tableData: { |
| 68 | // 列表头部 | ||
| 59 | columns: [{ | 69 | columns: [{ |
| 60 | label: '序号', | 70 | label: '序号', |
| 61 | type: 'index', | 71 | type: 'index', |
| ... | @@ -71,8 +81,6 @@ export default { | ... | @@ -71,8 +81,6 @@ export default { |
| 71 | <el-button | 81 | <el-button |
| 72 | type="text" | 82 | type="text" |
| 73 | size="mini" | 83 | size="mini" |
| 74 | icon="el-icon-edit" | ||
| 75 | style="margin-left: 10px" | ||
| 76 | onClick={() => { this.handleEdit(scope.row) }} | 84 | onClick={() => { this.handleEdit(scope.row) }} |
| 77 | > | 85 | > |
| 78 | 编辑 | 86 | 编辑 |
| ... | @@ -82,38 +90,23 @@ export default { | ... | @@ -82,38 +90,23 @@ export default { |
| 82 | } | 90 | } |
| 83 | } | 91 | } |
| 84 | ]), | 92 | ]), |
| 93 | // 列表数据 | ||
| 85 | data: [{}] | 94 | data: [{}] |
| 86 | }, | 95 | }, |
| 96 | // 分页 | ||
| 87 | pageData: { | 97 | pageData: { |
| 88 | total: 0, | 98 | total: 0, |
| 89 | pageSize: 15, | 99 | pageSize: 15, |
| 90 | current: 1, | 100 | current: 1, |
| 91 | }, | 101 | } |
| 92 | // 行政区 | ||
| 93 | xzqOptions: [ | ||
| 94 | { | ||
| 95 | value: '632321', | ||
| 96 | label: '同仁县' | ||
| 97 | }, | ||
| 98 | { | ||
| 99 | value: '632322', | ||
| 100 | label: '尖扎县' | ||
| 101 | }, | ||
| 102 | { | ||
| 103 | value: '632323', | ||
| 104 | label: '泽库县' | ||
| 105 | }, | ||
| 106 | { | ||
| 107 | value: '632324', | ||
| 108 | label: '河南县' | ||
| 109 | } | ||
| 110 | ] | ||
| 111 | } | 102 | } |
| 112 | }, | 103 | }, |
| 113 | methods: { | 104 | methods: { |
| 105 | // 重置 | ||
| 114 | resetForm () { | 106 | resetForm () { |
| 115 | this.$refs.ruleForm.resetFields(); | 107 | this.$refs.ruleForm.resetFields(); |
| 116 | }, | 108 | }, |
| 109 | // 数据请求 | ||
| 117 | async featchData () { | 110 | async featchData () { |
| 118 | }, | 111 | }, |
| 119 | handleEdit (row) { | 112 | handleEdit (row) { | ... | ... |
-
Please register or sign in to post a comment