st-comp 0.0.91 → 0.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/components.d.ts +0 -12
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +5 -1
  5. package/es/Dialog.js +711 -45
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +1 -410
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +91 -92
  10. package/es/KlineNew.cjs +1 -1
  11. package/es/KlineNew.js +9 -10
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +104 -106
  14. package/es/Table.cjs +20 -1
  15. package/es/Table.js +4254 -362
  16. package/es/VarietySearch.cjs +1 -1
  17. package/es/VarietySearch.js +1 -2015
  18. package/es/VirtualTable.cjs +2 -2
  19. package/es/VirtualTable.js +254 -249
  20. package/es/base-8aa55db5.js +725 -0
  21. package/es/base-b187e78f.cjs +9 -0
  22. package/es/{el-button-93e0ac7c.js → el-button-9476b767.js} +69 -69
  23. package/es/{el-button-ec16f484.cjs → el-button-ed961332.cjs} +1 -1
  24. package/es/{el-empty-16ceef82.cjs → el-empty-7adcc7f0.cjs} +1 -1
  25. package/es/{el-empty-0c85d9b7.js → el-empty-f4c08c01.js} +3 -3
  26. package/es/{el-scrollbar-9473fd47.cjs → el-scrollbar-586be9bd.cjs} +1 -1
  27. package/es/{el-scrollbar-e17fad47.js → el-scrollbar-ffb7b9c1.js} +43 -43
  28. package/es/el-select-a6cf0236.js +1893 -0
  29. package/es/el-select-eaa79c54.cjs +9 -0
  30. package/es/el-tag-5a8b728a.cjs +1 -0
  31. package/es/{el-tag-9493bdff.js → el-tag-7549c103.js} +119 -126
  32. package/es/{focus-trap-1b2aef75.js → focus-trap-5fc152a0.js} +34 -35
  33. package/es/focus-trap-ea1e7a19.cjs +1 -0
  34. package/es/raf-3a2b250a.js +6 -0
  35. package/es/{raf-c437ab23.cjs → raf-c4bba516.cjs} +1 -1
  36. package/es/{scroll-a80e1458.cjs → scroll-38e17abc.cjs} +1 -1
  37. package/es/{scroll-a928a93e.js → scroll-c6e51ef8.js} +5 -5
  38. package/es/style.css +1 -1
  39. package/es/use-form-item-bd4b9eeb.js +531 -0
  40. package/es/use-form-item-c25c7251.cjs +3 -0
  41. package/es/use-global-config-2d21cd56.js +110 -0
  42. package/es/use-global-config-bce8cdd8.cjs +1 -0
  43. package/es/{vnode-85a610a2.cjs → vnode-40f9df3c.cjs} +1 -1
  44. package/es/{vnode-aa872900.js → vnode-f4b846cb.js} +1 -1
  45. package/es/zh-cn-a61d484e.cjs +1 -0
  46. package/es/{zh-cn-d29347f8.js → zh-cn-e36dfbf4.js} +45 -6
  47. package/lib/bundle.js +1 -1
  48. package/lib/bundle.umd.cjs +141 -141
  49. package/lib/{index-ee45a01a.js → index-4635557b.js} +10896 -10844
  50. package/lib/{python-1c6a2ac7.js → python-aa056c80.js} +1 -1
  51. package/lib/style.css +1 -1
  52. package/package.json +1 -1
  53. package/packages/FactorWarning/index.vue +268 -202
  54. package/src/pages/FactorWarning/index.vue +852 -0
  55. package/es/base-1bc9f12c.js +0 -762
  56. package/es/base-315cbfab.cjs +0 -9
  57. package/es/castArray-f42865a2.js +0 -10
  58. package/es/castArray-f54f6f75.cjs +0 -1
  59. package/es/config-provider-17c85684.cjs +0 -1
  60. package/es/config-provider-c8d3957d.js +0 -46
  61. package/es/el-icon-0ea8fbf8.cjs +0 -1
  62. package/es/el-icon-4ed993c7.js +0 -1
  63. package/es/el-input-29806e42.js +0 -543
  64. package/es/el-input-a8791103.cjs +0 -9
  65. package/es/el-overlay-53eb27a5.js +0 -678
  66. package/es/el-overlay-6d0c5cc3.cjs +0 -5
  67. package/es/el-popover-1d087574.cjs +0 -1
  68. package/es/el-popover-dd66e2c8.js +0 -133
  69. package/es/el-radio-group-46e8f574.cjs +0 -12
  70. package/es/el-radio-group-caebab9d.js +0 -1743
  71. package/es/el-select-64511731.cjs +0 -1
  72. package/es/el-select-ac302f3c.js +0 -1360
  73. package/es/el-table-column-773986c7.cjs +0 -20
  74. package/es/el-table-column-b8e2141b.js +0 -3795
  75. package/es/el-tag-a6a4d4ef.cjs +0 -1
  76. package/es/focus-trap-ea177336.cjs +0 -1
  77. package/es/raf-6d7e80f4.js +0 -6
  78. package/es/use-form-item-7924b6c1.cjs +0 -3
  79. package/es/use-form-item-aeec8499.js +0 -669
  80. package/es/use-global-config-b07c467a.js +0 -110
  81. package/es/use-global-config-d02be80b.cjs +0 -1
  82. package/es/zh-cn-0024c96d.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";require("./base-315cbfab.cjs");const I=require("./el-overlay-6d0c5cc3.cjs"),f=require("./el-table-column-773986c7.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-tag-a6a4d4ef.cjs");require("./el-scrollbar-9473fd47.cjs");const U=require("./el-popover-1d087574.cjs"),$=require("./el-button-ec16f484.cjs"),c=require("./el-radio-group-46e8f574.cjs"),R=require("./el-input-a8791103.cjs"),e=require("vue"),M=require("./_plugin-vue_export-helper-f246444f.cjs");require("./vnode-85a610a2.cjs");require("./use-form-item-7924b6c1.cjs");require("./focus-trap-ea177336.cjs");require("./use-global-config-d02be80b.cjs");require("./scroll-a80e1458.cjs");require("./_commonjsHelpers-87b0abe8.cjs");require("./raf-c437ab23.cjs");require("./index-eea0bcb3.cjs");require("./castArray-f54f6f75.cjs");require("./typescript-b63f8e83.cjs");const v=a=>(e.pushScopeId("data-v-1805b983"),a=a(),e.popScopeId(),a),z={class:"st-factorWarning"},A={class:"custom-header"},G=v(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),W=v(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),j={key:0},H={key:1},J={key:2},K={class:"custom-footer"},Q={__name:"index",props:e.mergeModels({title:{type:[String,null],default:null},moreFactorOptions:{type:Array,default:()=>[]},emptyFactorOptions:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},allowOperation:{type:Boolean,default:!0}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled"],["update:visible"]),setup(a,{emit:h}){const s=e.useModel(a,"visible"),C=a,x=h,d=e.ref(C.allowOperation?"ruleForm":"table"),V=e.ref(null),o=e.ref({factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}),g=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}]}),N=async r=>{switch(r){case"threeMore":Object.assign(o.value,{factorType:1,factorSelectedList:["dkx金叉","dkx黄白线上+双箱单次","dkx金叉后+单箱突破","30均线上+向上+单箱"],totalCount:3});break;case"threeEmpty":Object.assign(o.value,{factorType:-1,factorSelectedList:["dkx死叉","dkx黄白线下+双箱单次","dkx死叉后+单箱突破","30均线下+向下+单箱"],totalCount:3});break}b(V.value,!1)},b=async(r,l=!0)=>{r&&await r.validate(p=>{if(!p)return!1;x("add",o.value),l?s.value=!1:o.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}})},T=r=>x("delete",r),E=r=>x("enabled",r);return e.watch(()=>s.value,r=>{r&&(d.value=C.allowOperation?"ruleForm":"table",o.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null})}),(r,l)=>{const p=c.ElRadioButton,w=c.ElRadioGroup,y=c.ElRadio,m=c.ElFormItem,k=f.ElCheckbox,B=f.ElCheckboxGroup,_=c.ElInputNumber,i=$.ElButton,q=R.ElInput,S=c.ElForm,n=f.ElTableColumn,F=U.ElPopconfirm,D=f.ElTable,O=I.ElDialog;return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(O,{modelValue:s.value,"onUpdate:modelValue":l[11]||(l[11]=t=>s.value=t),width:"840","align-center":"","destroy-on-close":""},{header:e.withCtx(({close:t,titleId:u,titleClass:P})=>[e.createElementVNode("div",A,[e.createElementVNode("div",{class:e.normalizeClass(P)},[G,e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createVNode(w,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=L=>d.value=L)},{default:e.withCtx(()=>[e.createVNode(p,{label:"ruleForm",disabled:!a.allowOperation},{default:e.withCtx(()=>[e.createTextVNode("添加")]),_:1},8,["disabled"]),e.createVNode(p,{label:"table"},{default:e.withCtx(()=>[e.createTextVNode("管理")]),_:1})]),_:1},8,["modelValue"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",K,[e.createVNode(i,{onClick:l[9]||(l[9]=t=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),d.value==="ruleForm"?(e.openBlock(),e.createBlock(i,{key:0,type:"primary",onClick:l[10]||(l[10]=t=>b(V.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[d.value==="ruleForm"?(e.openBlock(),e.createBlock(S,{key:0,ref_key:"ruleFormRef",ref:V,model:o.value,rules:g.value,"label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(m,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:o.value.factorType,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.factorType=t)},{default:e.withCtx(()=>[e.createVNode(y,{label:1},{default:e.withCtx(()=>[e.createTextVNode("多")]),_:1}),e.createVNode(y,{label:-1},{default:e.withCtx(()=>[e.createTextVNode("空")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(m,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:o.value.factorSelectedList,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.factorSelectedList=t)},{default:e.withCtx(()=>[o.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.moreFactorOptions,(t,u)=>(e.openBlock(),e.createBlock(k,{key:u,label:t.factorTypeName,style:{width:"200px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.factorTypeName),1)]),_:2},1032,["label"]))),128)):e.createCommentVNode("",!0),o.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.emptyFactorOptions,(t,u)=>(e.openBlock(),e.createBlock(k,{key:u,label:t.factorTypeName,style:{width:"200px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.factorTypeName),1)]),_:2},1032,["label"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(m,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:o.value.totalCount,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.totalCount=t),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),e.createVNode(i,{onClick:l[4]||(l[4]=t=>N("threeMore"))},{default:e.withCtx(()=>[e.createTextVNode("3次多")]),_:1}),e.createVNode(i,{onClick:l[5]||(l[5]=t=>N("threeEmpty"))},{default:e.withCtx(()=>[e.createTextVNode("3次空")]),_:1})]),_:1}),e.createVNode(m,{label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:o.value.minPrice,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.minPrice=t),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),W,e.createVNode(_,{modelValue:o.value.maxPrice,"onUpdate:modelValue":l[7]||(l[7]=t=>o.value.maxPrice=t),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"备注:",prop:"mark"},{default:e.withCtx(()=>[e.createVNode(q,{modelValue:o.value.mark,"onUpdate:modelValue":l[8]||(l[8]=t=>o.value.mark=t),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),d.value==="table"?(e.openBlock(),e.createBlock(D,{key:1,data:a.tableData,height:"590",size:"small"},{default:e.withCtx(()=>[e.createVNode(n,{label:"预警周期",width:"80"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.freqName||"-"),1)]),_:1}),e.createVNode(n,{label:"预警因子"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(n,{label:"预警次数",width:"80"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(`${t.row.currentCount} / ${t.row.totalCount}`),1)]),_:1}),e.createVNode(n,{label:"状态",width:"80"},{default:e.withCtx(t=>[e.createElementVNode("div",null,[t.row.enable===1?(e.openBlock(),e.createElementBlock("span",j,"未触发")):t.row.enable===2?(e.openBlock(),e.createElementBlock("span",H,"已触发")):(e.openBlock(),e.createElementBlock("span",J,"-"))])]),_:1}),e.createVNode(n,{label:"设置时间"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.createdTime||"-"),1)]),_:1}),e.createVNode(n,{label:"备注"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.mark||"-"),1)]),_:1}),a.allowOperation?(e.openBlock(),e.createBlock(n,{key:0,label:"操作",width:"140"},{default:e.withCtx(t=>[e.createVNode(i,{size:"small",disabled:t.row.currentCount!==t.row.totalCount,onClick:u=>E(t.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"]),e.createVNode(F,{title:"确定删除?",onConfirm:u=>T(t.row)},{reference:e.withCtx(()=>[e.createVNode(i,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])])}}},X=M._export_sfc(Q,[["__scopeId","data-v-1805b983"]]),Y={install(a){a.component("st-factorWarning",X)}};module.exports=Y;
1
+ "use strict";
@@ -1,410 +1 @@
1
- import "./base-1bc9f12c.js";
2
- import { E as H } from "./el-overlay-53eb27a5.js";
3
- import { E as J, a as K, b as Q, c as X } from "./el-table-column-b8e2141b.js";
4
- import "./el-tooltip-4ed993c7.js";
5
- import "./el-tag-9493bdff.js";
6
- import "./el-scrollbar-e17fad47.js";
7
- import { E as Y } from "./el-popover-dd66e2c8.js";
8
- import { E as Z } from "./el-button-93e0ac7c.js";
9
- import { E as ee, a as te, b as le, c as oe, d as ae, e as re } from "./el-radio-group-caebab9d.js";
10
- import { E as ne } from "./el-input-29806e42.js";
11
- import { mergeModels as O, useModel as ue, ref as g, watch as ie, openBlock as u, createElementBlock as _, createVNode as l, withCtx as t, createElementVNode as m, normalizeClass as de, toDisplayString as d, createTextVNode as r, createBlock as b, createCommentVNode as v, Fragment as P, renderList as L, pushScopeId as se, popScopeId as me } from "vue";
12
- import { _ as pe } from "./_plugin-vue_export-helper-dad06003.js";
13
- import "./vnode-aa872900.js";
14
- import "./use-form-item-aeec8499.js";
15
- import "./focus-trap-1b2aef75.js";
16
- import "./use-global-config-b07c467a.js";
17
- import "./scroll-a928a93e.js";
18
- import "./_commonjsHelpers-10dfc225.js";
19
- import "./raf-6d7e80f4.js";
20
- import "./index-657047bb.js";
21
- import "./castArray-f42865a2.js";
22
- import "./typescript-7ae59c4c.js";
23
- const I = (n) => (se("data-v-1805b983"), n = n(), me(), n), ce = { class: "st-factorWarning" }, fe = { class: "custom-header" }, _e = /* @__PURE__ */ I(() => /* @__PURE__ */ m("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), be = /* @__PURE__ */ I(() => /* @__PURE__ */ m("span", { style: { margin: "0 5px" } }, "~", -1)), ve = { key: 0 }, ye = { key: 1 }, ke = { key: 2 }, xe = { class: "custom-footer" }, ge = {
24
- __name: "index",
25
- props: /* @__PURE__ */ O({
26
- // 标题名称
27
- title: { type: [String, null], default: null },
28
- // 预警因子[多, 空]-数据源
29
- moreFactorOptions: { type: Array, default: () => [] },
30
- emptyFactorOptions: { type: Array, default: () => [] },
31
- // 预警表格数据
32
- tableData: { type: Array, default: () => [] },
33
- // 是否允许进行操作(表单, 表格的操作)
34
- allowOperation: { type: Boolean, default: !0 }
35
- }, {
36
- visible: { default: !1 },
37
- visibleModifiers: {}
38
- }),
39
- emits: /* @__PURE__ */ O(["add", "delete", "enabled"], ["update:visible"]),
40
- setup(n, { emit: U }) {
41
- const y = ue(n, "visible"), E = n, w = U, p = g(E.allowOperation ? "ruleForm" : "table"), C = g(null), a = g({
42
- factorType: 1,
43
- factorSelectedList: [],
44
- totalCount: 1,
45
- minPrice: null,
46
- maxPrice: null,
47
- mark: null
48
- }), $ = g({
49
- factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
50
- factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
51
- totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
52
- }), h = async (i) => {
53
- switch (i) {
54
- case "threeMore":
55
- Object.assign(a.value, {
56
- factorType: 1,
57
- factorSelectedList: ["dkx金叉", "dkx黄白线上+双箱单次", "dkx金叉后+单箱突破", "30均线上+向上+单箱"],
58
- totalCount: 3
59
- });
60
- break;
61
- case "threeEmpty":
62
- Object.assign(a.value, {
63
- factorType: -1,
64
- factorSelectedList: ["dkx死叉", "dkx黄白线下+双箱单次", "dkx死叉后+单箱突破", "30均线下+向下+单箱"],
65
- totalCount: 3
66
- });
67
- break;
68
- }
69
- T(C.value, !1);
70
- }, T = async (i, o = !0) => {
71
- i && await i.validate((x) => {
72
- if (!x)
73
- return !1;
74
- w("add", a.value), o ? y.value = !1 : a.value = {
75
- factorType: 1,
76
- factorSelectedList: [],
77
- totalCount: 1,
78
- minPrice: null,
79
- maxPrice: null,
80
- mark: null
81
- };
82
- });
83
- }, B = (i) => w("delete", i), R = (i) => w("enabled", i);
84
- return ie(
85
- () => y.value,
86
- (i) => {
87
- i && (p.value = E.allowOperation ? "ruleForm" : "table", a.value = {
88
- factorType: 1,
89
- factorSelectedList: [],
90
- totalCount: 1,
91
- minPrice: null,
92
- maxPrice: null,
93
- mark: null
94
- });
95
- }
96
- ), (i, o) => {
97
- const x = ee, F = te, S = le, k = oe, N = J, D = K, V = ae, c = Z, M = ne, q = re, s = Q, z = Y, A = X, W = H;
98
- return u(), _("div", ce, [
99
- l(W, {
100
- modelValue: y.value,
101
- "onUpdate:modelValue": o[11] || (o[11] = (e) => y.value = e),
102
- width: "840",
103
- "align-center": "",
104
- "destroy-on-close": ""
105
- }, {
106
- header: t(({ close: e, titleId: f, titleClass: j }) => [
107
- m("div", fe, [
108
- m("div", {
109
- class: de(j)
110
- }, [
111
- _e,
112
- m("span", null, d(n.title), 1)
113
- ], 2),
114
- l(F, {
115
- modelValue: p.value,
116
- "onUpdate:modelValue": o[0] || (o[0] = (G) => p.value = G)
117
- }, {
118
- default: t(() => [
119
- l(x, {
120
- label: "ruleForm",
121
- disabled: !n.allowOperation
122
- }, {
123
- default: t(() => [
124
- r("添加")
125
- ]),
126
- _: 1
127
- }, 8, ["disabled"]),
128
- l(x, { label: "table" }, {
129
- default: t(() => [
130
- r("管理")
131
- ]),
132
- _: 1
133
- })
134
- ]),
135
- _: 1
136
- }, 8, ["modelValue"])
137
- ])
138
- ]),
139
- footer: t(() => [
140
- m("div", xe, [
141
- l(c, {
142
- onClick: o[9] || (o[9] = (e) => y.value = !1)
143
- }, {
144
- default: t(() => [
145
- r("关闭")
146
- ]),
147
- _: 1
148
- }),
149
- p.value === "ruleForm" ? (u(), b(c, {
150
- key: 0,
151
- type: "primary",
152
- onClick: o[10] || (o[10] = (e) => T(C.value))
153
- }, {
154
- default: t(() => [
155
- r(" 确认 ")
156
- ]),
157
- _: 1
158
- })) : v("", !0)
159
- ])
160
- ]),
161
- default: t(() => [
162
- p.value === "ruleForm" ? (u(), b(q, {
163
- key: 0,
164
- ref_key: "ruleFormRef",
165
- ref: C,
166
- model: a.value,
167
- rules: $.value,
168
- "label-width": "90px"
169
- }, {
170
- default: t(() => [
171
- l(k, {
172
- label: "交易类型:",
173
- prop: "factorType"
174
- }, {
175
- default: t(() => [
176
- l(F, {
177
- modelValue: a.value.factorType,
178
- "onUpdate:modelValue": o[1] || (o[1] = (e) => a.value.factorType = e)
179
- }, {
180
- default: t(() => [
181
- l(S, { label: 1 }, {
182
- default: t(() => [
183
- r("多")
184
- ]),
185
- _: 1
186
- }),
187
- l(S, { label: -1 }, {
188
- default: t(() => [
189
- r("空")
190
- ]),
191
- _: 1
192
- })
193
- ]),
194
- _: 1
195
- }, 8, ["modelValue"])
196
- ]),
197
- _: 1
198
- }),
199
- l(k, {
200
- label: "预警因子:",
201
- prop: "factorSelectedList"
202
- }, {
203
- default: t(() => [
204
- l(D, {
205
- modelValue: a.value.factorSelectedList,
206
- "onUpdate:modelValue": o[2] || (o[2] = (e) => a.value.factorSelectedList = e)
207
- }, {
208
- default: t(() => [
209
- a.value.factorType === 1 ? (u(!0), _(P, { key: 0 }, L(n.moreFactorOptions, (e, f) => (u(), b(N, {
210
- key: f,
211
- label: e.factorTypeName,
212
- style: { width: "200px" }
213
- }, {
214
- default: t(() => [
215
- r(d(e.factorTypeName), 1)
216
- ]),
217
- _: 2
218
- }, 1032, ["label"]))), 128)) : v("", !0),
219
- a.value.factorType === -1 ? (u(!0), _(P, { key: 1 }, L(n.emptyFactorOptions, (e, f) => (u(), b(N, {
220
- key: f,
221
- label: e.factorTypeName,
222
- style: { width: "200px" }
223
- }, {
224
- default: t(() => [
225
- r(d(e.factorTypeName), 1)
226
- ]),
227
- _: 2
228
- }, 1032, ["label"]))), 128)) : v("", !0)
229
- ]),
230
- _: 1
231
- }, 8, ["modelValue"])
232
- ]),
233
- _: 1
234
- }),
235
- l(k, {
236
- label: "预警次数:",
237
- prop: "totalCount"
238
- }, {
239
- default: t(() => [
240
- l(V, {
241
- modelValue: a.value.totalCount,
242
- "onUpdate:modelValue": o[3] || (o[3] = (e) => a.value.totalCount = e),
243
- min: 1,
244
- "controls-position": "right",
245
- style: { "margin-right": "20px" }
246
- }, null, 8, ["modelValue"]),
247
- l(c, {
248
- onClick: o[4] || (o[4] = (e) => h("threeMore"))
249
- }, {
250
- default: t(() => [
251
- r("3次多")
252
- ]),
253
- _: 1
254
- }),
255
- l(c, {
256
- onClick: o[5] || (o[5] = (e) => h("threeEmpty"))
257
- }, {
258
- default: t(() => [
259
- r("3次空")
260
- ]),
261
- _: 1
262
- })
263
- ]),
264
- _: 1
265
- }),
266
- l(k, { label: "价格范围:" }, {
267
- default: t(() => [
268
- l(V, {
269
- modelValue: a.value.minPrice,
270
- "onUpdate:modelValue": o[6] || (o[6] = (e) => a.value.minPrice = e),
271
- min: -999,
272
- placeholder: "请输入",
273
- max: 999,
274
- "controls-position": "right"
275
- }, null, 8, ["modelValue"]),
276
- be,
277
- l(V, {
278
- modelValue: a.value.maxPrice,
279
- "onUpdate:modelValue": o[7] || (o[7] = (e) => a.value.maxPrice = e),
280
- placeholder: "请输入",
281
- min: -999,
282
- max: 999,
283
- "controls-position": "right"
284
- }, null, 8, ["modelValue"])
285
- ]),
286
- _: 1
287
- }),
288
- l(k, {
289
- label: "备注:",
290
- prop: "mark"
291
- }, {
292
- default: t(() => [
293
- l(M, {
294
- modelValue: a.value.mark,
295
- "onUpdate:modelValue": o[8] || (o[8] = (e) => a.value.mark = e),
296
- type: "textarea",
297
- placeholder: "请输入关键字",
298
- rows: 2,
299
- style: { width: "380px" }
300
- }, null, 8, ["modelValue"])
301
- ]),
302
- _: 1
303
- })
304
- ]),
305
- _: 1
306
- }, 8, ["model", "rules"])) : v("", !0),
307
- p.value === "table" ? (u(), b(A, {
308
- key: 1,
309
- data: n.tableData,
310
- height: "590",
311
- size: "small"
312
- }, {
313
- default: t(() => [
314
- l(s, {
315
- label: "预警周期",
316
- width: "80"
317
- }, {
318
- default: t((e) => [
319
- r(d(e.row.freqName || "-"), 1)
320
- ]),
321
- _: 1
322
- }),
323
- l(s, { label: "预警因子" }, {
324
- default: t((e) => [
325
- r(d(e.row.factorExtendName || "-"), 1)
326
- ]),
327
- _: 1
328
- }),
329
- l(s, {
330
- label: "预警次数",
331
- width: "80"
332
- }, {
333
- default: t((e) => [
334
- r(d(`${e.row.currentCount} / ${e.row.totalCount}`), 1)
335
- ]),
336
- _: 1
337
- }),
338
- l(s, {
339
- label: "状态",
340
- width: "80"
341
- }, {
342
- default: t((e) => [
343
- m("div", null, [
344
- e.row.enable === 1 ? (u(), _("span", ve, "未触发")) : e.row.enable === 2 ? (u(), _("span", ye, "已触发")) : (u(), _("span", ke, "-"))
345
- ])
346
- ]),
347
- _: 1
348
- }),
349
- l(s, { label: "设置时间" }, {
350
- default: t((e) => [
351
- r(d(e.row.createdTime || "-"), 1)
352
- ]),
353
- _: 1
354
- }),
355
- l(s, { label: "备注" }, {
356
- default: t((e) => [
357
- r(d(e.row.mark || "-"), 1)
358
- ]),
359
- _: 1
360
- }),
361
- n.allowOperation ? (u(), b(s, {
362
- key: 0,
363
- label: "操作",
364
- width: "140"
365
- }, {
366
- default: t((e) => [
367
- l(c, {
368
- size: "small",
369
- disabled: e.row.currentCount !== e.row.totalCount,
370
- onClick: (f) => R(e.row)
371
- }, {
372
- default: t(() => [
373
- r(" 启用 ")
374
- ]),
375
- _: 2
376
- }, 1032, ["disabled", "onClick"]),
377
- l(z, {
378
- title: "确定删除?",
379
- onConfirm: (f) => B(e.row)
380
- }, {
381
- reference: t(() => [
382
- l(c, { size: "small" }, {
383
- default: t(() => [
384
- r("删除")
385
- ]),
386
- _: 1
387
- })
388
- ]),
389
- _: 2
390
- }, 1032, ["onConfirm"])
391
- ]),
392
- _: 1
393
- })) : v("", !0)
394
- ]),
395
- _: 1
396
- }, 8, ["data"])) : v("", !0)
397
- ]),
398
- _: 1
399
- }, 8, ["modelValue"])
400
- ]);
401
- };
402
- }
403
- }, we = /* @__PURE__ */ pe(ge, [["__scopeId", "data-v-1805b983"]]), je = {
404
- install(n) {
405
- n.component("st-factorWarning", we);
406
- }
407
- };
408
- export {
409
- je as default
410
- };
1
+