style:上报系统数据推送
Showing
7 changed files
with
80 additions
and
75 deletions
| ... | @@ -22,7 +22,7 @@ $menuHover:#249af4; | ... | @@ -22,7 +22,7 @@ $menuHover:#249af4; |
| 22 | $subMenuBg:#202B3D; | 22 | $subMenuBg:#202B3D; |
| 23 | $subMenuHover:#0e6fba; | 23 | $subMenuHover:#0e6fba; |
| 24 | 24 | ||
| 25 | $sideBarWidth: 170px; | 25 | $sideBarWidth: 180px; |
| 26 | $sideBarFontSize:15px; | 26 | $sideBarFontSize:15px; |
| 27 | 27 | ||
| 28 | // border颜色 | 28 | // border颜色 | ... | ... |
src/views/sjgx/sbxtsjts/dialog/detail.vue
0 → 100644
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-26 15:40:23 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class="loadingtext"> | ||
| 8 | <el-input | ||
| 9 | type="textarea" | ||
| 10 | :rows="8" | ||
| 11 | v-model="formData.json"> | ||
| 12 | </el-input> | ||
| 13 | <div class="text-center pt-10"> | ||
| 14 | <el-button type="primary" @click="pushRecord">推送</el-button> | ||
| 15 | </div> | ||
| 16 | </div> | ||
| 17 | </template> | ||
| 18 | <script> | ||
| 19 | import { pushSjsbRecord } from "@/api/zhcx.js"; | ||
| 20 | export default { | ||
| 21 | props: { | ||
| 22 | formData: { | ||
| 23 | type: Object, | ||
| 24 | default: () => { | ||
| 25 | return {} | ||
| 26 | } | ||
| 27 | } | ||
| 28 | }, | ||
| 29 | methods: { | ||
| 30 | pushRecord () { | ||
| 31 | this.$startLoading() | ||
| 32 | pushSjsbRecord(this.formData).then((res) => { | ||
| 33 | this.$endLoading() | ||
| 34 | if (res.code === 200) { | ||
| 35 | this.$message.success("推送成功"); | ||
| 36 | } else { | ||
| 37 | this.$message.warning(res.message); | ||
| 38 | } | ||
| 39 | this.$popupCacel() | ||
| 40 | }) | ||
| 41 | } | ||
| 42 | } | ||
| 43 | } | ||
| 44 | </script> |
| ... | @@ -21,30 +21,20 @@ | ... | @@ -21,30 +21,20 @@ |
| 21 | </div> | 21 | </div> |
| 22 | <!-- 表格 --> | 22 | <!-- 表格 --> |
| 23 | <div class="from-clues-content"> | 23 | <div class="from-clues-content"> |
| 24 | <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort" | 24 | <lb-table :page-size="pageData.size" class="loadingtext" |
| 25 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" | 25 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" |
| 26 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> | 26 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> |
| 27 | </lb-table> | 27 | </lb-table> |
| 28 | </div> | 28 | </div> |
| 29 | |||
| 30 | <el-dialog title="详情" :visible.sync="detailVisible"> | ||
| 31 | <div> | ||
| 32 | {{ dialogData.json }} | ||
| 33 | </div> | ||
| 34 | <div> | ||
| 35 | <button @click="pushRecord">推送</button> | ||
| 36 | </div> | ||
| 37 | </el-dialog> | ||
| 38 | |||
| 39 | </div> | 29 | </div> |
| 40 | </template> | 30 | </template> |
| 41 | <script> | 31 | <script> |
| 42 | import { mapGetters } from "vuex"; | 32 | import { mapGetters } from "vuex"; |
| 43 | import table from "@/utils/mixin/table"; | 33 | import table from "@/utils/mixin/table"; |
| 44 | import { datas, sendThis } from "./djbcxdata"; | 34 | import { datas, sendThis } from "./djbcxdata"; |
| 45 | import { getSjsbPushList, pushSjsbRecord, detail } from "@/api/zhcx.js"; | 35 | import { getSjsbPushList, detail } from "@/api/zhcx.js"; |
| 46 | 36 | ||
| 47 | export default { | 37 | export default { |
| 48 | name: "djbcx", | 38 | name: "djbcx", |
| 49 | mixins: [table], | 39 | mixins: [table], |
| 50 | mounted () { | 40 | mounted () { |
| ... | @@ -59,7 +49,6 @@ export default { | ... | @@ -59,7 +49,6 @@ export default { |
| 59 | bdcqzh: "", | 49 | bdcqzh: "", |
| 60 | ywh: "", | 50 | ywh: "", |
| 61 | }, | 51 | }, |
| 62 | detailVisible : false, | ||
| 63 | pageData: { | 52 | pageData: { |
| 64 | current: 1, | 53 | current: 1, |
| 65 | size: 10, | 54 | size: 10, |
| ... | @@ -68,15 +57,11 @@ export default { | ... | @@ -68,15 +57,11 @@ export default { |
| 68 | tableData: { | 57 | tableData: { |
| 69 | columns: datas.columns(), | 58 | columns: datas.columns(), |
| 70 | data: [], | 59 | data: [], |
| 71 | }, | 60 | } |
| 72 | qllxs: [], | 61 | } |
| 73 | isDialog: false, | ||
| 74 | dialogData: {}, | ||
| 75 | djbxxData: {}, | ||
| 76 | }; | ||
| 77 | }, | 62 | }, |
| 78 | computed: { | 63 | computed: { |
| 79 | ...mapGetters(["dictData"]), | 64 | ...mapGetters(["dictData"]) |
| 80 | }, | 65 | }, |
| 81 | methods: { | 66 | methods: { |
| 82 | // 初始化数据 | 67 | // 初始化数据 |
| ... | @@ -91,26 +76,7 @@ export default { | ... | @@ -91,26 +76,7 @@ export default { |
| 91 | } | 76 | } |
| 92 | }); | 77 | }); |
| 93 | }, | 78 | }, |
| 94 | handleSort (name, sort) { | ||
| 95 | console.log(name, sort); | ||
| 96 | }, | ||
| 97 | pushRecord () { | ||
| 98 | this.$startLoading() | ||
| 99 | pushSjsbRecord(this.dialogData).then((res) => { | ||
| 100 | this.$endLoading() | ||
| 101 | if (res.code === 200) { | ||
| 102 | this.$message.success("推送成功"); | ||
| 103 | this.queryClick(); | ||
| 104 | done(); | ||
| 105 | } else { | ||
| 106 | this.$message.warning(res.message); | ||
| 107 | } | ||
| 108 | }); | ||
| 109 | }, | ||
| 110 | // 高级查询 | ||
| 111 | moreQueryClick () { }, | ||
| 112 | openDialog (scroll) { | 79 | openDialog (scroll) { |
| 113 | |||
| 114 | const h = this.$createElement; | 80 | const h = this.$createElement; |
| 115 | this.$msgbox({ | 81 | this.$msgbox({ |
| 116 | title: '推送', | 82 | title: '推送', |
| ... | @@ -129,32 +95,29 @@ export default { | ... | @@ -129,32 +95,29 @@ export default { |
| 129 | done(); | 95 | done(); |
| 130 | } | 96 | } |
| 131 | } | 97 | } |
| 132 | }).then(action => {}); | 98 | }).then(action => { }); |
| 133 | |||
| 134 | }, | 99 | }, |
| 135 | 100 | detail (row) { | |
| 136 | detail(row) { | ||
| 137 | this.detailVisible = true | ||
| 138 | detail(row.bsm).then((res) => { | 101 | detail(row.bsm).then((res) => { |
| 139 | this.$endLoading() | 102 | this.$endLoading() |
| 140 | if (res.code === 200) { | 103 | if (res.code === 200) { |
| 141 | this.dialogData = res.result; | 104 | this.$popupDialog("详情", "sjgx/sbxtsjts/dialog/detail", res.result, "60%") |
| 142 | } else { | 105 | } else { |
| 143 | this.$message.warning(res.message); | 106 | this.$message.warning(res.message); |
| 144 | } | 107 | } |
| 145 | }); | 108 | }) |
| 109 | } | ||
| 146 | } | 110 | } |
| 147 | } | 111 | } |
| 148 | } | ||
| 149 | </script> | 112 | </script> |
| 150 | <style scoped lang="scss"> | 113 | <style scoped lang="scss"> |
| 151 | @import "~@/styles/public.scss"; | 114 | @import "~@/styles/public.scss"; |
| 152 | 115 | ||
| 153 | .icon-circle { | 116 | .icon-circle { |
| 154 | position: relative; | 117 | position: relative; |
| 155 | } | 118 | } |
| 156 | 119 | ||
| 157 | .icon-circle::before { | 120 | .icon-circle::before { |
| 158 | content: ""; | 121 | content: ""; |
| 159 | width: 4px; | 122 | width: 4px; |
| 160 | height: 4px; | 123 | height: 4px; |
| ... | @@ -162,5 +125,5 @@ export default { | ... | @@ -162,5 +125,5 @@ export default { |
| 162 | background: #000; | 125 | background: #000; |
| 163 | top: 0px; | 126 | top: 0px; |
| 164 | left: 0px; | 127 | left: 0px; |
| 165 | } | 128 | } |
| 166 | </style> | 129 | </style> | ... | ... |
| ... | @@ -46,8 +46,8 @@ class data extends filter { | ... | @@ -46,8 +46,8 @@ class data extends filter { |
| 46 | label: '登记情形编码', | 46 | label: '登记情形编码', |
| 47 | render: (h, scope) => { | 47 | render: (h, scope) => { |
| 48 | return ( | 48 | return ( |
| 49 | <el-input placeholder="登记情形编码" class={{ repeat: scope.row.repeat }} value={scope.row[scope.column.property]} | 49 | <el-input placeholder="登记情形编码" value={scope.row[scope.column.property]} |
| 50 | onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }} maxlength="8"> | 50 | onInput={(val) => { scope.row[scope.column.property] = val; vm.orderNoChange() }} maxlength="8"> |
| 51 | </el-input> | 51 | </el-input> |
| 52 | ) | 52 | ) |
| 53 | } | 53 | } |
| ... | @@ -58,7 +58,7 @@ class data extends filter { | ... | @@ -58,7 +58,7 @@ class data extends filter { |
| 58 | render: (h, scope) => { | 58 | render: (h, scope) => { |
| 59 | return ( | 59 | return ( |
| 60 | <el-input placeholder="登记情形名称" value={scope.row[scope.column.property]} | 60 | <el-input placeholder="登记情形名称" value={scope.row[scope.column.property]} |
| 61 | onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }}> | 61 | onInput={(val) => { scope.row[scope.column.property] = val; vm.orderNoChange() }}> |
| 62 | </el-input> | 62 | </el-input> |
| 63 | ) | 63 | ) |
| 64 | } | 64 | } | ... | ... |
| ... | @@ -153,7 +153,9 @@ | ... | @@ -153,7 +153,9 @@ |
| 153 | activeName: "1", | 153 | activeName: "1", |
| 154 | form: { | 154 | form: { |
| 155 | bsmSqyw: '', | 155 | bsmSqyw: '', |
| 156 | ywDetail: {} | 156 | ywDetail: {}, |
| 157 | djqx: [], | ||
| 158 | clxx: [] | ||
| 157 | }, | 159 | }, |
| 158 | djqxCol: datas.djqxCol(), | 160 | djqxCol: datas.djqxCol(), |
| 159 | clxxCol: datas.clxxCol(), | 161 | clxxCol: datas.clxxCol(), |
| ... | @@ -205,15 +207,16 @@ | ... | @@ -205,15 +207,16 @@ |
| 205 | }, | 207 | }, |
| 206 | //获取业务具体明细内容 | 208 | //获取业务具体明细内容 |
| 207 | getDetail (bsmSqyw) { | 209 | getDetail (bsmSqyw) { |
| 210 | let _this = this | ||
| 208 | getSqdjywDetail(bsmSqyw).then((res) => { | 211 | getSqdjywDetail(bsmSqyw).then((res) => { |
| 209 | if (res.code === 200) { | 212 | if (res.code === 200) { |
| 210 | // this.form.bsmSqyw = res.result.bsmSqyw | 213 | _this.form.bsmSqyw = res.result.bsmSqyw |
| 211 | // this.form.ywDetail = res.result.ywDetail | 214 | _this.form.ywDetail = res.result.ywDetail |
| 212 | this.$set(this.form, 'djqx', res.result.djqx) | 215 | _this.$set(_this.form, 'djqx', res.result.djqx) |
| 213 | // this.$set(this.form, 'sxql', res.result.sxql) | 216 | _this.$set(_this.form, 'sxql', res.result.sxql) |
| 214 | this.$set(this.form, 'clxx', res.result.clxx) | 217 | _this.$set(_this.form, 'clxx', res.result.clxx) |
| 215 | // this.$set(this.form, 'sxzt', res.result.sxzt) | 218 | _this.$set(_this.form, 'sxzt', res.result.sxzt) |
| 216 | // this.$set(this.form, 'ywDetail', res.result.ywDetail) | 219 | _this.$set(_this.form, 'ywDetail', res.result.ywDetail) |
| 217 | } else { | 220 | } else { |
| 218 | this.$alert(res.message) | 221 | this.$alert(res.message) |
| 219 | } | 222 | } |
| ... | @@ -289,7 +292,6 @@ | ... | @@ -289,7 +292,6 @@ |
| 289 | .el-radio-group { | 292 | .el-radio-group { |
| 290 | white-space: nowrap; | 293 | white-space: nowrap; |
| 291 | } | 294 | } |
| 292 | |||
| 293 | .form { | 295 | .form { |
| 294 | background: #eee; | 296 | background: #eee; |
| 295 | padding: 0 10px; | 297 | padding: 0 10px; | ... | ... |
| ... | @@ -48,7 +48,7 @@ module.exports = { | ... | @@ -48,7 +48,7 @@ module.exports = { |
| 48 | } | 48 | } |
| 49 | }, | 49 | }, |
| 50 | css: { | 50 | css: { |
| 51 | extract: true, // 是否使用css分离插件 ExtractTextPlugin | 51 | extract: false, // 是否使用css分离插件 ExtractTextPlugin |
| 52 | sourceMap: false, // 开启 CSS source maps? | 52 | sourceMap: false, // 开启 CSS source maps? |
| 53 | loaderOptions: { | 53 | loaderOptions: { |
| 54 | sass: { | 54 | sass: { |
| ... | @@ -59,10 +59,6 @@ module.exports = { | ... | @@ -59,10 +59,6 @@ module.exports = { |
| 59 | }, | 59 | }, |
| 60 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 | 60 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 |
| 61 | configureWebpack: { | 61 | configureWebpack: { |
| 62 | optimization: { | ||
| 63 | usedExports: true, | ||
| 64 | minimize: true | ||
| 65 | }, | ||
| 66 | entry: { | 62 | entry: { |
| 67 | app: './src/main.js' | 63 | app: './src/main.js' |
| 68 | }, | 64 | }, | ... | ... |
-
Please register or sign in to post a comment