@leevan/jtui 1.2.7 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/App.vue +640 -24
- package/examples/scss/cover.scss +139 -0
- package/examples/scss/global.scss +457 -0
- package/examples/scss/main-style/_handle.scss +217 -0
- package/examples/scss/main-style/_themes.scss +95 -0
- package/examples/scss/main-style/style1.scss +0 -0
- package/examples/scss/main-style/style2.scss +12 -0
- package/examples/scss/main-style/style3.scss +16 -0
- package/examples/scss/pub.scss +142 -0
- package/examples/tableTest/table-dsj.vue +209 -0
- package/examples/tableTest/table-fzbg.vue +163 -0
- package/examples/tableTest/table-ptbg.vue +222 -0
- package/examples/tableTest/table-tree.vue +45 -0
- package/examples/tableTest/tree-table.vue +45 -0
- package/lib/jtui.common.js +114134 -84420
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +114134 -84420
- package/lib/jtui.umd.min.js +176 -133
- package/package.json +6 -5
- package/packages/index.js +6 -3
- package/packages/jt-echarts-pc/JtEchartsPc.vue +6 -2
- package/packages/jt-form-pc/JtFormPc.vue +1 -1
- package/packages/jt-table/comp.js +17 -0
- package/packages/jt-table/components/tabsBtn.vue +53 -0
- package/packages/jt-table/examples/FilterComplex.vue +78 -0
- package/packages/jt-table/examples/FilterContent.vue +159 -0
- package/packages/jt-table/examples/FilterExcel.vue +161 -0
- package/packages/jt-table/examples/FilterInput.vue +92 -0
- package/packages/jt-table/filter.js +162 -0
- package/packages/jt-table/index.js +10 -0
- package/packages/jt-table/index.vue +1441 -0
- package/packages/jt-table-pc/data2.js +33 -14
- package/packages/jtaxios.js +31 -0
- package/vue.config.js +1 -1
|
@@ -244,6 +244,14 @@ export function data23(){
|
|
|
244
244
|
"header": [
|
|
245
245
|
{
|
|
246
246
|
"isSort": false,
|
|
247
|
+
"prop": "wxq",
|
|
248
|
+
"width": 150,
|
|
249
|
+
"label": "危险区名称",
|
|
250
|
+
"type": "String",
|
|
251
|
+
"align": "left",
|
|
252
|
+
"enum": []
|
|
253
|
+
},{
|
|
254
|
+
"isSort": false,
|
|
247
255
|
"prop": "id",
|
|
248
256
|
"width": 0,
|
|
249
257
|
"label": "id",
|
|
@@ -254,22 +262,13 @@ export function data23(){
|
|
|
254
262
|
{
|
|
255
263
|
"isSort": false,
|
|
256
264
|
"prop": "country",
|
|
257
|
-
"width":
|
|
265
|
+
"width": 0,
|
|
258
266
|
"label": "关联乡镇",
|
|
259
267
|
"type": "String",
|
|
260
268
|
"align": "center",
|
|
261
269
|
"enum": []
|
|
262
270
|
},
|
|
263
271
|
{
|
|
264
|
-
"isSort": false,
|
|
265
|
-
"prop": "wxq",
|
|
266
|
-
"width": 50,
|
|
267
|
-
"label": "危险区名称",
|
|
268
|
-
"type": "String",
|
|
269
|
-
"align": "center",
|
|
270
|
-
"enum": []
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
272
|
"isSort": true,
|
|
274
273
|
"prop": "village",
|
|
275
274
|
"width": 50,
|
|
@@ -285,7 +284,8 @@ export function data23(){
|
|
|
285
284
|
"label": "山洪沟名称",
|
|
286
285
|
"type": "String",
|
|
287
286
|
"align": "center",
|
|
288
|
-
"enum": []
|
|
287
|
+
"enum": [],
|
|
288
|
+
"cellRender":'TabsBtn'
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
"isSort": false,
|
|
@@ -294,13 +294,16 @@ export function data23(){
|
|
|
294
294
|
"label": "受威胁人口(人)",
|
|
295
295
|
"type": "String",
|
|
296
296
|
"align": "center",
|
|
297
|
-
"enum": [
|
|
297
|
+
"enum": [{label: "这是枚举", value: "4"},
|
|
298
|
+
{label: "这是枚举", value: "21"}],
|
|
299
|
+
"filterRender":'FilterInput'
|
|
298
300
|
},
|
|
299
301
|
{
|
|
300
302
|
"isSort": false,
|
|
301
303
|
"prop": "xzrxm",
|
|
302
304
|
"width": 50,
|
|
303
305
|
"label": "行政责任人姓名",
|
|
306
|
+
"edit":{name:"$input"},
|
|
304
307
|
"type": "String",
|
|
305
308
|
"align": "center",
|
|
306
309
|
"enum": []
|
|
@@ -312,7 +315,19 @@ export function data23(){
|
|
|
312
315
|
"label": "行政责任人职务",
|
|
313
316
|
"type": "String",
|
|
314
317
|
"align": "center",
|
|
315
|
-
"enum": []
|
|
318
|
+
"enum": [],
|
|
319
|
+
'htmlType':'icon',
|
|
320
|
+
html:[{
|
|
321
|
+
icon:"iconwenjianjia", //图标类名(iconfont)
|
|
322
|
+
color:'#f00', //图标颜色
|
|
323
|
+
size:14, //图标大小
|
|
324
|
+
value:'镇长' //对应值
|
|
325
|
+
},{
|
|
326
|
+
icon:"iconwenjianjia1",
|
|
327
|
+
color:'#999',
|
|
328
|
+
size:14,
|
|
329
|
+
value:'乡长'
|
|
330
|
+
}]
|
|
316
331
|
},
|
|
317
332
|
{
|
|
318
333
|
"isSort": false,
|
|
@@ -376,13 +391,17 @@ export function data23(){
|
|
|
376
391
|
{
|
|
377
392
|
"xzrdh": "13882885223",
|
|
378
393
|
"country": "罗江镇",
|
|
394
|
+
"isExpand":'1',
|
|
379
395
|
"yjrzw": "社区书记",
|
|
380
396
|
"count": "273",
|
|
381
397
|
"jcrxm": "杨海燕",
|
|
382
398
|
"yjrxm": "何东",
|
|
383
399
|
"wxq": "高石社区三组",
|
|
384
400
|
"xzrxm": "张朝阳",
|
|
385
|
-
"shg":
|
|
401
|
+
"shg": {
|
|
402
|
+
enum:[{label:'测试1',value:1},{label:'测试2',value:2}],
|
|
403
|
+
selected:1
|
|
404
|
+
},
|
|
386
405
|
"xzrzw": "镇长",
|
|
387
406
|
"jcrdh": "13408181100",
|
|
388
407
|
"id": "2",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { Message } from 'element-ui';
|
|
3
|
+
import { promises } from 'fs';
|
|
4
|
+
//import {checkTokenAndSid} from './checkt';
|
|
5
|
+
|
|
6
|
+
let newAxios = axios.create({
|
|
7
|
+
timeout:300000,
|
|
8
|
+
headers:{'Content-Type':'application/json;charset=utf-8'}
|
|
9
|
+
})
|
|
10
|
+
newAxios.interceptors.request.use(config=>{
|
|
11
|
+
return config;
|
|
12
|
+
},error =>{
|
|
13
|
+
Message.error({
|
|
14
|
+
message:'加载超时'
|
|
15
|
+
})
|
|
16
|
+
return promises.reject(error);
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
newAxios.interceptors.response.use(data=>{
|
|
21
|
+
return data;
|
|
22
|
+
},error=>{
|
|
23
|
+
Nprogress.done();
|
|
24
|
+
Message.error({
|
|
25
|
+
message:'加载失败'
|
|
26
|
+
})
|
|
27
|
+
return Promise.reject(error);
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
export default newAxios;
|