inl-ui 0.0.49 → 0.0.50

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.
Files changed (31) hide show
  1. package/dist/index.js +717 -872
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/api/thingModel.d.ts +1 -0
  4. package/dist/style.css +7 -7
  5. package/package.json +1 -1
  6. package/src/api/thingModel.ts +5 -2
  7. package/src/pageComponent/assets/styles/card/index.less +1 -2
  8. package/src/pageComponent/assets/styles/login/login.less +8 -5
  9. package/src/pageComponent/index.ts +1 -3
  10. package/src/pageComponent/views/boardScreen/index.tsx +1 -1
  11. package/src/pageComponent/views/card-center/cardWarehouse.tsx +95 -92
  12. package/src/pageComponent/views/card-center/components/selectCard.tsx +8 -8
  13. package/src/pageComponent/views/card-center/less/pageConfiguration.less +1 -3
  14. package/src/pageComponent/views/card-center/pageConfiguration.tsx +106 -100
  15. package/src/pageComponent/views/login/box.tsx +19 -2
  16. package/src/pageComponent/views/productionPlanManager/yearPCPlan.tsx +1 -1
  17. package/src/pageComponent/views/thingInstance/component/addThing.tsx +75 -54
  18. package/src/pageComponent/views/thingInstance/component/editThing.tsx +86 -86
  19. package/src/pageComponent/views/thingInstance/component/thingDetail.tsx +69 -39
  20. package/src/pageComponent/views/thingInstance/index.tsx +3 -1
  21. package/src/pageComponent/views/thingInstance/less/editThing.less +76 -62
  22. package/src/pageComponent/views/thingInstance/less/thingInstance.less +10 -0
  23. package/src/pageComponent/views/thingModel/component/tabAttr/update.tsx +1 -5
  24. package/src/pageComponent/views/thingModel/component/tabRelation/update.tsx +30 -4
  25. package/src/pageComponent/views/thingModel/index.tsx +28 -16
  26. package/src/pageComponent/views/video/assets/styles/video/group.less +21 -4
  27. package/src/pageComponent/views/video/assets/styles/video/preview.less +0 -1
  28. package/src/pageComponent/views/video/assets/styles/video/rotation.less +0 -7
  29. package/src/pageComponent/views/video/preview/preview.tsx +1 -1
  30. package/dist/src/pageComponent/views/elcRoom/index.d.ts +0 -2
  31. package/src/pageComponent/views/elcRoom/index.tsx +0 -106
@@ -11,7 +11,6 @@
11
11
  }
12
12
  .cardWareHouse {
13
13
  height: 100%;
14
- overflow: hidden;
15
14
  .card {
16
15
  height: calc(100% - 100px);
17
16
  flex-direction: column;
@@ -195,7 +194,7 @@
195
194
  }
196
195
  }
197
196
 
198
- .ant-table-wrapper {
197
+ .tableBox {
199
198
  overflow: auto;
200
199
  }
201
200
  }
@@ -135,11 +135,14 @@
135
135
  flex-direction: column;
136
136
 
137
137
  label {
138
- width: 73px;
139
- display: inline-block;
140
- text-align: justify;
141
- text-align-last: justify;
142
- white-space: nowrap;
138
+ .labelText {
139
+ width: 55px;
140
+ display: inline-block;
141
+ text-align: justify;
142
+ text-align-last: justify;
143
+ white-space: nowrap;
144
+ margin-right: 2px;
145
+ }
143
146
  }
144
147
 
145
148
  .ant-form {
@@ -38,7 +38,6 @@ import record from "../pageComponent/views/pressureFiltration/record";
38
38
  import unloading from "../pageComponent/views/pressureFiltration/unloading";
39
39
  import pressureFiltrationHome from "../pageComponent/views/pressureFiltration/pressureFiltrationHome";
40
40
  import factoryManage from "../pageComponent/views/factoryManage";
41
- import elcRoom from "../pageComponent/views/elcRoom";
42
41
  import boardScreen from "../pageComponent/views/boardScreen";
43
42
  import cardWarehouse from "../pageComponent/views/card-center/cardWarehouse";
44
43
  import pageConfiguration from "../pageComponent/views/card-center/pageConfiguration";
@@ -101,7 +100,6 @@ export default [
101
100
  unloading,
102
101
  pressureFiltrationHome,
103
102
  factoryManage,
104
- elcRoom,
105
103
  boardScreen,
106
104
  cardWarehouse,
107
105
  pageConfiguration,
@@ -121,5 +119,5 @@ export default [
121
119
  dayWYPlan,
122
120
  processDrawingPreviewModal,
123
121
  productManager,
124
- projectManager
122
+ projectManager,
125
123
  ];
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted, reactive, ref } from "vue";
2
- import { deepclone } from "@/pageComponent/utils/";
2
+ import { deepclone } from "@/pageComponent/utils";
3
3
  import tupu from "./tupu";
4
4
  import room from "./room";
5
5
  import { message } from "ant-design-vue";
@@ -370,100 +370,103 @@ const CardWareHouse = defineComponent({
370
370
  新增卡片
371
371
  </a-button>
372
372
  </div>
373
- <a-table
374
- dataSource={tableList.value}
375
- columns={column}
376
- rowKey="id"
377
- pagination={{
378
- pageSize: pageSize.value,
379
- current: currPage.value,
380
- showSizeChanger: true,
381
- showQuickJumper: true,
382
- showTotal: (total: number) => `共${total}条`,
383
- total: total.value,
384
- "onUpdate:current": handlePageChange,
385
- "onUpdate:pageSize": hanldePageSizeChange,
386
- }}
387
- loading={isLoading.value}
388
- v-slots={{
389
- bodyCell: ({ column, record }) => {
390
- if (column.dataIndex === "size") {
391
- return `${record.length ? record.length : "-"}*${
392
- record.width ? record.width : "-"
393
- }`;
394
- }
395
- if (column.dataIndex === "endpoint") {
396
- return filter(
397
- state.terminalList,
398
- record.endpoint,
399
- "code",
400
- "name"
401
- );
402
- }
403
- if (column.dataIndex === "description") {
404
- return filter(
405
- state.descriptionList,
406
- record.description,
407
- "code",
408
- "name"
409
- );
410
- }
411
- if (column.dataIndex === "enabled") {
412
- return (
413
- <a-switch
414
- v-model={[record.enabled, "checked"]}
415
- onChange={() => {
416
- handleChange(record.id, record.enabled);
417
- }}
418
- ></a-switch>
419
- );
420
- }
421
373
 
422
- if (column.dataIndex === "action") {
423
- return (
424
- <a-space>
425
- <a-button
426
- type="link"
427
- onClick={() => {
428
- handleCopy(record.reference);
429
- }}
430
- >
431
- 复制引用名
432
- </a-button>
433
- <a-button
434
- type="link"
435
- onClick={() => {
436
- form.type = "detail";
437
- data.value = record;
438
- detailsVisible.value = true;
439
- }}
440
- >
441
- 详情
442
- </a-button>
443
- <a-button
444
- type="link"
445
- onClick={() => {
446
- form.type = "edit";
447
- data.value = record;
448
- detailsVisible.value = true;
449
- }}
450
- >
451
- 修改
452
- </a-button>
453
- <a-popconfirm
454
- title="确认删除?"
455
- onConfirm={() => {
456
- handleDelete(record.id);
374
+ <div class="tableBox">
375
+ <a-table
376
+ dataSource={tableList.value}
377
+ columns={column}
378
+ rowKey="id"
379
+ pagination={{
380
+ pageSize: pageSize.value,
381
+ current: currPage.value,
382
+ showSizeChanger: true,
383
+ showQuickJumper: true,
384
+ showTotal: (total: number) => `共${total}条`,
385
+ total: total.value,
386
+ "onUpdate:current": handlePageChange,
387
+ "onUpdate:pageSize": hanldePageSizeChange,
388
+ }}
389
+ loading={isLoading.value}
390
+ v-slots={{
391
+ bodyCell: ({ column, record }) => {
392
+ if (column.dataIndex === "size") {
393
+ return `${record.length ? record.length : "-"}*${
394
+ record.width ? record.width : "-"
395
+ }`;
396
+ }
397
+ if (column.dataIndex === "endpoint") {
398
+ return filter(
399
+ state.terminalList,
400
+ record.endpoint,
401
+ "code",
402
+ "name"
403
+ );
404
+ }
405
+ if (column.dataIndex === "description") {
406
+ return filter(
407
+ state.descriptionList,
408
+ record.description,
409
+ "code",
410
+ "name"
411
+ );
412
+ }
413
+ if (column.dataIndex === "enabled") {
414
+ return (
415
+ <a-switch
416
+ v-model={[record.enabled, "checked"]}
417
+ onChange={() => {
418
+ handleChange(record.id, record.enabled);
457
419
  }}
458
- >
459
- <a-button type="link">删除</a-button>
460
- </a-popconfirm>
461
- </a-space>
462
- );
463
- }
464
- },
465
- }}
466
- />
420
+ ></a-switch>
421
+ );
422
+ }
423
+
424
+ if (column.dataIndex === "action") {
425
+ return (
426
+ <a-space>
427
+ <a-button
428
+ type="link"
429
+ onClick={() => {
430
+ handleCopy(record.reference);
431
+ }}
432
+ >
433
+ 复制引用名
434
+ </a-button>
435
+ <a-button
436
+ type="link"
437
+ onClick={() => {
438
+ form.type = "detail";
439
+ data.value = record;
440
+ detailsVisible.value = true;
441
+ }}
442
+ >
443
+ 详情
444
+ </a-button>
445
+ <a-button
446
+ type="link"
447
+ onClick={() => {
448
+ form.type = "edit";
449
+ data.value = record;
450
+ detailsVisible.value = true;
451
+ }}
452
+ >
453
+ 修改
454
+ </a-button>
455
+ <a-popconfirm
456
+ title="确认删除?"
457
+ onConfirm={() => {
458
+ handleDelete(record.id);
459
+ }}
460
+ >
461
+ <a-button type="link">删除</a-button>
462
+ </a-popconfirm>
463
+ </a-space>
464
+ );
465
+ }
466
+ },
467
+ }}
468
+ />
469
+ </div>
467
470
  </>
468
471
  ) : (
469
472
  <div class="cardgrid">
@@ -84,14 +84,14 @@ export default defineComponent({
84
84
  type="primary"
85
85
  style={{ marginLeft: "10px" }}
86
86
  onClick={() => {
87
- const cardList = cardCheck.value.map((item: any) => ({
88
- cname: item.cardName,
89
- name: item.reference,
90
- developer: item.developer,
91
- equipment: item.endpoint,
92
- parameter: item.parameter,
93
- }));
94
- ctx.emit("submit", cardList);
87
+ // const cardList = cardCheck.value.map((item: any) => ({
88
+ // cname: item.cardName,
89
+ // name: item.reference,
90
+ // developer: item.developer,
91
+ // equipment: item.endpoint,
92
+ // parameter: item.parameter,
93
+ // }));
94
+ ctx.emit("submit", cardCheck.value);
95
95
  }}
96
96
  >
97
97
  确 定
@@ -1,7 +1,5 @@
1
1
  .pageConfiguration {
2
- flex-direction: column;
3
-
4
- .ant-table-wrapper {
2
+ .tableBox {
5
3
  overflow: auto;
6
4
  }
7
5
  }
@@ -287,7 +287,7 @@ const pageConfiguration = defineComponent({
287
287
  getSystemList();
288
288
  });
289
289
  return () => (
290
- <div class="pageConfiguration flex">
290
+ <div class="pageConfiguration">
291
291
  <a-form ref={formRef} model={formState} colon={false} onSubmit={submit}>
292
292
  <a-row style={{ width: "100%" }}>
293
293
  {/* <a-col span={6}>
@@ -417,105 +417,111 @@ const pageConfiguration = defineComponent({
417
417
  </a-button>
418
418
  </div>
419
419
 
420
- <a-table
421
- dataSource={tableList.value}
422
- columns={column}
423
- pagination={{
424
- pageSize: pageSize.value,
425
- current: currPage.value,
426
- showSizeChanger: true,
427
- showQuickJumper: true,
428
- showTotal: (total: number) => `共${total}条`,
429
- total: total.value,
430
- "onUpdate:current": handlePageChange,
431
- "onUpdate:pageSize": hanldePageSizeChange,
432
- }}
433
- loading={isLoading.value}
434
- v-slots={{
435
- bodyCell: ({ column, record }) => {
436
- if (column.dataIndex === "enabled") {
437
- return record.enabled ? "" : "否";
438
- }
439
- if (column.dataIndex === "endpoint") {
440
- return filter(
441
- state.terminalList,
442
- record.endpoint,
443
- "code",
444
- "name"
445
- );
446
- }
447
- if (column.dataIndex === "tags") {
448
- return filter(
449
- state.descriptionList,
450
- record.tags,
451
- "code",
452
- "name"
453
- );
454
- }
455
- if (column.dataIndex === "createDt") {
456
- return record.createDt
457
- ? dayjs(record.createDt).format("YYYY-MM-DD")
458
- : "--";
459
- }
460
- if (column.dataIndex === "updateDt") {
461
- return record.updateDt
462
- ? dayjs(record.updateDt).format("YYYY-MM-DD")
463
- : "--";
464
- }
465
- if (column.dataIndex === "action") {
466
- return (
467
- <a-space>
468
- <a-button
469
- type="link"
470
- onClick={() => {
471
- handleCopy(record.reference);
472
- }}
473
- >
474
- 复制引用地址
475
- </a-button>
476
- <a-button
477
- type="link"
478
- onClick={() => {
479
- data.value = record;
480
- editPageVisible.value = true;
481
- }}
482
- >
483
- 编辑页面
484
- </a-button>
485
- <a-button
486
- type="link"
487
- onClick={() => {
488
- form.type = "detail";
489
- data.value = record;
490
- detailsVisible.value = true;
491
- }}
492
- >
493
- 详情
494
- </a-button>
495
- <a-button
496
- type="link"
497
- onClick={() => {
498
- form.type = "edit";
499
- data.value = record;
500
- detailsVisible.value = true;
501
- }}
502
- >
503
- 修改
504
- </a-button>
505
- <a-popconfirm
506
- title="确认删除?"
507
- onConfirm={() => {
508
- handleDelete(record.id);
509
- }}
510
- >
511
- <a-button type="link">删除</a-button>
512
- </a-popconfirm>
513
- </a-space>
514
- );
515
- }
516
- },
517
- }}
518
- />
420
+ <div class="tableBox">
421
+ <a-table
422
+ dataSource={tableList.value}
423
+ columns={column}
424
+ pagination={{
425
+ pageSize: pageSize.value,
426
+ current: currPage.value,
427
+ showSizeChanger: true,
428
+ showQuickJumper: true,
429
+ showTotal: (total: number) => `共${total}条`,
430
+ total: total.value,
431
+ "onUpdate:current": handlePageChange,
432
+ "onUpdate:pageSize": hanldePageSizeChange,
433
+ }}
434
+ loading={isLoading.value}
435
+ v-slots={{
436
+ bodyCell: ({ column, record }) => {
437
+ if (column.dataIndex === "enabled") {
438
+ return record.enabled ? "是" : "否";
439
+ }
440
+ if (column.dataIndex === "endpoint") {
441
+ return filter(
442
+ state.terminalList,
443
+ record.endpoint,
444
+ "code",
445
+ "name"
446
+ );
447
+ }
448
+ if (column.dataIndex === "tags") {
449
+ return filter(
450
+ state.descriptionList,
451
+ record.tags,
452
+ "code",
453
+ "name"
454
+ );
455
+ }
456
+ if (column.dataIndex === "cardCount") {
457
+ const pageDetail = JSON.parse(record.pageDetail);
458
+ return pageDetail.child.length;
459
+ }
460
+ if (column.dataIndex === "createDt") {
461
+ return record.createDt
462
+ ? dayjs(record.createDt).format("YYYY-MM-DD")
463
+ : "--";
464
+ }
465
+ if (column.dataIndex === "updateDt") {
466
+ return record.updateDt
467
+ ? dayjs(record.updateDt).format("YYYY-MM-DD")
468
+ : "--";
469
+ }
470
+ if (column.dataIndex === "action") {
471
+ return (
472
+ <a-space>
473
+ <a-button
474
+ type="link"
475
+ onClick={() => {
476
+ handleCopy(record.reference);
477
+ }}
478
+ >
479
+ 复制引用地址
480
+ </a-button>
481
+ <a-button
482
+ type="link"
483
+ onClick={() => {
484
+ data.value = record;
485
+ editPageVisible.value = true;
486
+ }}
487
+ >
488
+ 编辑页面
489
+ </a-button>
490
+ <a-button
491
+ type="link"
492
+ onClick={() => {
493
+ form.type = "detail";
494
+ data.value = record;
495
+ detailsVisible.value = true;
496
+ }}
497
+ >
498
+ 详情
499
+ </a-button>
500
+ <a-button
501
+ type="link"
502
+ onClick={() => {
503
+ form.type = "edit";
504
+ data.value = record;
505
+ detailsVisible.value = true;
506
+ }}
507
+ >
508
+ 修改
509
+ </a-button>
510
+ <a-popconfirm
511
+ title="确认删除?"
512
+ onConfirm={() => {
513
+ handleDelete(record.id);
514
+ }}
515
+ >
516
+ <a-button type="link">删除</a-button>
517
+ </a-popconfirm>
518
+ </a-space>
519
+ );
520
+ }
521
+ },
522
+ }}
523
+ />
524
+ </div>
519
525
 
520
526
  <a-modal
521
527
  v-model={[detailsVisible.value, "visible"]}
@@ -250,10 +250,27 @@ export default defineComponent({
250
250
  span: 24,
251
251
  }}
252
252
  >
253
- <formItem label="用户名:" wrapper-col={{ span: 50 }}>
253
+ <formItem
254
+ vSlots={{
255
+ label: () => (
256
+ <div class="flex">
257
+ <div class="labelText">用户名</div>:
258
+ </div>
259
+ ),
260
+ }}
261
+ wrapper-col={{ span: 50 }}
262
+ >
254
263
  <a-input v-model={[formVal.username, "value"]} />
255
264
  </formItem>
256
- <formItem label="密码:">
265
+ <formItem
266
+ vSlots={{
267
+ label: () => (
268
+ <div class="flex">
269
+ <div class="labelText">密码</div>:
270
+ </div>
271
+ ),
272
+ }}
273
+ >
257
274
  <a-input-password v-model={[formVal.password, "value"]} />
258
275
  </formItem>
259
276
 
@@ -367,7 +367,7 @@ const com = defineComponent({
367
367
  model={monthPlanFormState.value}
368
368
  ref={monthPlanFormRef}
369
369
  name="basic"
370
- labelCol={{ style: { width: "100px" } }}
370
+ labelCol={{ style: { width: "110px" } }}
371
371
  autocomplete="off"
372
372
  >
373
373
  <a-row class="row" gutter={[16, 16]} style="width: 100%;">