style:上报系统数据推送
Showing
7 changed files
with
132 additions
and
127 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,97 +21,63 @@ | ... | @@ -21,97 +21,63 @@ |
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 () { |
51 | sendThis(this); | 41 | sendThis(this); |
52 | this.queryClick() | 42 | this.queryClick() |
53 | }, | ||
54 | data () { | ||
55 | return { | ||
56 | queryForm: { | ||
57 | qllx: "", | ||
58 | bdcdyh: "", | ||
59 | bdcqzh: "", | ||
60 | ywh: "", | ||
61 | }, | ||
62 | detailVisible : false, | ||
63 | pageData: { | ||
64 | current: 1, | ||
65 | size: 10, | ||
66 | total: 0, | ||
67 | }, | ||
68 | tableData: { | ||
69 | columns: datas.columns(), | ||
70 | data: [], | ||
71 | }, | ||
72 | qllxs: [], | ||
73 | isDialog: false, | ||
74 | dialogData: {}, | ||
75 | djbxxData: {}, | ||
76 | }; | ||
77 | }, | ||
78 | computed: { | ||
79 | ...mapGetters(["dictData"]), | ||
80 | }, | ||
81 | methods: { | ||
82 | // 初始化数据 | ||
83 | queryClick () { | ||
84 | this.$startLoading() | ||
85 | getSjsbPushList({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
86 | this.$endLoading() | ||
87 | if (res.code === 200) { | ||
88 | let { total, records } = res.result; | ||
89 | this.tableData.data = records; | ||
90 | this.tableData.total = total; | ||
91 | } | ||
92 | }); | ||
93 | }, | ||
94 | handleSort (name, sort) { | ||
95 | console.log(name, sort); | ||
96 | }, | 43 | }, |
97 | pushRecord () { | 44 | data () { |
98 | this.$startLoading() | 45 | return { |
99 | pushSjsbRecord(this.dialogData).then((res) => { | 46 | queryForm: { |
100 | this.$endLoading() | 47 | qllx: "", |
101 | if (res.code === 200) { | 48 | bdcdyh: "", |
102 | this.$message.success("推送成功"); | 49 | bdcqzh: "", |
103 | this.queryClick(); | 50 | ywh: "", |
104 | done(); | 51 | }, |
105 | } else { | 52 | pageData: { |
106 | this.$message.warning(res.message); | 53 | current: 1, |
54 | size: 10, | ||
55 | total: 0, | ||
56 | }, | ||
57 | tableData: { | ||
58 | columns: datas.columns(), | ||
59 | data: [], | ||
107 | } | 60 | } |
108 | }); | 61 | } |
109 | }, | 62 | }, |
110 | // 高级查询 | 63 | computed: { |
111 | moreQueryClick () { }, | 64 | ...mapGetters(["dictData"]) |
112 | openDialog (scroll) { | 65 | }, |
113 | 66 | methods: { | |
114 | const h = this.$createElement; | 67 | // 初始化数据 |
68 | queryClick () { | ||
69 | this.$startLoading() | ||
70 | getSjsbPushList({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
71 | this.$endLoading() | ||
72 | if (res.code === 200) { | ||
73 | let { total, records } = res.result; | ||
74 | this.tableData.data = records; | ||
75 | this.tableData.total = total; | ||
76 | } | ||
77 | }); | ||
78 | }, | ||
79 | openDialog (scroll) { | ||
80 | const h = this.$createElement; | ||
115 | this.$msgbox({ | 81 | this.$msgbox({ |
116 | title: '推送', | 82 | title: '推送', |
117 | message: h('p', null, [ | 83 | message: h('p', null, [ |
... | @@ -129,38 +95,35 @@ export default { | ... | @@ -129,38 +95,35 @@ export default { |
129 | done(); | 95 | done(); |
130 | } | 96 | } |
131 | } | 97 | } |
132 | }).then(action => {}); | 98 | }).then(action => { }); |
133 | 99 | }, | |
134 | }, | 100 | detail (row) { |
135 | 101 | detail(row.bsm).then((res) => { | |
136 | detail(row) { | 102 | this.$endLoading() |
137 | this.detailVisible = true | 103 | if (res.code === 200) { |
138 | detail(row.bsm).then((res) => { | 104 | this.$popupDialog("详情", "sjgx/sbxtsjts/dialog/detail", res.result, "60%") |
139 | this.$endLoading() | 105 | } else { |
140 | if (res.code === 200) { | 106 | this.$message.warning(res.message); |
141 | this.dialogData = res.result; | 107 | } |
142 | } else { | 108 | }) |
143 | this.$message.warning(res.message); | 109 | } |
144 | } | ||
145 | }); | ||
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; |
161 | border-radius: 50%; | 124 | border-radius: 50%; |
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