@pangu-backend-ui/apputil-core 0.0.2 → 0.0.4
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/index.js +805 -225
- package/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/Constant.d.ts +27 -4
- package/types/views/BannerListView.vue.d.ts +29 -5
- package/types/views/EntranceListView.vue.d.ts +420 -0
- package/types/views/components/BannerDialog.vue.d.ts +21 -2
- package/types/views/components/EntranceDialog.vue.d.ts +386 -0
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_["pg-user-core"]={},_.Vue))})(this,function(_,e){"use strict";const E=[],F={WEB_URL:{name:"Web地址"},PAGE_PATH:{name:"页面地址"},API:{name:"API地址"}},U=e.defineComponent({__name:"BannerDialog",emits:["success"],setup(u,{expose:n,emit:i}){const c=e.ref(!1),a=e.ref({sceneCode:null,image:null,targetPath:null,targetPathType:null,params:null,shelfTimeArr:[]}),k=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],image:[{required:!0,message:"请上传图片"}],targetPath:[{required:!0,message:"请输入目标地址"}],targetPathType:[{required:!0,message:"请选择目标地址类型"}]}),h=e.ref(!1),m=e.inject("http"),N=e.ref();function x(){var C;(C=N.value)==null||C.validate(t=>{if(t){h.value=!0;let o=`/api/banner/${V.value??""}/${V.value?"update":"create"}`,s={...a.value};a.value.shelfTimeArr.length&&(s.shelfTime=a.value.shelfTimeArr[0],s.offShelfTime=a.value.shelfTimeArr[1]),m==null||m.post(o,s).then(f=>{var p;i("success"),(p=N.value)==null||p.resetFields(),c.value=!1}).finally(()=>{h.value=!1})}})}const w=e.ref([]),V=e.ref(null);function B(C,t){var o;w.value=C,V.value=null,(o=N.value)==null||o.resetFields(),t&&(V.value=t.id,Object.assign(a.value,t),a.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]),c.value=!0}return n({show:B}),(C,t)=>{const o=e.resolveComponent("el-option"),s=e.resolveComponent("el-select"),f=e.resolveComponent("el-form-item"),p=e.resolveComponent("pg-upload"),b=e.resolveComponent("el-input"),y=e.resolveComponent("el-date-picker"),d=e.resolveComponent("el-form"),T=e.resolveComponent("el-button"),P=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(P,{modelValue:c.value,"onUpdate:modelValue":t[6]||(t[6]=r=>c.value=r),width:"400"},{footer:e.withCtx(()=>[e.createVNode(T,{type:"primary",disabled:h.value,loading:h.value,onClick:x},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(d,{ref_key:"form",ref:N,rules:k.value,model:a.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(f,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:a.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=r=>a.value.sceneCode=r),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,r=>(e.openBlock(),e.createBlock(o,{key:r,value:r,label:r},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(f,{label:"图片",prop:"image"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(p,{accept:"jpg,jpeg,png",modelValue:a.value.image,"onUpdate:modelValue":t[1]||(t[1]=r=>a.value.image=r),key:`img_${V.value}`,"list-type":"picture-card","upload-type":"banner",limit:1},null,8,["modelValue"]))]),_:1}),e.createVNode(f,{label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(b,{placeholder:"请输入目标地址",modelValue:a.value.targetPath,"onUpdate:modelValue":t[2]||(t[2]=r=>a.value.targetPath=r)},null,8,["modelValue"])]),_:1}),e.createVNode(f,{label:"目标地址类型",prop:"targetPathType"},{default:e.withCtx(()=>[e.createVNode(s,{placeholder:"请选择目标地址类型",modelValue:a.value.targetPathType,"onUpdate:modelValue":t[3]||(t[3]=r=>a.value.targetPathType=r)},{default:e.withCtx(()=>[e.createVNode(o,{value:"WEB_URL",label:"Web地址"}),e.createVNode(o,{value:"PAGE_PATH",label:"页面地址"}),e.createVNode(o,{value:"API",label:"API地址"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(f,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(b,{type:"textarea",modelValue:a.value.params,"onUpdate:modelValue":t[4]||(t[4]=r=>a.value.params=r)},null,8,["modelValue"])]),_:1}),e.createVNode(f,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(y,{type:"datetimerange",modelValue:a.value.shelfTimeArr,"onUpdate:modelValue":t[5]||(t[5]=r=>a.value.shelfTimeArr=r),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),$=e.defineComponent({__name:"BannerListView",setup(u){const n=e.inject("http"),i=e.ref({sceneCode:null,status:null}),c=e.ref([]);function a(){n==null||n.get("/api/banner/all-scene-code").then(t=>{c.value=t.data})}const k=e.ref(),h=e.ref(!1);function m(){h.value=!!i.value.sceneCode,k.value.search()}function N(t){n==null||n.post(`/api/banner/${t}/publish`).then(o=>{m()})}function x(t){n==null||n.post(`/api/banner/${t}/off-shelf`).then(o=>{m()})}function w(t,o){n==null||n.post(`/api/banner/${t}/move-up`).then(s=>{i.value.sceneCode=o,m()})}function V(t,o){n==null||n.post(`/api/banner/${t}/move-down`).then(s=>{i.value.sceneCode=o,m()})}e.onBeforeMount(()=>{a()});const B=e.ref();function C(t){B.value.show(c.value,t)}return(t,o)=>{const s=e.resolveComponent("el-option"),f=e.resolveComponent("el-select"),p=e.resolveComponent("el-button"),b=e.resolveComponent("el-space"),y=e.resolveComponent("el-card"),d=e.resolveComponent("el-table-column"),T=e.resolveComponent("el-image"),P=e.resolveComponent("el-descriptions-item"),r=e.resolveComponent("el-descriptions"),H=e.resolveComponent("el-popover"),A=e.resolveComponent("el-tag"),D=e.resolveComponent("el-popconfirm"),O=e.resolveComponent("pg-table"),I=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,null,{default:e.withCtx(()=>[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.value.sceneCode,"onUpdate:modelValue":o[0]||(o[0]=l=>i.value.sceneCode=l),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,g)=>(e.openBlock(),e.createBlock(s,{label:l,value:l,key:`sc_con_${g}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(f,{modelValue:i.value.status,"onUpdate:modelValue":o[1]||(o[1]=l=>i.value.status=l),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"草稿",value:"DRAFT"}),e.createVNode(s,{label:"已发布",value:"PUBLISH"}),e.createVNode(s,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(p,{type:"primary",icon:"search",onClick:m},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(p,{icon:"plus",onClick:o[2]||(o[2]=l=>C())},{default:e.withCtx(()=>[e.createTextVNode("创建Banner")]),_:1})),[[I,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(O,{ref_key:"table",ref:k,"data-url":"/api/banner/page",onRowDbClick:o[3]||(o[3]=l=>t.$hasPer("UPDATE_BANNER")?C(l):null),condition:i.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[h.value&&t.$hasPer("BANNER_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(d,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:l})=>[e.createVNode(b,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(p,{icon:"ArrowUpBold",onClick:g=>w(l.id,l.sceneCode)},null,8,["onClick"]),e.createVNode(p,{icon:"ArrowDownBold",onClick:g=>V(l.id,l.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(d,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(d,{label:"图片",width:"300",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(T,{src:l.image,style:{"max-width":"300px"},"preview-src-list":[l.image],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),e.createVNode(d,{label:"目标路径",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(d,{label:"目标路径类型",prop:"targetPathType",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(e.unref(F)[l.targetPathType].name),1)]),_:1}),e.createVNode(d,{label:"目标路径参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.params?(e.openBlock(),e.createBlock(H,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.params.substring(0,100))+e.toDisplayString(l.params.length>100?"...":""),1)]),default:e.withCtx(()=>[l.params.startsWith("{")?(e.openBlock(),e.createBlock(r,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(l.params),(g,j)=>(e.openBlock(),e.createBlock(P,{label:j,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(d,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(d,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:l})=>[l.status=="DRAFT"?(e.openBlock(),e.createBlock(A,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),l.status=="PUBLISH"?(e.openBlock(),e.createBlock(A,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),l.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(A,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(d,{align:"center",width:"90"},{default:e.withCtx(({row:l})=>[["DRAFT","OFF_SHELF"].indexOf(l.status)>=0&&t.$hasPer("BANNER_PUBLISH")?(e.openBlock(),e.createBlock(D,{key:0,onConfirm:g=>N(l.id),title:`确定要${l.status=="DRAFT"?"发布":"上架"}该Banner吗?`},{reference:e.withCtx(()=>[e.createVNode(p,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),l.status=="PUBLISH"&&t.$hasPer("BANNER_OFF_SHELF")?(e.openBlock(),e.createBlock(D,{key:1,onConfirm:g=>x(l.id),title:"确定要[下架]该Banner吗?"},{reference:e.withCtx(()=>[e.createVNode(p,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(U,{ref_key:"bannerDialog",ref:B,onSuccess:m},null,512)],64)}}}),R={install:(u,n)=>{let i=n.router,c=i.getRoutes().find(a=>a.path=="/");c&&c.meta&&i.addRoute({path:"/terminal/banner",name:"TerminalBanner",redirect:"/terminal/banner/list",component:c.meta.commonLayout,children:[{path:"list",name:"BannerListView",component:$}]})}},S=(u,n)=>{E.forEach(i=>u.use(i)),u.use(R,n)},L={install:S};_.default=L,_.install=S,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u["pg-user-core"]={},u.Vue))})(this,function(u,e){"use strict";const L=[],$={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},R={OPEN_WEB:{name:"打开Web页面"},OPEN_VIEW:{name:"打开内置页面"},API_REQUEST:{name:"请求API"},EXEC_METHOD:{name:"执行方法"},CUSTOM:{name:"自定义"}},I=e.defineComponent({__name:"BannerDialog",emits:["success"],setup(y,{expose:r,emit:i}){const m=e.ref(!1),o=e.ref({sceneCode:null,image:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),N=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],image:[{required:!0,message:"请上传图片"}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),C=e.ref(!1),f=e.inject("http"),k=e.ref();function b(){var a;(a=k.value)==null||a.validate(t=>{if(t){C.value=!0;let s=`/api/app/banner/${V.value??""}/${V.value?"update":"create"}`,d={...o.value};d.shelfTime=null,d.offShelfTime=null,o.value.shelfTimeArr.length&&(d.shelfTime=o.value.shelfTimeArr[0],d.offShelfTime=o.value.shelfTimeArr[1]),f==null||f.post(s,d).then(c=>{var _;i("success"),(_=k.value)==null||_.resetFields(),m.value=!1}).finally(()=>{C.value=!1})}})}const g=e.ref([]),V=e.ref(null);function w(a,t){g.value=a,V.value=null,m.value=!0,e.nextTick(()=>{t&&(V.value=t.id,Object.assign(o.value,t),t.shelfTime&&t.offShelfTime&&(o.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function B(){var a;(a=k.value)==null||a.resetFields()}return r({show:w}),(a,t)=>{const s=e.resolveComponent("el-option"),d=e.resolveComponent("el-select"),c=e.resolveComponent("el-form-item"),_=e.resolveComponent("pg-upload"),x=e.resolveComponent("el-input"),p=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),S=e.resolveComponent("el-form"),A=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{modelValue:m.value,"onUpdate:modelValue":t[6]||(t[6]=n=>m.value=n),width:"400",onClosed:B},{footer:e.withCtx(()=>[e.createVNode(A,{type:"primary",disabled:C.value,loading:C.value,onClick:b},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(S,{ref_key:"form",ref:k,rules:N.value,model:o.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(c,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.sceneCode=n),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,n=>(e.openBlock(),e.createBlock(s,{key:n,value:n,label:n},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"图片",prop:"image"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(_,{accept:"jpg,jpeg,png",modelValue:o.value.image,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.image=n),key:`img_${V.value}`,"list-type":"picture-card","upload-type":"banner",limit:1},null,8,["modelValue"]))]),_:1}),e.createVNode(c,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(d,{placeholder:"请选择点击事件类型",modelValue:o.value.clickEventType,"onUpdate:modelValue":t[2]||(t[2]=n=>o.value.clickEventType=n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($),(n,T)=>(e.openBlock(),e.createBlock(s,{value:T,label:n.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(o.value.clickEventType)>=0?(e.openBlock(),e.createBlock(c,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(x,{placeholder:"请输入目标地址",modelValue:o.value.targetPath,"onUpdate:modelValue":t[3]||(t[3]=n=>o.value.targetPath=n)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(c,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(x,{type:"textarea",modelValue:o.value.params,"onUpdate:modelValue":t[4]||(t[4]=n=>o.value.params=n),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:o.value.shelfTimeArr,"onUpdate:modelValue":t[5]||(t[5]=n=>o.value.shelfTimeArr=n),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),H=e.defineComponent({__name:"BannerListView",setup(y){const r=e.inject("http"),i=e.ref({sceneCode:null,status:null}),m=e.ref([]);function o(){r==null||r.get("/api/app/banner/all-scene-code").then(a=>{m.value=a.data})}const N=e.ref(),C=e.ref(!1);function f(){C.value=!!i.value.sceneCode,N.value.search()}function k(a){r==null||r.post(`/api/app/banner/${a}/publish`).then(t=>{f()})}function b(a){r==null||r.post(`/api/app/banner/${a}/off-shelf`).then(t=>{f()})}function g(a,t){r==null||r.post(`/api/app/banner/${a}/move-up`).then(s=>{i.value.sceneCode=t,f()})}function V(a,t){r==null||r.post(`/api/app/banner/${a}/move-down`).then(s=>{i.value.sceneCode=t,f()})}e.onBeforeMount(()=>{o()});const w=e.ref();function B(a){w.value.show(m.value,a)}return(a,t)=>{const s=e.resolveComponent("el-option"),d=e.resolveComponent("el-select"),c=e.resolveComponent("el-button"),_=e.resolveComponent("el-space"),x=e.resolveComponent("el-card"),p=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),S=e.resolveComponent("el-descriptions-item"),A=e.resolveComponent("el-descriptions"),D=e.resolveComponent("el-popover"),n=e.resolveComponent("el-tag"),T=e.resolveComponent("el-popconfirm"),F=e.resolveComponent("pg-table"),U=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=l=>i.value.sceneCode=l),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,h)=>(e.openBlock(),e.createBlock(s,{label:l,value:l,key:`sc_con_${h}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:i.value.status,"onUpdate:modelValue":t[1]||(t[1]=l=>i.value.status=l),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"草稿",value:"DRAFT"}),e.createVNode(s,{label:"已发布",value:"PUBLISH"}),e.createVNode(s,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(c,{type:"primary",icon:"search",onClick:f},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(c,{icon:"plus",onClick:t[2]||(t[2]=l=>B())},{default:e.withCtx(()=>[e.createTextVNode("创建Banner")]),_:1})),[[U,"CREATE_BANNER"]])]),_:1})]),_:1}),e.createVNode(F,{ref_key:"table",ref:N,"data-url":"/api/app/banner/page",onRowDbClick:t[3]||(t[3]=l=>a.$hasPer("UPDATE_BANNER")?B(l):null),condition:i.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[C.value&&a.$hasPer("BANNER_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(p,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:l})=>[e.createVNode(_,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(c,{icon:"ArrowUpBold",onClick:h=>g(l.id,l.sceneCode)},null,8,["onClick"]),e.createVNode(c,{icon:"ArrowDownBold",onClick:h=>V(l.id,l.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(p,{label:"图片",width:"300",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(E,{src:l.image,style:{"max-width":"300px"},"preview-src-list":[l.image],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),e.createVNode(p,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.clickEventType?e.unref($)[l.clickEventType].name:""),1)]),_:1}),e.createVNode(p,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(p,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.params?(e.openBlock(),e.createBlock(D,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.params.substring(0,100))+e.toDisplayString(l.params.length>100?"...":""),1)]),default:e.withCtx(()=>[l.params.startsWith("{")?(e.openBlock(),e.createBlock(A,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(l.params),(h,P)=>(e.openBlock(),e.createBlock(S,{label:P,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(p,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(p,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(p,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:l})=>[l.status=="DRAFT"?(e.openBlock(),e.createBlock(n,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),l.status=="PUBLISH"?(e.openBlock(),e.createBlock(n,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),l.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(n,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(p,{align:"center",width:"90"},{default:e.withCtx(({row:l})=>[["DRAFT","OFF_SHELF"].indexOf(l.status)>=0&&a.$hasPer("BANNER_PUBLISH")?(e.openBlock(),e.createBlock(T,{key:0,onConfirm:h=>k(l.id),title:`确定要${l.status=="DRAFT"?"发布":"上架"}该Banner吗?`},{reference:e.withCtx(()=>[e.createVNode(c,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),l.status=="PUBLISH"&&a.$hasPer("BANNER_OFF_SHELF")?(e.openBlock(),e.createBlock(T,{key:1,onConfirm:h=>b(l.id),title:"确定要[下架]该Banner吗?"},{reference:e.withCtx(()=>[e.createVNode(c,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(I,{ref_key:"bannerDialog",ref:w,onSuccess:f},null,512)],64)}}}),W=e.defineComponent({__name:"EntranceDialog",emits:["success"],setup(y,{expose:r,emit:i}){const m=e.ref(!1),o=e.ref({sceneCode:null,name:null,iconType:"NAME",icon:null,targetPath:null,clickEventType:"",params:null,shelfTimeArr:[]}),N=e.ref({sceneCode:[{required:!0,message:"请输入场景代码"}],name:[{required:!0,message:"请输入入口名称"}],iconType:[{required:!0,message:"请选择图标类型"}],icon:[{required:!0,message:`请${o.value.iconType=="NAME"?"输入图标名称":"上传图标图片"}`}],targetPath:[{required:!0,message:"请输入目标地址"}],clickEventType:[{required:!0,message:"请选择点击事件类型"}]}),C=e.ref(!1),f=e.inject("http"),k=e.ref();function b(){var a;(a=k.value)==null||a.validate(t=>{if(t){C.value=!0;let s=`/api/app/entrance/${V.value??""}/${V.value?"update":"create"}`,d={...o.value};d.shelfTime=null,d.offShelfTime=null,o.value.shelfTimeArr.length&&(d.shelfTime=o.value.shelfTimeArr[0],d.offShelfTime=o.value.shelfTimeArr[1]),f==null||f.post(s,d).then(c=>{var _;i("success"),(_=k.value)==null||_.resetFields(),m.value=!1}).finally(()=>{C.value=!1})}})}const g=e.ref([]),V=e.ref(null);function w(a,t){g.value=a,V.value=null,m.value=!0,e.nextTick(()=>{t&&(V.value=t.id,Object.assign(o.value,t),t.shelfTime&&t.offShelfTime&&(o.value.shelfTimeArr=[new Date(t.shelfTime),new Date(t.offShelfTime)]))})}function B(){var a;(a=k.value)==null||a.resetFields()}return r({show:w}),(a,t)=>{const s=e.resolveComponent("el-option"),d=e.resolveComponent("el-select"),c=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-input"),x=e.resolveComponent("pg-upload"),p=e.resolveComponent("el-collapse-transition"),E=e.resolveComponent("el-date-picker"),S=e.resolveComponent("el-form"),A=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{modelValue:m.value,"onUpdate:modelValue":t[9]||(t[9]=n=>m.value=n),width:"400",onClose:B},{footer:e.withCtx(()=>[e.createVNode(A,{type:"primary",disabled:C.value,loading:C.value,onClick:b},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1},8,["disabled","loading"])]),default:e.withCtx(()=>[e.createVNode(S,{ref_key:"form",ref:k,rules:N.value,model:o.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(c,{label:"场景代码",prop:"sceneCode"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.sceneCode=n),placeholder:"请输入/选择场景代码","allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,n=>(e.openBlock(),e.createBlock(s,{key:n,value:n,label:n},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"入口名称",prop:"name"},{default:e.withCtx(()=>[e.createVNode(_,{placeholder:"请输入入口名称",modelValue:o.value.name,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.name=n)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"图标类型",prop:"iconType"},{default:e.withCtx(()=>[e.createVNode(d,{placeholder:"请选择图标类型",modelValue:o.value.iconType,"onUpdate:modelValue":t[2]||(t[2]=n=>o.value.iconType=n)},{default:e.withCtx(()=>[e.createVNode(s,{value:"NAME",label:"图标名称"}),e.createVNode(s,{value:"URL",label:"图标URL"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"图标",prop:"icon"},{default:e.withCtx(()=>[o.value.iconType=="URL"?(e.openBlock(),e.createBlock(x,{accept:"jpg,jpeg,png,gif",modelValue:o.value.icon,"onUpdate:modelValue":t[3]||(t[3]=n=>o.value.icon=n),key:`img_${V.value}`,"list-type":"picture-card","upload-type":"entrance",limit:1},null,8,["modelValue"])):(e.openBlock(),e.createBlock(_,{key:1,modelValue:o.value.icon,"onUpdate:modelValue":t[4]||(t[4]=n=>o.value.icon=n),placeholder:"请输入图标名称",clearable:""},null,8,["modelValue"]))]),_:1}),e.createVNode(c,{label:"点击事件类型",prop:"clickEventType"},{default:e.withCtx(()=>[e.createVNode(d,{placeholder:"请选择点击事件类型",modelValue:o.value.clickEventType,"onUpdate:modelValue":t[5]||(t[5]=n=>o.value.clickEventType=n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R),(n,T)=>(e.openBlock(),e.createBlock(s,{value:T,label:n.name},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[["OPEN_WEB","OPEN_VIEW","API_REQUEST"].indexOf(o.value.clickEventType)>=0?(e.openBlock(),e.createBlock(c,{key:0,label:"目标地址",prop:"targetPath"},{default:e.withCtx(()=>[e.createVNode(_,{placeholder:"请输入目标地址",modelValue:o.value.targetPath,"onUpdate:modelValue":t[6]||(t[6]=n=>o.value.targetPath=n)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(c,{label:"目标地址参数",prop:"params"},{default:e.withCtx(()=>[e.createVNode(_,{type:"textarea",modelValue:o.value.params,"onUpdate:modelValue":t[7]||(t[7]=n=>o.value.params=n),placeholder:"请输入JSON格式的参数对象"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"生效时段",prop:"shelfTimeArr"},{default:e.withCtx(()=>[e.createVNode(E,{type:"datetimerange",modelValue:o.value.shelfTimeArr,"onUpdate:modelValue":t[8]||(t[8]=n=>o.value.shelfTimeArr=n),"start-placeholder":"上架时间","end-placeholder":"下架时间","default-time":[new Date(2e3,1,1,0,0,0),new Date(2e3,1,1,23,59,59)]},null,8,["modelValue","default-time"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue"])}}}),M=e.defineComponent({__name:"EntranceListView",setup(y){const r=e.inject("http"),i=e.ref({sceneCode:null,status:null}),m=e.ref([]);function o(){r==null||r.get("/api/app/entrance/all-scene-code").then(a=>{m.value=a.data})}const N=e.ref(),C=e.ref(!1);function f(){C.value=!!i.value.sceneCode,N.value.search()}function k(a){r==null||r.post(`/api/app/entrance/${a}/publish`).then(t=>{f()})}function b(a){r==null||r.post(`/api/app/entrance/${a}/off-shelf`).then(t=>{f()})}function g(a,t){r==null||r.post(`/api/app/entrance/${a}/move-up`).then(s=>{i.value.sceneCode=t,f()})}function V(a,t){r==null||r.post(`/api/app/entrance/${a}/move-down`).then(s=>{i.value.sceneCode=t,f()})}e.onBeforeMount(()=>{o()});const w=e.ref();function B(a){w.value.show(m.value,a)}return(a,t)=>{const s=e.resolveComponent("el-option"),d=e.resolveComponent("el-select"),c=e.resolveComponent("el-button"),_=e.resolveComponent("el-space"),x=e.resolveComponent("el-card"),p=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-image"),S=e.resolveComponent("el-descriptions-item"),A=e.resolveComponent("el-descriptions"),D=e.resolveComponent("el-popover"),n=e.resolveComponent("el-tag"),T=e.resolveComponent("el-popconfirm"),F=e.resolveComponent("pg-table"),U=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.sceneCode,"onUpdate:modelValue":t[0]||(t[0]=l=>i.value.sceneCode=l),placeholder:"场景代码",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,h)=>(e.openBlock(),e.createBlock(s,{label:l,value:l,key:`sc_con_${h}`},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:i.value.status,"onUpdate:modelValue":t[1]||(t[1]=l=>i.value.status=l),placeholder:"状态",clearable:"",style:{width:"150px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"草稿",value:"DRAFT"}),e.createVNode(s,{label:"已发布",value:"PUBLISH"}),e.createVNode(s,{label:"已下架",value:"OFF_SHELF"})]),_:1},8,["modelValue"]),e.createVNode(c,{type:"primary",icon:"search",onClick:f},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(c,{icon:"plus",onClick:t[2]||(t[2]=l=>B())},{default:e.withCtx(()=>[e.createTextVNode("创建入口")]),_:1})),[[U,"CREATE_ENTRANCE"]])]),_:1})]),_:1}),e.createVNode(F,{ref_key:"table",ref:N,"data-url":"/api/app/entrance/page",onRowDbClick:t[3]||(t[3]=l=>a.$hasPer("UPDATE_ENTRANCE")?B(l):null),condition:i.value,style:{"margin-top":"10px"}},{default:e.withCtx(()=>[C.value&&a.$hasPer("ENTRANCE_SEQ_MOVE_UP_DOWN")?(e.openBlock(),e.createBlock(p,{key:0,align:"center",width:"80"},{default:e.withCtx(({row:l})=>[e.createVNode(_,{direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(c,{icon:"ArrowUpBold",onClick:h=>g(l.id,l.sceneCode)},null,8,["onClick"]),e.createVNode(c,{icon:"ArrowDownBold",onClick:h=>V(l.id,l.sceneCode)},null,8,["onClick"])]),_:2},1024)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"场景代码",prop:"sceneCode",width:"150"}),e.createVNode(p,{label:"图标",width:"200",align:"center"},{default:e.withCtx(({row:l})=>[l.iconType=="URL"?(e.openBlock(),e.createBlock(E,{key:0,src:l.icon,style:{"max-width":"200px"},"preview-src-list":[l.icon],"preview-teleported":""},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.icon),1)],64))]),_:1}),e.createVNode(p,{label:"点击事件类型",prop:"clickEventType",width:"120"},{default:e.withCtx(({row:l})=>[e.createTextVNode(e.toDisplayString(l.clickEventType?e.unref(R)[l.clickEventType].name:""),1)]),_:1}),e.createVNode(p,{label:"目标地址",prop:"targetPath","show-overflow-tooltip":""}),e.createVNode(p,{label:"目标参数",width:"120","show-overflow-tooltip":""},{default:e.withCtx(({row:l})=>[l.params?(e.openBlock(),e.createBlock(D,{key:0,trigger:"hover",width:"350"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.params.substring(0,100))+e.toDisplayString(l.params.length>100?"...":""),1)]),default:e.withCtx(()=>[l.params.startsWith("{")?(e.openBlock(),e.createBlock(A,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(l.params),(h,P)=>(e.openBlock(),e.createBlock(S,{label:P,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.params),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(p,{label:"上架时间",prop:"shelfTime",width:"180",align:"center"}),e.createVNode(p,{label:"下架时间",prop:"offShelfTime",width:"180",align:"center"}),e.createVNode(p,{label:"状态",align:"center",width:"88"},{default:e.withCtx(({row:l})=>[l.status=="DRAFT"?(e.openBlock(),e.createBlock(n,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("草稿")]),_:1})):e.createCommentVNode("",!0),l.status=="PUBLISH"?(e.openBlock(),e.createBlock(n,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("已发布")]),_:1})):e.createCommentVNode("",!0),l.status=="OFF_SHELF"?(e.openBlock(),e.createBlock(n,{key:2,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("已下架")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(p,{align:"center",width:"90"},{default:e.withCtx(({row:l})=>[["DRAFT","OFF_SHELF"].indexOf(l.status)>=0&&a.$hasPer("ENTRANCE_PUBLISH")?(e.openBlock(),e.createBlock(T,{key:0,onConfirm:h=>k(l.id),title:`确定要${l.status=="DRAFT"?"发布":"上架"}该入口吗?`},{reference:e.withCtx(()=>[e.createVNode(c,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.status=="DRAFT"?"发布":"上架"),1)]),_:2},1024)]),_:2},1032,["onConfirm","title"])):e.createCommentVNode("",!0),l.status=="PUBLISH"&&a.$hasPer("ENTRANCE_OFF_SHELF")?(e.openBlock(),e.createBlock(T,{key:1,onConfirm:h=>b(l.id),title:"确定要[下架]该入口吗?"},{reference:e.withCtx(()=>[e.createVNode(c,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("下架")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(W,{ref_key:"entranceDialog",ref:w,onSuccess:f},null,512)],64)}}}),j={install:(y,r)=>{let i=r.router,m=i.getRoutes().find(o=>o.path=="/");m&&m.meta&&(i.addRoute({path:"/app/banner",name:"AppBanner",redirect:"/app/banner/list",component:m.meta.commonLayout,children:[{path:"list",name:"BannerListView",component:H}]}),i.addRoute({path:"/app/entrance",name:"AppEntrance",redirect:"/app/entrance/list",component:m.meta.commonLayout,children:[{path:"list",name:"EntranceListView",component:M}]}))}},O=(y,r)=>{L.forEach(i=>y.use(i)),y.use(j,r)},q={install:O};u.default=q,u.install=O,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
package/types/Constant.d.ts
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const bannerClickEventTypes: {
|
|
2
|
+
OPEN_WEB: {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
OPEN_VIEW: {
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
API_REQUEST: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
EXEC_METHOD: {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
CUSTOM: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const entranceClickEventTypes: {
|
|
19
|
+
OPEN_WEB: {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
OPEN_VIEW: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
API_REQUEST: {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
EXEC_METHOD: {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
CUSTOM: {
|
|
9
32
|
name: string;
|
|
10
33
|
};
|
|
11
34
|
};
|
|
@@ -16,14 +16,20 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
16
16
|
moveDown: (id: number, sceneCode: string) => void;
|
|
17
17
|
bannerDialog: import("vue").Ref<any>;
|
|
18
18
|
showBannerDialog: (banner?: any) => void;
|
|
19
|
-
readonly
|
|
20
|
-
|
|
19
|
+
readonly bannerClickEventTypes: {
|
|
20
|
+
OPEN_WEB: {
|
|
21
21
|
name: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
OPEN_VIEW: {
|
|
24
24
|
name: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
API_REQUEST: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
EXEC_METHOD: {
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
32
|
+
CUSTOM: {
|
|
27
33
|
name: string;
|
|
28
34
|
};
|
|
29
35
|
};
|
|
@@ -34,7 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
34
40
|
sceneCode: null;
|
|
35
41
|
image: null;
|
|
36
42
|
targetPath: null;
|
|
37
|
-
|
|
43
|
+
clickEventType: string;
|
|
38
44
|
params: null;
|
|
39
45
|
shelfTimeArr: {
|
|
40
46
|
toString: () => string;
|
|
@@ -387,6 +393,24 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
387
393
|
allSceneCodes: import("vue").Ref<string[]>;
|
|
388
394
|
bannerId: import("vue").Ref<number | null>;
|
|
389
395
|
show: (allSceneCodesParam: string[], banner?: any) => void;
|
|
396
|
+
clearForm: () => void;
|
|
397
|
+
readonly bannerClickEventTypes: {
|
|
398
|
+
OPEN_WEB: {
|
|
399
|
+
name: string;
|
|
400
|
+
};
|
|
401
|
+
OPEN_VIEW: {
|
|
402
|
+
name: string;
|
|
403
|
+
};
|
|
404
|
+
API_REQUEST: {
|
|
405
|
+
name: string;
|
|
406
|
+
};
|
|
407
|
+
EXEC_METHOD: {
|
|
408
|
+
name: string;
|
|
409
|
+
};
|
|
410
|
+
CUSTOM: {
|
|
411
|
+
name: string;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
390
414
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "success"[], "success", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
391
415
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
392
416
|
}, {}>;
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import { Http } from "@pangu-backend-ui/common";
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
|
+
http: Http | undefined;
|
|
4
|
+
condition: import("vue").Ref<{
|
|
5
|
+
sceneCode: any;
|
|
6
|
+
status: null;
|
|
7
|
+
}>;
|
|
8
|
+
sceneCodes: import("vue").Ref<string[]>;
|
|
9
|
+
getSceneCodes: () => void;
|
|
10
|
+
table: import("vue").Ref<any>;
|
|
11
|
+
moveColShow: import("vue").Ref<boolean>;
|
|
12
|
+
search: () => void;
|
|
13
|
+
publish: (id: number) => void;
|
|
14
|
+
offShelf: (id: number) => void;
|
|
15
|
+
moveUp: (id: number, sceneCode: string) => void;
|
|
16
|
+
moveDown: (id: number, sceneCode: string) => void;
|
|
17
|
+
entranceDialog: import("vue").Ref<any>;
|
|
18
|
+
showEntranceDialog: (banner?: any) => void;
|
|
19
|
+
readonly entranceClickEventTypes: {
|
|
20
|
+
OPEN_WEB: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
OPEN_VIEW: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
API_REQUEST: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
EXEC_METHOD: {
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
32
|
+
CUSTOM: {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
EntranceDialog: import("vue").DefineComponent<{}, {
|
|
37
|
+
emits: (event: "success", ...args: any[]) => void;
|
|
38
|
+
showState: import("vue").Ref<boolean>;
|
|
39
|
+
formState: import("vue").Ref<{
|
|
40
|
+
sceneCode: null;
|
|
41
|
+
name: null;
|
|
42
|
+
iconType: string;
|
|
43
|
+
icon: null;
|
|
44
|
+
targetPath: null;
|
|
45
|
+
clickEventType: string;
|
|
46
|
+
params: null;
|
|
47
|
+
shelfTimeArr: {
|
|
48
|
+
toString: () => string;
|
|
49
|
+
toDateString: () => string;
|
|
50
|
+
toTimeString: () => string;
|
|
51
|
+
toLocaleString: {
|
|
52
|
+
(): string;
|
|
53
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
54
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
55
|
+
};
|
|
56
|
+
toLocaleDateString: {
|
|
57
|
+
(): string;
|
|
58
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
59
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
60
|
+
};
|
|
61
|
+
toLocaleTimeString: {
|
|
62
|
+
(): string;
|
|
63
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
64
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
65
|
+
};
|
|
66
|
+
valueOf: () => number;
|
|
67
|
+
getTime: () => number;
|
|
68
|
+
getFullYear: () => number;
|
|
69
|
+
getUTCFullYear: () => number;
|
|
70
|
+
getMonth: () => number;
|
|
71
|
+
getUTCMonth: () => number;
|
|
72
|
+
getDate: () => number;
|
|
73
|
+
getUTCDate: () => number;
|
|
74
|
+
getDay: () => number;
|
|
75
|
+
getUTCDay: () => number;
|
|
76
|
+
getHours: () => number;
|
|
77
|
+
getUTCHours: () => number;
|
|
78
|
+
getMinutes: () => number;
|
|
79
|
+
getUTCMinutes: () => number;
|
|
80
|
+
getSeconds: () => number;
|
|
81
|
+
getUTCSeconds: () => number;
|
|
82
|
+
getMilliseconds: () => number;
|
|
83
|
+
getUTCMilliseconds: () => number;
|
|
84
|
+
getTimezoneOffset: () => number;
|
|
85
|
+
setTime: (time: number) => number;
|
|
86
|
+
setMilliseconds: (ms: number) => number;
|
|
87
|
+
setUTCMilliseconds: (ms: number) => number;
|
|
88
|
+
setSeconds: (sec: number, ms?: number | undefined) => number;
|
|
89
|
+
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
|
90
|
+
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
91
|
+
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
92
|
+
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
93
|
+
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
94
|
+
setDate: (date: number) => number;
|
|
95
|
+
setUTCDate: (date: number) => number;
|
|
96
|
+
setMonth: (month: number, date?: number | undefined) => number;
|
|
97
|
+
setUTCMonth: (month: number, date?: number | undefined) => number;
|
|
98
|
+
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
99
|
+
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
100
|
+
toUTCString: () => string;
|
|
101
|
+
toISOString: () => string;
|
|
102
|
+
toJSON: (key?: any) => string;
|
|
103
|
+
[Symbol.toPrimitive]: {
|
|
104
|
+
(hint: "default"): string;
|
|
105
|
+
(hint: "string"): string;
|
|
106
|
+
(hint: "number"): number;
|
|
107
|
+
(hint: string): string | number;
|
|
108
|
+
};
|
|
109
|
+
}[];
|
|
110
|
+
}>;
|
|
111
|
+
formRule: import("vue").Ref<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
112
|
+
handling: import("vue").Ref<boolean>;
|
|
113
|
+
http: Http | undefined;
|
|
114
|
+
form: import("vue").Ref<({
|
|
115
|
+
$: import("vue").ComponentInternalInstance;
|
|
116
|
+
$data: {};
|
|
117
|
+
$props: Partial<{
|
|
118
|
+
readonly disabled: boolean;
|
|
119
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
120
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
121
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
122
|
+
readonly labelSuffix: string;
|
|
123
|
+
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
124
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
|
+
readonly inline: boolean;
|
|
127
|
+
readonly inlineMessage: boolean;
|
|
128
|
+
readonly statusIcon: boolean;
|
|
129
|
+
readonly scrollToError: boolean;
|
|
130
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
131
|
+
readonly model: ObjectConstructor;
|
|
132
|
+
readonly rules: {
|
|
133
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
134
|
+
readonly required: false;
|
|
135
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
136
|
+
__epPropKey: true;
|
|
137
|
+
};
|
|
138
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
139
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
140
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
141
|
+
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
142
|
+
readonly inline: BooleanConstructor;
|
|
143
|
+
readonly inlineMessage: BooleanConstructor;
|
|
144
|
+
readonly statusIcon: BooleanConstructor;
|
|
145
|
+
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
146
|
+
readonly size: {
|
|
147
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
148
|
+
readonly required: false;
|
|
149
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
150
|
+
__epPropKey: true;
|
|
151
|
+
};
|
|
152
|
+
readonly disabled: BooleanConstructor;
|
|
153
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
154
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
155
|
+
readonly scrollToError: BooleanConstructor;
|
|
156
|
+
}>> & {
|
|
157
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
158
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "disabled" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
159
|
+
$attrs: {
|
|
160
|
+
[x: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
$refs: {
|
|
163
|
+
[x: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
$slots: Readonly<{
|
|
166
|
+
[name: string]: import("vue").Slot | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
169
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
170
|
+
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
171
|
+
$el: any;
|
|
172
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
173
|
+
readonly model: ObjectConstructor;
|
|
174
|
+
readonly rules: {
|
|
175
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
176
|
+
readonly required: false;
|
|
177
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
178
|
+
__epPropKey: true;
|
|
179
|
+
};
|
|
180
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
181
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
182
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
183
|
+
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
184
|
+
readonly inline: BooleanConstructor;
|
|
185
|
+
readonly inlineMessage: BooleanConstructor;
|
|
186
|
+
readonly statusIcon: BooleanConstructor;
|
|
187
|
+
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
188
|
+
readonly size: {
|
|
189
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
190
|
+
readonly required: false;
|
|
191
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
192
|
+
__epPropKey: true;
|
|
193
|
+
};
|
|
194
|
+
readonly disabled: BooleanConstructor;
|
|
195
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
196
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
197
|
+
readonly scrollToError: BooleanConstructor;
|
|
198
|
+
}>> & {
|
|
199
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
COMPONENT_NAME: string;
|
|
202
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
203
|
+
readonly model: ObjectConstructor;
|
|
204
|
+
readonly rules: {
|
|
205
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
206
|
+
readonly required: false;
|
|
207
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
208
|
+
__epPropKey: true;
|
|
209
|
+
};
|
|
210
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
211
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
212
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
213
|
+
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
214
|
+
readonly inline: BooleanConstructor;
|
|
215
|
+
readonly inlineMessage: BooleanConstructor;
|
|
216
|
+
readonly statusIcon: BooleanConstructor;
|
|
217
|
+
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
218
|
+
readonly size: {
|
|
219
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
220
|
+
readonly required: false;
|
|
221
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
222
|
+
__epPropKey: true;
|
|
223
|
+
};
|
|
224
|
+
readonly disabled: BooleanConstructor;
|
|
225
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
226
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
227
|
+
readonly scrollToError: BooleanConstructor;
|
|
228
|
+
}>> & {
|
|
229
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
230
|
+
}>>;
|
|
231
|
+
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
232
|
+
fields: import("element-plus").FormItemContext[];
|
|
233
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
234
|
+
ns: {
|
|
235
|
+
namespace: import("vue").Ref<string>;
|
|
236
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
237
|
+
e: (element?: string | undefined) => string;
|
|
238
|
+
m: (modifier?: string | undefined) => string;
|
|
239
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
240
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
241
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
242
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
243
|
+
is: {
|
|
244
|
+
(name: string, state: boolean | undefined): string;
|
|
245
|
+
(name: string): string;
|
|
246
|
+
};
|
|
247
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
248
|
+
cssVarName: (name: string) => string;
|
|
249
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
250
|
+
cssVarBlockName: (name: string) => string;
|
|
251
|
+
};
|
|
252
|
+
formClasses: import("vue").ComputedRef<(string | {
|
|
253
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
254
|
+
})[]>;
|
|
255
|
+
addField: (field: import("element-plus").FormItemContext) => void;
|
|
256
|
+
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
257
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
258
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
259
|
+
isValidatable: import("vue").ComputedRef<boolean>;
|
|
260
|
+
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
261
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
262
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
263
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
264
|
+
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
265
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
266
|
+
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
267
|
+
}, string, {
|
|
268
|
+
readonly disabled: boolean;
|
|
269
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
270
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
271
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
272
|
+
readonly labelSuffix: string;
|
|
273
|
+
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
274
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
275
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
276
|
+
readonly inline: boolean;
|
|
277
|
+
readonly inlineMessage: boolean;
|
|
278
|
+
readonly statusIcon: boolean;
|
|
279
|
+
readonly scrollToError: boolean;
|
|
280
|
+
}, {}, string> & {
|
|
281
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
282
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
283
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
284
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
285
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
286
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
287
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
288
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
289
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
290
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
291
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
292
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
293
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
294
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
295
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
296
|
+
};
|
|
297
|
+
$forceUpdate: () => void;
|
|
298
|
+
$nextTick: typeof import("vue").nextTick;
|
|
299
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
300
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
301
|
+
readonly model: ObjectConstructor;
|
|
302
|
+
readonly rules: {
|
|
303
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
304
|
+
readonly required: false;
|
|
305
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
306
|
+
__epPropKey: true;
|
|
307
|
+
};
|
|
308
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
309
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
310
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
311
|
+
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
312
|
+
readonly inline: BooleanConstructor;
|
|
313
|
+
readonly inlineMessage: BooleanConstructor;
|
|
314
|
+
readonly statusIcon: BooleanConstructor;
|
|
315
|
+
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
316
|
+
readonly size: {
|
|
317
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
318
|
+
readonly required: false;
|
|
319
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
320
|
+
__epPropKey: true;
|
|
321
|
+
};
|
|
322
|
+
readonly disabled: BooleanConstructor;
|
|
323
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
324
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
325
|
+
readonly scrollToError: BooleanConstructor;
|
|
326
|
+
}>> & {
|
|
327
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
328
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
329
|
+
COMPONENT_NAME: string;
|
|
330
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
331
|
+
readonly model: ObjectConstructor;
|
|
332
|
+
readonly rules: {
|
|
333
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
334
|
+
readonly required: false;
|
|
335
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
336
|
+
__epPropKey: true;
|
|
337
|
+
};
|
|
338
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
339
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
340
|
+
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
341
|
+
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
342
|
+
readonly inline: BooleanConstructor;
|
|
343
|
+
readonly inlineMessage: BooleanConstructor;
|
|
344
|
+
readonly statusIcon: BooleanConstructor;
|
|
345
|
+
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
346
|
+
readonly size: {
|
|
347
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
348
|
+
readonly required: false;
|
|
349
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
350
|
+
__epPropKey: true;
|
|
351
|
+
};
|
|
352
|
+
readonly disabled: BooleanConstructor;
|
|
353
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
354
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
355
|
+
readonly scrollToError: BooleanConstructor;
|
|
356
|
+
}>> & {
|
|
357
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
358
|
+
}>>;
|
|
359
|
+
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
360
|
+
fields: import("element-plus").FormItemContext[];
|
|
361
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
362
|
+
ns: {
|
|
363
|
+
namespace: import("vue").Ref<string>;
|
|
364
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
365
|
+
e: (element?: string | undefined) => string;
|
|
366
|
+
m: (modifier?: string | undefined) => string;
|
|
367
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
368
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
369
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
370
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
371
|
+
is: {
|
|
372
|
+
(name: string, state: boolean | undefined): string;
|
|
373
|
+
(name: string): string;
|
|
374
|
+
};
|
|
375
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
376
|
+
cssVarName: (name: string) => string;
|
|
377
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
378
|
+
cssVarBlockName: (name: string) => string;
|
|
379
|
+
};
|
|
380
|
+
formClasses: import("vue").ComputedRef<(string | {
|
|
381
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
382
|
+
})[]>;
|
|
383
|
+
addField: (field: import("element-plus").FormItemContext) => void;
|
|
384
|
+
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
385
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
386
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
387
|
+
isValidatable: import("vue").ComputedRef<boolean>;
|
|
388
|
+
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
389
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
390
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
391
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
392
|
+
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
393
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
|
|
394
|
+
submit: () => void;
|
|
395
|
+
allSceneCodes: import("vue").Ref<string[]>;
|
|
396
|
+
entranceId: import("vue").Ref<number | null>;
|
|
397
|
+
show: (allSceneCodesParam: string[], entrance?: any) => void;
|
|
398
|
+
clearForm: () => void;
|
|
399
|
+
readonly entranceClickEventTypes: {
|
|
400
|
+
OPEN_WEB: {
|
|
401
|
+
name: string;
|
|
402
|
+
};
|
|
403
|
+
OPEN_VIEW: {
|
|
404
|
+
name: string;
|
|
405
|
+
};
|
|
406
|
+
API_REQUEST: {
|
|
407
|
+
name: string;
|
|
408
|
+
};
|
|
409
|
+
EXEC_METHOD: {
|
|
410
|
+
name: string;
|
|
411
|
+
};
|
|
412
|
+
CUSTOM: {
|
|
413
|
+
name: string;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "success"[], "success", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
417
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
418
|
+
}, {}>;
|
|
419
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
420
|
+
export default _sfc_main;
|