Merge branch 'dev'
Showing
8 changed files
with
59 additions
and
62 deletions
... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
40 | 40 | ||
41 | <br> | 41 | <br> |
42 | <el-pagination class="lb-table-pagination" v-if="pagination" v-bind="$attrs" v-on="$listeners" background | 42 | <el-pagination class="lb-table-pagination" v-if="pagination" v-bind="$attrs" v-on="$listeners" background |
43 | layout="total, prev, pager, next" @current-change="paginationCurrentChange" | 43 | layout="total, sizes, prev, pager, next" @current-change="paginationCurrentChange" @size-change="handleSizeChange" |
44 | :style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }"> | 44 | :style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }"> |
45 | </el-pagination> | 45 | </el-pagination> |
46 | </div> | 46 | </div> |
... | @@ -306,6 +306,9 @@ | ... | @@ -306,6 +306,9 @@ |
306 | paginationCurrentChange (val) { | 306 | paginationCurrentChange (val) { |
307 | this.$emit('p-current-change', val) | 307 | this.$emit('p-current-change', val) |
308 | }, | 308 | }, |
309 | handleSizeChange (val) { | ||
310 | this.$emit('size-change', val) | ||
311 | }, | ||
309 | /** | 312 | /** |
310 | * @description: getMergeArr | 313 | * @description: getMergeArr |
311 | * @param {*} tableData | 314 | * @param {*} tableData | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-19 16:10:10 | 4 | * @LastEditTime: 2024-01-25 15:06:08 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="tableBox"> | 7 | <div class="tableBox"> |
... | @@ -257,7 +257,7 @@ | ... | @@ -257,7 +257,7 @@ |
257 | let that = this | 257 | let that = this |
258 | let sjlx = row.sjlx, | 258 | let sjlx = row.sjlx, |
259 | bsmQlxx = row.bsmQlxx | 259 | bsmQlxx = row.bsmQlxx |
260 | if (sjlx == '系统数据') { | 260 | if (['系统数据', '存量数据'].includes(sjlx)) { |
261 | getXtParamsByYwh(ywh).then(res => { | 261 | getXtParamsByYwh(ywh).then(res => { |
262 | let data = res.result | 262 | let data = res.result |
263 | that.$popup('材料信息', 'registerBook/components/clxx/index', { | 263 | that.$popup('材料信息', 'registerBook/components/clxx/index', { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: miaofang | 3 | * @Autor: miaofang |
4 | * @LastEditTime: 2024-01-19 16:09:59 | 4 | * @LastEditTime: 2024-01-25 15:08:01 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> |
... | @@ -304,7 +304,7 @@ | ... | @@ -304,7 +304,7 @@ |
304 | let that = this | 304 | let that = this |
305 | let sjlx = row.sjlx, | 305 | let sjlx = row.sjlx, |
306 | bsmQlxx = row.bsmQlxx | 306 | bsmQlxx = row.bsmQlxx |
307 | if (sjlx == '系统数据') { | 307 | if (['系统数据', '存量数据'].includes(sjlx)) { |
308 | getXtParamsByYwh(ywh).then(res => { | 308 | getXtParamsByYwh(ywh).then(res => { |
309 | let data = res.result | 309 | let data = res.result |
310 | that.$popup('材料信息', 'registerBook/components/clxx/index', { | 310 | that.$popup('材料信息', 'registerBook/components/clxx/index', { | ... | ... |
... | @@ -29,12 +29,12 @@ | ... | @@ -29,12 +29,12 @@ |
29 | </div> | 29 | </div> |
30 | </template> | 30 | </template> |
31 | <script> | 31 | <script> |
32 | import { mapGetters } from "vuex"; | 32 | import { mapGetters } from "vuex"; |
33 | import table from "@/utils/mixin/table"; | 33 | import table from "@/utils/mixin/table"; |
34 | import { datas, sendThis } from "./djbcxdata"; | 34 | import { datas, sendThis } from "./djbcxdata"; |
35 | import { list, detail } from "@/api/sysPushRecord.js"; | 35 | import { list, detail } from "@/api/sysPushRecord.js"; |
36 | 36 | ||
37 | export default { | 37 | export default { |
38 | name: "djbcx", | 38 | name: "djbcx", |
39 | mixins: [table], | 39 | mixins: [table], |
40 | mounted () { | 40 | mounted () { |
... | @@ -123,16 +123,16 @@ export default { | ... | @@ -123,16 +123,16 @@ export default { |
123 | }) | 123 | }) |
124 | } | 124 | } |
125 | } | 125 | } |
126 | } | 126 | } |
127 | </script> | 127 | </script> |
128 | <style scoped lang="scss"> | 128 | <style scoped lang="scss"> |
129 | @import "~@/styles/public.scss"; | 129 | @import "~@/styles/public.scss"; |
130 | 130 | ||
131 | .icon-circle { | 131 | .icon-circle { |
132 | position: relative; | 132 | position: relative; |
133 | } | 133 | } |
134 | 134 | ||
135 | .icon-circle::before { | 135 | .icon-circle::before { |
136 | content: ""; | 136 | content: ""; |
137 | width: 4px; | 137 | width: 4px; |
138 | height: 4px; | 138 | height: 4px; |
... | @@ -140,5 +140,5 @@ export default { | ... | @@ -140,5 +140,5 @@ export default { |
140 | background: #000; | 140 | background: #000; |
141 | top: 0px; | 141 | top: 0px; |
142 | left: 0px; | 142 | left: 0px; |
143 | } | 143 | } |
144 | </style> | 144 | </style> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-17 17:30:08 | 4 | * @LastEditTime: 2024-01-25 15:01:43 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -69,7 +69,6 @@ | ... | @@ -69,7 +69,6 @@ |
69 | :current-page.sync="pageData.currentPage" | 69 | :current-page.sync="pageData.currentPage" |
70 | :total="tableData.total" | 70 | :total="tableData.total" |
71 | @size-change="handleSizeChange" | 71 | @size-change="handleSizeChange" |
72 | @select="select" | ||
73 | @p-current-change="handleCurrentChange" | 72 | @p-current-change="handleCurrentChange" |
74 | @selection-change="handleSelectionChange" | 73 | @selection-change="handleSelectionChange" |
75 | :column="tableData.columns" | 74 | :column="tableData.columns" |
... | @@ -99,6 +98,7 @@ | ... | @@ -99,6 +98,7 @@ |
99 | mixins: [ywsqTable, jump], | 98 | mixins: [ywsqTable, jump], |
100 | data () { | 99 | data () { |
101 | return { | 100 | return { |
101 | radioVal: '', | ||
102 | loading: false, | 102 | loading: false, |
103 | queryForm: defaultParameters.defaultParameters(), | 103 | queryForm: defaultParameters.defaultParameters(), |
104 | tableData: { | 104 | tableData: { |
... | @@ -111,6 +111,28 @@ | ... | @@ -111,6 +111,28 @@ |
111 | }, | 111 | }, |
112 | mounted () { | 112 | mounted () { |
113 | sendThis(this); | 113 | sendThis(this); |
114 | if (this.sqywInfo.sqywdylx == "1") { | ||
115 | this.tableData.columns = [{ | ||
116 | label: '选择', | ||
117 | width: '50px', | ||
118 | render: (h, scope) => { | ||
119 | return ( | ||
120 | <div class="orgColumn"> | ||
121 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}> | ||
122 |   | ||
123 | </el-radio> | ||
124 | </div> | ||
125 | ) | ||
126 | } | ||
127 | }].concat(datas.columns()) | ||
128 | } else { | ||
129 | this.tableData.columns = | ||
130 | [{ | ||
131 | type: 'selection', | ||
132 | label: '全选', | ||
133 | width: '50' | ||
134 | }].concat(datas.columns()) | ||
135 | } | ||
114 | }, | 136 | }, |
115 | methods: { | 137 | methods: { |
116 | /** | 138 | /** |
... | @@ -207,54 +229,26 @@ | ... | @@ -207,54 +229,26 @@ |
207 | } | 229 | } |
208 | }, | 230 | }, |
209 | /** | 231 | /** |
210 | * @description: select | ||
211 | * @param {*} selection | ||
212 | * @param {*} row | ||
213 | * @author: renchao | ||
214 | */ | ||
215 | select (selection, row) { | ||
216 | if (this.sqywInfo.sqywdylx == "1") { | ||
217 | // 清除 所有勾选项 | ||
218 | this.$refs.table.clearSelection(); | ||
219 | // 当表格数据都没有被勾选的时候 就返回 | ||
220 | // 主要用于将当前勾选的表格状态清除 | ||
221 | if (selection.length == 0) return; | ||
222 | this.$refs.table.toggleRowSelection(row, true); | ||
223 | } | ||
224 | }, | ||
225 | /** | ||
226 | * @description: handleRowClick | 232 | * @description: handleRowClick |
227 | * @param {*} row | 233 | * @param {*} row |
228 | * @author: renchao | 234 | * @author: renchao |
229 | */ | 235 | */ |
236 | handleChange () { | ||
237 | let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal) | ||
238 | arr[0].bsm = arr[0].zdbsm | ||
239 | this.bdcdysz = arr | ||
240 | }, | ||
230 | handleRowClick (row) { | 241 | handleRowClick (row) { |
231 | // 如果状态是1,那就是单选 | 242 | // 如果状态是1,那就是单选 |
243 | let refs = 'table'; | ||
232 | if (this.sqywInfo.sqywdylx == "1") { | 244 | if (this.sqywInfo.sqywdylx == "1") { |
233 | const bdcdysz = this.bdcdysz; | 245 | row.bsm = row.zdbsm |
234 | this.$refs.table.clearSelection(); | 246 | this.bdcdysz = [row] |
235 | if (bdcdysz.length == 1) { | 247 | this.radioVal = row.bdcdyid |
236 | bdcdysz.forEach((item) => { | ||
237 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
238 | if (item == row) { | ||
239 | this.$refs.table.toggleRowSelection(row, false); | ||
240 | } | ||
241 | // 不然就让当前的一行勾选 | ||
242 | else { | ||
243 | this.$refs.table.toggleRowSelection(row, true); | ||
244 | } | ||
245 | }); | ||
246 | } else { | 248 | } else { |
247 | this.$refs.table.toggleRowSelection(row, true); | 249 | this.$refs[refs].toggleRowSelection(row) |
248 | } | ||
249 | } else { | ||
250 | this.$refs.table.toggleRowSelection(row); | ||
251 | } | 250 | } |
252 | }, | 251 | }, |
253 | /** | ||
254 | * @description: openBook | ||
255 | * @param {*} row | ||
256 | * @author: miaofang | ||
257 | */ | ||
258 | openBook (row) { | 252 | openBook (row) { |
259 | var param = { | 253 | var param = { |
260 | bdcdyid: row.bdcdyid, | 254 | bdcdyid: row.bdcdyid, | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-17 15:34:28 | 4 | * @LastEditTime: 2024-01-25 14:59:59 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -74,7 +74,7 @@ | ... | @@ -74,7 +74,7 @@ |
74 | </div> | 74 | </div> |
75 | <div class="from-clues-content loadingtext"> | 75 | <div class="from-clues-content loadingtext"> |
76 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 76 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
77 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" | 77 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" |
78 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 78 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
79 | :data="zrztableData.data"> | 79 | :data="zrztableData.data"> |
80 | </lb-table> | 80 | </lb-table> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-17 17:20:34 | 4 | * @LastEditTime: 2024-01-25 14:59:36 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -62,7 +62,7 @@ | ... | @@ -62,7 +62,7 @@ |
62 | </div> | 62 | </div> |
63 | <div class="from-clues-content loadingtext"> | 63 | <div class="from-clues-content loadingtext"> |
64 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 64 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" | 65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" |
66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
67 | :data="zrztableData.data"> | 67 | :data="zrztableData.data"> |
68 | </lb-table> | 68 | </lb-table> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-01-17 17:15:13 | 4 | * @LastEditTime: 2024-01-25 14:57:59 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -62,7 +62,7 @@ | ... | @@ -62,7 +62,7 @@ |
62 | </div> | 62 | </div> |
63 | <div class="from-clues-content loadingtext"> | 63 | <div class="from-clues-content loadingtext"> |
64 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 64 | <lb-table ref="table1" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" | 65 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" |
66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 66 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
67 | :data="zrztableData.data"> | 67 | :data="zrztableData.data"> |
68 | </lb-table> | 68 | </lb-table> | ... | ... |
-
Please register or sign in to post a comment