@newview/ui 1.1.68 → 1.1.70

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.
@@ -17833,7 +17833,7 @@ const _export_sfc = (sfc, props) => {
17833
17833
  }
17834
17834
  return target;
17835
17835
  };
17836
- const _sfc_main$s = {
17836
+ const _sfc_main$t = {
17837
17837
  name: "BAceEditor",
17838
17838
  props: {
17839
17839
  modelValue: String,
@@ -17972,13 +17972,13 @@ const _sfc_main$s = {
17972
17972
  }
17973
17973
  }
17974
17974
  };
17975
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17975
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
17976
17976
  return openBlock(), createElementBlock("div", {
17977
17977
  class: "bin-editor-next",
17978
17978
  style: normalizeStyle($options.wrapStyles)
17979
17979
  }, null, 4);
17980
17980
  }
17981
- const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
17981
+ const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
17982
17982
  var ace$1 = { exports: {} };
17983
17983
  (function(module, exports) {
17984
17984
  (function() {
@@ -30024,7 +30024,7 @@ var json$1 = { exports: {} };
30024
30024
  });
30025
30025
  })();
30026
30026
  })(json$1);
30027
- const propDefine$y = {
30027
+ const propDefine$z = {
30028
30028
  lang: {
30029
30029
  // 代码编辑器语言 json/javascript/java/sql/elixir/html/css
30030
30030
  type: String,
@@ -30061,12 +30061,12 @@ const propDefine$y = {
30061
30061
  default: {}
30062
30062
  }
30063
30063
  };
30064
- const _sfc_main$r = defineComponent({
30064
+ const _sfc_main$s = defineComponent({
30065
30065
  name: "NvEditor",
30066
30066
  components: { BinEditor },
30067
30067
  emits: [""],
30068
30068
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
30069
- props: propDefine$y,
30069
+ props: propDefine$z,
30070
30070
  setup(props, ctx) {
30071
30071
  return new EditorInstance$1(props, ctx);
30072
30072
  }
@@ -30109,7 +30109,7 @@ let EditorInstance$1 = class EditorInstance2 extends BaseInstance {
30109
30109
  };
30110
30110
  const Editor_vue_vue_type_style_index_0_scoped_cf6872cf_lang = "";
30111
30111
  const _hoisted_1$l = { class: "monacoEditor" };
30112
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
30112
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
30113
30113
  const _component_BinEditor = resolveComponent("BinEditor");
30114
30114
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
30115
30115
  createVNode(_component_BinEditor, {
@@ -30127,8 +30127,8 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
30127
30127
  }, null, 8, ["modelValue", "lang", "readonly", "font-size", "wrap", "snippets", "options", "styles"])
30128
30128
  ]);
30129
30129
  }
30130
- const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r], ["__scopeId", "data-v-cf6872cf"]]);
30131
- const propDefine$x = {
30130
+ const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-cf6872cf"]]);
30131
+ const propDefine$y = {
30132
30132
  placeholder: {
30133
30133
  // 占位文本
30134
30134
  type: String,
@@ -30155,12 +30155,12 @@ const propDefine$x = {
30155
30155
  default: false
30156
30156
  }
30157
30157
  };
30158
- const _sfc_main$q = defineComponent({
30158
+ const _sfc_main$r = defineComponent({
30159
30159
  name: "NvIconSelect",
30160
30160
  components: {},
30161
30161
  emits: ["update:modelValue", "change"],
30162
30162
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
30163
- props: propDefine$x,
30163
+ props: propDefine$y,
30164
30164
  setup(props, ctx) {
30165
30165
  return new IconSelectInstance(props, ctx);
30166
30166
  }
@@ -31082,9 +31082,9 @@ class IconSelectInstance extends BaseInstance {
31082
31082
  const IconSelect_vue_vue_type_style_index_0_lang = "";
31083
31083
  const _hoisted_1$k = { class: "icon-select" };
31084
31084
  const _hoisted_2$h = { class: "icon-select-search" };
31085
- const _hoisted_3$c = { class: "icon-select-list" };
31085
+ const _hoisted_3$e = { class: "icon-select-list" };
31086
31086
  const _hoisted_4$9 = ["onClick", "title"];
31087
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
31087
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
31088
31088
  const _component_Icon = resolveComponent("Icon");
31089
31089
  const _component_Input = resolveComponent("Input");
31090
31090
  const _component_Poptip = resolveComponent("Poptip");
@@ -31113,7 +31113,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
31113
31113
  onOnChange: _ctx.doSearchIcon
31114
31114
  }, null, 8, ["modelValue", "onOnChange"])
31115
31115
  ]),
31116
- createElementVNode("div", _hoisted_3$c, [
31116
+ createElementVNode("div", _hoisted_3$e, [
31117
31117
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.icons, (item2) => {
31118
31118
  return openBlock(), createElementBlock("div", {
31119
31119
  class: "icon-select-item",
@@ -31149,7 +31149,151 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
31149
31149
  }, 8, ["modelValue"]))
31150
31150
  ]);
31151
31151
  }
31152
- const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
31152
+ const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
31153
+ const propDefine$x = {
31154
+ dataValue: {
31155
+ default: "",
31156
+ type: String
31157
+ },
31158
+ readonly: {
31159
+ type: Boolean,
31160
+ default: false
31161
+ },
31162
+ placeholder: {
31163
+ type: String,
31164
+ default: "请输入桩号,如:12.5"
31165
+ },
31166
+ /**
31167
+ * 桩号前缀 K、ZK、YK
31168
+ */
31169
+ prefix: {
31170
+ type: String,
31171
+ default: "K"
31172
+ }
31173
+ };
31174
+ const _sfc_main$q = defineComponent({
31175
+ name: "NvMileEdit",
31176
+ components: {},
31177
+ emits: ["on-change"],
31178
+ // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
31179
+ props: propDefine$x,
31180
+ setup(props, ctx) {
31181
+ return new MileEditInstance(props, ctx);
31182
+ }
31183
+ });
31184
+ class MileEditInstance extends BaseInstance {
31185
+ constructor(props, ctx) {
31186
+ super();
31187
+ __publicField2(this, "props");
31188
+ __publicField2(this, "ctx");
31189
+ // API实例化
31190
+ // 全局属性
31191
+ __publicField2(this, "isFocus", ref(false));
31192
+ __publicField2(this, "inputValue", ref(1.2));
31193
+ //#region 业务逻辑
31194
+ /**
31195
+ * 输入框失去焦点
31196
+ */
31197
+ __publicField2(this, "inputOnBlur", () => {
31198
+ this.isFocus.value = false;
31199
+ this.inputValue.value = this.formatNumberToMile(this.inputValue.value);
31200
+ });
31201
+ /**
31202
+ * 输入框获取焦点
31203
+ */
31204
+ __publicField2(this, "inputOnFocus", () => {
31205
+ this.isFocus.value = true;
31206
+ this.inputValue.value = this.formatMileToNumber(this.inputValue.value);
31207
+ });
31208
+ /**
31209
+ * 输入框内容改变事件
31210
+ */
31211
+ __publicField2(this, "inputOnChange", () => {
31212
+ this.ctx.emit("on-change", { number: this.inputValue.value, mile: this.formatNumberToMile(this.inputValue.value) });
31213
+ });
31214
+ this.props = props;
31215
+ this.ctx = ctx;
31216
+ this.init();
31217
+ }
31218
+ init() {
31219
+ this.inputValue.value = this.props.dataValue;
31220
+ this.inputValue.value = this.formatNumberToMile(this.inputValue.value);
31221
+ onMounted(() => {
31222
+ });
31223
+ watch(() => this.props.dataValue, async (newvalue, oldvalue) => {
31224
+ if (this.props.dataValue) {
31225
+ this.inputValue.value = this.props.dataValue;
31226
+ this.inputValue.value = this.isFocus.value ? this.formatMileToNumber(this.inputValue.value) : this.formatNumberToMile(this.inputValue.value);
31227
+ }
31228
+ });
31229
+ }
31230
+ /**
31231
+ * 桩号转换为数字
31232
+ * @returns
31233
+ */
31234
+ formatMileToNumber(inputValue) {
31235
+ try {
31236
+ if (inputValue.toString().indexOf("K") >= 0 && inputValue.toString().indexOf("+") >= 0) {
31237
+ let s_arr = inputValue.split("+");
31238
+ if (s_arr.length == 1) {
31239
+ let s_Klm = s_arr[0].match(/\d+(.\d+)?/g);
31240
+ var sm = Number(s_Klm) / 1e3;
31241
+ return sm;
31242
+ } else {
31243
+ let s_Klm = s_arr[0].match(/\d+(.\d+)?/g);
31244
+ let s_LM = s_arr[1];
31245
+ var sm = (Number(s_Klm) * 1e3 + Number(s_LM)) / 1e3;
31246
+ return sm;
31247
+ }
31248
+ } else {
31249
+ return inputValue;
31250
+ }
31251
+ } catch (error2) {
31252
+ return "";
31253
+ }
31254
+ }
31255
+ /**
31256
+ * 数字转换为桩号
31257
+ * @returns
31258
+ */
31259
+ formatNumberToMile(inputValue) {
31260
+ if (!inputValue) {
31261
+ return "";
31262
+ }
31263
+ try {
31264
+ if (inputValue.toString().indexOf("K") >= 0 && inputValue.toString().indexOf("+") >= 0) {
31265
+ return inputValue;
31266
+ } else {
31267
+ let milenum = Number(inputValue) * 1e3;
31268
+ if (Number.isNaN(milenum)) {
31269
+ return "";
31270
+ }
31271
+ let km = milenum / 1e3;
31272
+ let m = milenum % 1e3;
31273
+ m = m.toFixed(0);
31274
+ m = m < 10 ? "00" + m : m < 100 ? "0" + m : m;
31275
+ return this.props.prefix + parseInt(km.toString()) + "+" + m;
31276
+ }
31277
+ } catch (error2) {
31278
+ return "";
31279
+ }
31280
+ }
31281
+ //#endregion 业务逻辑 END
31282
+ }
31283
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
31284
+ const _component_Input = resolveComponent("Input");
31285
+ return openBlock(), createBlock(_component_Input, {
31286
+ modelValue: _ctx.inputValue,
31287
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
31288
+ placeholder: _ctx.placeholder,
31289
+ readonly: _ctx.readonly,
31290
+ onOnBlur: _ctx.inputOnBlur,
31291
+ onOnFocus: _ctx.inputOnFocus,
31292
+ onOnChange: _ctx.inputOnChange,
31293
+ style: { "width": "100%" }
31294
+ }, null, 8, ["modelValue", "placeholder", "readonly", "onOnBlur", "onOnFocus", "onOnChange"]);
31295
+ }
31296
+ const MileEdit = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
31153
31297
  const propDefine$w = {
31154
31298
  onlyView: {
31155
31299
  // 是否只读
@@ -31170,7 +31314,7 @@ const propDefine$w = {
31170
31314
  };
31171
31315
  const _sfc_main$p = defineComponent({
31172
31316
  name: "NvComForm",
31173
- components: { NvIconSelect },
31317
+ components: { NvIconSelect, MileEdit },
31174
31318
  emits: [""],
31175
31319
  props: propDefine$w,
31176
31320
  setup(props, ctx) {
@@ -31237,6 +31381,15 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
31237
31381
  });
31238
31382
  __publicField2(this, "getModelValue", () => {
31239
31383
  });
31384
+ /**
31385
+ * 桩号填写改变
31386
+ */
31387
+ __publicField2(this, "mileOnChange", (item2, { number, mile }) => {
31388
+ this.props.formModel[item2.model] = number;
31389
+ if (item2.mileProp && item2.mileProp.onChange) {
31390
+ item2.mileProp.onChange({ number, mile });
31391
+ }
31392
+ });
31240
31393
  //#endregion 获取基础数据 END
31241
31394
  //#region 公开Api
31242
31395
  /**
@@ -31306,10 +31459,10 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
31306
31459
  }
31307
31460
  //#endregion 公开Api End
31308
31461
  };
31309
- const ComForm_vue_vue_type_style_index_0_scoped_6df91704_lang = "";
31462
+ const ComForm_vue_vue_type_style_index_0_scoped_2df5bd73_lang = "";
31310
31463
  const _hoisted_1$j = { class: "comForm" };
31311
31464
  const _hoisted_2$g = ["onClick"];
31312
- const _hoisted_3$b = { key: 1 };
31465
+ const _hoisted_3$d = { key: 1 };
31313
31466
  const _hoisted_4$8 = ["onClick"];
31314
31467
  const _hoisted_5$7 = {
31315
31468
  key: 0,
@@ -31341,6 +31494,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
31341
31494
  const _component_Rate = resolveComponent("Rate");
31342
31495
  const _component_ColorPicker = resolveComponent("ColorPicker");
31343
31496
  const _component_NvIconSelect = resolveComponent("NvIconSelect");
31497
+ const _component_MileEdit = resolveComponent("MileEdit");
31344
31498
  const _component_FormItem = resolveComponent("FormItem");
31345
31499
  const _component_Col = resolveComponent("Col");
31346
31500
  const _component_Row = resolveComponent("Row");
@@ -31425,7 +31579,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
31425
31579
  loading: _ctx.getPropValue(item2.switchProp, "loading"),
31426
31580
  onOnChange: ($event) => _ctx.getPropEvent(item2.switchProp, "onChange")($event, item2)
31427
31581
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled", "true-value", "false-value", "true-color", "false-color", "before-change", "loading", "onOnChange"])) : createCommentVNode("", true),
31428
- item2.type == "Label" ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.formModel[item2.model]), 1)) : createCommentVNode("", true),
31582
+ item2.type == "Label" ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.formModel[item2.model]), 1)) : createCommentVNode("", true),
31429
31583
  item2.type == "Button" ? (openBlock(), createBlock(_component_Button, {
31430
31584
  key: 2,
31431
31585
  type: _ctx.getPropValue(item2.buttonProp, "type"),
@@ -31856,6 +32010,14 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
31856
32010
  readonly: _ctx.getPropValue(item2.iconSelectProp, "readonly"),
31857
32011
  onChange: ($event) => _ctx.getPropEvent(item2.iconSelectProp, "onChange")($event, item2)
31858
32012
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "width", "poptipWidth", "readonly", "onChange"])) : createCommentVNode("", true),
32013
+ item2.type == "Mile" ? (openBlock(), createBlock(_component_MileEdit, {
32014
+ key: 19,
32015
+ dataValue: _ctx.formModel[item2.model],
32016
+ prefix: _ctx.getPropValue(item2.mileProp, "winWidth"),
32017
+ placeholder: _ctx.getPropValue(item2.mileProp, "placeholder"),
32018
+ readonly: _ctx.getPropValue(item2.mileProp, "readonly") || _ctx.onlyView,
32019
+ onOnChange: ($event) => _ctx.mileOnChange(item2, $event)
32020
+ }, null, 8, ["dataValue", "prefix", "placeholder", "readonly", "onOnChange"])) : createCommentVNode("", true),
31859
32021
  renderSlot(_ctx.$slots, "extend", { item: item2 }, void 0, true)
31860
32022
  ]),
31861
32023
  _: 2
@@ -31884,7 +32046,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
31884
32046
  ], 2)
31885
32047
  ]);
31886
32048
  }
31887
- const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-6df91704"]]);
32049
+ const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-2df5bd73"]]);
31888
32050
  const style = "";
31889
32051
  const propDefine$v = {
31890
32052
  options: {
@@ -32370,7 +32532,7 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
32370
32532
  const Toolbar_vue_vue_type_style_index_0_scoped_69337cbe_lang = "";
32371
32533
  const _hoisted_1$i = { class: "toolbar" };
32372
32534
  const _hoisted_2$f = { style: { "display": "none" } };
32373
- const _hoisted_3$a = { key: 0 };
32535
+ const _hoisted_3$c = { key: 0 };
32374
32536
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
32375
32537
  const _component_Button = resolveComponent("Button");
32376
32538
  const _component_ButtonGroup = resolveComponent("ButtonGroup");
@@ -32383,7 +32545,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
32383
32545
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
32384
32546
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mainOptions, (item2, index2) => {
32385
32547
  return openBlock(), createElementBlock("div", _hoisted_2$f, [
32386
- _ctx.getIsShow(item2) ? (openBlock(), createElementBlock("span", _hoisted_3$a)) : createCommentVNode("", true)
32548
+ _ctx.getIsShow(item2) ? (openBlock(), createElementBlock("span", _hoisted_3$c)) : createCommentVNode("", true)
32387
32549
  ]);
32388
32550
  }), 256)),
32389
32551
  _ctx.isButtonGroup ? (openBlock(), createBlock(_component_ButtonGroup, { key: 0 }, {
@@ -32548,7 +32710,7 @@ const propDefine$t = {
32548
32710
  };
32549
32711
  const _sfc_main$m = defineComponent({
32550
32712
  name: "GridColumn",
32551
- components: { VxeColumn, VxeColgroup, GridCellContent: GridCellContent$1, GridTitleContent: GridTitleContent$1 },
32713
+ components: { VxeColumn, VxeColgroup, GridCellContent: GridCellContent$1, GridTitleContent: GridTitleContent$1, MileEdit },
32552
32714
  emits: ["clearRadioRow", "change", "delete", "addchild"],
32553
32715
  props: propDefine$t,
32554
32716
  setup(props, ctx) {
@@ -32882,6 +33044,47 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
32882
33044
  }
32883
33045
  return FilterRender;
32884
33046
  });
33047
+ //#endregion
33048
+ /**
33049
+ * 桩号格式化
33050
+ * @param mileValue
33051
+ * @param prefix
33052
+ * @returns
33053
+ */
33054
+ __publicField2(this, "formatMileValue", (mileValue, prefix = "K") => {
33055
+ if (!mileValue) {
33056
+ return "";
33057
+ }
33058
+ try {
33059
+ if (mileValue.toString().indexOf("K") >= 0 && mileValue.toString().indexOf("+") >= 0) {
33060
+ return mileValue;
33061
+ } else {
33062
+ let milenum = Number(mileValue) * 1e3;
33063
+ if (Number.isNaN(milenum)) {
33064
+ return "";
33065
+ }
33066
+ let km = milenum / 1e3;
33067
+ let m = milenum % 1e3;
33068
+ m = m.toFixed(0);
33069
+ m = m < 10 ? "00" + m : m < 100 ? "0" + m : m;
33070
+ return prefix + parseInt(km.toString()) + "+" + m;
33071
+ }
33072
+ } catch (error2) {
33073
+ return "";
33074
+ }
33075
+ });
33076
+ /**
33077
+ * 桩号填写变化
33078
+ * @param row
33079
+ * @param column
33080
+ * @param param2
33081
+ */
33082
+ __publicField2(this, "mileOnChange", (row, column, { number, mile }) => {
33083
+ row[column.field] = number;
33084
+ if (column.mileConfig && column.mileConfig.onChange) {
33085
+ column.mileConfig.onChange({ number, mile, row, field: column.field });
33086
+ }
33087
+ });
32885
33088
  this.props = props;
32886
33089
  this.ctx = ctx;
32887
33090
  this.parseColumn();
@@ -33003,15 +33206,15 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
33003
33206
  }
33004
33207
  }
33005
33208
  }
33006
- //#endregion
33007
33209
  };
33008
33210
  const GridColumn_vue_vue_type_style_index_0_lang$1 = "";
33009
- const GridColumn_vue_vue_type_style_index_1_scoped_ce03779d_lang = "";
33211
+ const GridColumn_vue_vue_type_style_index_1_scoped_5b5c0e8d_lang = "";
33010
33212
  const _hoisted_1$h = { class: "gridColumn" };
33011
33213
  const _hoisted_2$e = {
33012
33214
  key: 3,
33013
33215
  class: "nv-num-text"
33014
33216
  };
33217
+ const _hoisted_3$b = { key: 4 };
33015
33218
  function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33016
33219
  const _component_GridTitleContent = resolveComponent("GridTitleContent");
33017
33220
  const _component_grid_column = resolveComponent("grid-column", true);
@@ -33030,6 +33233,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33030
33233
  const _component_Checkbox = resolveComponent("Checkbox");
33031
33234
  const _component_Switch = resolveComponent("Switch");
33032
33235
  const _component_ColorPicker = resolveComponent("ColorPicker");
33236
+ const _component_MileEdit = resolveComponent("MileEdit");
33033
33237
  const _component_Button = resolveComponent("Button");
33034
33238
  const _component_Space = resolveComponent("Space");
33035
33239
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
@@ -33114,7 +33318,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33114
33318
  }, null, 8, ["column", "row"])
33115
33319
  ]),
33116
33320
  _: 2
33117
- }, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : column.colType == "ed" || column.colType == "password" || column.colType == "auto" || column.colType == "date" || column.colType == "time" || column.colType == "num" || column.colType == "select" || column.colType == "treeSelect" || column.colType == "ch" || column.colType == "switch" || column.colType == "color" ? (openBlock(), createBlock(_component_vxe_column, {
33321
+ }, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : column.colType == "ed" || column.colType == "password" || column.colType == "auto" || column.colType == "date" || column.colType == "time" || column.colType == "num" || column.colType == "select" || column.colType == "treeSelect" || column.colType == "ch" || column.colType == "switch" || column.colType == "color" || column.colType == "mile" ? (openBlock(), createBlock(_component_vxe_column, {
33118
33322
  key: 4,
33119
33323
  field: column.field,
33120
33324
  "min-width": column.minWidth,
@@ -33141,137 +33345,149 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33141
33345
  "filter-multiple": _ctx.getColumFilterMultiple(column.filter),
33142
33346
  "filter-render": _ctx.getColumFilterRender(column.filter)
33143
33347
  }, {
33144
- edit: withCtx((scope) => [
33145
- column.colType == "ed" ? (openBlock(), createBlock(_component_Input, {
33146
- key: 0,
33147
- modelValue: scope.row[_ctx.getField(column)],
33148
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33149
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33150
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33151
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "password" ? (openBlock(), createBlock(_component_Input, {
33152
- key: 1,
33153
- modelValue: scope.row[_ctx.getField(column)],
33154
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33155
- type: "password",
33156
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33157
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33158
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "auto" ? (openBlock(), createBlock(_component_AutoComplete, {
33159
- key: 2,
33160
- modelValue: scope.row[_ctx.getField(column)],
33161
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33162
- data: _ctx.getAutoCompleteData(column),
33163
- "filter-method": _ctx.getAutoCompleteFilterMethod(column),
33164
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33165
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33166
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
33167
- key: 3,
33168
- modelValue: scope.row[_ctx.getField(column)],
33169
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33170
- format: _ctx.getDatePickerFormat(column),
33171
- type: _ctx.getDatePickerType(column),
33172
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33173
- transfer: _ctx.getDateTransfer(column)
33174
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange", "transfer"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
33175
- key: 4,
33176
- modelValue: scope.row[_ctx.getField(column)],
33177
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33178
- format: _ctx.getTimePickerFormat(column),
33179
- type: _ctx.getTimePickerType(column),
33180
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33181
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
33182
- key: 5,
33183
- modelValue: scope.row[_ctx.getField(column)],
33184
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33185
- max: _ctx.getInputNumberMax(column),
33186
- min: _ctx.getInputNumberMin(column),
33187
- step: _ctx.getInputNumberStep(column),
33188
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33189
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33190
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max", "min", "step", "onOnChange", "onOnBlur"])) : column.colType == "select" ? (openBlock(), createBlock(_component_Select, {
33191
- key: 6,
33192
- modelValue: scope.row[_ctx.getField(column)],
33193
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33194
- multiple: _ctx.getSelectMultiple(column),
33195
- clearable: _ctx.getSelectClearable(column),
33196
- transfer: _ctx.getSelectTransfer(column),
33197
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33198
- }, {
33199
- default: withCtx(() => [
33200
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getSelectData(column), (item2) => {
33201
- return openBlock(), createBlock(_component_Option, {
33202
- value: item2.value,
33203
- key: item2.value
33204
- }, {
33205
- default: withCtx(() => [
33206
- createTextVNode(toDisplayString(item2.text), 1)
33207
- ]),
33208
- _: 2
33209
- }, 1032, ["value"]);
33210
- }), 128))
33211
- ]),
33212
- _: 2
33213
- }, 1032, ["modelValue", "onUpdate:modelValue", "multiple", "clearable", "transfer", "onOnChange"])) : column.colType == "treeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
33214
- key: 7,
33215
- class: "column-tree",
33216
- modelValue: scope.row[_ctx.getField(column)],
33217
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33218
- data: _ctx.getTreeSelectData(column),
33219
- multiple: _ctx.getTreeSelectMultiple(column),
33220
- transfer: _ctx.getTreeSelectTransfer(column),
33221
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33222
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "multiple", "transfer", "onOnChange"])) : column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
33223
- key: 8,
33224
- modelValue: scope.row[_ctx.getField(column)],
33225
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33226
- size: _ctx.getChSize(column),
33227
- "true-value": _ctx.getChTrueValue(column),
33228
- "false-value": _ctx.getChFalseValue(column),
33229
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33230
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
33231
- key: 9,
33232
- modelValue: scope.row[_ctx.getField(column)],
33233
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event
33234
- }, column.switchConfig, {
33235
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
33236
- disabled: _ctx.getIsEnableSw(column)
33237
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
33238
- key: 10,
33239
- class: "nvgridcell-color",
33240
- modelValue: scope.row[_ctx.getField(column)],
33241
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33242
- transfer: "",
33243
- "transfer-class-name": "nvgridcell-color-transfer",
33244
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33245
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : createCommentVNode("", true)
33246
- ]),
33247
- default: withCtx(({ row }) => [
33248
- column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
33249
- key: 0,
33250
- modelValue: row[_ctx.getField(column)],
33251
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
33252
- size: _ctx.getChSize(column),
33253
- "true-value": _ctx.getChTrueValue(column),
33254
- "false-value": _ctx.getChFalseValue(column),
33255
- onOnChange: ($event) => _ctx.doChange(column, row)
33256
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
33257
- key: 1,
33258
- modelValue: row[_ctx.getField(column)],
33259
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event
33260
- }, column.switchConfig, {
33261
- onOnChange: ($event) => _ctx.doChange(column, row),
33262
- disabled: _ctx.getIsEnableSw(column)
33263
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
33264
- key: 2,
33265
- class: "nvgridcell-color",
33266
- modelValue: row[_ctx.getField(column)],
33267
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
33268
- disabled: true
33269
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : column.colType == "num" ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(row[_ctx.getField(column)]), 1)) : (openBlock(), createBlock(_component_GridCellContent, {
33270
- key: 4,
33271
- column,
33272
- row
33273
- }, null, 8, ["column", "row"]))
33274
- ]),
33348
+ edit: withCtx((scope) => {
33349
+ var _a;
33350
+ return [
33351
+ column.colType == "ed" ? (openBlock(), createBlock(_component_Input, {
33352
+ key: 0,
33353
+ modelValue: scope.row[_ctx.getField(column)],
33354
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33355
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33356
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33357
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "password" ? (openBlock(), createBlock(_component_Input, {
33358
+ key: 1,
33359
+ modelValue: scope.row[_ctx.getField(column)],
33360
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33361
+ type: "password",
33362
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33363
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33364
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "auto" ? (openBlock(), createBlock(_component_AutoComplete, {
33365
+ key: 2,
33366
+ modelValue: scope.row[_ctx.getField(column)],
33367
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33368
+ data: _ctx.getAutoCompleteData(column),
33369
+ "filter-method": _ctx.getAutoCompleteFilterMethod(column),
33370
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33371
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33372
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
33373
+ key: 3,
33374
+ modelValue: scope.row[_ctx.getField(column)],
33375
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33376
+ format: _ctx.getDatePickerFormat(column),
33377
+ type: _ctx.getDatePickerType(column),
33378
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33379
+ transfer: _ctx.getDateTransfer(column)
33380
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange", "transfer"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
33381
+ key: 4,
33382
+ modelValue: scope.row[_ctx.getField(column)],
33383
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33384
+ format: _ctx.getTimePickerFormat(column),
33385
+ type: _ctx.getTimePickerType(column),
33386
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
33387
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
33388
+ key: 5,
33389
+ modelValue: scope.row[_ctx.getField(column)],
33390
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33391
+ max: _ctx.getInputNumberMax(column),
33392
+ min: _ctx.getInputNumberMin(column),
33393
+ step: _ctx.getInputNumberStep(column),
33394
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33395
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
33396
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max", "min", "step", "onOnChange", "onOnBlur"])) : column.colType == "select" ? (openBlock(), createBlock(_component_Select, {
33397
+ key: 6,
33398
+ modelValue: scope.row[_ctx.getField(column)],
33399
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33400
+ multiple: _ctx.getSelectMultiple(column),
33401
+ clearable: _ctx.getSelectClearable(column),
33402
+ transfer: _ctx.getSelectTransfer(column),
33403
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
33404
+ }, {
33405
+ default: withCtx(() => [
33406
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getSelectData(column), (item2) => {
33407
+ return openBlock(), createBlock(_component_Option, {
33408
+ value: item2.value,
33409
+ key: item2.value
33410
+ }, {
33411
+ default: withCtx(() => [
33412
+ createTextVNode(toDisplayString(item2.text), 1)
33413
+ ]),
33414
+ _: 2
33415
+ }, 1032, ["value"]);
33416
+ }), 128))
33417
+ ]),
33418
+ _: 2
33419
+ }, 1032, ["modelValue", "onUpdate:modelValue", "multiple", "clearable", "transfer", "onOnChange"])) : column.colType == "treeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
33420
+ key: 7,
33421
+ class: "column-tree",
33422
+ modelValue: scope.row[_ctx.getField(column)],
33423
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33424
+ data: _ctx.getTreeSelectData(column),
33425
+ multiple: _ctx.getTreeSelectMultiple(column),
33426
+ transfer: _ctx.getTreeSelectTransfer(column),
33427
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
33428
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "multiple", "transfer", "onOnChange"])) : column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
33429
+ key: 8,
33430
+ modelValue: scope.row[_ctx.getField(column)],
33431
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33432
+ size: _ctx.getChSize(column),
33433
+ "true-value": _ctx.getChTrueValue(column),
33434
+ "false-value": _ctx.getChFalseValue(column),
33435
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
33436
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
33437
+ key: 9,
33438
+ modelValue: scope.row[_ctx.getField(column)],
33439
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event
33440
+ }, column.switchConfig, {
33441
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33442
+ disabled: _ctx.getIsEnableSw(column)
33443
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
33444
+ key: 10,
33445
+ class: "nvgridcell-color",
33446
+ modelValue: scope.row[_ctx.getField(column)],
33447
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33448
+ transfer: "",
33449
+ "transfer-class-name": "nvgridcell-color-transfer",
33450
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
33451
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : column.colType == "mile" ? (openBlock(), createBlock(_component_MileEdit, {
33452
+ key: 11,
33453
+ dataValue: scope.row[_ctx.getField(column)],
33454
+ prefix: (_a = column.mileConfig) == null ? void 0 : _a.prefix,
33455
+ placeholder: column.mileConfig && column.mileConfig.placeholder ? column.mileConfig.placeholder : "",
33456
+ onOnChange: ($event) => _ctx.mileOnChange(scope.row, column, $event)
33457
+ }, null, 8, ["dataValue", "prefix", "placeholder", "onOnChange"])) : createCommentVNode("", true)
33458
+ ];
33459
+ }),
33460
+ default: withCtx(({ row }) => {
33461
+ var _a;
33462
+ return [
33463
+ column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
33464
+ key: 0,
33465
+ modelValue: row[_ctx.getField(column)],
33466
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
33467
+ size: _ctx.getChSize(column),
33468
+ "true-value": _ctx.getChTrueValue(column),
33469
+ "false-value": _ctx.getChFalseValue(column),
33470
+ onOnChange: ($event) => _ctx.doChange(column, row)
33471
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
33472
+ key: 1,
33473
+ modelValue: row[_ctx.getField(column)],
33474
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event
33475
+ }, column.switchConfig, {
33476
+ onOnChange: ($event) => _ctx.doChange(column, row),
33477
+ disabled: _ctx.getIsEnableSw(column)
33478
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
33479
+ key: 2,
33480
+ class: "nvgridcell-color",
33481
+ modelValue: row[_ctx.getField(column)],
33482
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
33483
+ disabled: true
33484
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : column.colType == "num" ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(row[_ctx.getField(column)]), 1)) : column.colType == "mile" ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.formatMileValue(row[_ctx.getField(column)], (_a = column.mileConfig) == null ? void 0 : _a.prefix)), 1)) : (openBlock(), createBlock(_component_GridCellContent, {
33485
+ key: 5,
33486
+ column,
33487
+ row
33488
+ }, null, 8, ["column", "row"]))
33489
+ ];
33490
+ }),
33275
33491
  header: withCtx(() => [
33276
33492
  createVNode(_component_GridTitleContent, { column }, null, 8, ["column"])
33277
33493
  ]),
@@ -33351,7 +33567,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33351
33567
  }), 256))
33352
33568
  ]);
33353
33569
  }
33354
- const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-ce03779d"]]);
33570
+ const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-5b5c0e8d"]]);
33355
33571
  const _sfc_main$l = defineComponent({
33356
33572
  name: "FilterDaterange",
33357
33573
  props: {
@@ -33459,7 +33675,7 @@ const _sfc_main$k = defineComponent({
33459
33675
  });
33460
33676
  const _hoisted_1$f = { class: "nv-flex" };
33461
33677
  const _hoisted_2$c = /* @__PURE__ */ createElementVNode("span", null, " ~ ", -1);
33462
- const _hoisted_3$9 = {
33678
+ const _hoisted_3$a = {
33463
33679
  key: 0,
33464
33680
  style: { "font-size": "12px", "color": "#f00", "text-align": "center" }
33465
33681
  };
@@ -33487,7 +33703,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
33487
33703
  }, null, 8, ["modelValue", "onChange"])
33488
33704
  ], 64)) : createCommentVNode("", true)
33489
33705
  ]),
33490
- _ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_3$9, "起始值不能大于结束值")) : createCommentVNode("", true)
33706
+ _ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_3$a, "起始值不能大于结束值")) : createCommentVNode("", true)
33491
33707
  ]);
33492
33708
  }
33493
33709
  const FilterNumberrange$1 = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k]]);
@@ -59134,7 +59350,7 @@ const Grid_vue_vue_type_style_index_0_scoped_380b9368_lang = "";
59134
59350
  const _withScopeId$3 = (n) => (pushScopeId("data-v-380b9368"), n = n(), popScopeId(), n);
59135
59351
  const _hoisted_1$e = { class: "nv-crud nv-pos-r" };
59136
59352
  const _hoisted_2$b = { class: "grid-msg" };
59137
- const _hoisted_3$8 = { class: "nv-crud-body" };
59353
+ const _hoisted_3$9 = { class: "nv-crud-body" };
59138
59354
  const _hoisted_4$7 = { class: "nv-crud-body-search" };
59139
59355
  const _hoisted_5$6 = {
59140
59356
  key: 0,
@@ -59183,7 +59399,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59183
59399
  ]),
59184
59400
  _: 1
59185
59401
  }, 8, ["show"]),
59186
- createElementVNode("div", _hoisted_3$8, [
59402
+ createElementVNode("div", _hoisted_3$9, [
59187
59403
  withDirectives(createElementVNode("div", _hoisted_4$7, [
59188
59404
  !_ctx.isShowSearchSlot ? (openBlock(), createBlock(_component_search_com, {
59189
59405
  key: 0,
@@ -59412,7 +59628,7 @@ const propDefine$r = {
59412
59628
  };
59413
59629
  const _sfc_main$i = defineComponent({
59414
59630
  name: "GridColumnJava",
59415
- components: { VxeColumn, VxeColgroup, GridCellContent, GridTitleContent },
59631
+ components: { VxeColumn, VxeColgroup, GridCellContent, GridTitleContent, MileEdit },
59416
59632
  emits: ["clearRadioRow", "change", "delete", "addchild"],
59417
59633
  props: propDefine$r,
59418
59634
  setup(props, ctx) {
@@ -59740,6 +59956,48 @@ class GridColumnInstance extends BaseInstance {
59740
59956
  }
59741
59957
  return FilterRender;
59742
59958
  });
59959
+ //#endregion
59960
+ //#region 桩号相关
59961
+ /**
59962
+ * 桩号格式化
59963
+ * @param mileValue
59964
+ * @param prefix
59965
+ * @returns
59966
+ */
59967
+ __publicField2(this, "formatMileValue", (mileValue, prefix = "K") => {
59968
+ if (!mileValue) {
59969
+ return "";
59970
+ }
59971
+ try {
59972
+ if (mileValue.toString().indexOf("K") >= 0 && mileValue.toString().indexOf("+") >= 0) {
59973
+ return mileValue;
59974
+ } else {
59975
+ let milenum = Number(mileValue) * 1e3;
59976
+ if (Number.isNaN(milenum)) {
59977
+ return "";
59978
+ }
59979
+ let km = milenum / 1e3;
59980
+ let m = milenum % 1e3;
59981
+ m = m.toFixed(0);
59982
+ m = m < 10 ? "00" + m : m < 100 ? "0" + m : m;
59983
+ return prefix + parseInt(km.toString()) + "+" + m;
59984
+ }
59985
+ } catch (error2) {
59986
+ return "";
59987
+ }
59988
+ });
59989
+ /**
59990
+ * 桩号填写变化
59991
+ * @param row
59992
+ * @param column
59993
+ * @param param2
59994
+ */
59995
+ __publicField2(this, "mileOnChange", (row, column, { number, mile }) => {
59996
+ row[column.field] = number;
59997
+ if (column.mileConfig && column.mileConfig.onChange) {
59998
+ column.mileConfig.onChange({ number, mile, row, field: column.field });
59999
+ }
60000
+ });
59743
60001
  this.props = props;
59744
60002
  this.ctx = ctx;
59745
60003
  this.parseColumn();
@@ -59864,12 +60122,13 @@ class GridColumnInstance extends BaseInstance {
59864
60122
  //#endregion
59865
60123
  }
59866
60124
  const GridColumn_vue_vue_type_style_index_0_lang = "";
59867
- const GridColumn_vue_vue_type_style_index_1_scoped_576c5d28_lang = "";
60125
+ const GridColumn_vue_vue_type_style_index_1_scoped_f801d36f_lang = "";
59868
60126
  const _hoisted_1$d = { class: "gridColumn" };
59869
60127
  const _hoisted_2$a = {
59870
60128
  key: 3,
59871
60129
  class: "nv-num-text"
59872
60130
  };
60131
+ const _hoisted_3$8 = { key: 4 };
59873
60132
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
59874
60133
  const _component_GridTitleContent = resolveComponent("GridTitleContent");
59875
60134
  const _component_grid_column = resolveComponent("grid-column", true);
@@ -59888,6 +60147,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
59888
60147
  const _component_Checkbox = resolveComponent("Checkbox");
59889
60148
  const _component_Switch = resolveComponent("Switch");
59890
60149
  const _component_ColorPicker = resolveComponent("ColorPicker");
60150
+ const _component_MileEdit = resolveComponent("MileEdit");
59891
60151
  const _component_Button = resolveComponent("Button");
59892
60152
  const _component_Space = resolveComponent("Space");
59893
60153
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -59972,7 +60232,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
59972
60232
  }, null, 8, ["column", "row"])
59973
60233
  ]),
59974
60234
  _: 2
59975
- }, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : column.colType == "ed" || column.colType == "password" || column.colType == "auto" || column.colType == "date" || column.colType == "time" || column.colType == "num" || column.colType == "select" || column.colType == "treeSelect" || column.colType == "ch" || column.colType == "switch" || column.colType == "color" ? (openBlock(), createBlock(_component_vxe_column, {
60235
+ }, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : column.colType == "ed" || column.colType == "password" || column.colType == "auto" || column.colType == "date" || column.colType == "time" || column.colType == "num" || column.colType == "select" || column.colType == "treeSelect" || column.colType == "ch" || column.colType == "switch" || column.colType == "color" || column.colType == "mile" ? (openBlock(), createBlock(_component_vxe_column, {
59976
60236
  key: 4,
59977
60237
  field: column.field,
59978
60238
  "min-width": column.minWidth,
@@ -59999,136 +60259,148 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
59999
60259
  "filter-multiple": _ctx.getColumFilterMultiple(column.filter),
60000
60260
  "filter-render": _ctx.getColumFilterRender(column.filter)
60001
60261
  }, {
60002
- edit: withCtx((scope) => [
60003
- column.colType == "ed" ? (openBlock(), createBlock(_component_Input, {
60004
- key: 0,
60005
- modelValue: scope.row[_ctx.getField(column)],
60006
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60007
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
60008
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60009
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "password" ? (openBlock(), createBlock(_component_Input, {
60010
- key: 1,
60011
- modelValue: scope.row[_ctx.getField(column)],
60012
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60013
- type: "password",
60014
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
60015
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60016
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "auto" ? (openBlock(), createBlock(_component_AutoComplete, {
60017
- key: 2,
60018
- modelValue: scope.row[_ctx.getField(column)],
60019
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60020
- data: _ctx.getAutoCompleteData(column),
60021
- "filter-method": _ctx.getAutoCompleteFilterMethod(column),
60022
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
60023
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60024
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
60025
- key: 3,
60026
- modelValue: scope.row[_ctx.getField(column)],
60027
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60028
- format: _ctx.getDatePickerFormat(column),
60029
- type: _ctx.getDatePickerType(column),
60030
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60031
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
60032
- key: 4,
60033
- modelValue: scope.row[_ctx.getField(column)],
60034
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60035
- format: _ctx.getTimePickerFormat(column),
60036
- type: _ctx.getTimePickerType(column),
60037
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60038
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
60039
- key: 5,
60040
- modelValue: scope.row[_ctx.getField(column)],
60041
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60042
- max: _ctx.getInputNumberMax(column),
60043
- min: _ctx.getInputNumberMin(column),
60044
- step: _ctx.getInputNumberStep(column),
60045
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
60046
- onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60047
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max", "min", "step", "onOnChange", "onOnBlur"])) : column.colType == "select" ? (openBlock(), createBlock(_component_Select, {
60048
- key: 6,
60049
- modelValue: scope.row[_ctx.getField(column)],
60050
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60051
- multiple: _ctx.getSelectMultiple(column),
60052
- clearable: _ctx.getSelectClearable(column),
60053
- transfer: _ctx.getSelectTransfer(column),
60054
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60055
- }, {
60056
- default: withCtx(() => [
60057
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getSelectData(column), (item2) => {
60058
- return openBlock(), createBlock(_component_Option, {
60059
- value: item2.value,
60060
- key: item2.value
60061
- }, {
60062
- default: withCtx(() => [
60063
- createTextVNode(toDisplayString(item2.text), 1)
60064
- ]),
60065
- _: 2
60066
- }, 1032, ["value"]);
60067
- }), 128))
60068
- ]),
60069
- _: 2
60070
- }, 1032, ["modelValue", "onUpdate:modelValue", "multiple", "clearable", "transfer", "onOnChange"])) : column.colType == "treeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
60071
- key: 7,
60072
- class: "column-tree",
60073
- modelValue: scope.row[_ctx.getField(column)],
60074
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60075
- data: _ctx.getTreeSelectData(column),
60076
- multiple: _ctx.getTreeSelectMultiple(column),
60077
- transfer: _ctx.getTreeSelectTransfer(column),
60078
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60079
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "multiple", "transfer", "onOnChange"])) : column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
60080
- key: 8,
60081
- modelValue: scope.row[_ctx.getField(column)],
60082
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60083
- size: _ctx.getChSize(column),
60084
- "true-value": _ctx.getChTrueValue(column),
60085
- "false-value": _ctx.getChFalseValue(column),
60086
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60087
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
60088
- key: 9,
60089
- modelValue: scope.row[_ctx.getField(column)],
60090
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event
60091
- }, column.switchConfig, {
60092
- onOnChange: ($event) => _ctx.doChange(column, scope.row),
60093
- disabled: _ctx.getIsEnableSw(column)
60094
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
60095
- key: 10,
60096
- class: "nvgridcell-color",
60097
- modelValue: scope.row[_ctx.getField(column)],
60098
- "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60099
- transfer: "",
60100
- "transfer-class-name": "nvgridcell-color-transfer",
60101
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
60102
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : createCommentVNode("", true)
60103
- ]),
60104
- default: withCtx(({ row }) => [
60105
- column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
60106
- key: 0,
60107
- modelValue: row[_ctx.getField(column)],
60108
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
60109
- size: _ctx.getChSize(column),
60110
- "true-value": _ctx.getChTrueValue(column),
60111
- "false-value": _ctx.getChFalseValue(column),
60112
- onOnChange: ($event) => _ctx.doChange(column, row)
60113
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
60114
- key: 1,
60115
- modelValue: row[_ctx.getField(column)],
60116
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event
60117
- }, column.switchConfig, {
60118
- onOnChange: ($event) => _ctx.doChange(column, row),
60119
- disabled: _ctx.getIsEnableSw(column)
60120
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
60121
- key: 2,
60122
- class: "nvgridcell-color",
60123
- modelValue: row[_ctx.getField(column)],
60124
- "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
60125
- disabled: true
60126
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : column.colType == "num" ? (openBlock(), createElementBlock("span", _hoisted_2$a, toDisplayString(row[_ctx.getField(column)]), 1)) : (openBlock(), createBlock(_component_GridCellContent, {
60127
- key: 4,
60128
- column,
60129
- row
60130
- }, null, 8, ["column", "row"]))
60131
- ]),
60262
+ edit: withCtx((scope) => {
60263
+ var _a;
60264
+ return [
60265
+ column.colType == "ed" ? (openBlock(), createBlock(_component_Input, {
60266
+ key: 0,
60267
+ modelValue: scope.row[_ctx.getField(column)],
60268
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60269
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
60270
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60271
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "password" ? (openBlock(), createBlock(_component_Input, {
60272
+ key: 1,
60273
+ modelValue: scope.row[_ctx.getField(column)],
60274
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60275
+ type: "password",
60276
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
60277
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60278
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange", "onOnBlur"])) : column.colType == "auto" ? (openBlock(), createBlock(_component_AutoComplete, {
60279
+ key: 2,
60280
+ modelValue: scope.row[_ctx.getField(column)],
60281
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60282
+ data: _ctx.getAutoCompleteData(column),
60283
+ "filter-method": _ctx.getAutoCompleteFilterMethod(column),
60284
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
60285
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60286
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
60287
+ key: 3,
60288
+ modelValue: scope.row[_ctx.getField(column)],
60289
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60290
+ format: _ctx.getDatePickerFormat(column),
60291
+ type: _ctx.getDatePickerType(column),
60292
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60293
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
60294
+ key: 4,
60295
+ modelValue: scope.row[_ctx.getField(column)],
60296
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60297
+ format: _ctx.getTimePickerFormat(column),
60298
+ type: _ctx.getTimePickerType(column),
60299
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60300
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
60301
+ key: 5,
60302
+ modelValue: scope.row[_ctx.getField(column)],
60303
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60304
+ max: _ctx.getInputNumberMax(column),
60305
+ min: _ctx.getInputNumberMin(column),
60306
+ step: _ctx.getInputNumberStep(column),
60307
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
60308
+ onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
60309
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max", "min", "step", "onOnChange", "onOnBlur"])) : column.colType == "select" ? (openBlock(), createBlock(_component_Select, {
60310
+ key: 6,
60311
+ modelValue: scope.row[_ctx.getField(column)],
60312
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60313
+ multiple: _ctx.getSelectMultiple(column),
60314
+ clearable: _ctx.getSelectClearable(column),
60315
+ transfer: _ctx.getSelectTransfer(column),
60316
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60317
+ }, {
60318
+ default: withCtx(() => [
60319
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getSelectData(column), (item2) => {
60320
+ return openBlock(), createBlock(_component_Option, {
60321
+ value: item2.value,
60322
+ key: item2.value
60323
+ }, {
60324
+ default: withCtx(() => [
60325
+ createTextVNode(toDisplayString(item2.text), 1)
60326
+ ]),
60327
+ _: 2
60328
+ }, 1032, ["value"]);
60329
+ }), 128))
60330
+ ]),
60331
+ _: 2
60332
+ }, 1032, ["modelValue", "onUpdate:modelValue", "multiple", "clearable", "transfer", "onOnChange"])) : column.colType == "treeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
60333
+ key: 7,
60334
+ class: "column-tree",
60335
+ modelValue: scope.row[_ctx.getField(column)],
60336
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60337
+ data: _ctx.getTreeSelectData(column),
60338
+ multiple: _ctx.getTreeSelectMultiple(column),
60339
+ transfer: _ctx.getTreeSelectTransfer(column),
60340
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60341
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "multiple", "transfer", "onOnChange"])) : column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
60342
+ key: 8,
60343
+ modelValue: scope.row[_ctx.getField(column)],
60344
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60345
+ size: _ctx.getChSize(column),
60346
+ "true-value": _ctx.getChTrueValue(column),
60347
+ "false-value": _ctx.getChFalseValue(column),
60348
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60349
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
60350
+ key: 9,
60351
+ modelValue: scope.row[_ctx.getField(column)],
60352
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event
60353
+ }, column.switchConfig, {
60354
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
60355
+ disabled: _ctx.getIsEnableSw(column)
60356
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
60357
+ key: 10,
60358
+ class: "nvgridcell-color",
60359
+ modelValue: scope.row[_ctx.getField(column)],
60360
+ "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
60361
+ transfer: "",
60362
+ "transfer-class-name": "nvgridcell-color-transfer",
60363
+ onOnChange: ($event) => _ctx.doChange(column, scope.row)
60364
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : column.colType == "mile" ? (openBlock(), createBlock(_component_MileEdit, {
60365
+ key: 11,
60366
+ dataValue: scope.row[_ctx.getField(column)],
60367
+ prefix: (_a = column.mileConfig) == null ? void 0 : _a.prefix,
60368
+ placeholder: column.mileConfig && column.mileConfig.placeholder ? column.mileConfig.placeholder : "",
60369
+ onOnChange: ($event) => _ctx.mileOnChange(scope.row, column, $event)
60370
+ }, null, 8, ["dataValue", "prefix", "placeholder", "onOnChange"])) : createCommentVNode("", true)
60371
+ ];
60372
+ }),
60373
+ default: withCtx(({ row }) => {
60374
+ var _a;
60375
+ return [
60376
+ column.colType == "ch" ? (openBlock(), createBlock(_component_Checkbox, {
60377
+ key: 0,
60378
+ modelValue: row[_ctx.getField(column)],
60379
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
60380
+ size: _ctx.getChSize(column),
60381
+ "true-value": _ctx.getChTrueValue(column),
60382
+ "false-value": _ctx.getChFalseValue(column),
60383
+ onOnChange: ($event) => _ctx.doChange(column, row)
60384
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "true-value", "false-value", "onOnChange"])) : column.colType == "switch" ? (openBlock(), createBlock(_component_Switch, mergeProps({
60385
+ key: 1,
60386
+ modelValue: row[_ctx.getField(column)],
60387
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event
60388
+ }, column.switchConfig, {
60389
+ onOnChange: ($event) => _ctx.doChange(column, row),
60390
+ disabled: _ctx.getIsEnableSw(column)
60391
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onOnChange", "disabled"])) : column.colType == "color" ? (openBlock(), createBlock(_component_ColorPicker, {
60392
+ key: 2,
60393
+ class: "nvgridcell-color",
60394
+ modelValue: row[_ctx.getField(column)],
60395
+ "onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
60396
+ disabled: true
60397
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : column.colType == "num" ? (openBlock(), createElementBlock("span", _hoisted_2$a, toDisplayString(row[_ctx.getField(column)]), 1)) : column.colType == "mile" ? (openBlock(), createElementBlock("span", _hoisted_3$8, toDisplayString(_ctx.formatMileValue(row[_ctx.getField(column)], (_a = column.mileConfig) == null ? void 0 : _a.prefix)), 1)) : (openBlock(), createBlock(_component_GridCellContent, {
60398
+ key: 5,
60399
+ column,
60400
+ row
60401
+ }, null, 8, ["column", "row"]))
60402
+ ];
60403
+ }),
60132
60404
  header: withCtx(() => [
60133
60405
  createVNode(_component_GridTitleContent, { column }, null, 8, ["column"])
60134
60406
  ]),
@@ -60208,7 +60480,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
60208
60480
  }), 256))
60209
60481
  ]);
60210
60482
  }
60211
- const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-576c5d28"]]);
60483
+ const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-f801d36f"]]);
60212
60484
  const _sfc_main$h = defineComponent({
60213
60485
  name: "FilterDaterange",
60214
60486
  props: {
@@ -239721,6 +239993,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
239721
239993
  GetImageArr,
239722
239994
  HtmlJson,
239723
239995
  LuckySheet,
239996
+ MileEdit,
239724
239997
  NvAFCaream,
239725
239998
  NvAFCareamBack,
239726
239999
  NvBox: Box,
@@ -239845,7 +240118,7 @@ const propDefine$9 = {
239845
240118
  };
239846
240119
  defineComponent({
239847
240120
  name: "NvComForm",
239848
- components: { NvIconSelect },
240121
+ components: { NvIconSelect, MileEdit },
239849
240122
  emits: [""],
239850
240123
  props: propDefine$9,
239851
240124
  setup(props, ctx) {
@@ -239912,6 +240185,15 @@ class ComFormInstance extends BaseInstance {
239912
240185
  });
239913
240186
  __publicField2(this, "getModelValue", () => {
239914
240187
  });
240188
+ /**
240189
+ * 桩号填写改变
240190
+ */
240191
+ __publicField2(this, "mileOnChange", (item2, { number, mile }) => {
240192
+ this.props.formModel[item2.model] = number;
240193
+ if (item2.mileProp && item2.mileProp.onChange) {
240194
+ item2.mileProp.onChange({ number, mile });
240195
+ }
240196
+ });
239915
240197
  //#endregion 获取基础数据 END
239916
240198
  //#region 公开Api
239917
240199
  /**
@@ -243759,6 +244041,7 @@ export {
243759
244041
  HtmlJson,
243760
244042
  ListInstance,
243761
244043
  LuckySheet,
244044
+ MileEdit,
243762
244045
  NvAFCaream,
243763
244046
  NvAFCareamBack,
243764
244047
  Box as NvBox,