st-comp 0.0.93 → 0.0.95
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/components.d.ts +13 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -5
- package/es/Dialog.js +45 -711
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +463 -1
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +92 -91
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +10 -9
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +106 -104
- package/es/Table.cjs +1 -20
- package/es/Table.js +361 -4253
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2545 -1
- package/es/VirtualTable.cjs +3 -3
- package/es/VirtualTable.js +249 -254
- package/es/base-6e64c2e6.js +762 -0
- package/es/base-8776b83e.cjs +9 -0
- package/es/castArray-59d5ae43.cjs +1 -0
- package/es/castArray-8ec29ca6.js +10 -0
- package/es/config-provider-76ef1b35.cjs +1 -0
- package/es/config-provider-f4278c8e.js +46 -0
- package/es/{el-button-9476b767.js → el-button-4c7ae9df.js} +52 -52
- package/es/{el-button-ed961332.cjs → el-button-65e4598f.cjs} +1 -1
- package/es/{el-empty-f4c08c01.js → el-empty-05e13b3c.js} +3 -3
- package/es/{el-empty-7adcc7f0.cjs → el-empty-dfe11c21.cjs} +1 -1
- package/es/el-icon-0ea8fbf8.cjs +1 -0
- package/es/el-icon-4ed993c7.js +1 -0
- package/es/el-input-11327619.cjs +9 -0
- package/es/el-input-f4898cfa.js +544 -0
- package/es/el-overlay-9d9c6ba9.cjs +5 -0
- package/es/el-overlay-d7af7dda.js +678 -0
- package/es/el-popover-4a4a4b02.cjs +1 -0
- package/es/el-popover-dc9c7ff7.js +133 -0
- package/es/el-radio-group-a31fb7c0.js +1743 -0
- package/es/el-radio-group-cc2d6c87.cjs +12 -0
- package/es/{el-scrollbar-ffb7b9c1.js → el-scrollbar-a00aca2f.js} +48 -48
- package/es/{el-scrollbar-586be9bd.cjs → el-scrollbar-f197b544.cjs} +1 -1
- package/es/el-select-5dbb0da3.cjs +1 -0
- package/es/el-select-b9cf452e.js +1360 -0
- package/es/el-table-column-1e15361e.cjs +20 -0
- package/es/el-table-column-675f51e6.js +3795 -0
- package/es/el-tag-c9d5baa7.cjs +1 -0
- package/es/{el-tag-7549c103.js → el-tag-f878b1f1.js} +126 -119
- package/es/{focus-trap-5fc152a0.js → focus-trap-2677bd39.js} +35 -34
- package/es/focus-trap-5f42842b.cjs +1 -0
- package/es/raf-32ed81f4.js +6 -0
- package/es/{raf-c4bba516.cjs → raf-7c366b55.cjs} +1 -1
- package/es/{scroll-38e17abc.cjs → scroll-22a00b05.cjs} +1 -1
- package/es/{scroll-c6e51ef8.js → scroll-9b9249e9.js} +5 -5
- package/es/style.css +1 -1
- package/es/use-form-item-67e7ef93.cjs +3 -0
- package/es/use-form-item-bfc7dddf.js +669 -0
- package/es/use-global-config-89daeba3.js +110 -0
- package/es/use-global-config-f9103903.cjs +1 -0
- package/es/{vnode-40f9df3c.cjs → vnode-69f3ca85.cjs} +1 -1
- package/es/{vnode-f4b846cb.js → vnode-aa3448ec.js} +1 -1
- package/es/zh-cn-720e514b.cjs +1 -0
- package/es/{zh-cn-e36dfbf4.js → zh-cn-e662dc89.js} +6 -45
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +174 -174
- package/lib/{index-4635557b.js → index-5fe750ca.js} +27924 -27395
- package/lib/{python-aa056c80.js → python-65fdc0e1.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +270 -112
- package/packages/VarietySearch/components/FactorScreen/index.vue +44 -5
- package/packages/VarietySearch/config.js +12 -1
- package/packages/VarietySearch/index.vue +8 -0
- package/es/base-8aa55db5.js +0 -725
- package/es/base-b187e78f.cjs +0 -9
- package/es/el-select-a6cf0236.js +0 -1893
- package/es/el-select-eaa79c54.cjs +0 -9
- package/es/el-tag-5a8b728a.cjs +0 -1
- package/es/focus-trap-ea1e7a19.cjs +0 -1
- package/es/raf-3a2b250a.js +0 -6
- package/es/use-form-item-bd4b9eeb.js +0 -531
- package/es/use-form-item-c25c7251.cjs +0 -3
- package/es/use-global-config-2d21cd56.js +0 -110
- package/es/use-global-config-bce8cdd8.cjs +0 -1
- package/es/zh-cn-a61d484e.cjs +0 -1
package/es/FactorWarning.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";require("./base-8776b83e.cjs");const N=require("./zh-cn-720e514b.cjs"),I=require("./el-overlay-9d9c6ba9.cjs"),x=require("./el-table-column-1e15361e.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-tag-c9d5baa7.cjs");require("./el-scrollbar-f197b544.cjs");const U=require("./el-popover-4a4a4b02.cjs"),z=require("./el-button-65e4598f.cjs"),p=require("./el-radio-group-cc2d6c87.cjs"),R=require("./el-input-11327619.cjs"),e=require("vue"),j=require("./_plugin-vue_export-helper-f246444f.cjs");require("./config-provider-76ef1b35.cjs");require("./use-global-config-f9103903.cjs");require("./use-form-item-67e7ef93.cjs");require("./vnode-69f3ca85.cjs");require("./focus-trap-5f42842b.cjs");require("./scroll-22a00b05.cjs");require("./_commonjsHelpers-87b0abe8.cjs");require("./raf-7c366b55.cjs");require("./index-eea0bcb3.cjs");require("./castArray-59d5ae43.cjs");require("./typescript-b63f8e83.cjs");const v=a=>(e.pushScopeId("data-v-de12edbe"),a=a(),e.popScopeId(),a),A={class:"st-factorWarning"},G={class:"custom-header"},W=v(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),H=v(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),J={key:0,style:{color:"#f56c6c"}},K={key:1,style:{color:"#67c23a"}},Q={key:0},X={key:1},Y={key:2},Z={class:"custom-footer"},ee={__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},showConfig:{type:Object,default:()=>({})}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled","closed"],["update:visible"]),setup(a,{emit:h}){const s=e.useModel(a,"visible"),C=a,f=h,i=Object.assign({ruleFormPrice:!0,ruleFormMark:!0,tableStatus:!0,tableCreateTime:!0,tableMark:!0,tableEnable:!0},C.showConfig),u=e.ref(C.allowOperation?"ruleForm":"table"),V=e.ref(null),l=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"}]}),y=async r=>{switch(r){case"threeMore":Object.assign(l.value,{factorType:1,factorSelectedList:["dkx金叉","dkx黄白线上+双箱单次","dkx金叉后+单箱突破","30均线上+向上+单箱"],totalCount:3});break;case"threeEmpty":Object.assign(l.value,{factorType:-1,factorSelectedList:["dkx死叉","dkx黄白线下+双箱单次","dkx死叉后+单箱突破","30均线下+向下+单箱"],totalCount:3});break}b(V.value,!1)},b=async(r,o=!0)=>{r&&await r.validate(k=>{if(!k)return!1;f("add",l.value),o?s.value=!1:l.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}})},B=r=>f("delete",r),T=r=>f("enabled",r);return e.watch(()=>s.value,r=>{r&&(u.value=C.allowOperation?"ruleForm":"table",l.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null})}),(r,o)=>{const k=p.ElRadioButton,E=p.ElRadioGroup,n=z.ElButton,m=p.ElFormItem,w=x.ElCheckbox,q=x.ElCheckboxGroup,_=p.ElInputNumber,S=R.ElInput,F=p.ElForm,c=x.ElTableColumn,P=U.ElPopconfirm,O=x.ElTable,D=I.ElDialog,L=N.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(L,{locale:e.unref(N.zhCn)},{default:e.withCtx(()=>[e.createVNode(D,{modelValue:s.value,"onUpdate:modelValue":o[12]||(o[12]=t=>s.value=t),width:"860","align-center":"","destroy-on-close":"",onClosed:o[13]||(o[13]=t=>f("closed"))},{header:e.withCtx(({close:t,titleId:d,titleClass:$})=>[e.createElementVNode("div",G,[e.createElementVNode("div",{class:e.normalizeClass($)},[W,e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createVNode(E,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=M=>u.value=M)},{default:e.withCtx(()=>[e.createVNode(k,{label:"ruleForm",disabled:!a.allowOperation},{default:e.withCtx(()=>[e.createTextVNode("添加")]),_:1},8,["disabled"]),e.createVNode(k,{label:"table"},{default:e.withCtx(()=>[e.createTextVNode("管理")]),_:1})]),_:1},8,["modelValue"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(n,{onClick:o[10]||(o[10]=t=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),u.value==="ruleForm"?(e.openBlock(),e.createBlock(n,{key:0,type:"primary",onClick:o[11]||(o[11]=t=>b(V.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[u.value==="ruleForm"?(e.openBlock(),e.createBlock(F,{key:0,ref_key:"ruleFormRef",ref:V,model:l.value,rules:g.value,"label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(m,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(n,{type:"danger",plain:l.value.factorType!==1,onClick:o[1]||(o[1]=t=>l.value.factorType=1)},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(n,{type:"success",plain:l.value.factorType!==-1,onClick:o[2]||(o[2]=t=>l.value.factorType=-1)},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(m,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(q,{modelValue:l.value.factorSelectedList,"onUpdate:modelValue":o[3]||(o[3]=t=>l.value.factorSelectedList=t)},{default:e.withCtx(()=>[l.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.moreFactorOptions,(t,d)=>(e.openBlock(),e.createBlock(w,{key:d,label:t.factorTypeName,style:{width:"200px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.factorTypeName),1)]),_:2},1032,["label"]))),128)):e.createCommentVNode("",!0),l.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.emptyFactorOptions,(t,d)=>(e.openBlock(),e.createBlock(w,{key:d,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:l.value.totalCount,"onUpdate:modelValue":o[4]||(o[4]=t=>l.value.totalCount=t),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),e.createVNode(n,{onClick:o[5]||(o[5]=t=>y("threeMore"))},{default:e.withCtx(()=>[e.createTextVNode("3次多")]),_:1}),e.createVNode(n,{onClick:o[6]||(o[6]=t=>y("threeEmpty"))},{default:e.withCtx(()=>[e.createTextVNode("3次空")]),_:1})]),_:1}),e.unref(i).ruleFormPrice?(e.openBlock(),e.createBlock(m,{key:0,label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:l.value.minPrice,"onUpdate:modelValue":o[7]||(o[7]=t=>l.value.minPrice=t),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),H,e.createVNode(_,{modelValue:l.value.maxPrice,"onUpdate:modelValue":o[8]||(o[8]=t=>l.value.maxPrice=t),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(i).ruleFormMark?(e.openBlock(),e.createBlock(m,{key:1,label:"备注:"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:l.value.mark,"onUpdate:modelValue":o[9]||(o[9]=t=>l.value.mark=t),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),u.value==="table"?(e.openBlock(),e.createBlock(O,{key:1,data:a.tableData,size:"small"},{default:e.withCtx(()=>[e.createVNode(c,{label:"预警周期",width:"70"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.freqName||"-"),1)]),_:1}),e.createVNode(c,{label:"交易类型",width:"70"},{default:e.withCtx(t=>[t.row.factorExtendValue==1?(e.openBlock(),e.createElementBlock("span",J,"多")):(e.openBlock(),e.createElementBlock("span",K,"空"))]),_:1}),e.createVNode(c,{label:"预警因子"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(c,{label:"预警次数",width:"70"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(`${t.row.currentCount} / ${t.row.totalCount}`),1)]),_:1}),e.unref(i).tableStatus?(e.openBlock(),e.createBlock(c,{key:0,label:"状态",width:"70"},{default:e.withCtx(t=>[e.createElementVNode("div",null,[t.row.enable===1?(e.openBlock(),e.createElementBlock("span",Q,"未触发")):t.row.enable===2?(e.openBlock(),e.createElementBlock("span",X,"已触发")):(e.openBlock(),e.createElementBlock("span",Y,"-"))])]),_:1})):e.createCommentVNode("",!0),e.unref(i).tableCreateTime?(e.openBlock(),e.createBlock(c,{key:1,label:"设置时间",width:"136"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.createdTime||"-"),1)]),_:1})):e.createCommentVNode("",!0),e.unref(i).tableMark?(e.openBlock(),e.createBlock(c,{key:2,label:"备注",width:"70"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(t.row.mark||"-"),1)]),_:1})):e.createCommentVNode("",!0),a.allowOperation?(e.openBlock(),e.createBlock(c,{key:3,label:"操作",width:"140"},{default:e.withCtx(t=>[e.unref(i).tableEnable?(e.openBlock(),e.createBlock(n,{key:0,disabled:t.row.currentCount!==t.row.totalCount,size:"small",onClick:d=>T(t.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(P,{title:"确定删除?",onConfirm:d=>B(t.row)},{reference:e.withCtx(()=>[e.createVNode(n,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["locale"])])}}},te=j._export_sfc(ee,[["__scopeId","data-v-de12edbe"]]),oe={install(a){a.component("st-factorWarning",te)}};module.exports=oe;
|
package/es/FactorWarning.js
CHANGED
|
@@ -1 +1,463 @@
|
|
|
1
|
-
|
|
1
|
+
import "./base-6e64c2e6.js";
|
|
2
|
+
import { z as K, E as Q } from "./zh-cn-e662dc89.js";
|
|
3
|
+
import { E as X } from "./el-overlay-d7af7dda.js";
|
|
4
|
+
import { E as Y, a as Z, b as ee, c as te } from "./el-table-column-675f51e6.js";
|
|
5
|
+
import "./el-tooltip-4ed993c7.js";
|
|
6
|
+
import "./el-tag-f878b1f1.js";
|
|
7
|
+
import "./el-scrollbar-a00aca2f.js";
|
|
8
|
+
import { E as le } from "./el-popover-dc9c7ff7.js";
|
|
9
|
+
import { E as oe } from "./el-button-4c7ae9df.js";
|
|
10
|
+
import { E as ae, a as re, b as ne, c as ue, d as ie } from "./el-radio-group-a31fb7c0.js";
|
|
11
|
+
import { E as de } from "./el-input-f4898cfa.js";
|
|
12
|
+
import { mergeModels as O, useModel as se, ref as E, watch as me, openBlock as r, createElementBlock as p, createVNode as o, unref as _, withCtx as t, createElementVNode as b, normalizeClass as ce, toDisplayString as f, createTextVNode as n, createBlock as i, createCommentVNode as d, Fragment as N, renderList as $, pushScopeId as pe, popScopeId as fe } from "vue";
|
|
13
|
+
import { _ as _e } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
+
import "./config-provider-f4278c8e.js";
|
|
15
|
+
import "./use-global-config-89daeba3.js";
|
|
16
|
+
import "./use-form-item-bfc7dddf.js";
|
|
17
|
+
import "./vnode-aa3448ec.js";
|
|
18
|
+
import "./focus-trap-2677bd39.js";
|
|
19
|
+
import "./scroll-9b9249e9.js";
|
|
20
|
+
import "./_commonjsHelpers-10dfc225.js";
|
|
21
|
+
import "./raf-32ed81f4.js";
|
|
22
|
+
import "./index-657047bb.js";
|
|
23
|
+
import "./castArray-8ec29ca6.js";
|
|
24
|
+
import "./typescript-7ae59c4c.js";
|
|
25
|
+
const L = (u) => (pe("data-v-de12edbe"), u = u(), fe(), u), be = { class: "st-factorWarning" }, ye = { class: "custom-header" }, ve = /* @__PURE__ */ L(() => /* @__PURE__ */ b("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), ke = /* @__PURE__ */ L(() => /* @__PURE__ */ b("span", { style: { margin: "0 5px" } }, "~", -1)), ge = {
|
|
26
|
+
key: 0,
|
|
27
|
+
style: { color: "#f56c6c" }
|
|
28
|
+
}, we = {
|
|
29
|
+
key: 1,
|
|
30
|
+
style: { color: "#67c23a" }
|
|
31
|
+
}, Ce = { key: 0 }, xe = { key: 1 }, Ee = { key: 2 }, he = { class: "custom-footer" }, Ve = {
|
|
32
|
+
__name: "index",
|
|
33
|
+
props: /* @__PURE__ */ O({
|
|
34
|
+
// 弹窗标题
|
|
35
|
+
title: { type: [String, null], default: null },
|
|
36
|
+
// 因子选项[多, 空]
|
|
37
|
+
moreFactorOptions: { type: Array, default: () => [] },
|
|
38
|
+
emptyFactorOptions: { type: Array, default: () => [] },
|
|
39
|
+
// 管理表格数据
|
|
40
|
+
tableData: { type: Array, default: () => [] },
|
|
41
|
+
// 是否允许进行操作(表单, 表格的操作)
|
|
42
|
+
allowOperation: { type: Boolean, default: !0 },
|
|
43
|
+
// 个别字段功能是否展示
|
|
44
|
+
showConfig: { type: Object, default: () => ({}) }
|
|
45
|
+
}, {
|
|
46
|
+
visible: { default: !1 },
|
|
47
|
+
visibleModifiers: {}
|
|
48
|
+
}),
|
|
49
|
+
emits: /* @__PURE__ */ O(["add", "delete", "enabled", "closed"], ["update:visible"]),
|
|
50
|
+
setup(u, { emit: M }) {
|
|
51
|
+
const g = se(u, "visible"), h = u, C = M, y = Object.assign(
|
|
52
|
+
{
|
|
53
|
+
ruleFormPrice: !0,
|
|
54
|
+
// 表单-价格范围
|
|
55
|
+
ruleFormMark: !0,
|
|
56
|
+
// 表单-备注
|
|
57
|
+
tableStatus: !0,
|
|
58
|
+
// 表格-状态
|
|
59
|
+
tableCreateTime: !0,
|
|
60
|
+
// 表格-设置时间
|
|
61
|
+
tableMark: !0,
|
|
62
|
+
// 表格-备注
|
|
63
|
+
tableEnable: !0
|
|
64
|
+
// 表格-操作-启用
|
|
65
|
+
},
|
|
66
|
+
h.showConfig
|
|
67
|
+
), v = E(h.allowOperation ? "ruleForm" : "table"), V = E(null), a = E({
|
|
68
|
+
factorType: 1,
|
|
69
|
+
factorSelectedList: [],
|
|
70
|
+
totalCount: 1,
|
|
71
|
+
minPrice: null,
|
|
72
|
+
maxPrice: null,
|
|
73
|
+
mark: null
|
|
74
|
+
}), I = E({
|
|
75
|
+
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
76
|
+
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
77
|
+
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
78
|
+
}), F = async (s) => {
|
|
79
|
+
switch (s) {
|
|
80
|
+
case "threeMore":
|
|
81
|
+
Object.assign(a.value, {
|
|
82
|
+
factorType: 1,
|
|
83
|
+
factorSelectedList: ["dkx金叉", "dkx黄白线上+双箱单次", "dkx金叉后+单箱突破", "30均线上+向上+单箱"],
|
|
84
|
+
totalCount: 3
|
|
85
|
+
});
|
|
86
|
+
break;
|
|
87
|
+
case "threeEmpty":
|
|
88
|
+
Object.assign(a.value, {
|
|
89
|
+
factorType: -1,
|
|
90
|
+
factorSelectedList: ["dkx死叉", "dkx黄白线下+双箱单次", "dkx死叉后+单箱突破", "30均线下+向下+单箱"],
|
|
91
|
+
totalCount: 3
|
|
92
|
+
});
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
S(V.value, !1);
|
|
96
|
+
}, S = async (s, l = !0) => {
|
|
97
|
+
s && await s.validate((x) => {
|
|
98
|
+
if (!x)
|
|
99
|
+
return !1;
|
|
100
|
+
C("add", a.value), l ? g.value = !1 : a.value = {
|
|
101
|
+
factorType: 1,
|
|
102
|
+
factorSelectedList: [],
|
|
103
|
+
totalCount: 1,
|
|
104
|
+
minPrice: null,
|
|
105
|
+
maxPrice: null,
|
|
106
|
+
mark: null
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
}, B = (s) => C("delete", s), U = (s) => C("enabled", s);
|
|
110
|
+
return me(
|
|
111
|
+
() => g.value,
|
|
112
|
+
(s) => {
|
|
113
|
+
s && (v.value = h.allowOperation ? "ruleForm" : "table", a.value = {
|
|
114
|
+
factorType: 1,
|
|
115
|
+
factorSelectedList: [],
|
|
116
|
+
totalCount: 1,
|
|
117
|
+
minPrice: null,
|
|
118
|
+
maxPrice: null,
|
|
119
|
+
mark: null
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
), (s, l) => {
|
|
123
|
+
const x = ae, z = re, m = oe, w = ne, P = Y, D = Z, T = ue, R = de, j = ie, c = ee, q = le, A = te, W = X, G = Q;
|
|
124
|
+
return r(), p("div", be, [
|
|
125
|
+
o(G, { locale: _(K) }, {
|
|
126
|
+
default: t(() => [
|
|
127
|
+
o(W, {
|
|
128
|
+
modelValue: g.value,
|
|
129
|
+
"onUpdate:modelValue": l[12] || (l[12] = (e) => g.value = e),
|
|
130
|
+
width: "860",
|
|
131
|
+
"align-center": "",
|
|
132
|
+
"destroy-on-close": "",
|
|
133
|
+
onClosed: l[13] || (l[13] = (e) => C("closed"))
|
|
134
|
+
}, {
|
|
135
|
+
header: t(({ close: e, titleId: k, titleClass: H }) => [
|
|
136
|
+
b("div", ye, [
|
|
137
|
+
b("div", {
|
|
138
|
+
class: ce(H)
|
|
139
|
+
}, [
|
|
140
|
+
ve,
|
|
141
|
+
b("span", null, f(u.title), 1)
|
|
142
|
+
], 2),
|
|
143
|
+
o(z, {
|
|
144
|
+
modelValue: v.value,
|
|
145
|
+
"onUpdate:modelValue": l[0] || (l[0] = (J) => v.value = J)
|
|
146
|
+
}, {
|
|
147
|
+
default: t(() => [
|
|
148
|
+
o(x, {
|
|
149
|
+
label: "ruleForm",
|
|
150
|
+
disabled: !u.allowOperation
|
|
151
|
+
}, {
|
|
152
|
+
default: t(() => [
|
|
153
|
+
n("添加")
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["disabled"]),
|
|
157
|
+
o(x, { label: "table" }, {
|
|
158
|
+
default: t(() => [
|
|
159
|
+
n("管理")
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue"])
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
footer: t(() => [
|
|
169
|
+
b("div", he, [
|
|
170
|
+
o(m, {
|
|
171
|
+
onClick: l[10] || (l[10] = (e) => g.value = !1)
|
|
172
|
+
}, {
|
|
173
|
+
default: t(() => [
|
|
174
|
+
n("关闭")
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}),
|
|
178
|
+
v.value === "ruleForm" ? (r(), i(m, {
|
|
179
|
+
key: 0,
|
|
180
|
+
type: "primary",
|
|
181
|
+
onClick: l[11] || (l[11] = (e) => S(V.value))
|
|
182
|
+
}, {
|
|
183
|
+
default: t(() => [
|
|
184
|
+
n(" 确认 ")
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
})) : d("", !0)
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
default: t(() => [
|
|
191
|
+
v.value === "ruleForm" ? (r(), i(j, {
|
|
192
|
+
key: 0,
|
|
193
|
+
ref_key: "ruleFormRef",
|
|
194
|
+
ref: V,
|
|
195
|
+
model: a.value,
|
|
196
|
+
rules: I.value,
|
|
197
|
+
"label-width": "90px"
|
|
198
|
+
}, {
|
|
199
|
+
default: t(() => [
|
|
200
|
+
o(w, {
|
|
201
|
+
label: "交易类型:",
|
|
202
|
+
prop: "factorType"
|
|
203
|
+
}, {
|
|
204
|
+
default: t(() => [
|
|
205
|
+
o(m, {
|
|
206
|
+
type: "danger",
|
|
207
|
+
plain: a.value.factorType !== 1,
|
|
208
|
+
onClick: l[1] || (l[1] = (e) => a.value.factorType = 1)
|
|
209
|
+
}, {
|
|
210
|
+
default: t(() => [
|
|
211
|
+
n(" 多 ")
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["plain"]),
|
|
215
|
+
o(m, {
|
|
216
|
+
type: "success",
|
|
217
|
+
plain: a.value.factorType !== -1,
|
|
218
|
+
onClick: l[2] || (l[2] = (e) => a.value.factorType = -1)
|
|
219
|
+
}, {
|
|
220
|
+
default: t(() => [
|
|
221
|
+
n(" 空 ")
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["plain"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
o(w, {
|
|
229
|
+
label: "预警因子:",
|
|
230
|
+
prop: "factorSelectedList"
|
|
231
|
+
}, {
|
|
232
|
+
default: t(() => [
|
|
233
|
+
o(D, {
|
|
234
|
+
modelValue: a.value.factorSelectedList,
|
|
235
|
+
"onUpdate:modelValue": l[3] || (l[3] = (e) => a.value.factorSelectedList = e)
|
|
236
|
+
}, {
|
|
237
|
+
default: t(() => [
|
|
238
|
+
a.value.factorType === 1 ? (r(!0), p(N, { key: 0 }, $(u.moreFactorOptions, (e, k) => (r(), i(P, {
|
|
239
|
+
key: k,
|
|
240
|
+
label: e.factorTypeName,
|
|
241
|
+
style: { width: "200px" }
|
|
242
|
+
}, {
|
|
243
|
+
default: t(() => [
|
|
244
|
+
n(f(e.factorTypeName), 1)
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, 1032, ["label"]))), 128)) : d("", !0),
|
|
248
|
+
a.value.factorType === -1 ? (r(!0), p(N, { key: 1 }, $(u.emptyFactorOptions, (e, k) => (r(), i(P, {
|
|
249
|
+
key: k,
|
|
250
|
+
label: e.factorTypeName,
|
|
251
|
+
style: { width: "200px" }
|
|
252
|
+
}, {
|
|
253
|
+
default: t(() => [
|
|
254
|
+
n(f(e.factorTypeName), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 2
|
|
257
|
+
}, 1032, ["label"]))), 128)) : d("", !0)
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["modelValue"])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}),
|
|
264
|
+
o(w, {
|
|
265
|
+
label: "预警次数:",
|
|
266
|
+
prop: "totalCount"
|
|
267
|
+
}, {
|
|
268
|
+
default: t(() => [
|
|
269
|
+
o(T, {
|
|
270
|
+
modelValue: a.value.totalCount,
|
|
271
|
+
"onUpdate:modelValue": l[4] || (l[4] = (e) => a.value.totalCount = e),
|
|
272
|
+
min: 1,
|
|
273
|
+
"controls-position": "right",
|
|
274
|
+
style: { "margin-right": "20px" }
|
|
275
|
+
}, null, 8, ["modelValue"]),
|
|
276
|
+
o(m, {
|
|
277
|
+
onClick: l[5] || (l[5] = (e) => F("threeMore"))
|
|
278
|
+
}, {
|
|
279
|
+
default: t(() => [
|
|
280
|
+
n("3次多")
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}),
|
|
284
|
+
o(m, {
|
|
285
|
+
onClick: l[6] || (l[6] = (e) => F("threeEmpty"))
|
|
286
|
+
}, {
|
|
287
|
+
default: t(() => [
|
|
288
|
+
n("3次空")
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
})
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
}),
|
|
295
|
+
_(y).ruleFormPrice ? (r(), i(w, {
|
|
296
|
+
key: 0,
|
|
297
|
+
label: "价格范围:"
|
|
298
|
+
}, {
|
|
299
|
+
default: t(() => [
|
|
300
|
+
o(T, {
|
|
301
|
+
modelValue: a.value.minPrice,
|
|
302
|
+
"onUpdate:modelValue": l[7] || (l[7] = (e) => a.value.minPrice = e),
|
|
303
|
+
min: -999,
|
|
304
|
+
placeholder: "请输入",
|
|
305
|
+
max: 999,
|
|
306
|
+
"controls-position": "right"
|
|
307
|
+
}, null, 8, ["modelValue"]),
|
|
308
|
+
ke,
|
|
309
|
+
o(T, {
|
|
310
|
+
modelValue: a.value.maxPrice,
|
|
311
|
+
"onUpdate:modelValue": l[8] || (l[8] = (e) => a.value.maxPrice = e),
|
|
312
|
+
placeholder: "请输入",
|
|
313
|
+
min: -999,
|
|
314
|
+
max: 999,
|
|
315
|
+
"controls-position": "right"
|
|
316
|
+
}, null, 8, ["modelValue"])
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
})) : d("", !0),
|
|
320
|
+
_(y).ruleFormMark ? (r(), i(w, {
|
|
321
|
+
key: 1,
|
|
322
|
+
label: "备注:"
|
|
323
|
+
}, {
|
|
324
|
+
default: t(() => [
|
|
325
|
+
o(R, {
|
|
326
|
+
modelValue: a.value.mark,
|
|
327
|
+
"onUpdate:modelValue": l[9] || (l[9] = (e) => a.value.mark = e),
|
|
328
|
+
type: "textarea",
|
|
329
|
+
placeholder: "请输入关键字",
|
|
330
|
+
rows: 2,
|
|
331
|
+
style: { width: "380px" }
|
|
332
|
+
}, null, 8, ["modelValue"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
})) : d("", !0)
|
|
336
|
+
]),
|
|
337
|
+
_: 1
|
|
338
|
+
}, 8, ["model", "rules"])) : d("", !0),
|
|
339
|
+
v.value === "table" ? (r(), i(A, {
|
|
340
|
+
key: 1,
|
|
341
|
+
data: u.tableData,
|
|
342
|
+
size: "small"
|
|
343
|
+
}, {
|
|
344
|
+
default: t(() => [
|
|
345
|
+
o(c, {
|
|
346
|
+
label: "预警周期",
|
|
347
|
+
width: "70"
|
|
348
|
+
}, {
|
|
349
|
+
default: t((e) => [
|
|
350
|
+
n(f(e.row.freqName || "-"), 1)
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}),
|
|
354
|
+
o(c, {
|
|
355
|
+
label: "交易类型",
|
|
356
|
+
width: "70"
|
|
357
|
+
}, {
|
|
358
|
+
default: t((e) => [
|
|
359
|
+
e.row.factorExtendValue == 1 ? (r(), p("span", ge, "多")) : (r(), p("span", we, "空"))
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
}),
|
|
363
|
+
o(c, { label: "预警因子" }, {
|
|
364
|
+
default: t((e) => [
|
|
365
|
+
n(f(e.row.factorExtendName || "-"), 1)
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
}),
|
|
369
|
+
o(c, {
|
|
370
|
+
label: "预警次数",
|
|
371
|
+
width: "70"
|
|
372
|
+
}, {
|
|
373
|
+
default: t((e) => [
|
|
374
|
+
n(f(`${e.row.currentCount} / ${e.row.totalCount}`), 1)
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}),
|
|
378
|
+
_(y).tableStatus ? (r(), i(c, {
|
|
379
|
+
key: 0,
|
|
380
|
+
label: "状态",
|
|
381
|
+
width: "70"
|
|
382
|
+
}, {
|
|
383
|
+
default: t((e) => [
|
|
384
|
+
b("div", null, [
|
|
385
|
+
e.row.enable === 1 ? (r(), p("span", Ce, "未触发")) : e.row.enable === 2 ? (r(), p("span", xe, "已触发")) : (r(), p("span", Ee, "-"))
|
|
386
|
+
])
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
})) : d("", !0),
|
|
390
|
+
_(y).tableCreateTime ? (r(), i(c, {
|
|
391
|
+
key: 1,
|
|
392
|
+
label: "设置时间",
|
|
393
|
+
width: "136"
|
|
394
|
+
}, {
|
|
395
|
+
default: t((e) => [
|
|
396
|
+
n(f(e.row.createdTime || "-"), 1)
|
|
397
|
+
]),
|
|
398
|
+
_: 1
|
|
399
|
+
})) : d("", !0),
|
|
400
|
+
_(y).tableMark ? (r(), i(c, {
|
|
401
|
+
key: 2,
|
|
402
|
+
label: "备注",
|
|
403
|
+
width: "70"
|
|
404
|
+
}, {
|
|
405
|
+
default: t((e) => [
|
|
406
|
+
n(f(e.row.mark || "-"), 1)
|
|
407
|
+
]),
|
|
408
|
+
_: 1
|
|
409
|
+
})) : d("", !0),
|
|
410
|
+
u.allowOperation ? (r(), i(c, {
|
|
411
|
+
key: 3,
|
|
412
|
+
label: "操作",
|
|
413
|
+
width: "140"
|
|
414
|
+
}, {
|
|
415
|
+
default: t((e) => [
|
|
416
|
+
_(y).tableEnable ? (r(), i(m, {
|
|
417
|
+
key: 0,
|
|
418
|
+
disabled: e.row.currentCount !== e.row.totalCount,
|
|
419
|
+
size: "small",
|
|
420
|
+
onClick: (k) => U(e.row)
|
|
421
|
+
}, {
|
|
422
|
+
default: t(() => [
|
|
423
|
+
n(" 启用 ")
|
|
424
|
+
]),
|
|
425
|
+
_: 2
|
|
426
|
+
}, 1032, ["disabled", "onClick"])) : d("", !0),
|
|
427
|
+
o(q, {
|
|
428
|
+
title: "确定删除?",
|
|
429
|
+
onConfirm: (k) => B(e.row)
|
|
430
|
+
}, {
|
|
431
|
+
reference: t(() => [
|
|
432
|
+
o(m, { size: "small" }, {
|
|
433
|
+
default: t(() => [
|
|
434
|
+
n("删除")
|
|
435
|
+
]),
|
|
436
|
+
_: 1
|
|
437
|
+
})
|
|
438
|
+
]),
|
|
439
|
+
_: 2
|
|
440
|
+
}, 1032, ["onConfirm"])
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
})) : d("", !0)
|
|
444
|
+
]),
|
|
445
|
+
_: 1
|
|
446
|
+
}, 8, ["data"])) : d("", !0)
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["modelValue"])
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["locale"])
|
|
453
|
+
]);
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
}, Te = /* @__PURE__ */ _e(Ve, [["__scopeId", "data-v-de12edbe"]]), Ye = {
|
|
457
|
+
install(u) {
|
|
458
|
+
u.component("st-factorWarning", Te);
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
export {
|
|
462
|
+
Ye as default
|
|
463
|
+
};
|