Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web
Showing
13 changed files
with
281 additions
and
121 deletions
... | @@ -11,10 +11,11 @@ | ... | @@ -11,10 +11,11 @@ |
11 | "@jiaminghi/data-view": "^2.10.0", | 11 | "@jiaminghi/data-view": "^2.10.0", |
12 | "axios": "^0.21.1", | 12 | "axios": "^0.21.1", |
13 | "clipboard": "^2.0.11", | 13 | "clipboard": "^2.0.11", |
14 | "jsoneditor": "^9.9.2", | ||
15 | "core-js": "^3.6.5", | 14 | "core-js": "^3.6.5", |
16 | "echarts": "^4.6.0", | 15 | "echarts": "^4.6.0", |
16 | "file-saver": "^2.0.5", | ||
17 | "js-cookie": "2.2.0", | 17 | "js-cookie": "2.2.0", |
18 | "jsoneditor": "^9.9.2", | ||
18 | "lodash": "^4.17.21", | 19 | "lodash": "^4.17.21", |
19 | "node-sass": "^4.14.1", | 20 | "node-sass": "^4.14.1", |
20 | "normalize.css": "7.0.0", | 21 | "normalize.css": "7.0.0", |
... | @@ -24,7 +25,9 @@ | ... | @@ -24,7 +25,9 @@ |
24 | "vue-json-editor": "^1.4.3", | 25 | "vue-json-editor": "^1.4.3", |
25 | "vue-router": "3.0.2", | 26 | "vue-router": "3.0.2", |
26 | "vuex": "3.1.0", | 27 | "vuex": "3.1.0", |
27 | "xe-utils": "^3.5.7" | 28 | "xe-utils": "^3.5.7", |
29 | "xlsx": "^0.17.0", | ||
30 | "xlsx-style": "^0.8.13" | ||
28 | }, | 31 | }, |
29 | "devDependencies": { | 32 | "devDependencies": { |
30 | "@vue/cli-plugin-babel": "4.4.4", | 33 | "@vue/cli-plugin-babel": "4.4.4", | ... | ... |
src/api/config.js
0 → 100644
1 | export default { | ||
2 | // SERVERAPI: '/service-bdcsjsb-th', //浩浩 | ||
3 | // SERVERAPI: '/service-bdcsjsb-zz', | ||
4 | SERVERAPI: '/bdcsjsb', //赵千 | ||
5 | MANAGEMENTAPI: 'http://192.168.2.236/management' | ||
6 | // SERVERAPI: '/bdcsjsb-service' | ||
7 | // SERVERAPI: '/bdcsjsb-jiao0' | ||
8 | } | ||
9 | // 汉中 | ||
10 | // export default { | ||
11 | // // SERVERAPI: '/service-bdcsjsb-th', //线上 | ||
12 | // SERVERAPI: '/bdcsjsb', //赵千 | ||
13 | // MANAGEMENTAPI: 'http://172.16.56.32:8877/management' | ||
14 | // } |
1 | <template> | 1 | <template> |
2 | <!-- 编辑 --> | 2 | <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter" |
3 | <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" | 3 | :visible.sync="dialogVisible" width="85%"> |
4 | custom-class="dialogBox editDialogBox mainCenter" :visible.sync="dialogVisible" width="85%"> | ||
5 | <div slot="title" class="dialog_title" ref="dialogTitle"> | 4 | <div slot="title" class="dialog_title" ref="dialogTitle"> |
6 | {{ title || '标题' }} | 5 | {{ title || '标题' }} |
7 | </div> | 6 | </div> |
... | @@ -96,6 +95,10 @@ | ... | @@ -96,6 +95,10 @@ |
96 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" | 95 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" |
97 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" /> | 96 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" /> |
98 | </div> | 97 | </div> |
98 | <div class="d-center"> | ||
99 | <btn nativeType="cz" @click="dialogVisible = false">取 消</btn> | ||
100 | <btn nativeType="cx" @click="submitForm">确 定</btn> | ||
101 | </div> | ||
99 | </div> | 102 | </div> |
100 | <div v-if="titleName == 'xyjg'"> | 103 | <div v-if="titleName == 'xyjg'"> |
101 | <Xyjg :form-data='dataReport'></Xyjg> | 104 | <Xyjg :form-data='dataReport'></Xyjg> |
... | @@ -160,7 +163,6 @@ export default { | ... | @@ -160,7 +163,6 @@ export default { |
160 | digitalSign: "", | 163 | digitalSign: "", |
161 | }, | 164 | }, |
162 | images: require("./images/success.gif"), | 165 | images: require("./images/success.gif"), |
163 | saveloding: false, | ||
164 | dialogVisible: false, | 166 | dialogVisible: false, |
165 | activeName: undefined, | 167 | activeName: undefined, |
166 | editItem: "", | 168 | editItem: "", |
... | @@ -234,51 +236,25 @@ export default { | ... | @@ -234,51 +236,25 @@ export default { |
234 | this.headerList = []; | 236 | this.headerList = []; |
235 | }, | 237 | }, |
236 | submitForm () { | 238 | submitForm () { |
237 | let _this = this; | 239 | // this.$store.dispatch( |
238 | this.$store.dispatch( | 240 | // "business/setRules", |
239 | "business/setRules", | 241 | // this.$store.state.business.subRules |
240 | this.$store.state.business.subRules | 242 | // ); |
241 | ); | 243 | this.$refs["editItem"].handleUpdateForm() |
242 | this.$nextTick(() => { | ||
243 | this.$refs["editItem"] && | ||
244 | this.$refs["editItem"].verificationForm().then((res) => { | ||
245 | if (!res) { | ||
246 | _this.$message({ | ||
247 | message: "请检查表单必填项是否完整", | ||
248 | type: "warning", | ||
249 | }); | ||
250 | return false; | ||
251 | } else { | ||
252 | _this.saveloding = true; | ||
253 | _this.$refs["editItem"] | ||
254 | .handleUpdateForm() | ||
255 | .then((res) => { | 244 | .then((res) => { |
256 | if (res == 200) { | 245 | if (res == 200) { |
257 | _this.$alert( | 246 | this.$message({ |
258 | '<p><img class="success-images" src="' + | 247 | message: '修改成功', |
259 | this.images + | 248 | type: 'success' |
260 | '"/>编辑成功!</p>', | 249 | }) |
261 | "提示", | ||
262 | { | ||
263 | showConfirmButton: false, | ||
264 | dangerouslyUseHTMLString: true, | ||
265 | } | ||
266 | ); | ||
267 | setTimeout(() => { | ||
268 | MessageBox.close(false); | ||
269 | }, 1500); | ||
270 | } | 250 | } |
271 | }) | 251 | }) |
272 | .catch(function (error) { | 252 | .catch(function (error) { |
273 | _this.$alert(error, "提示", { | 253 | this.$alert(error, "提示", { |
274 | confirmButtonText: "确定", | 254 | confirmButtonText: "确定", |
275 | type: "error", | 255 | type: "error" |
276 | }); | 256 | }) |
277 | }); | 257 | }) |
278 | _this.saveloding = false; | ||
279 | } | ||
280 | }); | ||
281 | }); | ||
282 | } | 258 | } |
283 | } | 259 | } |
284 | } | 260 | } |
... | @@ -315,6 +291,8 @@ export default { | ... | @@ -315,6 +291,8 @@ export default { |
315 | } | 291 | } |
316 | 292 | ||
317 | .sjmx { | 293 | .sjmx { |
294 | padding-bottom: 25px; | ||
295 | |||
318 | /deep/.el-tabs__item { | 296 | /deep/.el-tabs__item { |
319 | height: 50px; | 297 | height: 50px; |
320 | padding-top: 6px; | 298 | padding-top: 6px; |
... | @@ -390,7 +368,7 @@ export default { | ... | @@ -390,7 +368,7 @@ export default { |
390 | } | 368 | } |
391 | 369 | ||
392 | .edit-content { | 370 | .edit-content { |
393 | height: 450px; | 371 | height: 420px; |
394 | overflow-y: auto; | 372 | overflow-y: auto; |
395 | overflow-x: hidden; | 373 | overflow-x: hidden; |
396 | padding-right: 1px; | 374 | padding-right: 1px; | ... | ... |
1 | <template> | 1 | <template> |
2 | <div> | ||
2 | <el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="resultInfo"> | 3 | <el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="resultInfo"> |
3 | </el-input> | 4 | </el-input> |
5 | </div> | ||
4 | </template> | 6 | </template> |
5 | <script> | 7 | <script> |
6 | // 引入json编译器 | 8 | // 引入json编译器 | ... | ... |
1 | 1 | ||
2 | import XLSX2 from "xlsx"; | ||
3 | import XLSX from "xlsx-style"; | ||
2 | /** | 4 | /** |
3 | * 获取数据类型 | 5 | * 获取数据类型 |
4 | * @param {All} [o] 需要检测的数据 | 6 | * @param {All} [o] 需要检测的数据 |
... | @@ -131,3 +133,103 @@ export function getCurrentDate (date = 'firstDay') { | ... | @@ -131,3 +133,103 @@ export function getCurrentDate (date = 'firstDay') { |
131 | return new Date(nowYear, nowMonth + 1, 0); // 本月结束时间 | 133 | return new Date(nowYear, nowMonth + 1, 0); // 本月结束时间 |
132 | } | 134 | } |
133 | } | 135 | } |
136 | |||
137 | export function setExport2Excel (exportName) { | ||
138 | /* generate workbook object from table */ | ||
139 | var wb = XLSX2.utils.table_to_sheet(document.querySelector("#mytable"));//mytable为表格的id名 | ||
140 | if (!wb['!merges']) { | ||
141 | this.$message.warning('无法导出:报表无数据'); | ||
142 | return | ||
143 | } | ||
144 | for (var i = 0; i < 11; i++) { | ||
145 | wb["!cols"][i] = { wpx: 150 } | ||
146 | } | ||
147 | // 样式的文档地址 | ||
148 | // https://www.npmjs.com/package/xlsx-style | ||
149 | for (const key in wb) { | ||
150 | if (key.indexOf('!') === -1 && wb[key].v) { | ||
151 | wb[key].s = { | ||
152 | font: {//字体设置 | ||
153 | sz: 13, | ||
154 | bold: false, | ||
155 | color: { | ||
156 | rgb: '000000'//十六进制,不带# | ||
157 | } | ||
158 | }, | ||
159 | alignment: {//文字居中 | ||
160 | horizontal: 'center', | ||
161 | vertical: 'center', | ||
162 | wrapText: 1, | ||
163 | indent: 0, | ||
164 | wrap_text: true | ||
165 | }, | ||
166 | border: { // 设置边框 | ||
167 | top: { style: 'thin' }, | ||
168 | bottom: { style: 'thin' }, | ||
169 | left: { style: 'thin' }, | ||
170 | right: { style: 'thin' } | ||
171 | } | ||
172 | } | ||
173 | } | ||
174 | } | ||
175 | var data = addRangeBorder(wb['!merges'], wb) //合并项添加边框 | ||
176 | var filedata = sheet2blob(data) | ||
177 | openDownloadDialog(filedata, exportName + ".xlsx") | ||
178 | } | ||
179 | //为合并项添加边框 | ||
180 | function addRangeBorder (range, ws) { | ||
181 | let arr = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; | ||
182 | |||
183 | range.forEach(item => { | ||
184 | let startColNumber = Number(item.s.r), endColNumber = Number(item.e.r); | ||
185 | let startRowNumber = Number(item.s.c), endRowNumber = Number(item.e.c); | ||
186 | const test = ws[arr[startRowNumber] + (startColNumber + 1)]; | ||
187 | for (let col = startColNumber; col <= endColNumber; col++) { | ||
188 | for (let row = startRowNumber; row <= endRowNumber; row++) { | ||
189 | ws[arr[row] + (col + 1)] = test; | ||
190 | } | ||
191 | } | ||
192 | }) | ||
193 | return ws; | ||
194 | } | ||
195 | //将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载 | ||
196 | function sheet2blob (sheet, sheetName) { | ||
197 | sheetName = sheetName || 'sheet1'; | ||
198 | var workbook = { | ||
199 | SheetNames: [sheetName], | ||
200 | Sheets: {} | ||
201 | }; | ||
202 | workbook.Sheets[sheetName] = sheet; // 生成excel的配置项 | ||
203 | |||
204 | var wopts = { | ||
205 | bookType: 'xlsx', // 要生成的文件类型 | ||
206 | bookSST: false, // 是否生成Shared String Table,官方解释是,如果开启生成速度会下降,但在低版本IOS设备上有更好的兼容性 | ||
207 | type: 'binary' | ||
208 | }; | ||
209 | var wbout = XLSX.write(workbook, wopts); | ||
210 | var blob = new Blob([s2ab(wbout)], { | ||
211 | type: "application/octet-stream" | ||
212 | }); // 字符串转ArrayBuffer | ||
213 | function s2ab (s) { | ||
214 | var buf = new ArrayBuffer(s.length); | ||
215 | var view = new Uint8Array(buf); | ||
216 | for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF; | ||
217 | return buf; | ||
218 | } | ||
219 | return blob; | ||
220 | } | ||
221 | function openDownloadDialog (url, saveName) { | ||
222 | if (typeof url == 'object' && url instanceof Blob) { | ||
223 | url = URL.createObjectURL(url); // 创建blob地址 | ||
224 | } | ||
225 | var aLink = document.createElement('a'); | ||
226 | aLink.href = url; | ||
227 | aLink.download = saveName || ''; // HTML5新增的属性,指定保存文件名,可以不要后缀,注意,file:///模式下不会生效 | ||
228 | var event; | ||
229 | if (window.MouseEvent) event = new MouseEvent('click'); | ||
230 | else { | ||
231 | event = document.createEvent('MouseEvents'); | ||
232 | event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); | ||
233 | } | ||
234 | aLink.dispatchEvent(event); | ||
235 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
25 | <el-form-item> | 25 | <el-form-item> |
26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> | 26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> |
27 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 27 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
28 | <btn nativeType="cx" @click="handlesetExport2Excel(2121)">导出1</btn> | ||
28 | </el-form-item> | 29 | </el-form-item> |
29 | </el-col> | 30 | </el-col> |
30 | </el-row> | 31 | </el-row> |
... | @@ -32,9 +33,9 @@ | ... | @@ -32,9 +33,9 @@ |
32 | </div> | 33 | </div> |
33 | <!-- 列表区域 --> | 34 | <!-- 列表区域 --> |
34 | <div class="from-clues-content"> | 35 | <div class="from-clues-content"> |
35 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | 36 | <lb-table ref="table" :id="'mytable'" :page-size="pageData.size" :header-cell-style="headerStyle" |
36 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 37 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" |
37 | :data="tableData.data"> | 38 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> |
38 | </lb-table> | 39 | </lb-table> |
39 | </div> | 40 | </div> |
40 | </div> | 41 | </div> |
... | @@ -49,7 +50,7 @@ import tableMixin from "@/mixins/tableMixin.js"; | ... | @@ -49,7 +50,7 @@ import tableMixin from "@/mixins/tableMixin.js"; |
49 | //引入日期处理方法 | 50 | //引入日期处理方法 |
50 | import { timeFormat } from "@/utils/operation"; | 51 | import { timeFormat } from "@/utils/operation"; |
51 | // 获取时间 | 52 | // 获取时间 |
52 | import { getCurrentDate } from "@/utils/tools"; | 53 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; |
53 | export default { | 54 | export default { |
54 | name: "jsbwcx", | 55 | name: "jsbwcx", |
55 | mixins: [tableMixin], | 56 | mixins: [tableMixin], |
... | @@ -112,12 +113,22 @@ export default { | ... | @@ -112,12 +113,22 @@ export default { |
112 | pageSize: 10, | 113 | pageSize: 10, |
113 | current: 1 | 114 | current: 1 |
114 | } | 115 | } |
115 | }; | 116 | } |
116 | }, | 117 | }, |
117 | created () { | 118 | created () { |
118 | this.handleResetForm() | 119 | this.handleResetForm() |
119 | }, | 120 | }, |
120 | methods: { | 121 | methods: { |
122 | headerStyle ({ row, rowIndex }) { | ||
123 | if (rowIndex == 3) { | ||
124 | row[2].rowSpan = 2; | ||
125 | row[3].rowSpan = 2; | ||
126 | row[4].rowSpan = 2; | ||
127 | } | ||
128 | }, | ||
129 | handlesetExport2Excel (val) { | ||
130 | setExport2Excel(val) | ||
131 | }, | ||
121 | //截止日期变化 | 132 | //截止日期变化 |
122 | endTimeChange (val) { | 133 | endTimeChange (val) { |
123 | this.form.endTime = timeFormat(new Date(val), true) | 134 | this.form.endTime = timeFormat(new Date(val), true) | ... | ... |
... | @@ -7,100 +7,108 @@ class data extends filter { | ... | @@ -7,100 +7,108 @@ class data extends filter { |
7 | return [ | 7 | return [ |
8 | { | 8 | { |
9 | label: "行政区划", | 9 | label: "行政区划", |
10 | type: "xzqh", | 10 | prop: "xzqh", |
11 | width: '80' | 11 | width: '80' |
12 | }, | 12 | }, |
13 | { | 13 | { |
14 | label: '国有建设用地使用权', | 14 | label: '国有建设用地使用权', |
15 | prop: "", | ||
15 | children: [ | 16 | children: [ |
16 | { | 17 | { |
17 | label: '用途', | 18 | label: '用途', |
19 | prop: "", | ||
18 | children: [ | 20 | children: [ |
19 | { | 21 | { |
20 | label: '空项率', | 22 | label: '空项率', |
21 | type: "xx", | 23 | prop: "xx", |
22 | }, | 24 | }, |
23 | { | 25 | { |
24 | label: '分值', | 26 | label: '分值', |
25 | type: "xx", | 27 | prop: "xx", |
26 | } | 28 | } |
27 | ] | 29 | ] |
28 | }, | 30 | }, |
29 | { | 31 | { |
30 | label: '权利性质', | 32 | label: '权利性质', |
33 | prop: "", | ||
31 | children: [ | 34 | children: [ |
32 | { | 35 | { |
33 | label: '空项率', | 36 | label: '空项率', |
34 | type: "xx", | 37 | prop: "xx", |
35 | }, | 38 | }, |
36 | { | 39 | { |
37 | label: '分值', | 40 | label: '分值', |
38 | type: "xx", | 41 | prop: "xx", |
39 | } | 42 | } |
40 | ] | 43 | ] |
41 | }, | 44 | }, |
42 | { | 45 | { |
43 | label: '权利设定方式', | 46 | label: '权利设定方式', |
47 | prop: "", | ||
44 | children: [ | 48 | children: [ |
45 | { | 49 | { |
46 | label: '空项率', | 50 | label: '空项率', |
47 | type: "xx", | 51 | prop: "xx", |
48 | }, | 52 | }, |
49 | { | 53 | { |
50 | label: '分值', | 54 | label: '分值', |
51 | type: "xx", | 55 | prop: "xx", |
52 | } | 56 | } |
53 | ] | 57 | ] |
54 | }, | 58 | }, |
55 | { | 59 | { |
56 | label: '权利设定方式', | 60 | label: '权利设定方式', |
61 | prop: "", | ||
57 | children: [ | 62 | children: [ |
58 | { | 63 | { |
59 | label: '空项率', | 64 | label: '空项率', |
60 | type: "xx", | 65 | prop: "xx", |
61 | }, | 66 | }, |
62 | { | 67 | { |
63 | label: '分值', | 68 | label: '分值', |
64 | type: "xx", | 69 | prop: "xx", |
65 | } | 70 | } |
66 | ] | 71 | ] |
67 | }, | 72 | }, |
68 | { | 73 | { |
69 | label: ' 共有情况(建设用地)', | 74 | label: ' 共有情况(建设用地)', |
75 | prop: "", | ||
70 | children: [ | 76 | children: [ |
71 | { | 77 | { |
72 | label: '空项率', | 78 | label: '空项率', |
73 | type: "xx", | 79 | prop: "xx", |
74 | }, | 80 | }, |
75 | { | 81 | { |
76 | label: '分值', | 82 | label: '分值', |
77 | type: "xx", | 83 | prop: "xx", |
78 | } | 84 | } |
79 | ] | 85 | ] |
80 | }, | 86 | }, |
81 | { | 87 | { |
82 | label: ' 等别', | 88 | label: '等别', |
89 | prop: "", | ||
83 | children: [ | 90 | children: [ |
84 | { | 91 | { |
85 | label: '空项率', | 92 | label: '空项率', |
86 | type: "xx", | 93 | prop: "xx", |
87 | }, | 94 | }, |
88 | { | 95 | { |
89 | label: '分值', | 96 | label: '分值', |
90 | type: "xx", | 97 | prop: "xx", |
91 | } | 98 | } |
92 | ] | 99 | ] |
93 | }, | 100 | }, |
94 | { | 101 | { |
95 | label: ' 容积率', | 102 | label: ' 容积率', |
103 | prop: "", | ||
96 | children: [ | 104 | children: [ |
97 | { | 105 | { |
98 | label: '空项率', | 106 | label: '空项率', |
99 | type: "xx", | 107 | prop: "xx", |
100 | }, | 108 | }, |
101 | { | 109 | { |
102 | label: '分值', | 110 | label: '分值', |
103 | type: "xx", | 111 | prop: "xx", |
104 | } | 112 | } |
105 | ] | 113 | ] |
106 | }, | 114 | }, |
... | @@ -108,56 +116,61 @@ class data extends filter { | ... | @@ -108,56 +116,61 @@ class data extends filter { |
108 | }, | 116 | }, |
109 | { | 117 | { |
110 | label: '房屋所有权', | 118 | label: '房屋所有权', |
119 | prop: "", | ||
111 | children: [ | 120 | children: [ |
112 | { | 121 | { |
113 | label: '房屋共有情况', | 122 | label: '房屋共有情况', |
123 | prop: "", | ||
114 | children: [ | 124 | children: [ |
115 | { | 125 | { |
116 | label: '空项率', | 126 | label: '空项率', |
117 | type: "xx", | 127 | prop: "xx", |
118 | }, | 128 | }, |
119 | { | 129 | { |
120 | label: '分值', | 130 | label: '分值', |
121 | type: "xx", | 131 | prop: "xx", |
122 | } | 132 | } |
123 | ] | 133 | ] |
124 | }, | 134 | }, |
125 | { | 135 | { |
126 | label: '房屋性质', | 136 | label: '房屋性质', |
137 | prop: "", | ||
127 | children: [ | 138 | children: [ |
128 | { | 139 | { |
129 | label: '空项率', | 140 | label: '空项率', |
130 | type: "xx", | 141 | prop: "xx", |
131 | }, | 142 | }, |
132 | { | 143 | { |
133 | label: '分值', | 144 | label: '分值', |
134 | type: "xx", | 145 | prop: "xx", |
135 | } | 146 | } |
136 | ] | 147 | ] |
137 | }, | 148 | }, |
138 | { | 149 | { |
139 | label: '房屋结构', | 150 | label: '房屋结构', |
151 | prop: "", | ||
140 | children: [ | 152 | children: [ |
141 | { | 153 | { |
142 | label: '空项率', | 154 | label: '空项率', |
143 | type: "xx", | 155 | prop: "xx", |
144 | }, | 156 | }, |
145 | { | 157 | { |
146 | label: '分值', | 158 | label: '分值', |
147 | type: "xx", | 159 | prop: "xx", |
148 | } | 160 | } |
149 | ] | 161 | ] |
150 | }, | 162 | }, |
151 | { | 163 | { |
152 | label: '竣工时间', | 164 | label: '竣工时间', |
165 | prop: "", | ||
153 | children: [ | 166 | children: [ |
154 | { | 167 | { |
155 | label: '空项率', | 168 | label: '空项率', |
156 | type: "xx", | 169 | prop: "xx", |
157 | }, | 170 | }, |
158 | { | 171 | { |
159 | label: '分值', | 172 | label: '分值', |
160 | type: "xx", | 173 | prop: "xx", |
161 | } | 174 | } |
162 | ] | 175 | ] |
163 | } | 176 | } |
... | @@ -165,16 +178,18 @@ class data extends filter { | ... | @@ -165,16 +178,18 @@ class data extends filter { |
165 | }, | 178 | }, |
166 | { | 179 | { |
167 | label: '抵押权', | 180 | label: '抵押权', |
181 | prop: "", | ||
168 | children: [ | 182 | children: [ |
169 | { | 183 | { |
170 | label: '债务履行期限(债权确定时间)', | 184 | label: '债务履行期限(债权确定时间)', |
185 | prop: "", | ||
171 | children: [ | 186 | children: [ |
172 | { | 187 | { |
173 | type: 'xxx', | 188 | prop: 'xxx', |
174 | label: '空项率', | 189 | label: '空项率', |
175 | }, | 190 | }, |
176 | { | 191 | { |
177 | type: 'xxx', | 192 | prop: 'xxx', |
178 | label: '分值', | 193 | label: '分值', |
179 | } | 194 | } |
180 | ] | 195 | ] |
... | @@ -183,16 +198,18 @@ class data extends filter { | ... | @@ -183,16 +198,18 @@ class data extends filter { |
183 | }, | 198 | }, |
184 | { | 199 | { |
185 | label: '最高额抵押', | 200 | label: '最高额抵押', |
201 | prop: "", | ||
186 | children: [ | 202 | children: [ |
187 | { | 203 | { |
188 | label: '最高债权确定事实和数额', | 204 | label: '最高债权确定事实和数额', |
205 | prop: "", | ||
189 | children: [ | 206 | children: [ |
190 | { | 207 | { |
191 | type: 'xxx', | 208 | prop: 'xxx', |
192 | label: '空项率', | 209 | label: '空项率', |
193 | }, | 210 | }, |
194 | { | 211 | { |
195 | type: 'xxx', | 212 | prop: 'xxx', |
196 | label: '分值', | 213 | label: '分值', |
197 | } | 214 | } |
198 | ] | 215 | ] |
... | @@ -201,29 +218,32 @@ class data extends filter { | ... | @@ -201,29 +218,32 @@ class data extends filter { |
201 | }, | 218 | }, |
202 | { | 219 | { |
203 | label: '在建建筑物坐落(一般)', | 220 | label: '在建建筑物坐落(一般)', |
221 | prop: "", | ||
204 | children: [ | 222 | children: [ |
205 | { | 223 | { |
206 | label: '在建建筑物坐落', | 224 | label: '在建建筑物坐落', |
225 | prop: "", | ||
207 | children: [ | 226 | children: [ |
208 | { | 227 | { |
209 | type: 'xxx', | 228 | prop: 'xxx', |
210 | label: '空项率', | 229 | label: '空项率', |
211 | }, | 230 | }, |
212 | { | 231 | { |
213 | type: 'xxx', | 232 | prop: 'xxx', |
214 | label: '分值', | 233 | label: '分值', |
215 | } | 234 | } |
216 | ] | 235 | ] |
217 | }, | 236 | }, |
218 | { | 237 | { |
219 | label: '在建建筑物抵押范围', | 238 | label: '在建建筑物抵押范围', |
239 | prop: "", | ||
220 | children: [ | 240 | children: [ |
221 | { | 241 | { |
222 | type: 'xxx', | 242 | prop: 'xxx', |
223 | label: '空项率', | 243 | label: '空项率', |
224 | }, | 244 | }, |
225 | { | 245 | { |
226 | type: 'xxx', | 246 | prop: 'xxx', |
227 | label: '分值', | 247 | label: '分值', |
228 | } | 248 | } |
229 | ] | 249 | ] |
... | @@ -232,29 +252,32 @@ class data extends filter { | ... | @@ -232,29 +252,32 @@ class data extends filter { |
232 | }, | 252 | }, |
233 | { | 253 | { |
234 | label: '在建建筑物坐落(最高额)', | 254 | label: '在建建筑物坐落(最高额)', |
255 | prop: "", | ||
235 | children: [ | 256 | children: [ |
236 | { | 257 | { |
237 | label: '在建建筑物坐落', | 258 | label: '在建建筑物坐落', |
259 | prop: "", | ||
238 | children: [ | 260 | children: [ |
239 | { | 261 | { |
240 | type: 'xxx', | 262 | prop: 'xxx', |
241 | label: '空项率', | 263 | label: '空项率', |
242 | }, | 264 | }, |
243 | { | 265 | { |
244 | type: 'xxx', | 266 | prop: 'xxx', |
245 | label: '分值', | 267 | label: '分值', |
246 | } | 268 | } |
247 | ] | 269 | ] |
248 | }, | 270 | }, |
249 | { | 271 | { |
250 | label: '在建建筑物抵押范围', | 272 | label: '在建建筑物抵押范围', |
273 | prop: "", | ||
251 | children: [ | 274 | children: [ |
252 | { | 275 | { |
253 | type: 'xxx', | 276 | prop: 'xxx', |
254 | label: '空项率', | 277 | label: '空项率', |
255 | }, | 278 | }, |
256 | { | 279 | { |
257 | type: 'xxx', | 280 | prop: 'xxx', |
258 | label: '分值', | 281 | label: '分值', |
259 | } | 282 | } |
260 | ] | 283 | ] |
... | @@ -263,29 +286,32 @@ class data extends filter { | ... | @@ -263,29 +286,32 @@ class data extends filter { |
263 | }, | 286 | }, |
264 | { | 287 | { |
265 | label: '抵押注销', | 288 | label: '抵押注销', |
289 | prop: "", | ||
266 | children: [ | 290 | children: [ |
267 | { | 291 | { |
268 | label: '注销抵押原因', | 292 | label: '注销抵押原因', |
293 | prop: "", | ||
269 | children: [ | 294 | children: [ |
270 | { | 295 | { |
271 | type: 'xxx', | 296 | prop: 'xxx', |
272 | label: '空项率', | 297 | label: '空项率', |
273 | }, | 298 | }, |
274 | { | 299 | { |
275 | type: 'xxx', | 300 | prop: 'xxx', |
276 | label: '分值', | 301 | label: '分值', |
277 | } | 302 | } |
278 | ] | 303 | ] |
279 | }, | 304 | }, |
280 | { | 305 | { |
281 | label: '注销时间', | 306 | label: '注销时间', |
307 | prop: "", | ||
282 | children: [ | 308 | children: [ |
283 | { | 309 | { |
284 | type: 'xxx', | 310 | prop: 'xxx', |
285 | label: '空项率', | 311 | label: '空项率', |
286 | }, | 312 | }, |
287 | { | 313 | { |
288 | type: 'xxx', | 314 | prop: 'xxx', |
289 | label: '分值', | 315 | label: '分值', |
290 | } | 316 | } |
291 | ] | 317 | ] |
... | @@ -294,55 +320,60 @@ class data extends filter { | ... | @@ -294,55 +320,60 @@ class data extends filter { |
294 | }, | 320 | }, |
295 | { | 321 | { |
296 | label: '预告登记', | 322 | label: '预告登记', |
323 | prop: "", | ||
297 | children: [ | 324 | children: [ |
298 | { | 325 | { |
299 | label: '义务人证件种类', | 326 | label: '义务人证件种类', |
327 | prop: "", | ||
300 | children: [ | 328 | children: [ |
301 | { | 329 | { |
302 | type: 'xxx', | 330 | prop: 'xxx', |
303 | label: '空项率', | 331 | label: '空项率', |
304 | }, | 332 | }, |
305 | { | 333 | { |
306 | type: 'xxx', | 334 | prop: 'xxx', |
307 | label: '分值', | 335 | label: '分值', |
308 | } | 336 | } |
309 | ] | 337 | ] |
310 | }, | 338 | }, |
311 | { | 339 | { |
312 | label: '义务人证件号', | 340 | label: '义务人证件号', |
341 | prop: "", | ||
313 | children: [ | 342 | children: [ |
314 | { | 343 | { |
315 | type: 'xxx', | 344 | prop: 'xxx', |
316 | label: '空项率', | 345 | label: '空项率', |
317 | }, | 346 | }, |
318 | { | 347 | { |
319 | type: 'xxx', | 348 | prop: 'xxx', |
320 | label: '分值', | 349 | label: '分值', |
321 | } | 350 | } |
322 | ] | 351 | ] |
323 | }, | 352 | }, |
324 | { | 353 | { |
325 | label: '规划用途', | 354 | label: '规划用途', |
355 | prop: "", | ||
326 | children: [ | 356 | children: [ |
327 | { | 357 | { |
328 | type: 'xxx', | 358 | prop: 'xxx', |
329 | label: '空项率', | 359 | label: '空项率', |
330 | }, | 360 | }, |
331 | { | 361 | { |
332 | type: 'xxx', | 362 | prop: 'xxx', |
333 | label: '分值', | 363 | label: '分值', |
334 | } | 364 | } |
335 | ] | 365 | ] |
336 | }, | 366 | }, |
337 | { | 367 | { |
338 | label: '房屋性质', | 368 | label: '房屋性质', |
369 | prop: "", | ||
339 | children: [ | 370 | children: [ |
340 | { | 371 | { |
341 | type: 'xxx', | 372 | prop: 'xxx', |
342 | label: '空项率', | 373 | label: '空项率', |
343 | }, | 374 | }, |
344 | { | 375 | { |
345 | type: 'xxx', | 376 | prop: 'xxx', |
346 | label: '分值', | 377 | label: '分值', |
347 | } | 378 | } |
348 | ] | 379 | ] |
... | @@ -351,68 +382,74 @@ class data extends filter { | ... | @@ -351,68 +382,74 @@ class data extends filter { |
351 | }, | 382 | }, |
352 | { | 383 | { |
353 | label: '查封登记', | 384 | label: '查封登记', |
385 | prop: "", | ||
354 | children: [ | 386 | children: [ |
355 | { | 387 | { |
356 | label: '解封机关', | 388 | label: '解封机关', |
389 | prop: "", | ||
357 | children: [ | 390 | children: [ |
358 | { | 391 | { |
359 | type: 'xxx', | 392 | prop: 'xxx', |
360 | label: '空项率', | 393 | label: '空项率', |
361 | }, | 394 | }, |
362 | { | 395 | { |
363 | type: 'xxx', | 396 | prop: 'xxx', |
364 | label: '分值', | 397 | label: '分值', |
365 | } | 398 | } |
366 | ] | 399 | ] |
367 | }, | 400 | }, |
368 | { | 401 | { |
369 | label: '解封文件', | 402 | label: '解封文件', |
403 | prop: "", | ||
370 | children: [ | 404 | children: [ |
371 | { | 405 | { |
372 | type: 'xxx', | 406 | prop: 'xxx', |
373 | label: '空项率', | 407 | label: '空项率', |
374 | }, | 408 | }, |
375 | { | 409 | { |
376 | type: 'xxx', | 410 | prop: 'xxx', |
377 | label: '分值', | 411 | label: '分值', |
378 | } | 412 | } |
379 | ] | 413 | ] |
380 | }, | 414 | }, |
381 | { | 415 | { |
382 | label: '解封登记时间', | 416 | label: '解封登记时间', |
417 | prop: "", | ||
383 | children: [ | 418 | children: [ |
384 | { | 419 | { |
385 | type: 'xxx', | 420 | prop: 'xxx', |
386 | label: '空项率', | 421 | label: '空项率', |
387 | }, | 422 | }, |
388 | { | 423 | { |
389 | type: 'xxx', | 424 | prop: 'xxx', |
390 | label: '分值', | 425 | label: '分值', |
391 | } | 426 | } |
392 | ] | 427 | ] |
393 | }, | 428 | }, |
394 | { | 429 | { |
395 | label: '解封登簿人', | 430 | label: '解封登簿人', |
431 | prop: "", | ||
396 | children: [ | 432 | children: [ |
397 | { | 433 | { |
398 | type: 'xxx', | 434 | prop: 'xxx', |
399 | label: '空项率', | 435 | label: '空项率', |
400 | }, | 436 | }, |
401 | { | 437 | { |
402 | type: 'xxx', | 438 | prop: 'xxx', |
403 | label: '分值', | 439 | label: '分值', |
404 | } | 440 | } |
405 | ] | 441 | ] |
406 | }, | 442 | }, |
407 | { | 443 | { |
408 | label: '解封业务号', | 444 | label: '解封业务号', |
445 | prop: "", | ||
409 | children: [ | 446 | children: [ |
410 | { | 447 | { |
411 | type: 'xxx', | 448 | prop: 'xxx', |
412 | label: '空项率', | 449 | label: '空项率', |
413 | }, | 450 | }, |
414 | { | 451 | { |
415 | type: 'xxx', | 452 | prop: 'xxx', |
416 | label: '分值', | 453 | label: '分值', |
417 | } | 454 | } |
418 | ] | 455 | ] | ... | ... |
... | @@ -24,7 +24,9 @@ | ... | @@ -24,7 +24,9 @@ |
24 | <el-col :span="12" class="btnColRight"> | 24 | <el-col :span="12" class="btnColRight"> |
25 | <el-form-item> | 25 | <el-form-item> |
26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> | 26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> |
27 | <!-- 导出excel --> | ||
27 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 28 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
29 | <btn nativeType="cx" @click="handlesetExport2Excel(2121)">导出</btn> | ||
28 | </el-form-item> | 30 | </el-form-item> |
29 | </el-col> | 31 | </el-col> |
30 | </el-row> | 32 | </el-row> |
... | @@ -32,9 +34,9 @@ | ... | @@ -32,9 +34,9 @@ |
32 | </div> | 34 | </div> |
33 | <!-- 列表区域 --> | 35 | <!-- 列表区域 --> |
34 | <div class="from-clues-content"> | 36 | <div class="from-clues-content"> |
35 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | 37 | <lb-table ref="table" :page-size="pageData.size" :id="'mytable'" :current-page.sync="pageData.current" |
36 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 38 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
37 | :data="tableData.data"> | 39 | :column="tableData.columns" :data="tableData.data"> |
38 | </lb-table> | 40 | </lb-table> |
39 | </div> | 41 | </div> |
40 | </div> | 42 | </div> |
... | @@ -49,7 +51,7 @@ import tableMixin from "@/mixins/tableMixin.js"; | ... | @@ -49,7 +51,7 @@ import tableMixin from "@/mixins/tableMixin.js"; |
49 | //引入日期处理方法 | 51 | //引入日期处理方法 |
50 | import { timeFormat } from "@/utils/operation"; | 52 | import { timeFormat } from "@/utils/operation"; |
51 | // 获取时间 | 53 | // 获取时间 |
52 | import { getCurrentDate } from "@/utils/tools"; | 54 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; |
53 | export default { | 55 | export default { |
54 | name: "jsbwcx", | 56 | name: "jsbwcx", |
55 | mixins: [tableMixin], | 57 | mixins: [tableMixin], |
... | @@ -118,6 +120,9 @@ export default { | ... | @@ -118,6 +120,9 @@ export default { |
118 | this.handleResetForm() | 120 | this.handleResetForm() |
119 | }, | 121 | }, |
120 | methods: { | 122 | methods: { |
123 | handlesetExport2Excel (val) { | ||
124 | setExport2Excel(val) | ||
125 | }, | ||
121 | //截止日期变化 | 126 | //截止日期变化 |
122 | endTimeChange (val) { | 127 | endTimeChange (val) { |
123 | this.form.endTime = timeFormat(new Date(val), true) | 128 | this.form.endTime = timeFormat(new Date(val), true) | ... | ... |
... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
25 | <el-form-item> | 25 | <el-form-item> |
26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> | 26 | <btn nativeType="cz" @click="handleResetForm">重置</btn> |
27 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 27 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
28 | <btn nativeType="cx" @click="handlesetExport2Excel(2121)">导出</btn> | ||
28 | </el-form-item> | 29 | </el-form-item> |
29 | </el-col> | 30 | </el-col> |
30 | </el-row> | 31 | </el-row> |
... | @@ -32,9 +33,9 @@ | ... | @@ -32,9 +33,9 @@ |
32 | </div> | 33 | </div> |
33 | <!-- 列表区域 --> | 34 | <!-- 列表区域 --> |
34 | <div class="from-clues-content"> | 35 | <div class="from-clues-content"> |
35 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | 36 | <lb-table ref="table" :id="'mytable'" :page-size="pageData.size" :current-page.sync="pageData.current" |
36 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 37 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
37 | :data="tableData.data"> | 38 | :column="tableData.columns" :data="tableData.data"> |
38 | </lb-table> | 39 | </lb-table> |
39 | </div> | 40 | </div> |
40 | </div> | 41 | </div> |
... | @@ -49,7 +50,7 @@ import tableMixin from "@/mixins/tableMixin.js"; | ... | @@ -49,7 +50,7 @@ import tableMixin from "@/mixins/tableMixin.js"; |
49 | //引入日期处理方法 | 50 | //引入日期处理方法 |
50 | import { timeFormat } from "@/utils/operation"; | 51 | import { timeFormat } from "@/utils/operation"; |
51 | // 获取时间 | 52 | // 获取时间 |
52 | import { getCurrentDate } from "@/utils/tools"; | 53 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; |
53 | export default { | 54 | export default { |
54 | name: "jsbwcx", | 55 | name: "jsbwcx", |
55 | mixins: [tableMixin], | 56 | mixins: [tableMixin], |
... | @@ -111,13 +112,16 @@ export default { | ... | @@ -111,13 +112,16 @@ export default { |
111 | total: 0, | 112 | total: 0, |
112 | pageSize: 10, | 113 | pageSize: 10, |
113 | current: 1 | 114 | current: 1 |
115 | }, | ||
114 | } | 116 | } |
115 | }; | ||
116 | }, | 117 | }, |
117 | created () { | 118 | created () { |
118 | this.handleResetForm() | 119 | this.handleResetForm() |
119 | }, | 120 | }, |
120 | methods: { | 121 | methods: { |
122 | handlesetExport2Excel (val) { | ||
123 | setExport2Excel(val) | ||
124 | }, | ||
121 | //截止日期变化 | 125 | //截止日期变化 |
122 | endTimeChange (val) { | 126 | endTimeChange (val) { |
123 | this.form.endTime = timeFormat(new Date(val), true) | 127 | this.form.endTime = timeFormat(new Date(val), true) | ... | ... |
... | @@ -60,6 +60,9 @@ module.exports = { | ... | @@ -60,6 +60,9 @@ module.exports = { |
60 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 | 60 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 |
61 | configureWebpack: { | 61 | configureWebpack: { |
62 | name: name, | 62 | name: name, |
63 | externals: [{ | ||
64 | './cptable': 'var cptable' | ||
65 | }], | ||
63 | resolve: { | 66 | resolve: { |
64 | alias: { | 67 | alias: { |
65 | '@': resolve('src') | 68 | '@': resolve('src') | ... | ... |
-
Please register or sign in to post a comment