iv-npm 1.1.21 → 1.1.24

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.
@@ -200,4 +200,74 @@ body .detail-class {
200
200
  .ant-modal-content
201
201
  .ant-modal-body::-webkit-scrollbar-thumb:hover {
202
202
  background: #c0a0b9;
203
- }
203
+ }
204
+
205
+ /* 表格 */
206
+
207
+ body .mrpTable .active {
208
+ background-color: #bd9e55;
209
+ font-size: 13px;
210
+ color: white;
211
+ }
212
+
213
+ body .mrpTable :deep(.ant-btn-primary) {
214
+ background: #006ab2;
215
+ }
216
+
217
+ body .mrpTable :deep(.ant-image) {
218
+ margin: 0 2px;
219
+ }
220
+
221
+ body .mrpTable .center-center {
222
+ position: absolute;
223
+ top: 50%;
224
+ left: 50%;
225
+ transform: translate(-50%, -50%);
226
+ }
227
+
228
+ body .mrpTable .table-cell {
229
+ height: 60px;
230
+ border: 1px solid #d9d9d9;
231
+ padding: 5px;
232
+ word-break: break-all;
233
+ color: #333;
234
+ font-size: 13px;
235
+ font-weight: 400;
236
+ text-align: center;
237
+ }
238
+ body .mrpTable .table-footer {
239
+ position: relative;
240
+ display: table-footer-group;
241
+ width: 100%;
242
+ height: 200px;
243
+ border: 1px solid #d9d9d9;
244
+
245
+ }
246
+ body .mrpTable .table-footer .centent {
247
+ position: absolute;
248
+ top: 50%;
249
+ left: 50%;
250
+ transform: translate(-50%, -50%);
251
+ font-size: 14px;
252
+ text-align: center;
253
+ color: rgba(0, 0, 0, 0.25);
254
+ }
255
+ body .mrpTable table {
256
+ border-collapse: collapse;
257
+ }
258
+ body .mrpTable #top {
259
+ position: fixed;
260
+ top: 65px;
261
+ z-index: 999;
262
+ }
263
+ body .mrpTable .pagination {
264
+ position: fixed;
265
+ bottom: -80px;
266
+ z-index: 999;
267
+ height: 45px;
268
+ background-color: #fff;
269
+ }
270
+ body .mrpTable {
271
+ position: relative;
272
+ margin-bottom: 80px;
273
+ }
@@ -1,4 +1,4 @@
1
- import { defineComponent, watch, computed, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, renderSlot, createVNode, ref, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, pushScopeId, popScopeId, createStaticVNode, reactive, watchEffect, onBeforeMount, withKeys, withModifiers } from 'vue';
1
+ import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, renderSlot, createVNode, ref, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, pushScopeId, popScopeId, createStaticVNode, reactive, watch, watchEffect, onBeforeMount, withKeys, withModifiers } from 'vue';
2
2
 
3
3
  /**
4
4
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
@@ -30,11 +30,6 @@ var script$9 = /*#__PURE__*/defineComponent({
30
30
  setup: function setup(__props, _ref) {
31
31
  var emit = _ref.emit;
32
32
  var props = __props;
33
- watch(function () {
34
- return props.show;
35
- }, function () {
36
- return console.log(props.show);
37
- });
38
33
  var inputV = computed({
39
34
  get: function get() {
40
35
  return props.show;
@@ -642,6 +637,11 @@ var script$8 = /*#__PURE__*/defineComponent({
642
637
  setHeight: {
643
638
  type: Number,
644
639
  required: false
640
+ },
641
+ isTableControl: {
642
+ type: Boolean,
643
+ required: false,
644
+ "default": true
645
645
  }
646
646
  },
647
647
  emits: ["onPageChange", "onShowSizeChange", "upth"],
@@ -763,13 +763,14 @@ var script$8 = /*#__PURE__*/defineComponent({
763
763
  /* UNKEYED_FRAGMENT */
764
764
  ))])], 4
765
765
  /* STYLE */
766
- ), createVNode(unref(script$7), {
766
+ ), __props.isTableControl ? (openBlock(), createBlock(unref(script$7), {
767
+ key: 0,
767
768
  setHeight: __props.setHeight,
768
769
  onDensity: density,
769
770
  onChangeS: tableControlChange
770
771
  }, null, 8
771
772
  /* PROPS */
772
- , ["setHeight"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
773
+ , ["setHeight"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
773
774
  return openBlock(), createElementBlock(Fragment, {
774
775
  key: index
775
776
  }, [item.show ? (openBlock(), createElementBlock("th", {
@@ -869,13 +870,14 @@ var script$8 = /*#__PURE__*/defineComponent({
869
870
  ))]);
870
871
  }), 128
871
872
  /* KEYED_FRAGMENT */
872
- )) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), createVNode(unref(script$7), {
873
+ )) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), __props.isTableControl ? (openBlock(), createBlock(unref(script$7), {
874
+ key: 0,
873
875
  setHeight: __props.setHeight,
874
876
  onDensity: density,
875
877
  onChangeS: tableControlChange
876
878
  }, null, 8
877
879
  /* PROPS */
878
- , ["setHeight"])]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
880
+ , ["setHeight"])) : createCommentVNode("v-if", true)]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
879
881
  key: 1,
880
882
  "class": "flex justify-center h-full mt-4 mb-20 pagination",
881
883
  style: normalizeStyle({
@@ -1358,6 +1360,25 @@ var script$6 = /*#__PURE__*/defineComponent({
1358
1360
  value: "id"
1359
1361
  };
1360
1362
  }
1363
+ },
1364
+ inputStyle: {
1365
+ type: Object,
1366
+ required: true,
1367
+ "default": function _default() {
1368
+ return {
1369
+ width: "300px"
1370
+ };
1371
+ }
1372
+ },
1373
+ isRequired: {
1374
+ type: Boolean,
1375
+ required: true,
1376
+ "default": true
1377
+ },
1378
+ multiple: {
1379
+ type: Boolean,
1380
+ required: false,
1381
+ "default": false
1361
1382
  }
1362
1383
  },
1363
1384
  emits: ["update:value", "change"],
@@ -1448,7 +1469,7 @@ var script$6 = /*#__PURE__*/defineComponent({
1448
1469
  return openBlock(), createBlock(_component_a_form_item, {
1449
1470
  name: "organizationId",
1450
1471
  rules: [{
1451
- required: true,
1472
+ required: __props.isRequired,
1452
1473
  message: '请选择所属组织'
1453
1474
  }]
1454
1475
  }, {
@@ -1468,23 +1489,24 @@ var script$6 = /*#__PURE__*/defineComponent({
1468
1489
  placeholder: "请选择",
1469
1490
  showArrow: "",
1470
1491
  showSearch: "",
1492
+ multiple: __props.multiple,
1471
1493
  "filter-option": unref(filterOptionHeadle),
1472
1494
  treeDefaultExpandAll: "",
1473
- style: {
1474
- "width": "300px"
1475
- },
1495
+ style: normalizeStyle(__props.inputStyle),
1476
1496
  onChange: _cache[1] || (_cache[1] = function ($event) {
1477
1497
  return _ctx.$emit('change', $event);
1478
1498
  }),
1479
1499
  replaceFields: __props.replaceFields
1480
1500
  }, null, 8
1481
1501
  /* PROPS */
1482
- , ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
1502
+ , ["value", "tree-data", "getPopupContainer", "multiple", "filter-option", "style", "replaceFields"])];
1483
1503
  }),
1484
1504
  _: 1
1485
1505
  /* STABLE */
1486
1506
 
1487
- });
1507
+ }, 8
1508
+ /* PROPS */
1509
+ , ["rules"]);
1488
1510
  };
1489
1511
  }
1490
1512
  });
@@ -1524,6 +1546,11 @@ var script$5 = /*#__PURE__*/defineComponent({
1524
1546
  value: "id"
1525
1547
  };
1526
1548
  }
1549
+ },
1550
+ multiple: {
1551
+ type: Boolean,
1552
+ required: false,
1553
+ "default": true
1527
1554
  }
1528
1555
  },
1529
1556
  emits: ["update:value", "change"],
@@ -1627,7 +1654,7 @@ var script$5 = /*#__PURE__*/defineComponent({
1627
1654
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1628
1655
  return isRef(inputV) ? inputV.value = $event : null;
1629
1656
  }),
1630
- mode: "multiple",
1657
+ mode: __props.multiple ? 'multiple' : '',
1631
1658
  style: {
1632
1659
  "width": "100%"
1633
1660
  },
@@ -1641,7 +1668,7 @@ var script$5 = /*#__PURE__*/defineComponent({
1641
1668
  "filter-option": unref(filterOptionHeadle)
1642
1669
  }, null, 8
1643
1670
  /* PROPS */
1644
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1671
+ , ["getPopupContainer", "value", "mode", "options", "fieldNames", "filter-option"])];
1645
1672
  }),
1646
1673
  _: 1
1647
1674
  /* STABLE */
@@ -1686,6 +1713,25 @@ var script$4 = /*#__PURE__*/defineComponent({
1686
1713
  value: "id"
1687
1714
  };
1688
1715
  }
1716
+ },
1717
+ inputStyle: {
1718
+ type: Object,
1719
+ required: true,
1720
+ "default": function _default() {
1721
+ return {
1722
+ width: "100%"
1723
+ };
1724
+ }
1725
+ },
1726
+ isRequired: {
1727
+ type: Boolean,
1728
+ required: true,
1729
+ "default": true
1730
+ },
1731
+ multiple: {
1732
+ type: Boolean,
1733
+ required: false,
1734
+ "default": true
1689
1735
  }
1690
1736
  },
1691
1737
  emits: ["update:value", "change"],
@@ -1777,7 +1823,7 @@ var script$4 = /*#__PURE__*/defineComponent({
1777
1823
  span: 8
1778
1824
  },
1779
1825
  rules: [{
1780
- required: true,
1826
+ required: __props.isRequired,
1781
1827
  message: '请选择所属条线'
1782
1828
  }]
1783
1829
  }, {
@@ -1793,12 +1839,12 @@ var script$4 = /*#__PURE__*/defineComponent({
1793
1839
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1794
1840
  return isRef(inputV) ? inputV.value = $event : null;
1795
1841
  }),
1796
- mode: "multiple",
1797
- style: {
1842
+ style: normalizeStyle([__props.inputStyle, {
1798
1843
  "width": "100%"
1799
- },
1844
+ }]),
1800
1845
  placeholder: "请选择",
1801
1846
  options: dataV.value,
1847
+ mode: __props.multiple ? 'multiple' : '',
1802
1848
  fieldNames: __props.fieldNames,
1803
1849
  showSearch: "",
1804
1850
  onChange: _cache[1] || (_cache[1] = function ($event) {
@@ -1807,12 +1853,14 @@ var script$4 = /*#__PURE__*/defineComponent({
1807
1853
  "filter-option": unref(filterOptionHeadle)
1808
1854
  }, null, 8
1809
1855
  /* PROPS */
1810
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1856
+ , ["getPopupContainer", "value", "style", "options", "mode", "fieldNames", "filter-option"])];
1811
1857
  }),
1812
1858
  _: 1
1813
1859
  /* STABLE */
1814
1860
 
1815
- });
1861
+ }, 8
1862
+ /* PROPS */
1863
+ , ["rules"]);
1816
1864
  };
1817
1865
  }
1818
1866
  });
@@ -2029,6 +2077,25 @@ var script$2 = /*#__PURE__*/defineComponent({
2029
2077
  value: "id"
2030
2078
  };
2031
2079
  }
2080
+ },
2081
+ inputStyle: {
2082
+ type: Object,
2083
+ required: true,
2084
+ "default": function _default() {
2085
+ return {
2086
+ width: "300px"
2087
+ };
2088
+ }
2089
+ },
2090
+ isRequired: {
2091
+ type: Boolean,
2092
+ required: true,
2093
+ "default": true
2094
+ },
2095
+ multiple: {
2096
+ type: Boolean,
2097
+ required: false,
2098
+ "default": false
2032
2099
  }
2033
2100
  },
2034
2101
  emits: ["update:value", "change"],
@@ -2117,7 +2184,7 @@ var script$2 = /*#__PURE__*/defineComponent({
2117
2184
  return openBlock(), createBlock(_component_a_form_item, {
2118
2185
  name: "positionId",
2119
2186
  rules: [{
2120
- required: true,
2187
+ required: __props.isRequired,
2121
2188
  message: '请选择岗位'
2122
2189
  }]
2123
2190
  }, {
@@ -2134,11 +2201,10 @@ var script$2 = /*#__PURE__*/defineComponent({
2134
2201
  return triggerNode.parentNode;
2135
2202
  },
2136
2203
  allowClear: "",
2137
- style: {
2138
- "width": "300px"
2139
- },
2204
+ style: normalizeStyle(__props.inputStyle),
2140
2205
  placeholder: "请选择",
2141
2206
  showSearch: "",
2207
+ mode: __props.multiple ? 'multiple' : '',
2142
2208
  showArrow: "",
2143
2209
  options: dataV.value,
2144
2210
  "filter-option": unref(filterOptionHeadle),
@@ -2148,12 +2214,14 @@ var script$2 = /*#__PURE__*/defineComponent({
2148
2214
  fieldNames: __props.fieldNames
2149
2215
  }, null, 8
2150
2216
  /* PROPS */
2151
- , ["value", "getPopupContainer", "options", "filter-option", "fieldNames"])];
2217
+ , ["value", "getPopupContainer", "style", "mode", "options", "filter-option", "fieldNames"])];
2152
2218
  }),
2153
2219
  _: 1
2154
2220
  /* STABLE */
2155
2221
 
2156
- });
2222
+ }, 8
2223
+ /* PROPS */
2224
+ , ["rules"]);
2157
2225
  };
2158
2226
  }
2159
2227
  });
@@ -2492,11 +2560,6 @@ var script = /*#__PURE__*/defineComponent({
2492
2560
  emit("update:show", value);
2493
2561
  }
2494
2562
  });
2495
- watch(function () {
2496
- return props.show;
2497
- }, function () {
2498
- return console.log(props.show);
2499
- });
2500
2563
  return function (_ctx, _cache) {
2501
2564
  var _component_a_input = resolveComponent("a-input");
2502
2565
 
@@ -2526,7 +2589,12 @@ var script = /*#__PURE__*/defineComponent({
2526
2589
  "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
2527
2590
  return formData.organizationId = $event;
2528
2591
  }),
2529
- onChange: onSearch
2592
+ onChange: onSearch,
2593
+ "is-required": false,
2594
+ "input-style": {
2595
+ width: '178px',
2596
+ marginRight: '15px'
2597
+ }
2530
2598
  }, null, 8
2531
2599
  /* PROPS */
2532
2600
  , ["value"]), createVNode(unref(script$4), {
@@ -2534,7 +2602,13 @@ var script = /*#__PURE__*/defineComponent({
2534
2602
  "onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
2535
2603
  return formData.lineId = $event;
2536
2604
  }),
2537
- onChange: onSearch
2605
+ onChange: onSearch,
2606
+ multiple: false,
2607
+ "is-required": false,
2608
+ "input-style": {
2609
+ width: '170px',
2610
+ marginRight: '15px'
2611
+ }
2538
2612
  }, null, 8
2539
2613
  /* PROPS */
2540
2614
  , ["value"]), createVNode(unref(script$2), {
@@ -2542,7 +2616,12 @@ var script = /*#__PURE__*/defineComponent({
2542
2616
  "onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
2543
2617
  return formData.positionId = $event;
2544
2618
  }),
2545
- onChange: onSearch
2619
+ onChange: onSearch,
2620
+ "is-required": false,
2621
+ "input-style": {
2622
+ width: '170px',
2623
+ marginRight: '15px'
2624
+ }
2546
2625
  }, null, 8
2547
2626
  /* PROPS */
2548
2627
  , ["value"]), createVNode(_component_a_input, {
@@ -2642,6 +2721,7 @@ var script = /*#__PURE__*/defineComponent({
2642
2721
  totalPages: totalPages.value,
2643
2722
  formData: formData,
2644
2723
  setHeight: 40,
2724
+ isTableControl: false,
2645
2725
  onOnPageChange: onPageChange,
2646
2726
  onOnShowSizeChange: onShowSizeChange,
2647
2727
  onUpth: upth
@@ -200,4 +200,74 @@ body .detail-class {
200
200
  .ant-modal-content
201
201
  .ant-modal-body::-webkit-scrollbar-thumb:hover {
202
202
  background: #c0a0b9;
203
- }
203
+ }
204
+
205
+ /* 表格 */
206
+
207
+ body .mrpTable .active {
208
+ background-color: #bd9e55;
209
+ font-size: 13px;
210
+ color: white;
211
+ }
212
+
213
+ body .mrpTable :deep(.ant-btn-primary) {
214
+ background: #006ab2;
215
+ }
216
+
217
+ body .mrpTable :deep(.ant-image) {
218
+ margin: 0 2px;
219
+ }
220
+
221
+ body .mrpTable .center-center {
222
+ position: absolute;
223
+ top: 50%;
224
+ left: 50%;
225
+ transform: translate(-50%, -50%);
226
+ }
227
+
228
+ body .mrpTable .table-cell {
229
+ height: 60px;
230
+ border: 1px solid #d9d9d9;
231
+ padding: 5px;
232
+ word-break: break-all;
233
+ color: #333;
234
+ font-size: 13px;
235
+ font-weight: 400;
236
+ text-align: center;
237
+ }
238
+ body .mrpTable .table-footer {
239
+ position: relative;
240
+ display: table-footer-group;
241
+ width: 100%;
242
+ height: 200px;
243
+ border: 1px solid #d9d9d9;
244
+
245
+ }
246
+ body .mrpTable .table-footer .centent {
247
+ position: absolute;
248
+ top: 50%;
249
+ left: 50%;
250
+ transform: translate(-50%, -50%);
251
+ font-size: 14px;
252
+ text-align: center;
253
+ color: rgba(0, 0, 0, 0.25);
254
+ }
255
+ body .mrpTable table {
256
+ border-collapse: collapse;
257
+ }
258
+ body .mrpTable #top {
259
+ position: fixed;
260
+ top: 65px;
261
+ z-index: 999;
262
+ }
263
+ body .mrpTable .pagination {
264
+ position: fixed;
265
+ bottom: -80px;
266
+ z-index: 999;
267
+ height: 45px;
268
+ background-color: #fff;
269
+ }
270
+ body .mrpTable {
271
+ position: relative;
272
+ margin-bottom: 80px;
273
+ }