@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.
- package/README.md +5 -0
- package/dist/newview-ui.js +580 -297
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +71 -71
- package/types/ComForm.d.ts +27 -1
- package/types/Grid.d.ts +30 -1
- package/types/GridJava.d.ts +30 -1
package/dist/newview-ui.js
CHANGED
|
@@ -17833,7 +17833,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
17833
17833
|
}
|
|
17834
17834
|
return target;
|
|
17835
17835
|
};
|
|
17836
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
30131
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
31085
|
+
const _hoisted_3$e = { class: "icon-select-list" };
|
|
31086
31086
|
const _hoisted_4$9 = ["onClick", "title"];
|
|
31087
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
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
|
|
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$
|
|
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$
|
|
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-
|
|
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$
|
|
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$
|
|
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
|
|
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
|
-
|
|
33146
|
-
|
|
33147
|
-
|
|
33148
|
-
|
|
33149
|
-
|
|
33150
|
-
|
|
33151
|
-
|
|
33152
|
-
|
|
33153
|
-
modelValue:
|
|
33154
|
-
|
|
33155
|
-
|
|
33156
|
-
|
|
33157
|
-
|
|
33158
|
-
|
|
33159
|
-
|
|
33160
|
-
modelValue:
|
|
33161
|
-
|
|
33162
|
-
|
|
33163
|
-
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
modelValue:
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33172
|
-
|
|
33173
|
-
|
|
33174
|
-
|
|
33175
|
-
|
|
33176
|
-
modelValue:
|
|
33177
|
-
|
|
33178
|
-
|
|
33179
|
-
|
|
33180
|
-
|
|
33181
|
-
|
|
33182
|
-
|
|
33183
|
-
modelValue:
|
|
33184
|
-
|
|
33185
|
-
|
|
33186
|
-
|
|
33187
|
-
|
|
33188
|
-
|
|
33189
|
-
|
|
33190
|
-
|
|
33191
|
-
|
|
33192
|
-
modelValue:
|
|
33193
|
-
|
|
33194
|
-
|
|
33195
|
-
|
|
33196
|
-
|
|
33197
|
-
|
|
33198
|
-
|
|
33199
|
-
|
|
33200
|
-
|
|
33201
|
-
|
|
33202
|
-
|
|
33203
|
-
|
|
33204
|
-
|
|
33205
|
-
|
|
33206
|
-
|
|
33207
|
-
|
|
33208
|
-
|
|
33209
|
-
|
|
33210
|
-
|
|
33211
|
-
|
|
33212
|
-
|
|
33213
|
-
|
|
33214
|
-
|
|
33215
|
-
|
|
33216
|
-
|
|
33217
|
-
|
|
33218
|
-
|
|
33219
|
-
|
|
33220
|
-
|
|
33221
|
-
|
|
33222
|
-
|
|
33223
|
-
|
|
33224
|
-
modelValue:
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
|
|
33228
|
-
|
|
33229
|
-
|
|
33230
|
-
|
|
33231
|
-
|
|
33232
|
-
modelValue:
|
|
33233
|
-
|
|
33234
|
-
|
|
33235
|
-
|
|
33236
|
-
|
|
33237
|
-
|
|
33238
|
-
|
|
33239
|
-
|
|
33240
|
-
|
|
33241
|
-
|
|
33242
|
-
|
|
33243
|
-
|
|
33244
|
-
|
|
33245
|
-
|
|
33246
|
-
|
|
33247
|
-
|
|
33248
|
-
|
|
33249
|
-
|
|
33250
|
-
|
|
33251
|
-
|
|
33252
|
-
|
|
33253
|
-
"
|
|
33254
|
-
|
|
33255
|
-
|
|
33256
|
-
|
|
33257
|
-
|
|
33258
|
-
|
|
33259
|
-
"
|
|
33260
|
-
|
|
33261
|
-
|
|
33262
|
-
|
|
33263
|
-
|
|
33264
|
-
|
|
33265
|
-
|
|
33266
|
-
|
|
33267
|
-
"onUpdate:modelValue"
|
|
33268
|
-
|
|
33269
|
-
|
|
33270
|
-
|
|
33271
|
-
column,
|
|
33272
|
-
|
|
33273
|
-
|
|
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-
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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
|
-
|
|
60004
|
-
|
|
60005
|
-
|
|
60006
|
-
|
|
60007
|
-
|
|
60008
|
-
|
|
60009
|
-
|
|
60010
|
-
|
|
60011
|
-
modelValue:
|
|
60012
|
-
|
|
60013
|
-
|
|
60014
|
-
|
|
60015
|
-
|
|
60016
|
-
|
|
60017
|
-
|
|
60018
|
-
modelValue:
|
|
60019
|
-
|
|
60020
|
-
|
|
60021
|
-
|
|
60022
|
-
|
|
60023
|
-
|
|
60024
|
-
|
|
60025
|
-
|
|
60026
|
-
modelValue:
|
|
60027
|
-
|
|
60028
|
-
|
|
60029
|
-
|
|
60030
|
-
|
|
60031
|
-
|
|
60032
|
-
|
|
60033
|
-
modelValue:
|
|
60034
|
-
|
|
60035
|
-
|
|
60036
|
-
|
|
60037
|
-
|
|
60038
|
-
|
|
60039
|
-
|
|
60040
|
-
modelValue:
|
|
60041
|
-
|
|
60042
|
-
|
|
60043
|
-
|
|
60044
|
-
|
|
60045
|
-
|
|
60046
|
-
|
|
60047
|
-
|
|
60048
|
-
|
|
60049
|
-
modelValue:
|
|
60050
|
-
|
|
60051
|
-
|
|
60052
|
-
|
|
60053
|
-
|
|
60054
|
-
|
|
60055
|
-
|
|
60056
|
-
|
|
60057
|
-
|
|
60058
|
-
|
|
60059
|
-
|
|
60060
|
-
|
|
60061
|
-
|
|
60062
|
-
|
|
60063
|
-
|
|
60064
|
-
|
|
60065
|
-
|
|
60066
|
-
|
|
60067
|
-
|
|
60068
|
-
|
|
60069
|
-
|
|
60070
|
-
|
|
60071
|
-
|
|
60072
|
-
|
|
60073
|
-
|
|
60074
|
-
|
|
60075
|
-
|
|
60076
|
-
|
|
60077
|
-
|
|
60078
|
-
|
|
60079
|
-
|
|
60080
|
-
|
|
60081
|
-
modelValue:
|
|
60082
|
-
|
|
60083
|
-
|
|
60084
|
-
|
|
60085
|
-
|
|
60086
|
-
|
|
60087
|
-
|
|
60088
|
-
|
|
60089
|
-
modelValue:
|
|
60090
|
-
|
|
60091
|
-
|
|
60092
|
-
|
|
60093
|
-
|
|
60094
|
-
|
|
60095
|
-
|
|
60096
|
-
|
|
60097
|
-
|
|
60098
|
-
|
|
60099
|
-
|
|
60100
|
-
|
|
60101
|
-
|
|
60102
|
-
|
|
60103
|
-
|
|
60104
|
-
|
|
60105
|
-
|
|
60106
|
-
|
|
60107
|
-
|
|
60108
|
-
|
|
60109
|
-
|
|
60110
|
-
"
|
|
60111
|
-
|
|
60112
|
-
|
|
60113
|
-
|
|
60114
|
-
|
|
60115
|
-
|
|
60116
|
-
"
|
|
60117
|
-
|
|
60118
|
-
|
|
60119
|
-
|
|
60120
|
-
|
|
60121
|
-
|
|
60122
|
-
|
|
60123
|
-
|
|
60124
|
-
"onUpdate:modelValue"
|
|
60125
|
-
|
|
60126
|
-
|
|
60127
|
-
|
|
60128
|
-
column,
|
|
60129
|
-
|
|
60130
|
-
|
|
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-
|
|
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,
|