kd-curve-v2 0.0.4 → 0.0.6
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/dist/esm/index.js +619 -528
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2175,7 +2175,7 @@ var script$a = {
|
|
|
2175
2175
|
},
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
2178
|
-
var css_248z$b = "@charset \"UTF-8\";\n.function-control-panel[data-v-
|
|
2178
|
+
var css_248z$b = "@charset \"UTF-8\";\n.function-control-panel[data-v-682ce335] {\n width: 100%;\n height: 100%;\n color: var(--text-color);\n font-size: 14px;\n overflow-x: hidden;\n overflow-y: auto;\n /* 隐藏滚动条 */\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n.function-control-panel[data-v-682ce335]::-webkit-scrollbar {\n display: none;\n}\n.function-control-panel .radio-group[data-v-682ce335] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-bottom: 8px;\n}\n.el-select-disabled[data-v-682ce335] {\n opacity: 0.5;\n}\n\n/*/* 分割线 */\n.divider[data-v-682ce335] {\n height: 1px;\n background: var(--border-color);\n margin-bottom: 8px;\n}\n\n/* label */\n.label[data-v-682ce335] {\n color: #aaa;\n margin-bottom: 2px;\n}\n\n/* 操作按钮 */\n.actions[data-v-682ce335] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.btn[data-v-682ce335] {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n text-align: center;\n font-family: Microsoft YaHei UI, Microsoft YaHei UI;\n font-weight: 400;\n cursor: pointer;\n}\n.btn .icon[data-v-682ce335] {\n width: 54px;\n height: 54px;\n}\n.btn.disabled[data-v-682ce335] {\n color: #666;\n cursor: not-allowed;\n}\n.btn.disabled .icon[data-v-682ce335] {\n opacity: 0.5;\n}\n.fontColor[data-v-682ce335] {\n color: var(--default-text-color);\n}";
|
|
2179
2179
|
styleInject(css_248z$b);
|
|
2180
2180
|
|
|
2181
2181
|
/* script */
|
|
@@ -2189,273 +2189,301 @@ var __vue_render__$a = function () {
|
|
|
2189
2189
|
"div",
|
|
2190
2190
|
{ staticClass: "function-control-panel" },
|
|
2191
2191
|
[
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
staticClass: "radio-group",
|
|
2196
|
-
on: {
|
|
2197
|
-
change: function ($event) {
|
|
2198
|
-
return _vm.changeForm($event, "axisType")
|
|
2199
|
-
},
|
|
2200
|
-
},
|
|
2201
|
-
model: {
|
|
2202
|
-
value: _vm.form.axisType,
|
|
2203
|
-
callback: function ($$v) {
|
|
2204
|
-
_vm.$set(_vm.form, "axisType", $$v);
|
|
2205
|
-
},
|
|
2206
|
-
expression: "form.axisType",
|
|
2207
|
-
},
|
|
2208
|
-
},
|
|
2209
|
-
[
|
|
2210
|
-
_c(
|
|
2211
|
-
"el-radio",
|
|
2212
|
-
{
|
|
2213
|
-
attrs: {
|
|
2214
|
-
label: "time",
|
|
2215
|
-
disabled:
|
|
2216
|
-
!_vm.toolBarConfig ||
|
|
2217
|
-
!_vm.toolBarConfig.axisTypeList ||
|
|
2218
|
-
!_vm.toolBarConfig.axisTypeList.time,
|
|
2219
|
-
},
|
|
2220
|
-
},
|
|
2221
|
-
[_vm._v("时间")]
|
|
2222
|
-
),
|
|
2223
|
-
_vm._v(" "),
|
|
2224
|
-
_c(
|
|
2225
|
-
"el-radio",
|
|
2226
|
-
{
|
|
2227
|
-
attrs: {
|
|
2228
|
-
label: "depth",
|
|
2229
|
-
disabled:
|
|
2230
|
-
!_vm.toolBarConfig ||
|
|
2231
|
-
!_vm.toolBarConfig.axisTypeList ||
|
|
2232
|
-
!_vm.toolBarConfig.axisTypeList.depth,
|
|
2233
|
-
},
|
|
2234
|
-
},
|
|
2235
|
-
[_vm._v("深度")]
|
|
2236
|
-
),
|
|
2237
|
-
],
|
|
2238
|
-
1
|
|
2239
|
-
),
|
|
2240
|
-
_vm._v(" "),
|
|
2241
|
-
_c("div", { staticClass: "divider" }),
|
|
2242
|
-
_vm._v(" "),
|
|
2243
|
-
_c(
|
|
2244
|
-
"el-radio-group",
|
|
2245
|
-
{
|
|
2246
|
-
staticClass: "radio-group",
|
|
2247
|
-
on: {
|
|
2248
|
-
change: function ($event) {
|
|
2249
|
-
return _vm.changeForm($event, "dataType")
|
|
2250
|
-
},
|
|
2251
|
-
},
|
|
2252
|
-
model: {
|
|
2253
|
-
value: _vm.form.dataType,
|
|
2254
|
-
callback: function ($$v) {
|
|
2255
|
-
_vm.$set(_vm.form, "dataType", $$v);
|
|
2256
|
-
},
|
|
2257
|
-
expression: "form.dataType",
|
|
2258
|
-
},
|
|
2259
|
-
},
|
|
2260
|
-
[
|
|
2261
|
-
_c(
|
|
2262
|
-
"el-radio",
|
|
2192
|
+
_vm.toolBarConfig.timeDepthRadioShow !== false
|
|
2193
|
+
? _c(
|
|
2194
|
+
"el-radio-group",
|
|
2263
2195
|
{
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
!_vm.toolBarConfig.dataTypeList.real,
|
|
2196
|
+
staticClass: "radio-group",
|
|
2197
|
+
on: {
|
|
2198
|
+
change: function ($event) {
|
|
2199
|
+
return _vm.changeForm($event, "axisType")
|
|
2200
|
+
},
|
|
2270
2201
|
},
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
{
|
|
2278
|
-
attrs: {
|
|
2279
|
-
label: "history",
|
|
2280
|
-
disabled:
|
|
2281
|
-
!_vm.toolBarConfig ||
|
|
2282
|
-
!_vm.toolBarConfig.dataTypeList ||
|
|
2283
|
-
!_vm.toolBarConfig.dataTypeList.history,
|
|
2202
|
+
model: {
|
|
2203
|
+
value: _vm.form.axisType,
|
|
2204
|
+
callback: function ($$v) {
|
|
2205
|
+
_vm.$set(_vm.form, "axisType", $$v);
|
|
2206
|
+
},
|
|
2207
|
+
expression: "form.axisType",
|
|
2284
2208
|
},
|
|
2285
2209
|
},
|
|
2286
|
-
[
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2210
|
+
[
|
|
2211
|
+
_c(
|
|
2212
|
+
"el-radio",
|
|
2213
|
+
{
|
|
2214
|
+
attrs: {
|
|
2215
|
+
label: "time",
|
|
2216
|
+
disabled:
|
|
2217
|
+
!_vm.toolBarConfig ||
|
|
2218
|
+
!_vm.toolBarConfig.axisTypeList ||
|
|
2219
|
+
!_vm.toolBarConfig.axisTypeList.time,
|
|
2220
|
+
},
|
|
2221
|
+
},
|
|
2222
|
+
[_vm._v("时间")]
|
|
2223
|
+
),
|
|
2224
|
+
_vm._v(" "),
|
|
2225
|
+
_c(
|
|
2226
|
+
"el-radio",
|
|
2227
|
+
{
|
|
2228
|
+
attrs: {
|
|
2229
|
+
label: "depth",
|
|
2230
|
+
disabled:
|
|
2231
|
+
!_vm.toolBarConfig ||
|
|
2232
|
+
!_vm.toolBarConfig.axisTypeList ||
|
|
2233
|
+
!_vm.toolBarConfig.axisTypeList.depth,
|
|
2234
|
+
},
|
|
2235
|
+
},
|
|
2236
|
+
[_vm._v("深度")]
|
|
2237
|
+
),
|
|
2238
|
+
],
|
|
2239
|
+
1
|
|
2240
|
+
)
|
|
2241
|
+
: _vm._e(),
|
|
2318
2242
|
_vm._v(" "),
|
|
2319
|
-
|
|
2243
|
+
_vm.toolBarConfig.timeDepthRadioShow !== false
|
|
2244
|
+
? _c("div", { staticClass: "divider" })
|
|
2245
|
+
: _vm._e(),
|
|
2320
2246
|
_vm._v(" "),
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
attrs: {
|
|
2325
|
-
disabled: _vm.form.axisType === "depth",
|
|
2326
|
-
content: "时间轴类型下不支持设置比例尺",
|
|
2327
|
-
placement: "right",
|
|
2328
|
-
effect: "dark",
|
|
2329
|
-
},
|
|
2330
|
-
},
|
|
2331
|
-
[
|
|
2332
|
-
_c(
|
|
2333
|
-
"el-select",
|
|
2247
|
+
_vm.toolBarConfig.realHistoryRadioShow !== false
|
|
2248
|
+
? _c(
|
|
2249
|
+
"el-radio-group",
|
|
2334
2250
|
{
|
|
2335
|
-
|
|
2336
|
-
staticStyle: { "margin-bottom": "8px" },
|
|
2337
|
-
attrs: {
|
|
2338
|
-
"popper-class": "kd-curve-2d-select-popup",
|
|
2339
|
-
disabled: _vm.form.axisType !== "depth",
|
|
2340
|
-
},
|
|
2251
|
+
staticClass: "radio-group",
|
|
2341
2252
|
on: {
|
|
2342
2253
|
change: function ($event) {
|
|
2343
|
-
return _vm.changeForm($event, "
|
|
2254
|
+
return _vm.changeForm($event, "dataType")
|
|
2344
2255
|
},
|
|
2345
2256
|
},
|
|
2346
2257
|
model: {
|
|
2347
|
-
value: _vm.form.
|
|
2258
|
+
value: _vm.form.dataType,
|
|
2348
2259
|
callback: function ($$v) {
|
|
2349
|
-
_vm.$set(_vm.form, "
|
|
2260
|
+
_vm.$set(_vm.form, "dataType", $$v);
|
|
2350
2261
|
},
|
|
2351
|
-
expression: "form.
|
|
2262
|
+
expression: "form.dataType",
|
|
2352
2263
|
},
|
|
2353
2264
|
},
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2265
|
+
[
|
|
2266
|
+
_c(
|
|
2267
|
+
"el-radio",
|
|
2268
|
+
{
|
|
2269
|
+
attrs: {
|
|
2270
|
+
label: "real",
|
|
2271
|
+
disabled:
|
|
2272
|
+
!_vm.toolBarConfig ||
|
|
2273
|
+
!_vm.toolBarConfig.dataTypeList ||
|
|
2274
|
+
!_vm.toolBarConfig.dataTypeList.real,
|
|
2275
|
+
},
|
|
2276
|
+
},
|
|
2277
|
+
[_vm._v("实时数据")]
|
|
2278
|
+
),
|
|
2279
|
+
_vm._v(" "),
|
|
2280
|
+
_c(
|
|
2281
|
+
"el-radio",
|
|
2282
|
+
{
|
|
2283
|
+
attrs: {
|
|
2284
|
+
label: "history",
|
|
2285
|
+
disabled:
|
|
2286
|
+
!_vm.toolBarConfig ||
|
|
2287
|
+
!_vm.toolBarConfig.dataTypeList ||
|
|
2288
|
+
!_vm.toolBarConfig.dataTypeList.history,
|
|
2289
|
+
},
|
|
2290
|
+
},
|
|
2291
|
+
[_vm._v("历史数据")]
|
|
2292
|
+
),
|
|
2293
|
+
],
|
|
2360
2294
|
1
|
|
2361
|
-
)
|
|
2362
|
-
|
|
2363
|
-
1
|
|
2364
|
-
),
|
|
2295
|
+
)
|
|
2296
|
+
: _vm._e(),
|
|
2365
2297
|
_vm._v(" "),
|
|
2366
|
-
|
|
2298
|
+
_vm.toolBarConfig.realHistoryRadioShow !== false
|
|
2299
|
+
? _c("div", { staticClass: "divider" })
|
|
2300
|
+
: _vm._e(),
|
|
2367
2301
|
_vm._v(" "),
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
attrs: {
|
|
2372
|
-
disabled: !(_vm.form.axisType == "depth"),
|
|
2373
|
-
content: _vm.getDisableTip("timeRange"),
|
|
2374
|
-
placement: "right",
|
|
2375
|
-
effect: "dark",
|
|
2376
|
-
},
|
|
2377
|
-
},
|
|
2378
|
-
[
|
|
2379
|
-
_c(
|
|
2380
|
-
"el-select",
|
|
2302
|
+
_vm.toolBarConfig.headerFloatRadioShow !== false
|
|
2303
|
+
? _c(
|
|
2304
|
+
"el-radio-group",
|
|
2381
2305
|
{
|
|
2382
|
-
|
|
2383
|
-
staticStyle: { "margin-bottom": "8px" },
|
|
2384
|
-
attrs: {
|
|
2385
|
-
"popper-class": "kd-curve-2d-select-popup",
|
|
2386
|
-
disabled: _vm.form.axisType == "depth",
|
|
2387
|
-
},
|
|
2306
|
+
staticClass: "radio-group",
|
|
2388
2307
|
on: {
|
|
2389
2308
|
change: function ($event) {
|
|
2390
|
-
return _vm.changeForm($event, "
|
|
2309
|
+
return _vm.changeForm($event, "displayType")
|
|
2391
2310
|
},
|
|
2392
2311
|
},
|
|
2393
2312
|
model: {
|
|
2394
|
-
value: _vm.form.
|
|
2313
|
+
value: _vm.form.displayType,
|
|
2395
2314
|
callback: function ($$v) {
|
|
2396
|
-
_vm.$set(_vm.form, "
|
|
2315
|
+
_vm.$set(_vm.form, "displayType", $$v);
|
|
2397
2316
|
},
|
|
2398
|
-
expression: "form.
|
|
2317
|
+
expression: "form.displayType",
|
|
2399
2318
|
},
|
|
2400
2319
|
},
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2320
|
+
[
|
|
2321
|
+
_c("el-radio", { attrs: { label: "header" } }, [
|
|
2322
|
+
_vm._v("表头数据"),
|
|
2323
|
+
]),
|
|
2324
|
+
_vm._v(" "),
|
|
2325
|
+
_c("el-radio", { attrs: { label: "float" } }, [
|
|
2326
|
+
_vm._v("悬浮数据"),
|
|
2327
|
+
]),
|
|
2328
|
+
],
|
|
2407
2329
|
1
|
|
2408
|
-
)
|
|
2409
|
-
|
|
2410
|
-
1
|
|
2411
|
-
),
|
|
2330
|
+
)
|
|
2331
|
+
: _vm._e(),
|
|
2412
2332
|
_vm._v(" "),
|
|
2413
|
-
|
|
2333
|
+
_vm.toolBarConfig.scaleSelectShow !== false
|
|
2334
|
+
? _c("div", { staticClass: "label" }, [_vm._v("比例尺:")])
|
|
2335
|
+
: _vm._e(),
|
|
2414
2336
|
_vm._v(" "),
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
attrs: {
|
|
2419
|
-
disabled: !(_vm.form.axisType == "time"),
|
|
2420
|
-
content: _vm.getDisableTip("depthRange"),
|
|
2421
|
-
placement: "right",
|
|
2422
|
-
effect: "dark",
|
|
2423
|
-
},
|
|
2424
|
-
},
|
|
2425
|
-
[
|
|
2426
|
-
_c(
|
|
2427
|
-
"el-select",
|
|
2337
|
+
_vm.toolBarConfig.scaleSelectShow !== false
|
|
2338
|
+
? _c(
|
|
2339
|
+
"el-tooltip",
|
|
2428
2340
|
{
|
|
2429
|
-
class: { "el-select-disabled": _vm.form.axisType == "time" },
|
|
2430
|
-
staticStyle: { "margin-bottom": "8px" },
|
|
2431
2341
|
attrs: {
|
|
2432
|
-
|
|
2433
|
-
|
|
2342
|
+
disabled: _vm.form.axisType === "depth",
|
|
2343
|
+
content: "时间轴类型下不支持设置比例尺",
|
|
2344
|
+
placement: "right",
|
|
2345
|
+
effect: "dark",
|
|
2434
2346
|
},
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2347
|
+
},
|
|
2348
|
+
[
|
|
2349
|
+
_c(
|
|
2350
|
+
"el-select",
|
|
2351
|
+
{
|
|
2352
|
+
class: {
|
|
2353
|
+
"el-select-disabled": _vm.form.axisType !== "depth",
|
|
2354
|
+
},
|
|
2355
|
+
staticStyle: { "margin-bottom": "8px" },
|
|
2356
|
+
attrs: {
|
|
2357
|
+
"popper-class": "kd-curve-2d-select-popup",
|
|
2358
|
+
disabled: _vm.form.axisType !== "depth",
|
|
2359
|
+
},
|
|
2360
|
+
on: {
|
|
2361
|
+
change: function ($event) {
|
|
2362
|
+
return _vm.changeForm($event, "scale")
|
|
2363
|
+
},
|
|
2364
|
+
},
|
|
2365
|
+
model: {
|
|
2366
|
+
value: _vm.form.scale,
|
|
2367
|
+
callback: function ($$v) {
|
|
2368
|
+
_vm.$set(_vm.form, "scale", $$v);
|
|
2369
|
+
},
|
|
2370
|
+
expression: "form.scale",
|
|
2371
|
+
},
|
|
2438
2372
|
},
|
|
2373
|
+
_vm._l(_vm.toolBarConfig.scaleList, function (item) {
|
|
2374
|
+
return _c("el-option", {
|
|
2375
|
+
key: item.value,
|
|
2376
|
+
attrs: { label: item.label, value: item.value },
|
|
2377
|
+
})
|
|
2378
|
+
}),
|
|
2379
|
+
1
|
|
2380
|
+
),
|
|
2381
|
+
],
|
|
2382
|
+
1
|
|
2383
|
+
)
|
|
2384
|
+
: _vm._e(),
|
|
2385
|
+
_vm._v(" "),
|
|
2386
|
+
_vm.toolBarConfig.timeRangeSelectShow !== false
|
|
2387
|
+
? _c("div", { staticClass: "label" }, [_vm._v("时间范围:")])
|
|
2388
|
+
: _vm._e(),
|
|
2389
|
+
_vm._v(" "),
|
|
2390
|
+
_vm.toolBarConfig.timeRangeSelectShow !== false
|
|
2391
|
+
? _c(
|
|
2392
|
+
"el-tooltip",
|
|
2393
|
+
{
|
|
2394
|
+
attrs: {
|
|
2395
|
+
disabled: !(_vm.form.axisType == "depth"),
|
|
2396
|
+
content: _vm.getDisableTip("timeRange"),
|
|
2397
|
+
placement: "right",
|
|
2398
|
+
effect: "dark",
|
|
2439
2399
|
},
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2400
|
+
},
|
|
2401
|
+
[
|
|
2402
|
+
_c(
|
|
2403
|
+
"el-select",
|
|
2404
|
+
{
|
|
2405
|
+
class: { "el-select-disabled": _vm.form.axisType == "depth" },
|
|
2406
|
+
staticStyle: { "margin-bottom": "8px" },
|
|
2407
|
+
attrs: {
|
|
2408
|
+
"popper-class": "kd-curve-2d-select-popup",
|
|
2409
|
+
disabled: _vm.form.axisType == "depth",
|
|
2410
|
+
},
|
|
2411
|
+
on: {
|
|
2412
|
+
change: function ($event) {
|
|
2413
|
+
return _vm.changeForm($event, "timeRange")
|
|
2414
|
+
},
|
|
2415
|
+
},
|
|
2416
|
+
model: {
|
|
2417
|
+
value: _vm.form.timeRange,
|
|
2418
|
+
callback: function ($$v) {
|
|
2419
|
+
_vm.$set(_vm.form, "timeRange", $$v);
|
|
2420
|
+
},
|
|
2421
|
+
expression: "form.timeRange",
|
|
2422
|
+
},
|
|
2444
2423
|
},
|
|
2445
|
-
|
|
2424
|
+
_vm._l(_vm.toolBarConfig.timeRangeList, function (item) {
|
|
2425
|
+
return _c("el-option", {
|
|
2426
|
+
key: item.value,
|
|
2427
|
+
attrs: { label: item.label, value: item.value },
|
|
2428
|
+
})
|
|
2429
|
+
}),
|
|
2430
|
+
1
|
|
2431
|
+
),
|
|
2432
|
+
],
|
|
2433
|
+
1
|
|
2434
|
+
)
|
|
2435
|
+
: _vm._e(),
|
|
2436
|
+
_vm._v(" "),
|
|
2437
|
+
_vm.toolBarConfig.depthRangeSelectShow !== false
|
|
2438
|
+
? _c("div", { staticClass: "label" }, [_vm._v("井深范围(m):")])
|
|
2439
|
+
: _vm._e(),
|
|
2440
|
+
_vm._v(" "),
|
|
2441
|
+
_vm.toolBarConfig.depthRangeSelectShow !== false
|
|
2442
|
+
? _c(
|
|
2443
|
+
"el-tooltip",
|
|
2444
|
+
{
|
|
2445
|
+
attrs: {
|
|
2446
|
+
disabled: !(_vm.form.axisType == "time"),
|
|
2447
|
+
content: _vm.getDisableTip("depthRange"),
|
|
2448
|
+
placement: "right",
|
|
2449
|
+
effect: "dark",
|
|
2446
2450
|
},
|
|
2447
2451
|
},
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2452
|
+
[
|
|
2453
|
+
_c(
|
|
2454
|
+
"el-select",
|
|
2455
|
+
{
|
|
2456
|
+
class: { "el-select-disabled": _vm.form.axisType == "time" },
|
|
2457
|
+
staticStyle: { "margin-bottom": "8px" },
|
|
2458
|
+
attrs: {
|
|
2459
|
+
"popper-class": "kd-curve-2d-select-popup",
|
|
2460
|
+
disabled: _vm.form.axisType == "time",
|
|
2461
|
+
},
|
|
2462
|
+
on: {
|
|
2463
|
+
change: function ($event) {
|
|
2464
|
+
return _vm.changeForm($event, "depthRange")
|
|
2465
|
+
},
|
|
2466
|
+
},
|
|
2467
|
+
model: {
|
|
2468
|
+
value: _vm.form.depthRange,
|
|
2469
|
+
callback: function ($$v) {
|
|
2470
|
+
_vm.$set(_vm.form, "depthRange", $$v);
|
|
2471
|
+
},
|
|
2472
|
+
expression: "form.depthRange",
|
|
2473
|
+
},
|
|
2474
|
+
},
|
|
2475
|
+
_vm._l(_vm.toolBarConfig.depthRangeList, function (item) {
|
|
2476
|
+
return _c("el-option", {
|
|
2477
|
+
key: item.value,
|
|
2478
|
+
attrs: { label: item.label, value: item.value },
|
|
2479
|
+
})
|
|
2480
|
+
}),
|
|
2481
|
+
1
|
|
2482
|
+
),
|
|
2483
|
+
],
|
|
2454
2484
|
1
|
|
2455
|
-
)
|
|
2456
|
-
|
|
2457
|
-
1
|
|
2458
|
-
),
|
|
2485
|
+
)
|
|
2486
|
+
: _vm._e(),
|
|
2459
2487
|
_vm._v(" "),
|
|
2460
2488
|
_c(
|
|
2461
2489
|
"div",
|
|
@@ -3245,7 +3273,7 @@ __vue_render__$a._withStripped = true;
|
|
|
3245
3273
|
/* style */
|
|
3246
3274
|
const __vue_inject_styles__$a = undefined;
|
|
3247
3275
|
/* scoped */
|
|
3248
|
-
const __vue_scope_id__$a = "data-v-
|
|
3276
|
+
const __vue_scope_id__$a = "data-v-682ce335";
|
|
3249
3277
|
/* module identifier */
|
|
3250
3278
|
const __vue_module_identifier__$a = undefined;
|
|
3251
3279
|
/* functional template */
|
|
@@ -6644,10 +6672,10 @@ var script$3 = {
|
|
|
6644
6672
|
if(this.formCache.displayType == 'float'){
|
|
6645
6673
|
return "";
|
|
6646
6674
|
}
|
|
6647
|
-
if (!this.headerData
|
|
6648
|
-
return
|
|
6675
|
+
if (!Object.prototype.hasOwnProperty.call(this.headerData, this.line.paramId)) {
|
|
6676
|
+
return '--';
|
|
6649
6677
|
}
|
|
6650
|
-
return Number(this.headerData[this.line.paramId].toFixed(2)
|
|
6678
|
+
return this.headerData[this.line.paramId] !== null && this.headerData[this.line.paramId] !== undefined && this.headerData[this.line.paramId] !== '' ? typeof +this.headerData[this.line.paramId] === 'number' ? Number(Number(this.headerData[this.line.paramId]).toFixed(2)) : this.headerData[this.line.paramId] : '--';
|
|
6651
6679
|
},
|
|
6652
6680
|
getParamName(line) {
|
|
6653
6681
|
const nameConfig = this.paramsNameMap[line.paramId];
|
|
@@ -6707,7 +6735,7 @@ var script$3 = {
|
|
|
6707
6735
|
lineType = { "border-bottom": `2px ${this.line.lineType} ${lineColor || this.line.lineColor}` };
|
|
6708
6736
|
}
|
|
6709
6737
|
return {
|
|
6710
|
-
height: `${this.itemHeight}px`,
|
|
6738
|
+
height: `${ this.formCache.displayType == 'header' ? this.itemHeight : this.itemHeight * 0.8 }px`,
|
|
6711
6739
|
opacity: this.line.isUsed == "1" ? 1 : 0.5,
|
|
6712
6740
|
...lineType,
|
|
6713
6741
|
};
|
|
@@ -6717,7 +6745,7 @@ var script$3 = {
|
|
|
6717
6745
|
},
|
|
6718
6746
|
};
|
|
6719
6747
|
|
|
6720
|
-
var css_248z$4 = "@charset \"UTF-8\";\n.kd-lane-chart-container-header-item[data-v-
|
|
6748
|
+
var css_248z$4 = "@charset \"UTF-8\";\n.kd-lane-chart-container-header-item[data-v-5e4488b8] {\n height: 42px;\n flex-shrink: 0;\n background: var(--kd-lane-container-header-bg);\n border-radius: 0px 0px 0px 0px;\n color: var(--kd-lane-container-header-item-color, #333);\n border: unset;\n position: relative;\n cursor: pointer;\n}\n.kd-lane-chart-container-header-item_warning[data-v-5e4488b8] {\n background: var(--kd-lane-container-header-item-warning-color, rgba(248, 108, 89, 0.6));\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container[data-v-5e4488b8] {\n height: 100%;\n width: 100%;\n position: relative;\n font-family: Microsoft YaHei UI, Microsoft YaHei UI;\n font-weight: 400;\n font-size: 10px;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .left[data-v-5e4488b8] {\n position: absolute;\n left: 2px;\n bottom: 2px;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .center[data-v-5e4488b8] {\n position: absolute;\n left: 50%;\n top: 50%;\n font-size: 14px;\n transform: translate(-50%, -50%);\n display: flex;\n flex-direction: column;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .center .paramsTitle[data-v-5e4488b8] {\n /* 文字不换行,超出显示省略号 */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: Microsoft YaHei UI, Microsoft YaHei UI;\n font-weight: 400;\n font-size: 12px;\n color: var(--kd-lane-container-header-item-color, #333);\n text-align: center;\n font-style: normal;\n text-transform: none;\n margin-bottom: 2px;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .center .paramsData[data-v-5e4488b8] {\n /* 文字不换行,超出显示省略号 */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: Microsoft YaHei UI, Microsoft YaHei UI;\n font-weight: bold;\n font-size: 14px;\n text-align: center;\n font-style: normal;\n text-transform: none;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .right[data-v-5e4488b8] {\n position: absolute;\n right: 2px;\n bottom: 2px;\n}\n.kd-lane-chart-container-header-item .kd-lane-chart-container-text-container .gradient-display[data-v-5e4488b8] {\n position: absolute;\n height: 2px;\n left: 0;\n bottom: 0;\n right: 0;\n}";
|
|
6721
6749
|
styleInject(css_248z$4);
|
|
6722
6750
|
|
|
6723
6751
|
/* script */
|
|
@@ -6742,15 +6770,9 @@ var __vue_render__$3 = function () {
|
|
|
6742
6770
|
_c("span", { staticClass: "left" }, [_vm._v(_vm._s(_vm.line.min))]),
|
|
6743
6771
|
_vm._v(" "),
|
|
6744
6772
|
_c("div", { staticClass: "center" }, [
|
|
6745
|
-
_c(
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
staticClass: "paramsTitle",
|
|
6749
|
-
style:
|
|
6750
|
-
_vm.formCache.displayType == "float" ? "font-size: 14px;" : "",
|
|
6751
|
-
},
|
|
6752
|
-
[_vm._v(_vm._s(_vm.getParamName(_vm.line)))]
|
|
6753
|
-
),
|
|
6773
|
+
_c("div", { staticClass: "paramsTitle" }, [
|
|
6774
|
+
_vm._v(_vm._s(_vm.getParamName(_vm.line))),
|
|
6775
|
+
]),
|
|
6754
6776
|
_vm._v(" "),
|
|
6755
6777
|
_c("div", { staticClass: "paramsData" }, [
|
|
6756
6778
|
_vm._v(_vm._s(_vm.getCurrentData())),
|
|
@@ -6773,7 +6795,7 @@ __vue_render__$3._withStripped = true;
|
|
|
6773
6795
|
/* style */
|
|
6774
6796
|
const __vue_inject_styles__$3 = undefined;
|
|
6775
6797
|
/* scoped */
|
|
6776
|
-
const __vue_scope_id__$3 = "data-v-
|
|
6798
|
+
const __vue_scope_id__$3 = "data-v-5e4488b8";
|
|
6777
6799
|
/* module identifier */
|
|
6778
6800
|
const __vue_module_identifier__$3 = undefined;
|
|
6779
6801
|
/* functional template */
|
|
@@ -6943,6 +6965,8 @@ var script$2 = {
|
|
|
6943
6965
|
resizeTimeout: null,
|
|
6944
6966
|
// 用于缓存车道头部宽度,避免无限循环
|
|
6945
6967
|
headerWidthCache: {},
|
|
6968
|
+
// 上次触发 visibleDataChange 的参数,用于比较是否发生变化
|
|
6969
|
+
lastVisibleDataChangeParams: null,
|
|
6946
6970
|
};
|
|
6947
6971
|
},
|
|
6948
6972
|
created() {
|
|
@@ -6961,10 +6985,10 @@ var script$2 = {
|
|
|
6961
6985
|
window.addEventListener("keyup", this.handleKeyUp);
|
|
6962
6986
|
window.addEventListener("mousemove", this.resize);
|
|
6963
6987
|
window.addEventListener("mouseup", this.stopResize);
|
|
6964
|
-
// 初始化大小变化监听器
|
|
6965
|
-
this.initResizeObserver();
|
|
6966
6988
|
// 初始化tooltip显示隐藏
|
|
6967
6989
|
this.showTooltip = this.formCache.displayType == "float";
|
|
6990
|
+
// 初始化大小变化监听器
|
|
6991
|
+
this.initResizeObserver();
|
|
6968
6992
|
},
|
|
6969
6993
|
beforeDestroy() {
|
|
6970
6994
|
window.removeEventListener("keydown", this.handleKeyDown);
|
|
@@ -7254,7 +7278,6 @@ var script$2 = {
|
|
|
7254
7278
|
console.warn("depth字段非有效数字,无法判断触底");
|
|
7255
7279
|
return false;
|
|
7256
7280
|
}
|
|
7257
|
-
console.log(latestIndex, "latestIndex", this.realTimeData.length - (latestIndex + this.windowSize * 0.1));
|
|
7258
7281
|
const isReachBottom = this.realTimeData.length - (latestIndex + this.windowSize * 0.1) <= 1;
|
|
7259
7282
|
if (isReachBottom) {
|
|
7260
7283
|
this.startIndex = this.realTimeData.length - this.windowSize > 0 ? this.realTimeData.length - this.windowSize : 0;
|
|
@@ -7263,6 +7286,7 @@ var script$2 = {
|
|
|
7263
7286
|
},
|
|
7264
7287
|
|
|
7265
7288
|
handleWheel(e) {
|
|
7289
|
+
if (this.isScrollingToHeader(e)) return;
|
|
7266
7290
|
e.preventDefault();
|
|
7267
7291
|
const dataLength = (this.realTimeData && this.realTimeData.length) || 0;
|
|
7268
7292
|
this.wheelDelta = Math.sign(e.deltaY);
|
|
@@ -7298,7 +7322,6 @@ var script$2 = {
|
|
|
7298
7322
|
this.smoothRender();
|
|
7299
7323
|
},
|
|
7300
7324
|
smoothRender() {
|
|
7301
|
-
console.log("smoothRender");
|
|
7302
7325
|
cancelAnimationFrame(this.animationId);
|
|
7303
7326
|
const animate = () => {
|
|
7304
7327
|
const lerp = 0.5; // ⭐ 手感关键参数
|
|
@@ -7364,7 +7387,7 @@ var script$2 = {
|
|
|
7364
7387
|
const headerKey = entry.target.textContent || entry.target.innerText || "unknown";
|
|
7365
7388
|
const currentWidth = entry.contentRect.width;
|
|
7366
7389
|
const cachedWidth = this.headerWidthCache[headerKey];
|
|
7367
|
-
|
|
7390
|
+
|
|
7368
7391
|
// 只有当宽度实际变化时才触发
|
|
7369
7392
|
if (cachedWidth === undefined || Math.abs(currentWidth - cachedWidth) > 1) {
|
|
7370
7393
|
this.headerWidthCache[headerKey] = currentWidth;
|
|
@@ -7433,7 +7456,7 @@ var script$2 = {
|
|
|
7433
7456
|
data.lineSort = event.added.newIndex ?? 0;
|
|
7434
7457
|
this.dragUpdateLine(data).then(() => {
|
|
7435
7458
|
let promises = lane.lines.map((lines, index) => {
|
|
7436
|
-
lines.lineSort = index;
|
|
7459
|
+
lines.lineSort = index + 1;
|
|
7437
7460
|
return this.dragUpdateLine(lines);
|
|
7438
7461
|
});
|
|
7439
7462
|
Promise.all(promises).then(() => {
|
|
@@ -7449,7 +7472,7 @@ var script$2 = {
|
|
|
7449
7472
|
currentLanes.forEach((lane) => {
|
|
7450
7473
|
if (lane.laneId == data.laneId) {
|
|
7451
7474
|
let promises = lane.lines.map((lines, index) => {
|
|
7452
|
-
lines.lineSort = index;
|
|
7475
|
+
lines.lineSort = index + 1;
|
|
7453
7476
|
return this.dragUpdateLine(lines);
|
|
7454
7477
|
});
|
|
7455
7478
|
Promise.all(promises).then(() => {
|
|
@@ -7884,6 +7907,12 @@ var script$2 = {
|
|
|
7884
7907
|
event.stopPropagation();
|
|
7885
7908
|
this.$refs.vueSimpleContextMenu.showMenu(event, item);
|
|
7886
7909
|
},
|
|
7910
|
+
hiddenContextMenu() {
|
|
7911
|
+
const ctxRef = this.$refs.vueSimpleContextMenu;
|
|
7912
|
+
if (ctxRef) {
|
|
7913
|
+
ctxRef.hideContextMenu();
|
|
7914
|
+
}
|
|
7915
|
+
},
|
|
7887
7916
|
optionClicked(event) {
|
|
7888
7917
|
const { option, item } = event;
|
|
7889
7918
|
this.contextItem = item;
|
|
@@ -7952,25 +7981,8 @@ var script$2 = {
|
|
|
7952
7981
|
this.laneWidthOverrides = {};
|
|
7953
7982
|
}
|
|
7954
7983
|
this.$emit("template-change", this.currentTemplate);
|
|
7955
|
-
this.reobserveHeaders();
|
|
7956
7984
|
this.updateLanesChartOption();
|
|
7957
7985
|
},
|
|
7958
|
-
getFirstDataIndexItem(seriesData) {
|
|
7959
|
-
// 入参校验:确保是数组且非空
|
|
7960
|
-
if (!Array.isArray(seriesData) || seriesData.length === 0) {
|
|
7961
|
-
return null;
|
|
7962
|
-
}
|
|
7963
|
-
|
|
7964
|
-
// 遍历数组,找到第一个包含 dataIndex 的项
|
|
7965
|
-
for (const item of seriesData) {
|
|
7966
|
-
if (typeof item.dataIndex !== "undefined" && item.dataIndex !== null) {
|
|
7967
|
-
return item;
|
|
7968
|
-
}
|
|
7969
|
-
}
|
|
7970
|
-
|
|
7971
|
-
// 无匹配项返回 null
|
|
7972
|
-
return null;
|
|
7973
|
-
},
|
|
7974
7986
|
getDefaultLaneChartOption() {
|
|
7975
7987
|
const option = {
|
|
7976
7988
|
backgroundColor: getCssVariable("--kd-lane-container-item-bg"),
|
|
@@ -8011,7 +8023,7 @@ var script$2 = {
|
|
|
8011
8023
|
],
|
|
8012
8024
|
yAxis: [
|
|
8013
8025
|
{
|
|
8014
|
-
type: "value",
|
|
8026
|
+
type: this.formCache.axisType == "time" ? "value" : "category",
|
|
8015
8027
|
inverse: true,
|
|
8016
8028
|
boundaryGap: false,
|
|
8017
8029
|
scale: true,
|
|
@@ -8062,37 +8074,18 @@ var script$2 = {
|
|
|
8062
8074
|
formatter: (params) => {
|
|
8063
8075
|
if (this.formCache.displayType == "header") {
|
|
8064
8076
|
let dataIndexItem = (params.seriesData && params.seriesData[0] && params.seriesData[0].dataIndex) || null;
|
|
8065
|
-
// let dataIndexItem = this.getFirstDataIndexItem(params.seriesData);
|
|
8066
8077
|
if (dataIndexItem !== null) {
|
|
8067
8078
|
this.headerData = this.visibleData[dataIndexItem];
|
|
8068
|
-
// this.headerData = this.visibleData[dataIndexItem.dataIndex];
|
|
8069
8079
|
} else {
|
|
8070
8080
|
this.headerData = {};
|
|
8071
8081
|
}
|
|
8072
8082
|
}
|
|
8083
|
+
// 时间轴模式:格式化时间戳为可读时间
|
|
8073
8084
|
if (this.formCache.axisType == "time") {
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
return params.value.toString();
|
|
8085
|
+
// 需要显示年月日时分秒
|
|
8086
|
+
return this.timestampToYMDHMS(params.value);
|
|
8077
8087
|
}
|
|
8078
|
-
|
|
8079
|
-
// // 时间轴模式:params.value 是时间戳
|
|
8080
|
-
// this.headerData =
|
|
8081
|
-
// this.visibleData.find(
|
|
8082
|
-
// (item) =>
|
|
8083
|
-
// this.toMillisecondTimestamp(item && item[this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]]) == params.value,
|
|
8084
|
-
// ) || {};
|
|
8085
|
-
// } else {
|
|
8086
|
-
// this.headerData =
|
|
8087
|
-
// this.visibleData.find((item) => item && item[this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]] == params.value) ||
|
|
8088
|
-
// {};
|
|
8089
|
-
// }
|
|
8090
|
-
// }
|
|
8091
|
-
// // 时间轴模式:格式化时间戳为可读时间
|
|
8092
|
-
// if (this.formCache.axisType == "time") {
|
|
8093
|
-
// return this.timestampToHms(params.value);
|
|
8094
|
-
// }
|
|
8095
|
-
// return params.value;
|
|
8088
|
+
return params.value;
|
|
8096
8089
|
},
|
|
8097
8090
|
},
|
|
8098
8091
|
},
|
|
@@ -8104,7 +8097,6 @@ var script$2 = {
|
|
|
8104
8097
|
color: getCssVariable("---default-text-color"),
|
|
8105
8098
|
},
|
|
8106
8099
|
formatter: (series) => {
|
|
8107
|
-
// 根据seriesName去重,保留数值最大的项,或者在有缺失值时保留缺失值的项
|
|
8108
8100
|
const uniqueSeries = series
|
|
8109
8101
|
.filter((item) => item.seriesName !== "helper")
|
|
8110
8102
|
.reduce((acc, current) => {
|
|
@@ -8160,20 +8152,21 @@ var script$2 = {
|
|
|
8160
8152
|
const outerDiv = document.createElement("div");
|
|
8161
8153
|
uniqueSeries.forEach((params) => {
|
|
8162
8154
|
const { seriesName, value, color } = params;
|
|
8155
|
+
if (seriesName == "helper") return;
|
|
8163
8156
|
const innerDiv = document.createElement("div");
|
|
8164
8157
|
innerDiv.style = "display: flex; align-items: center;";
|
|
8165
8158
|
const markerDiv = document.createElement("div");
|
|
8166
8159
|
markerDiv.style = `height: 10px; width:10px;font-size:10px; border-radius:8px; gap: 5px; background-color:${color}`;
|
|
8167
8160
|
const textSpan = document.createElement("span");
|
|
8168
8161
|
let xValue = value;
|
|
8169
|
-
//
|
|
8170
|
-
if (Array.isArray(value)) {
|
|
8162
|
+
// 时间轴模式:value 是 [x, y] 格式,取 x 值
|
|
8163
|
+
if (this.formCache.axisType == "time" && Array.isArray(value)) {
|
|
8171
8164
|
xValue = value[0];
|
|
8172
8165
|
}
|
|
8173
8166
|
if (xValue == undefined || xValue == null) {
|
|
8174
|
-
textSpan.innerText = `${seriesName}
|
|
8167
|
+
textSpan.innerText = `${seriesName}:--`;
|
|
8175
8168
|
} else {
|
|
8176
|
-
textSpan.innerText = `${seriesName}:${Number(xValue)}`;
|
|
8169
|
+
textSpan.innerText = `${seriesName}:${typeof +xValue === "number" ? Number(Number(xValue).toFixed(2)) : xValue}`;
|
|
8177
8170
|
}
|
|
8178
8171
|
textSpan.style = `margin-left:8px;font-size:12px;`;
|
|
8179
8172
|
innerDiv.appendChild(markerDiv);
|
|
@@ -8203,6 +8196,18 @@ var script$2 = {
|
|
|
8203
8196
|
|
|
8204
8197
|
return `${h}:${m}:${s}`;
|
|
8205
8198
|
},
|
|
8199
|
+
|
|
8200
|
+
timestampToYMDHMS(timestamp) {
|
|
8201
|
+
const date = new Date(timestamp);
|
|
8202
|
+
const h = String(date.getHours()).padStart(2, "0");
|
|
8203
|
+
const m = String(date.getMinutes()).padStart(2, "0");
|
|
8204
|
+
const s = String(date.getSeconds()).padStart(2, "0");
|
|
8205
|
+
const y = date.getFullYear();
|
|
8206
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
8207
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
8208
|
+
return `${y}-${month}-${day} ${h}:${m}:${s}`;
|
|
8209
|
+
},
|
|
8210
|
+
|
|
8206
8211
|
toMillisecondTimestamp(time) {
|
|
8207
8212
|
if (time === null || time === undefined) return Date.now();
|
|
8208
8213
|
let timestamp = new Date(time).getTime();
|
|
@@ -8247,26 +8252,23 @@ var script$2 = {
|
|
|
8247
8252
|
|
|
8248
8253
|
if (!lanes || lanes.length === 0) return;
|
|
8249
8254
|
|
|
8255
|
+
// 深度轴数据
|
|
8250
8256
|
let depthData = [];
|
|
8251
|
-
|
|
8252
|
-
|
|
8257
|
+
// 时间轴数据
|
|
8253
8258
|
let yAxisMin = 0;
|
|
8254
8259
|
let yAxisMax = 0;
|
|
8255
8260
|
|
|
8256
|
-
// 获取当前轴类型的键
|
|
8257
|
-
const axisKey =
|
|
8258
|
-
(this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]) ||
|
|
8259
|
-
(this.formCache.axisType === "time" ? "time" : "depth");
|
|
8260
|
-
|
|
8261
8261
|
if (this.formCache.axisType == "time") {
|
|
8262
8262
|
// 时间轴模式:使用毫秒时间戳
|
|
8263
|
-
timestamps = realTimeData.map((item) =>
|
|
8263
|
+
const timestamps = realTimeData.map((item) =>
|
|
8264
|
+
this.toMillisecondTimestamp(item[this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]]),
|
|
8265
|
+
);
|
|
8264
8266
|
yAxisMin = Math.min(...timestamps);
|
|
8265
8267
|
yAxisMax = Math.max(...timestamps);
|
|
8266
8268
|
} else {
|
|
8267
|
-
depthData = realTimeData.map(
|
|
8268
|
-
|
|
8269
|
-
|
|
8269
|
+
depthData = realTimeData.map(
|
|
8270
|
+
(i) => +i[this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]],
|
|
8271
|
+
);
|
|
8270
8272
|
}
|
|
8271
8273
|
|
|
8272
8274
|
const paramNameMap = {};
|
|
@@ -8317,32 +8319,24 @@ var script$2 = {
|
|
|
8317
8319
|
}
|
|
8318
8320
|
}
|
|
8319
8321
|
} else {
|
|
8320
|
-
|
|
8321
|
-
yAxisMin = yAxisMin - 1;
|
|
8322
|
-
yAxisMax = yAxisMax + 1;
|
|
8323
|
-
}
|
|
8324
|
-
option.yAxis[0].min = yAxisMin;
|
|
8325
|
-
option.yAxis[0].max = yAxisMax;
|
|
8326
|
-
// 深度轴不需要 data 属性
|
|
8327
|
-
delete option.yAxis[0].data;
|
|
8322
|
+
option.yAxis[0].data = depthData;
|
|
8328
8323
|
|
|
8329
8324
|
// 深度轴自适应间隔:根据数据量计算合适的间隔
|
|
8330
|
-
const
|
|
8331
|
-
const dataCount = realTimeData.length;
|
|
8325
|
+
const dataCount = depthData.length;
|
|
8332
8326
|
if (dataCount > 0) {
|
|
8333
8327
|
// 根据数据量设置合适的间隔
|
|
8334
8328
|
if (dataCount < 10) {
|
|
8335
|
-
//
|
|
8336
|
-
option.yAxis[0].interval =
|
|
8329
|
+
// 数据量较少,显示所有标签
|
|
8330
|
+
option.yAxis[0].interval = 0;
|
|
8337
8331
|
} else if (dataCount < 50) {
|
|
8338
8332
|
// 数据量中等
|
|
8339
|
-
option.yAxis[0].interval =
|
|
8333
|
+
option.yAxis[0].interval = Math.floor(dataCount / 10);
|
|
8340
8334
|
} else if (dataCount < 100) {
|
|
8341
8335
|
// 数据量较多
|
|
8342
|
-
option.yAxis[0].interval =
|
|
8336
|
+
option.yAxis[0].interval = Math.floor(dataCount / 15);
|
|
8343
8337
|
} else {
|
|
8344
8338
|
// 数据量很多
|
|
8345
|
-
option.yAxis[0].interval =
|
|
8339
|
+
option.yAxis[0].interval = Math.floor(dataCount / 20);
|
|
8346
8340
|
}
|
|
8347
8341
|
}
|
|
8348
8342
|
}
|
|
@@ -8366,7 +8360,7 @@ var script$2 = {
|
|
|
8366
8360
|
center: { align: "center", fontSize: 12, width: clientWidth },
|
|
8367
8361
|
},
|
|
8368
8362
|
formatter: (value) => {
|
|
8369
|
-
return `{center|${
|
|
8363
|
+
return `{center|${typeof +value === "number" ? Number(Number(value).toFixed(2)) : value}}`;
|
|
8370
8364
|
},
|
|
8371
8365
|
},
|
|
8372
8366
|
});
|
|
@@ -8409,13 +8403,9 @@ var script$2 = {
|
|
|
8409
8403
|
lane &&
|
|
8410
8404
|
lane.lines &&
|
|
8411
8405
|
lane.lines.forEach((lineInfo, lineIndex) => {
|
|
8406
|
+
// if (lineInfo.isUsed === "0") return;
|
|
8412
8407
|
let seriesData = [];
|
|
8413
8408
|
let validData = [];
|
|
8414
|
-
// 获取当前轴类型的键
|
|
8415
|
-
const axisKey =
|
|
8416
|
-
(this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]) ||
|
|
8417
|
-
(this.formCache.axisType === "time" ? "time" : "depth");
|
|
8418
|
-
|
|
8419
8409
|
if (this.formCache.axisType == "time") {
|
|
8420
8410
|
// 时间轴模式:数据格式为 [x, y],其中 y 是时间戳
|
|
8421
8411
|
let currentParam = this.params.find((p) => p.paramId == lineInfo.paramId);
|
|
@@ -8435,7 +8425,7 @@ var script$2 = {
|
|
|
8435
8425
|
}
|
|
8436
8426
|
}
|
|
8437
8427
|
// 返回 [x, y] 格式,y 是时间戳
|
|
8438
|
-
return [value, this.toMillisecondTimestamp(item[
|
|
8428
|
+
return [value, this.toMillisecondTimestamp(item[this.toolBarConfig.axisTypeList[this.formCache.axisType]])];
|
|
8439
8429
|
});
|
|
8440
8430
|
validData = seriesData.filter((v) => Number.isFinite(+v[0]));
|
|
8441
8431
|
} else {
|
|
@@ -8456,10 +8446,9 @@ var script$2 = {
|
|
|
8456
8446
|
});
|
|
8457
8447
|
}
|
|
8458
8448
|
}
|
|
8459
|
-
|
|
8460
|
-
return [value, +item[axisKey]];
|
|
8449
|
+
return value;
|
|
8461
8450
|
});
|
|
8462
|
-
validData = seriesData.filter((v) => Number.isFinite(+v
|
|
8451
|
+
validData = seriesData.filter((v) => Number.isFinite(+v));
|
|
8463
8452
|
}
|
|
8464
8453
|
const { min, max } = this.getXAxisRangeByHeader(lineInfo, validData);
|
|
8465
8454
|
|
|
@@ -8500,9 +8489,9 @@ var script$2 = {
|
|
|
8500
8489
|
baseSeries.markLine = {
|
|
8501
8490
|
symbol: "none",
|
|
8502
8491
|
lineStyle: {
|
|
8503
|
-
color:
|
|
8492
|
+
color: "red",
|
|
8504
8493
|
type: "dashed",
|
|
8505
|
-
width:
|
|
8494
|
+
width: 2,
|
|
8506
8495
|
},
|
|
8507
8496
|
label: {
|
|
8508
8497
|
show: false,
|
|
@@ -8512,13 +8501,13 @@ var script$2 = {
|
|
|
8512
8501
|
},
|
|
8513
8502
|
data: this.markLineData
|
|
8514
8503
|
.map((item, index) => {
|
|
8515
|
-
//
|
|
8504
|
+
// 时间轴模式:将深度值转换为时间戳
|
|
8516
8505
|
const findItem = this.realTimeData.find((d) => d[this.toolBarConfig.axisTypeList[this.formCache.axisType]] == item);
|
|
8517
8506
|
if (findItem) {
|
|
8518
8507
|
if (this.formCache.axisType == "time") {
|
|
8519
8508
|
return { yAxis: this.toMillisecondTimestamp(findItem[this.toolBarConfig.axisTypeList[this.formCache.axisType]]) };
|
|
8520
8509
|
} else {
|
|
8521
|
-
return { yAxis:
|
|
8510
|
+
return { yAxis: findItem[this.toolBarConfig.axisTypeList[this.formCache.axisType]] + "" };
|
|
8522
8511
|
}
|
|
8523
8512
|
} else {
|
|
8524
8513
|
// 精确匹配失败,找到最接近的深度值
|
|
@@ -8552,7 +8541,7 @@ var script$2 = {
|
|
|
8552
8541
|
// ===== 面积图 =====
|
|
8553
8542
|
if (lineInfo.lineType === "area") {
|
|
8554
8543
|
// 只对时间轴模式生效
|
|
8555
|
-
if (seriesData.length > 0) {
|
|
8544
|
+
if (this.formCache.axisType == "time" && seriesData.length > 0) {
|
|
8556
8545
|
// 找到第一个有效的数据点
|
|
8557
8546
|
const firstValidPoint = seriesData.find((point) => Number.isFinite(+point[0]));
|
|
8558
8547
|
if (firstValidPoint) {
|
|
@@ -8588,18 +8577,13 @@ var script$2 = {
|
|
|
8588
8577
|
|
|
8589
8578
|
colors.push(color);
|
|
8590
8579
|
});
|
|
8591
|
-
// 获取当前轴类型的键
|
|
8592
|
-
const axisKey =
|
|
8593
|
-
(this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType]) ||
|
|
8594
|
-
(this.formCache.axisType === "time" ? "time" : "depth");
|
|
8595
|
-
|
|
8596
8580
|
if (series.length > 0 && this.formCache.axisType == "depth") {
|
|
8597
8581
|
let min = Math.max(...lane.lines.map((item) => this.getXAxisRangeByHeader(item).min));
|
|
8598
|
-
//
|
|
8582
|
+
// 兜底
|
|
8599
8583
|
series.unshift({
|
|
8600
8584
|
name: "helper",
|
|
8601
8585
|
type: "line",
|
|
8602
|
-
data: realTimeData.map((
|
|
8586
|
+
data: realTimeData.map(() => min),
|
|
8603
8587
|
lineStyle: {
|
|
8604
8588
|
opacity: 0,
|
|
8605
8589
|
},
|
|
@@ -8612,7 +8596,10 @@ var script$2 = {
|
|
|
8612
8596
|
series.unshift({
|
|
8613
8597
|
name: "helper",
|
|
8614
8598
|
type: "line",
|
|
8615
|
-
data: realTimeData.map((item) => [
|
|
8599
|
+
data: realTimeData.map((item) => [
|
|
8600
|
+
min,
|
|
8601
|
+
this.toMillisecondTimestamp(item[this.toolBarConfig.axisTypeList[this.formCache.axisType]]),
|
|
8602
|
+
]),
|
|
8616
8603
|
lineStyle: {
|
|
8617
8604
|
opacity: 0,
|
|
8618
8605
|
},
|
|
@@ -8637,6 +8624,14 @@ var script$2 = {
|
|
|
8637
8624
|
} catch (e) {
|
|
8638
8625
|
console.error(e);
|
|
8639
8626
|
this.clearEcharts();
|
|
8627
|
+
this.realTimeDataLoading = false;
|
|
8628
|
+
} finally {
|
|
8629
|
+
// 延迟重置标记,给ECharts足够的时间完成渲染
|
|
8630
|
+
setTimeout(() => {
|
|
8631
|
+
this.isUpdatingChart = false;
|
|
8632
|
+
// 图表更新后重新监听车道头部元素
|
|
8633
|
+
this.reobserveHeaders();
|
|
8634
|
+
}, 100);
|
|
8640
8635
|
}
|
|
8641
8636
|
},
|
|
8642
8637
|
async clearEcharts() {
|
|
@@ -8761,15 +8756,81 @@ var script$2 = {
|
|
|
8761
8756
|
const { sortOrder = "asc" } = options;
|
|
8762
8757
|
const newDataArr = Array.isArray(newData) ? newData : [newData];
|
|
8763
8758
|
let resultData = JSON.parse(JSON.stringify(existingData));
|
|
8759
|
+
|
|
8760
|
+
// 检查两个对象是否所有字段都相同
|
|
8761
|
+
const isObjectsEqual = (obj1, obj2) => {
|
|
8762
|
+
const keys1 = Object.keys(obj1);
|
|
8763
|
+
const keys2 = Object.keys(obj2);
|
|
8764
|
+
|
|
8765
|
+
if (keys1.length !== keys2.length) {
|
|
8766
|
+
return false;
|
|
8767
|
+
}
|
|
8768
|
+
|
|
8769
|
+
for (const key of keys1) {
|
|
8770
|
+
if (obj1[key] !== obj2[key]) {
|
|
8771
|
+
return false;
|
|
8772
|
+
}
|
|
8773
|
+
}
|
|
8774
|
+
|
|
8775
|
+
return true;
|
|
8776
|
+
};
|
|
8777
|
+
|
|
8764
8778
|
newDataArr.forEach((newItem) => {
|
|
8765
8779
|
if (!newItem || !newItem[uniqueKey]) return;
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8780
|
+
|
|
8781
|
+
// 首先根据 uniqueKey 查找匹配项
|
|
8782
|
+
const itemsWithSameKey = resultData.filter((item) => item[uniqueKey] === newItem[uniqueKey]);
|
|
8783
|
+
|
|
8784
|
+
// 检查是否存在完全相同的项
|
|
8785
|
+
const hasExactDuplicate = itemsWithSameKey.some((item) => isObjectsEqual(item, newItem));
|
|
8786
|
+
|
|
8787
|
+
if (hasExactDuplicate) {
|
|
8788
|
+
// 如果存在完全相同的项,则不做操作
|
|
8789
|
+
return;
|
|
8790
|
+
}
|
|
8791
|
+
|
|
8792
|
+
// 如果没有完全相同的项,则添加到结果中
|
|
8793
|
+
resultData.push(newItem);
|
|
8794
|
+
});
|
|
8795
|
+
|
|
8796
|
+
// 去重后排序
|
|
8797
|
+
resultData.sort((a, b) => {
|
|
8798
|
+
const valA = a[uniqueKey];
|
|
8799
|
+
const valB = b[uniqueKey];
|
|
8800
|
+
|
|
8801
|
+
if (typeof valA === "string" && typeof valB === "string") {
|
|
8802
|
+
return sortOrder === "asc" ? valA.localeCompare(valB) : valB.localeCompare(valA);
|
|
8769
8803
|
} else {
|
|
8804
|
+
return sortOrder === "asc" ? valA - valB : valB - valA;
|
|
8805
|
+
}
|
|
8806
|
+
});
|
|
8807
|
+
|
|
8808
|
+
return resultData;
|
|
8809
|
+
},
|
|
8810
|
+
|
|
8811
|
+
// 根据 uniqueKey 去重并排序(只考虑 uniqueKey)
|
|
8812
|
+
deduplicateByUniqueKey(existingData, newData, uniqueKey, options = {}) {
|
|
8813
|
+
// 处理默认配置
|
|
8814
|
+
const { sortOrder = "asc" } = options;
|
|
8815
|
+
const newDataArr = Array.isArray(newData) ? newData : [newData];
|
|
8816
|
+
|
|
8817
|
+
// 合并数据并去重(只根据 uniqueKey)
|
|
8818
|
+
let resultData = JSON.parse(JSON.stringify(existingData));
|
|
8819
|
+
|
|
8820
|
+
// 创建一个 Set 来存储已存在的 uniqueKey
|
|
8821
|
+
const existingKeys = new Set(resultData.map((item) => item[uniqueKey]));
|
|
8822
|
+
|
|
8823
|
+
// 添加新数据(只添加 uniqueKey 不存在的项)
|
|
8824
|
+
newDataArr.forEach((newItem) => {
|
|
8825
|
+
if (!newItem || !newItem[uniqueKey]) return;
|
|
8826
|
+
|
|
8827
|
+
if (!existingKeys.has(newItem[uniqueKey])) {
|
|
8770
8828
|
resultData.push(newItem);
|
|
8829
|
+
existingKeys.add(newItem[uniqueKey]);
|
|
8771
8830
|
}
|
|
8772
8831
|
});
|
|
8832
|
+
|
|
8833
|
+
// 排序
|
|
8773
8834
|
resultData.sort((a, b) => {
|
|
8774
8835
|
const valA = a[uniqueKey];
|
|
8775
8836
|
const valB = b[uniqueKey];
|
|
@@ -9012,7 +9073,7 @@ var script$2 = {
|
|
|
9012
9073
|
const gapCount = Math.max(0, this.lineCount - 1);
|
|
9013
9074
|
return {
|
|
9014
9075
|
...common,
|
|
9015
|
-
height: `${this.lineCount * this.headerItemHeight + this.headerPadding * 2 + gapCount * this.itemGap}px`,
|
|
9076
|
+
height: `${this.lineCount * (this.formCache.displayType == "header" ? this.headerItemHeight : this.headerItemHeight * 0.8) + this.headerPadding * 2 + gapCount * this.itemGap}px`,
|
|
9016
9077
|
"min-height": "60px",
|
|
9017
9078
|
};
|
|
9018
9079
|
}
|
|
@@ -9029,7 +9090,7 @@ var script$2 = {
|
|
|
9029
9090
|
} else {
|
|
9030
9091
|
const gapCount = Math.max(0, this.lineCount - 1);
|
|
9031
9092
|
return {
|
|
9032
|
-
height: `${this.lineCount * this.headerItemHeight + this.headerPadding * 2 + gapCount * this.itemGap}px`,
|
|
9093
|
+
height: `${this.lineCount * (this.formCache.displayType == "header" ? this.headerItemHeight : this.headerItemHeight * 0.8) + this.headerPadding * 2 + gapCount * this.itemGap}px`,
|
|
9033
9094
|
"min-height": "60px",
|
|
9034
9095
|
};
|
|
9035
9096
|
}
|
|
@@ -9088,6 +9149,19 @@ var script$2 = {
|
|
|
9088
9149
|
const firstValue = first && first[axisKey];
|
|
9089
9150
|
const lastValue = last && last[axisKey];
|
|
9090
9151
|
|
|
9152
|
+
const newParams = { firstValue, lastValue, settings: this.formCache };
|
|
9153
|
+
|
|
9154
|
+
// 比较是否与上次触发时的参数相同
|
|
9155
|
+
if (
|
|
9156
|
+
this.lastVisibleDataChangeParams &&
|
|
9157
|
+
this.lastVisibleDataChangeParams.firstValue === firstValue &&
|
|
9158
|
+
this.lastVisibleDataChangeParams.lastValue === lastValue &&
|
|
9159
|
+
JSON.stringify(this.lastVisibleDataChangeParams.settings) === JSON.stringify(newParams.settings)
|
|
9160
|
+
) {
|
|
9161
|
+
return;
|
|
9162
|
+
}
|
|
9163
|
+
|
|
9164
|
+
this.lastVisibleDataChangeParams = newParams;
|
|
9091
9165
|
this.$emit("visibleDataChange", { firstValue, lastValue, settings: this.formCache });
|
|
9092
9166
|
},
|
|
9093
9167
|
immediate: true,
|
|
@@ -9125,7 +9199,7 @@ var script$2 = {
|
|
|
9125
9199
|
if (!Array.isArray(data)) {
|
|
9126
9200
|
data = [data];
|
|
9127
9201
|
}
|
|
9128
|
-
this.realTimeData = this.realTimeData = this.
|
|
9202
|
+
this.realTimeData = this.realTimeData = this.deduplicateByUniqueKey(
|
|
9129
9203
|
this.realTimeData,
|
|
9130
9204
|
data,
|
|
9131
9205
|
this.toolBarConfig.axisTypeList && this.toolBarConfig.axisTypeList[this.formCache.axisType],
|
|
@@ -9152,7 +9226,7 @@ var script$2 = {
|
|
|
9152
9226
|
},
|
|
9153
9227
|
};
|
|
9154
9228
|
|
|
9155
|
-
var css_248z$3 = ".kd-lane-chart-container[data-v-
|
|
9229
|
+
var css_248z$3 = ".kd-lane-chart-container[data-v-27c6a5a2] {\n height: 100%;\n width: 100%;\n overflow: hidden;\n position: relative;\n border: 1px solid var(--kd-lane-container-border-color, #333);\n display: flex;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container[data-v-27c6a5a2] {\n height: 100%;\n min-width: 0;\n z-index: 1;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-resize-handle[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-resize-handle[data-v-27c6a5a2] {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 4px;\n cursor: col-resize;\n z-index: 10;\n background-color: transparent;\n transition: background-color 0.2s;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-resize-handle[data-v-27c6a5a2]:hover,\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-resize-handle[data-v-27c6a5a2]:hover {\n background-color: var(--resizer-bg-color);\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-resize-handle.kd-lane-resize-handle-left[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-resize-handle.kd-lane-resize-handle-left[data-v-27c6a5a2] {\n left: 0;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-resize-handle.kd-lane-resize-handle-right[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-resize-handle.kd-lane-resize-handle-right[data-v-27c6a5a2] {\n right: -2px;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-chart-lane-header[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-chart-lane-header[data-v-27c6a5a2] {\n max-height: 40%;\n overflow: hidden;\n z-index: 2;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2] {\n display: flex;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2] ::-webkit-scrollbar,\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2] ::-webkit-scrollbar {\n display: none;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2],\n.kd-lane-chart-container .kd-lane-chart-lane-slot-container .kd-lane-chart-lane-header .header-list-gap[data-v-27c6a5a2] {\n flex-direction: column;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container-echart[data-v-27c6a5a2] {\n flex: 1;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n.kd-lane-chart-container .kd-lane-chart-lane-container-echart .kd-lane-chart-lane-container-echart-content[data-v-27c6a5a2] {\n height: 100%;\n overflow: hidden;\n}\n.kd-lane-chart-container .border-left[data-v-27c6a5a2] {\n border-left: 1px solid var(--kd-lane-container-border-color, #333);\n}\n.kd-lane-chart-container .border-bottom[data-v-27c6a5a2] {\n border-bottom: 1px solid var(--kd-lane-container-border-color, #333);\n}\n.kd-lane-chart-container .border-right[data-v-27c6a5a2] {\n border-right: 1px solid var(--kd-lane-container-border-color, #333);\n}\n.kd-lane-chart-container .kd-lane-chart-container-draw-area[data-v-27c6a5a2] {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 3;\n border: none;\n}";
|
|
9156
9230
|
styleInject(css_248z$3);
|
|
9157
9231
|
|
|
9158
9232
|
/* script */
|
|
@@ -9217,7 +9291,8 @@ var __vue_render__$2 = function () {
|
|
|
9217
9291
|
_c(
|
|
9218
9292
|
"div",
|
|
9219
9293
|
{
|
|
9220
|
-
staticClass:
|
|
9294
|
+
staticClass:
|
|
9295
|
+
"kd-lane-chart-lane-header header-content-area",
|
|
9221
9296
|
class: { "border-bottom": true },
|
|
9222
9297
|
style: _vm.slotHeaderStyle,
|
|
9223
9298
|
},
|
|
@@ -9326,7 +9401,8 @@ var __vue_render__$2 = function () {
|
|
|
9326
9401
|
_c(
|
|
9327
9402
|
"draggable",
|
|
9328
9403
|
{
|
|
9329
|
-
staticClass:
|
|
9404
|
+
staticClass:
|
|
9405
|
+
"header-list-gap header-content-area",
|
|
9330
9406
|
style: { gap: _vm.itemGap + "px" },
|
|
9331
9407
|
attrs: {
|
|
9332
9408
|
animation: 200,
|
|
@@ -9481,7 +9557,6 @@ var __vue_render__$2 = function () {
|
|
|
9481
9557
|
_c(
|
|
9482
9558
|
"el-dialog",
|
|
9483
9559
|
{
|
|
9484
|
-
staticClass: "function-control-panel-dialog",
|
|
9485
9560
|
attrs: { title: "泳道模板设置", visible: _vm.curveConfigVisible },
|
|
9486
9561
|
on: {
|
|
9487
9562
|
"update:visible": function ($event) {
|
|
@@ -9520,7 +9595,7 @@ __vue_render__$2._withStripped = true;
|
|
|
9520
9595
|
/* style */
|
|
9521
9596
|
const __vue_inject_styles__$2 = undefined;
|
|
9522
9597
|
/* scoped */
|
|
9523
|
-
const __vue_scope_id__$2 = "data-v-
|
|
9598
|
+
const __vue_scope_id__$2 = "data-v-27c6a5a2";
|
|
9524
9599
|
/* module identifier */
|
|
9525
9600
|
const __vue_module_identifier__$2 = undefined;
|
|
9526
9601
|
/* functional template */
|
|
@@ -9817,6 +9892,11 @@ var script = {
|
|
|
9817
9892
|
},
|
|
9818
9893
|
|
|
9819
9894
|
methods: {
|
|
9895
|
+
hiddenContextMenu() {
|
|
9896
|
+
if (this.$refs.chartContainer) {
|
|
9897
|
+
this.$refs.chartContainer.hiddenContextMenu();
|
|
9898
|
+
}
|
|
9899
|
+
},
|
|
9820
9900
|
dialogFunction(data) {
|
|
9821
9901
|
if (data.type === 1) {
|
|
9822
9902
|
// 井深段
|
|
@@ -10083,13 +10163,20 @@ var script = {
|
|
|
10083
10163
|
},
|
|
10084
10164
|
deep: true,
|
|
10085
10165
|
},
|
|
10166
|
+
themeName:{
|
|
10167
|
+
handler(newVal){
|
|
10168
|
+
document.body.setAttribute("data-theme", newVal);
|
|
10169
|
+
},
|
|
10170
|
+
deep:true,
|
|
10171
|
+
immediate:true
|
|
10172
|
+
}
|
|
10086
10173
|
},
|
|
10087
10174
|
};
|
|
10088
10175
|
|
|
10089
10176
|
var css_248z$1 = "@charset \"UTF-8\";\n[data-theme=dark] {\n --bg-color: #1e1e1e;\n --card-color: #252526;\n --card-border-color: #4b4b4b;\n --card-label-color: #d6d6d6;\n --card-value-color: #ffffff;\n --panel-item-bg-color: #1e1e1e;\n --resizer-bg-color: rgb(177, 177, 177, 0.4);\n --panel-item-border-color: #4b4b4b;\n --default-text-color: #ffffff;\n --radio-border-color: #4b4b4b;\n --radio-checked-border-color: #f86c59;\n --radio-checked-color: #f86c59;\n --radio-checked-text-color: #ffffff;\n --radio-checked-border-color: #f86c59;\n --split-line-color: #4b4b4b;\n /* 边框颜色 */\n --border-color: #4b4b4b;\n --label-float-bg-color: rgba(255, 255, 255, 0.1);\n --slider-gradient-start: #333333;\n --slider-gradient-end: #656668;\n --slider-gradient-color: linear-gradient(0deg, #333333 0%, #656668 100%);\n --slider-content-color: #f86c59;\n --tooltip-bg-color: rgb(51, 51, 51,0.8);\n --kd-lane-container-border-color: #4b4b4b;\n --kd-lane-container-header-item-color: #ffffff;\n --kd-lane-container-header-item-warning-color: rgba(248, 108, 89, 0.6);\n --kd-lane-container-header-bg: #333333;\n --kd-lane-container-item-bg: #252526;\n --kd-lane-container-item-line-color: #4b4b4b66;\n --select-hover-bg-color: #333333;\n --select-selected-text-color: #ffcc33;\n --dialog-header: #333333;\n --dialog-button-default: #252526;\n --dialog-button-disabled-text: #ffffff;\n --in-range-text-color: #ffffff;\n --dialog-tree-text-color: #ffffff;\n}\n[data-theme=white] {\n --bg-color: #ffffff;\n --card-color: #ffffff;\n --card-border-color: #C9C9C9;\n --card-label-color: #666666;\n --card-value-color: #333333;\n --panel-item-bg-color: #ffffff;\n --resizer-bg-color: rgb(177, 177, 177,.4);\n --panel-item-border-color: #C9C9C9;\n --default-text-color: #333333;\n --radio-border-color: #C9C9C9;\n --radio-checked-border-color: #EC4521;\n --radio-checked-color: #EC4521;\n --radio-checked-text-color: #000000;\n --radio-checked-border-color: #EC4521;\n --split-line-color: #C9C9C9;\n /* 边框颜色 */\n --border-color: #C9C9C9;\n --label-float-bg-color: rgba(27, 79, 217, 0.1);\n --slider-gradient-start: #B0C2F5;\n --slider-gradient-end: #DBE5FF;\n --slider-gradient-color: linear-gradient(0deg, #B0C2F5 0%, #DBE5FF 100%);\n --slider-content-color: #EC4521;\n --tooltip-bg-color: rgba(246, 247, 248, 0.8);\n --kd-lane-container-border-color: #C9C9C9;\n --kd-lane-container-header-item-color: #333333;\n --kd-lane-container-header-item-warning-color: rgba(200, 23, 29, 0.6);\n --kd-lane-container-header-bg: #ecf4ff;\n --kd-lane-container-item-bg: #eff3ff;\n --kd-lane-container-item-line-color: #dddddd;\n --select-hover-bg-color: #E0E9FE;\n --select-selected-text-color: #1B4FD9;\n --dialog-header:#1B4FD9;\n --dialog-header-text-color: #ffffff;\n --dialog-button-default:#ffffff;\n --dialog-button-disabled-text: #FFFFFF;\n --in-range-text-color: #ffffff;\n --dialog-tree-text-color: #ffffff;\n}\n[data-theme=gray] {\n --bg-color: #ffffff;\n --card-color: #f6f7f8;\n --card-border-color: #b1b1b1;\n --card-label-color: #666666;\n --card-value-color: #333333;\n --panel-item-bg-color: #ffffff;\n --resizer-bg-color: rgb(177, 177, 177,.4);\n --panel-item-border-color: #b1b1b1;\n --default-text-color: #333333;\n --radio-border-color: #b1b1b1;\n --radio-checked-border-color: #f86c59;\n --radio-checked-color: #f86c59;\n --radio-checked-text-color: #000000;\n --radio-checked-border-color: #f86c59;\n --split-line-color: #b1b1b1;\n /* 边框颜色 */\n --border-color: #b1b1b1;\n --label-float-bg-color: rgba(128, 128, 128, 0.1);\n --slider-gradient-start: #a6a6a6;\n --slider-gradient-end: #dfdfdf;\n --slider-gradient-color: linear-gradient(0deg, #a6a6a6 0%, #dfdfdf 100%);\n --slider-content-color: #f86c59;\n --tooltip-bg-color: rgba(246, 247, 248, 0.8);\n --kd-lane-container-border-color: #b1b1b1;\n --kd-lane-container-header-item-color: #333333;\n --kd-lane-container-header-item-warning-color: rgba(177, 42, 39,0.6);\n --kd-lane-container-header-bg: #eeeeee;\n --kd-lane-container-item-bg: #f6f7f8;\n --kd-lane-container-item-line-color: #dddddd;\n --select-hover-bg-color: #dfdfdf;\n --select-selected-text-color: #ffcc33;\n --dialog-header:#EBEBEB;\n --dialog-button-default:#f6f7f8;\n --dialog-button-disabled-text: #ffffff;\n --in-range-text-color: #333333;\n --dialog-tree-text-color: #333333;\n}\n\n/* 下拉框 */\n.kd-curve-2d-select-popup {\n background: var(--bg-color) !important;\n border: 1px solid var(--border-color) !important;\n /* 列表容器(关键) */\n}\n.kd-curve-2d-select-popup .el-scrollbar__wrap {\n margin-bottom: 0 !important;\n margin-right: 0 !important;\n background: var(--bg-color) !important;\n /* 隐藏滚动条 */\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n.kd-curve-2d-select-popup .el-scrollbar__wrap::-webkit-scrollbar {\n display: none;\n}\n.kd-curve-2d-select-popup {\n /* 每一项(默认) */\n}\n.kd-curve-2d-select-popup .el-select-dropdown__item {\n background: var(--bg-color) !important;\n color: var(--default-text-color) !important;\n /* hover */\n}\n.kd-curve-2d-select-popup .el-select-dropdown__item.hover, .kd-curve-2d-select-popup .el-select-dropdown__item:hover {\n background: var(--select-hover-bg-color) !important;\n color: var(--default-text-color) !important;\n}\n.kd-curve-2d-select-popup .el-select-dropdown__item.selected {\n background: var(--bg-color) !important; /* 不要灰色 */\n color: var(--select-selected-text-color) !important; /* 高亮文字(可选) */\n font-weight: bold;\n}\n.kd-curve-2d-select-popup .el-select-dropdown__item.selected.hover, .kd-curve-2d-select-popup .el-select-dropdown__item.selected:hover {\n background: var(--select-hover-bg-color) !important;\n}\n.kd-curve-2d-select-popup {\n /* 三角箭头 */\n}\n.kd-curve-2d-select-popup[x-placement^=bottom] .popper__arrow {\n border-bottom-color: var(--border-color) !important;\n}\n.kd-curve-2d-select-popup[x-placement^=bottom] .popper__arrow::after {\n border-bottom-color: var(--bg-color) !important;\n}\n.kd-curve-2d-select-popup[x-placement^=top] .popper__arrow {\n border-top-color: var(--border-color) !important;\n}\n.kd-curve-2d-select-popup[x-placement^=top] .popper__arrow::after {\n border-top-color: var(--bg-color) !important;\n}\n.kd-curve-2d-select-popup .el-time-panel {\n background: var(--bg-color) !important;\n box-shadow: 0 2px 12px 0 transparent;\n border: 1px solid var(--border-color);\n}\n.kd-curve-2d-select-popup .el-time-panel .el-time-panel__btn {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-time-panel .el-time-spinner__item {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-time-panel .el-time-spinner__item.active:not(.disabled) {\n color: var(--select-selected-text-color);\n font-weight: bold;\n}\n.kd-curve-2d-select-popup .el-time-panel .el-time-panel__footer {\n border-top: 1px solid var(--border-color);\n}\n.kd-curve-2d-select-popup .el-time-panel .el-time-spinner__item:hover:not(.disabled):not(.active) {\n background: var(--select-hover-bg-color);\n}\n.kd-curve-2d-select-popup .el-color-picker__trigger {\n border: 1px solid var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-color-picker__panel {\n background: var(--bg-color) !important;\n border: 1px solid var(--dialog-header);\n border-radius: 0px;\n}\n.kd-curve-2d-select-popup .el-color-picker__panel .el-button--text {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-color-picker__panel .el-button--default {\n background: var(--dialog-button-default);\n color: var(--default-text-color);\n border: none;\n border-radius: 0px;\n}\n.kd-curve-2d-select-popup .el-color-picker__panel .el-button.is-plain:hover {\n background: var(--dialog-button-default);\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper {\n background: var(--bg-color);\n border: 1px solid var(--dialog-header);\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-input__inner {\n background: var(--bg-color) !important;\n border: 1px solid var(--border-color) !important;\n color: var(--text-color) !important;\n height: 32px !important;\n line-height: 32px !important;\n box-sizing: border-box;\n border-radius: 0px;\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-picker__header-label {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-picker__header-label:hover {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-range-picker__time-header > .el-icon-arrow-right {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-button--text {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-picker-panel__icon-btn {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-range-picker__time-header {\n border-bottom: 1px solid var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-range-picker__content.is-left {\n border-right: 1px solid var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table th {\n border-bottom: 1px solid var(--dialog-header);\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.today span {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.available:hover {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.next-month,\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.prev-month {\n color: var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.available {\n color: var(--default-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.available.in-range {\n color: var(--in-range-text-color) !important;\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.end-date span,\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.start-date span {\n background: var(--select-selected-text-color);\n}\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.in-range div,\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table td.in-range div:hover,\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table.is-week-mode .el-date-table__row.current div,\n.kd-curve-2d-select-popup .el-picker-panel__body-wrapper .el-date-table.is-week-mode .el-date-table__row:hover div {\n background: var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-picker-panel__footer {\n background: var(--bg-color);\n border-top: 1px solid var(--dialog-header);\n}\n.kd-curve-2d-select-popup .el-picker-panel__footer .el-button--default {\n background: var(--dialog-button-default);\n color: var(--default-text-color);\n border: none;\n border-radius: 0px;\n}\n.kd-curve-2d-select-popup .el-picker-panel__footer .el-button.is-disabled.is-plain,\n.kd-curve-2d-select-popup .el-picker-panel__footer .el-button.is-disabled.is-plain:focus,\n.kd-curve-2d-select-popup .el-picker-panel__footer .el-button.is-disabled.is-plain:hover {\n background: var(--dialog-button-default);\n color: var(--dialog-button-disabled-text);\n}\n.kd-curve-2d-select-popup .el-picker-panel__footer .el-button.is-disabled.is-plain {\n background: var(--dialog-button-default);\n color: var(--dialog-button-disabled-text) !important;\n}\n.kd-curve-2d-select-popup .el-popper[x-placement^=bottom] .popper__arrow::after {\n border-bottom-color: var(--bg-color) !important;\n}\n.kd-curve-2d-container {\n /* radio 自定义样式 */\n}\n.kd-curve-2d-container .el-radio {\n display: flex;\n align-items: center;\n vertical-align: middle;\n color: var(--radio-default-text-color);\n font-family: Microsoft YaHei UI, Microsoft YaHei UI;\n font-size: 14px;\n}\n.kd-curve-2d-container .el-radio__inner {\n width: 14px;\n height: 14px;\n background: transparent;\n border: 1px solid var(--radio-border-color);\n}\n.kd-curve-2d-container .el-radio__input.is-checked .el-radio__inner {\n border-color: var(--radio-checked-border-color);\n background: transparent;\n}\n.kd-curve-2d-container .el-radio__input.is-disabled .el-radio__inner {\n background-color: transparent;\n border-color: var(--radio-border-color);\n}\n.kd-curve-2d-container .el-radio__inner::after {\n width: 7px;\n height: 7px;\n background: var(--radio-checked-color);\n}\n.kd-curve-2d-container .el-radio.is-checked .el-radio__label {\n color: var(--radio-checked-text-color);\n font-weight: bold;\n}\n.kd-curve-2d-container {\n /* select */\n}\n.kd-curve-2d-container .el-input__inner {\n background: var(--bg-color) !important;\n border: 1px solid var(--border-color) !important;\n color: var(--text-color) !important;\n height: 32px !important;\n line-height: 32px !important;\n box-sizing: border-box;\n border-radius: 0px;\n}\n.kd-curve-2d-container {\n /* 下拉箭头 */\n}\n.kd-curve-2d-container .el-select .el-input__suffix i {\n display: none !important;\n}\n.kd-curve-2d-container .el-select .el-input__suffix {\n right: 0;\n width: 28px;\n height: 32px !important;\n line-height: 32px !important;\n background: var(--slider-gradient-color);\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid var(--border-color);\n}\n.kd-curve-2d-container .el-select .el-input__suffix::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 6px solid var(--slider-content-color); /* 橙色三角 */\n}\n.kd-curve-2d-container .el-select .el-input__suffix::after {\n transition: transform 0.2s ease;\n}\n.kd-curve-2d-container .el-select .el-input.is-focus .el-input__suffix::after {\n transform: rotate(180deg);\n}\n.kd-curve-2d-container .el-dialog {\n border: 1px solid var(--card-border-color);\n}\n.kd-curve-2d-container .el-dialog .el-form-item__label {\n color: var(--default-text-color);\n font-size: 14px;\n}\n.kd-curve-2d-container .el-dialog .el-dialog__headerbtn {\n top: 11px;\n width: 24px;\n height: 24px;\n background: linear-gradient(270deg, #c73521 0%, #f86c59 100%);\n border-radius: 100px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.kd-curve-2d-container .el-dialog .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n font-size: 14px;\n font-weight: 700;\n}\n.kd-curve-2d-container .el-button {\n border-radius: 0px;\n border: none;\n}\n.kd-curve-2d-container .el-button--primary {\n background-image: linear-gradient(to bottom, #2057ea, #12338d);\n}\n.kd-curve-2d-container .el-button--default {\n background: var(--dialog-button-default);\n color: var(--default-text-color);\n}\n.kd-curve-2d-container .el-button--primary.is-disabled {\n background-image: linear-gradient(to bottom, #2f5ede, #1e3677);\n color: var(--dialog-button-disabled-text);\n}\n.kd-curve-2d-container .el-tabs .el-tabs__nav-wrap::after {\n background-color: var(--card-border-color);\n}\n.kd-curve-2d-container .el-tabs .el-tabs__item {\n color: var(--default-text-color);\n}\n.kd-curve-2d-container .el-tabs .el-tabs__item.is-active {\n color: var(--select-selected-text-color);\n}\n.kd-curve-2d-container .el-tabs .el-tabs__active-bar {\n background: var(--select-selected-text-color);\n}\n.kd-curve-2d-container .el-tree {\n background: var(--bg-color) !important;\n color: var(--default-text-color);\n font-size: 14px;\n}\n.kd-curve-2d-container .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {\n background: var(--dialog-header) !important;\n color: var(--dialog-tree-text-color);\n}\n.kd-curve-2d-container .el-tree-node__content:hover,\n.kd-curve-2d-container .el-upload-list__item:hover {\n background: var(--dialog-header) !important;\n color: var(--dialog-tree-text-color);\n}\n.kd-curve-2d-container .vue-simple-context-menu__item,\n.kd-curve-2d-container .vue-simple-context-menu__item {\n font-size: 14px !important;\n}\n.kd-curve-2d-container .kd-lane-el-container {\n border: 1px solid var(--card-border-color);\n}\n.kd-curve-2d-container .kd-lane-el-container .rtd-config-side {\n border-right: 1px solid var(--card-border-color);\n}\n.kd-curve-2d-container .el-dialog__header {\n background: var(--dialog-header);\n text-align: center;\n}\n.kd-curve-2d-container .el-dialog__header .el-dialog__title {\n color: var(--dialog-header-text-color);\n}\n.kd-curve-2d-container .el-dialog__header {\n padding: 10px 10px 10px;\n}\n.kd-curve-2d-container .el-dialog__body {\n background: var(--bg-color);\n padding: 30px 30px 10px 30px;\n}\n.kd-curve-2d-container .el-dialog__body .input-number-container .el-input__inner {\n width: calc(100% - 80px) !important;\n margin-left: 40px !important;\n}\n.kd-curve-2d-container .el-dialog__body .el-input__inner {\n color: var(--default-text-color) !important;\n}\n.kd-curve-2d-container .el-dialog__body .el-input-number__decrease,\n.kd-curve-2d-container .el-dialog__body .el-input-number__increase {\n color: var(--default-text-color);\n}\n.kd-curve-2d-container .el-dialog__body .el-input-number__increase {\n background: var(--card-color);\n color: var(--default-text-color);\n border-radius: 0px 0px 0px 0px;\n border: 1px solid var(--card-border-color);\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.kd-curve-2d-container .el-dialog__body .el-input-number__decrease {\n background: var(--card-color);\n border-radius: 0px 0px 0px 0px;\n border: 1px solid var(--card-border-color);\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.kd-curve-2d-container .el-dialog__footer {\n text-align: center;\n background: var(--bg-color);\n}\n.kd-curve-2d-container .el-date-editor {\n background: var(--bg-color) !important;\n}\n.kd-curve-2d-container .el-date-editor .el-range-input {\n background: var(--bg-color) !important;\n border-top: 1px solid var(--border-color) !important;\n border-bottom: 1px solid var(--border-color) !important;\n color: var(--text-color) !important;\n height: 32px !important;\n line-height: 32px !important;\n box-sizing: border-box;\n border-radius: 0px;\n}\n.kd-curve-2d-container .el-date-editor .el-range-separator {\n color: var(--default-text-color);\n}";
|
|
10090
10177
|
styleInject(css_248z$1);
|
|
10091
10178
|
|
|
10092
|
-
var css_248z = "@charset \"UTF-8\";\n.resize-container[data-v-
|
|
10179
|
+
var css_248z = "@charset \"UTF-8\";\n.kd-curve-2d-resize-container[data-v-18d00693] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background: var(--bg-color);\n color: var(--default-text-color);\n overflow: hidden;\n /* 主容器 */\n}\n.kd-curve-2d-resize-container .container[data-v-18d00693] {\n display: flex;\n flex: 1;\n width: 100%;\n overflow: hidden;\n}\n.kd-curve-2d-resize-container[data-v-18d00693] {\n /* 面板通用样式 */\n}\n.kd-curve-2d-resize-container .panel[data-v-18d00693] {\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n flex-shrink: 0;\n background: var(--panel-item-bg-color);\n border: 1px solid var(--panel-item-border-color);\n padding: 8px;\n /* 隐藏滚动条 */\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n.kd-curve-2d-resize-container .panel[data-v-18d00693]::-webkit-scrollbar {\n display: none;\n}\n.kd-curve-2d-resize-container .panel-3[data-v-18d00693] {\n flex: 1;\n min-width: 100px;\n}\n.kd-curve-2d-resize-container[data-v-18d00693] {\n /* 拖拽条样式 */\n}\n.kd-curve-2d-resize-container .resizer[data-v-18d00693] {\n width: 6px;\n cursor: col-resize;\n}\n.kd-curve-2d-resize-container .resizer[data-v-18d00693]:hover {\n background-color: var(--resizer-bg-color);\n transition: background-color 0.2s ease;\n}";
|
|
10093
10180
|
styleInject(css_248z);
|
|
10094
10181
|
|
|
10095
10182
|
/* script */
|
|
@@ -10099,183 +10186,187 @@ var __vue_render__ = function () {
|
|
|
10099
10186
|
var _vm = this;
|
|
10100
10187
|
var _h = _vm.$createElement;
|
|
10101
10188
|
var _c = _vm._self._c || _h;
|
|
10102
|
-
return _c(
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
"DataPanelList",
|
|
10114
|
-
_vm._g(
|
|
10115
|
-
_vm._b({}, "DataPanelList", _vm.$props, false),
|
|
10116
|
-
_vm.$listeners
|
|
10117
|
-
)
|
|
10118
|
-
),
|
|
10119
|
-
],
|
|
10120
|
-
1
|
|
10121
|
-
)
|
|
10122
|
-
: _vm._e(),
|
|
10123
|
-
_vm._v(" "),
|
|
10124
|
-
_vm.showPanel1 && (_vm.showPanel2 || _vm.showPanel3 || _vm.showPanel4)
|
|
10125
|
-
? _c("div", {
|
|
10126
|
-
staticClass: "resizer",
|
|
10127
|
-
on: {
|
|
10128
|
-
mousedown: function (e) {
|
|
10129
|
-
return _vm.startResize(1, e)
|
|
10189
|
+
return _c(
|
|
10190
|
+
"div",
|
|
10191
|
+
{ staticClass: "kd-curve-2d-resize-container kd-curve-2d-container" },
|
|
10192
|
+
[
|
|
10193
|
+
_c("div", { ref: "container", staticClass: "container" }, [
|
|
10194
|
+
_vm.showPanel1
|
|
10195
|
+
? _c(
|
|
10196
|
+
"div",
|
|
10197
|
+
{
|
|
10198
|
+
staticClass: "panel panel-1",
|
|
10199
|
+
style: { width: _vm.panel1Width + "px" },
|
|
10130
10200
|
},
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
depthTimeChartData: _vm.depthTimeChartData,
|
|
10152
|
-
},
|
|
10153
|
-
on: { depthTimeChange: _vm.handleDepthTimeChange },
|
|
10154
|
-
},
|
|
10155
|
-
"DepthTimeChart",
|
|
10156
|
-
_vm.$props,
|
|
10157
|
-
false
|
|
10158
|
-
),
|
|
10159
|
-
_vm.$listeners
|
|
10160
|
-
)
|
|
10161
|
-
),
|
|
10162
|
-
],
|
|
10163
|
-
1
|
|
10164
|
-
)
|
|
10165
|
-
: _vm._e(),
|
|
10166
|
-
_vm._v(" "),
|
|
10167
|
-
_vm.showPanel2 && (_vm.showPanel3 || _vm.showPanel4)
|
|
10168
|
-
? _c("div", {
|
|
10169
|
-
staticClass: "resizer",
|
|
10170
|
-
on: {
|
|
10171
|
-
mousedown: function (e) {
|
|
10172
|
-
return _vm.startResize(2, e)
|
|
10201
|
+
[
|
|
10202
|
+
_c(
|
|
10203
|
+
"DataPanelList",
|
|
10204
|
+
_vm._g(
|
|
10205
|
+
_vm._b({}, "DataPanelList", _vm.$props, false),
|
|
10206
|
+
_vm.$listeners
|
|
10207
|
+
)
|
|
10208
|
+
),
|
|
10209
|
+
],
|
|
10210
|
+
1
|
|
10211
|
+
)
|
|
10212
|
+
: _vm._e(),
|
|
10213
|
+
_vm._v(" "),
|
|
10214
|
+
_vm.showPanel1 && (_vm.showPanel2 || _vm.showPanel3 || _vm.showPanel4)
|
|
10215
|
+
? _c("div", {
|
|
10216
|
+
staticClass: "resizer",
|
|
10217
|
+
on: {
|
|
10218
|
+
mousedown: function (e) {
|
|
10219
|
+
return _vm.startResize(1, e)
|
|
10220
|
+
},
|
|
10173
10221
|
},
|
|
10174
|
-
}
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
},
|
|
10195
|
-
on: {
|
|
10196
|
-
updateScale: _vm.updateScale,
|
|
10197
|
-
visibleDataChange: _vm.visibleDataChange,
|
|
10198
|
-
},
|
|
10222
|
+
})
|
|
10223
|
+
: _vm._e(),
|
|
10224
|
+
_vm._v(" "),
|
|
10225
|
+
_vm.showPanel2
|
|
10226
|
+
? _c(
|
|
10227
|
+
"div",
|
|
10228
|
+
{
|
|
10229
|
+
staticClass: "panel panel-2",
|
|
10230
|
+
style: { width: _vm.panel2Width + "px" },
|
|
10231
|
+
},
|
|
10232
|
+
[
|
|
10233
|
+
_c(
|
|
10234
|
+
"DepthTimeChart",
|
|
10235
|
+
_vm._g(
|
|
10236
|
+
_vm._b(
|
|
10237
|
+
{
|
|
10238
|
+
ref: "depthTimeChart",
|
|
10239
|
+
attrs: {
|
|
10240
|
+
formCache: _vm.formCache,
|
|
10241
|
+
depthTimeChartData: _vm.depthTimeChartData,
|
|
10199
10242
|
},
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10243
|
+
on: { depthTimeChange: _vm.handleDepthTimeChange },
|
|
10244
|
+
},
|
|
10245
|
+
"DepthTimeChart",
|
|
10246
|
+
_vm.$props,
|
|
10247
|
+
false
|
|
10205
10248
|
),
|
|
10206
|
-
|
|
10207
|
-
_vm._l(_vm.headerSlotName, function (lane) {
|
|
10208
|
-
return _c(
|
|
10209
|
-
"template",
|
|
10210
|
-
{ slot: lane.laneId },
|
|
10211
|
-
[_vm._t(lane.laneId)],
|
|
10212
|
-
2
|
|
10213
|
-
)
|
|
10214
|
-
}),
|
|
10215
|
-
_vm._v(" "),
|
|
10216
|
-
_vm._l(_vm.contentSlotName, function (lane) {
|
|
10217
|
-
return _c(
|
|
10218
|
-
"template",
|
|
10219
|
-
{ slot: lane.laneId },
|
|
10220
|
-
[_vm._t(lane.laneId)],
|
|
10221
|
-
2
|
|
10222
|
-
)
|
|
10223
|
-
}),
|
|
10224
|
-
],
|
|
10225
|
-
2
|
|
10249
|
+
_vm.$listeners
|
|
10226
10250
|
)
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10251
|
+
),
|
|
10252
|
+
],
|
|
10253
|
+
1
|
|
10254
|
+
)
|
|
10255
|
+
: _vm._e(),
|
|
10256
|
+
_vm._v(" "),
|
|
10257
|
+
_vm.showPanel2 && (_vm.showPanel3 || _vm.showPanel4)
|
|
10258
|
+
? _c("div", {
|
|
10259
|
+
staticClass: "resizer",
|
|
10260
|
+
on: {
|
|
10261
|
+
mousedown: function (e) {
|
|
10262
|
+
return _vm.startResize(2, e)
|
|
10263
|
+
},
|
|
10239
10264
|
},
|
|
10240
|
-
}
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10265
|
+
})
|
|
10266
|
+
: _vm._e(),
|
|
10267
|
+
_vm._v(" "),
|
|
10268
|
+
_vm.showPanel3
|
|
10269
|
+
? _c(
|
|
10270
|
+
"div",
|
|
10271
|
+
{ staticClass: "panel panel-3" },
|
|
10272
|
+
[
|
|
10273
|
+
_vm.showChartContainer
|
|
10274
|
+
? _c(
|
|
10275
|
+
"chartContainer",
|
|
10276
|
+
_vm._g(
|
|
10277
|
+
_vm._b(
|
|
10278
|
+
{
|
|
10279
|
+
ref: "chartContainer",
|
|
10280
|
+
attrs: {
|
|
10281
|
+
config: _vm.config,
|
|
10282
|
+
formCache: _vm.formCache,
|
|
10283
|
+
cachedCurveDatas: _vm.cachedCurveDatas,
|
|
10284
|
+
},
|
|
10285
|
+
on: {
|
|
10286
|
+
updateScale: _vm.updateScale,
|
|
10287
|
+
visibleDataChange: _vm.visibleDataChange,
|
|
10288
|
+
},
|
|
10289
|
+
},
|
|
10290
|
+
"chartContainer",
|
|
10291
|
+
_vm.$props,
|
|
10292
|
+
false
|
|
10293
|
+
),
|
|
10294
|
+
_vm.$listeners
|
|
10295
|
+
),
|
|
10296
|
+
[
|
|
10297
|
+
_vm._l(_vm.headerSlotName, function (lane) {
|
|
10298
|
+
return _c(
|
|
10299
|
+
"template",
|
|
10300
|
+
{ slot: lane.laneId },
|
|
10301
|
+
[_vm._t(lane.laneId)],
|
|
10302
|
+
2
|
|
10303
|
+
)
|
|
10304
|
+
}),
|
|
10305
|
+
_vm._v(" "),
|
|
10306
|
+
_vm._l(_vm.contentSlotName, function (lane) {
|
|
10307
|
+
return _c(
|
|
10308
|
+
"template",
|
|
10309
|
+
{ slot: lane.laneId },
|
|
10310
|
+
[_vm._t(lane.laneId)],
|
|
10311
|
+
2
|
|
10312
|
+
)
|
|
10313
|
+
}),
|
|
10314
|
+
],
|
|
10315
|
+
2
|
|
10316
|
+
)
|
|
10317
|
+
: _vm._e(),
|
|
10318
|
+
],
|
|
10319
|
+
1
|
|
10320
|
+
)
|
|
10321
|
+
: _vm._e(),
|
|
10322
|
+
_vm._v(" "),
|
|
10323
|
+
_vm.showPanel3 && _vm.showPanel4
|
|
10324
|
+
? _c("div", {
|
|
10325
|
+
staticClass: "resizer",
|
|
10326
|
+
on: {
|
|
10327
|
+
mousedown: function (e) {
|
|
10328
|
+
return _vm.startResize(3, e)
|
|
10329
|
+
},
|
|
10330
|
+
},
|
|
10331
|
+
})
|
|
10332
|
+
: _vm._e(),
|
|
10333
|
+
_vm._v(" "),
|
|
10334
|
+
_vm.showPanel4
|
|
10335
|
+
? _c(
|
|
10336
|
+
"div",
|
|
10337
|
+
{
|
|
10338
|
+
staticClass: "panel panel-4",
|
|
10339
|
+
style: { width: _vm.panel4Width + "px" },
|
|
10340
|
+
},
|
|
10341
|
+
[
|
|
10342
|
+
_c(
|
|
10343
|
+
"FunctionControlPanel",
|
|
10344
|
+
_vm._g(
|
|
10345
|
+
_vm._b(
|
|
10346
|
+
{
|
|
10347
|
+
ref: "functionControlPanel",
|
|
10348
|
+
attrs: { initialFormCache: _vm.initialFormCache },
|
|
10349
|
+
on: {
|
|
10350
|
+
updateForm: _vm.updateForm,
|
|
10351
|
+
jumpToNextMarkLine: _vm.jumpToNextMarkLine,
|
|
10352
|
+
refresh: _vm.refresh,
|
|
10353
|
+
dialogFunction: _vm.dialogFunction,
|
|
10354
|
+
},
|
|
10264
10355
|
},
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
)
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
)
|
|
10276
|
-
|
|
10277
|
-
]
|
|
10278
|
-
|
|
10356
|
+
"FunctionControlPanel",
|
|
10357
|
+
_vm.$props,
|
|
10358
|
+
false
|
|
10359
|
+
),
|
|
10360
|
+
_vm.$listeners
|
|
10361
|
+
)
|
|
10362
|
+
),
|
|
10363
|
+
],
|
|
10364
|
+
1
|
|
10365
|
+
)
|
|
10366
|
+
: _vm._e(),
|
|
10367
|
+
]),
|
|
10368
|
+
]
|
|
10369
|
+
)
|
|
10279
10370
|
};
|
|
10280
10371
|
var __vue_staticRenderFns__ = [];
|
|
10281
10372
|
__vue_render__._withStripped = true;
|
|
@@ -10283,7 +10374,7 @@ __vue_render__._withStripped = true;
|
|
|
10283
10374
|
/* style */
|
|
10284
10375
|
const __vue_inject_styles__ = undefined;
|
|
10285
10376
|
/* scoped */
|
|
10286
|
-
const __vue_scope_id__ = "data-v-
|
|
10377
|
+
const __vue_scope_id__ = "data-v-18d00693";
|
|
10287
10378
|
/* module identifier */
|
|
10288
10379
|
const __vue_module_identifier__ = undefined;
|
|
10289
10380
|
/* functional template */
|