ling-yun-custom-components 0.0.43 → 0.0.45
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/es/AppIntro.mjs +252 -309
- package/es/IconRenderer.mjs +1 -1
- package/es/IconSelect.mjs +1 -1
- package/es/assets/AppIntro.css +1 -1
- package/es/chunks/global.C1Iy_saH.js +8850 -0
- package/es/chunks/global.Ki4_q0NN.js +8823 -0
- package/es/index.mjs +81 -91
- package/lib/AppIntro.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/assets/AppIntro.css +1 -1
- package/lib/chunks/global.CX5655fW.js +1 -0
- package/lib/chunks/global.XouT1lGG.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/es/index.mjs
CHANGED
|
@@ -1,99 +1,89 @@
|
|
|
1
|
-
import { AppIntro as m
|
|
2
|
-
import { CustomSelect as
|
|
3
|
-
import { SearchBar as
|
|
4
|
-
import { PaginationTable as
|
|
5
|
-
import { UploadFile as
|
|
6
|
-
import { FileList as
|
|
7
|
-
import { BatchImport as
|
|
8
|
-
import { GradientButton as
|
|
9
|
-
import { CustomDialog as
|
|
10
|
-
import { CustomPagination as
|
|
11
|
-
import { CustomTitle as
|
|
12
|
-
import { CustomDropdown as
|
|
13
|
-
import { TreeSelect as
|
|
14
|
-
import { TreeShowSelect as
|
|
15
|
-
import { IconEmpty as
|
|
16
|
-
import { IconRenderer as
|
|
17
|
-
import { IconSelect as
|
|
18
|
-
import { PageNotFound as
|
|
19
|
-
import { UpdatePasswordDialog as
|
|
20
|
-
import { BUILD_BIG_TITLES as
|
|
21
|
-
import { CustomTab as
|
|
22
|
-
import { dayjs as
|
|
1
|
+
import { AppIntro as m } from "./AppIntro.mjs";
|
|
2
|
+
import { CustomSelect as i } from "./CustomSelect.mjs";
|
|
3
|
+
import { SearchBar as e } from "./SearchBar.mjs";
|
|
4
|
+
import { PaginationTable as p } from "./PaginationTable.mjs";
|
|
5
|
+
import { UploadFile as n } from "./UploadFile.mjs";
|
|
6
|
+
import { FileList as f } from "./FileList.mjs";
|
|
7
|
+
import { BatchImport as a } from "./BatchImport.mjs";
|
|
8
|
+
import { GradientButton as l } from "./GradientButton.mjs";
|
|
9
|
+
import { CustomDialog as s } from "./CustomDialog.mjs";
|
|
10
|
+
import { CustomPagination as c } from "./CustomPagination.mjs";
|
|
11
|
+
import { CustomTitle as S } from "./CustomTitle.mjs";
|
|
12
|
+
import { CustomDropdown as u } from "./CustomDropdown.mjs";
|
|
13
|
+
import { TreeSelect as d } from "./TreeSelect.mjs";
|
|
14
|
+
import { TreeShowSelect as I } from "./TreeShowSelect.mjs";
|
|
15
|
+
import { IconEmpty as T } from "./IconEmpty.mjs";
|
|
16
|
+
import { IconRenderer as _, iconLibraryMap as B } from "./IconRenderer.mjs";
|
|
17
|
+
import { IconSelect as L } from "./IconSelect.mjs";
|
|
18
|
+
import { PageNotFound as P } from "./PageNotFound.mjs";
|
|
19
|
+
import { UpdatePasswordDialog as g } from "./UpdatePasswordDialog.mjs";
|
|
20
|
+
import { BUILD_BIG_TITLES as C, BUILD_STEPS as D, BUILD_TITLES as E, BUILD_TYPES as b, BuildComponents as U, STEP_ARROW_IMAGE as y } from "./BuildComponents.mjs";
|
|
21
|
+
import { CustomTab as w } from "./CustomTab.mjs";
|
|
22
|
+
import { dayjs as h } from "element-plus";
|
|
23
23
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
24
|
__proto__: null,
|
|
25
25
|
AppIntro: m,
|
|
26
|
-
BUILD_BIG_TITLES:
|
|
27
|
-
BUILD_STEPS:
|
|
28
|
-
BUILD_TITLES:
|
|
29
|
-
BUILD_TYPES:
|
|
30
|
-
BatchImport:
|
|
31
|
-
BuildComponents:
|
|
32
|
-
CustomDialog:
|
|
33
|
-
CustomDropdown:
|
|
34
|
-
CustomPagination:
|
|
35
|
-
CustomSelect:
|
|
36
|
-
CustomTab:
|
|
37
|
-
CustomTitle:
|
|
38
|
-
FileList:
|
|
39
|
-
GradientButton:
|
|
40
|
-
IconEmpty:
|
|
41
|
-
IconRenderer:
|
|
42
|
-
IconSelect:
|
|
43
|
-
PageNotFound:
|
|
44
|
-
PaginationTable:
|
|
45
|
-
STEP_ARROW_IMAGE:
|
|
46
|
-
SearchBar:
|
|
47
|
-
TreeSelect:
|
|
48
|
-
TreeShowSelect:
|
|
49
|
-
UpdatePasswordDialog:
|
|
50
|
-
UploadFile:
|
|
51
|
-
|
|
52
|
-
iconLibraryMap: b,
|
|
53
|
-
mediaTypeMap: i,
|
|
54
|
-
operationTypeMap: p,
|
|
55
|
-
operationTypeToTextMap: a,
|
|
56
|
-
tabTypeMap: n
|
|
26
|
+
BUILD_BIG_TITLES: C,
|
|
27
|
+
BUILD_STEPS: D,
|
|
28
|
+
BUILD_TITLES: E,
|
|
29
|
+
BUILD_TYPES: b,
|
|
30
|
+
BatchImport: a,
|
|
31
|
+
BuildComponents: U,
|
|
32
|
+
CustomDialog: s,
|
|
33
|
+
CustomDropdown: u,
|
|
34
|
+
CustomPagination: c,
|
|
35
|
+
CustomSelect: i,
|
|
36
|
+
CustomTab: w,
|
|
37
|
+
CustomTitle: S,
|
|
38
|
+
FileList: f,
|
|
39
|
+
GradientButton: l,
|
|
40
|
+
IconEmpty: T,
|
|
41
|
+
IconRenderer: _,
|
|
42
|
+
IconSelect: L,
|
|
43
|
+
PageNotFound: P,
|
|
44
|
+
PaginationTable: p,
|
|
45
|
+
STEP_ARROW_IMAGE: y,
|
|
46
|
+
SearchBar: e,
|
|
47
|
+
TreeSelect: d,
|
|
48
|
+
TreeShowSelect: I,
|
|
49
|
+
UpdatePasswordDialog: g,
|
|
50
|
+
UploadFile: n,
|
|
51
|
+
iconLibraryMap: B
|
|
57
52
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
for (const
|
|
61
|
-
o[
|
|
62
|
-
},
|
|
63
|
-
install:
|
|
53
|
+
h.en.weekStart = 1;
|
|
54
|
+
const j = (t) => {
|
|
55
|
+
for (const r in o)
|
|
56
|
+
o[r].install && t.use(o[r]);
|
|
57
|
+
}, oo = {
|
|
58
|
+
install: j
|
|
64
59
|
};
|
|
65
60
|
export {
|
|
66
61
|
m as AppIntro,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
b as iconLibraryMap,
|
|
95
|
-
i as mediaTypeMap,
|
|
96
|
-
p as operationTypeMap,
|
|
97
|
-
a as operationTypeToTextMap,
|
|
98
|
-
n as tabTypeMap
|
|
62
|
+
C as BUILD_BIG_TITLES,
|
|
63
|
+
D as BUILD_STEPS,
|
|
64
|
+
E as BUILD_TITLES,
|
|
65
|
+
b as BUILD_TYPES,
|
|
66
|
+
a as BatchImport,
|
|
67
|
+
U as BuildComponents,
|
|
68
|
+
s as CustomDialog,
|
|
69
|
+
u as CustomDropdown,
|
|
70
|
+
c as CustomPagination,
|
|
71
|
+
i as CustomSelect,
|
|
72
|
+
w as CustomTab,
|
|
73
|
+
S as CustomTitle,
|
|
74
|
+
f as FileList,
|
|
75
|
+
l as GradientButton,
|
|
76
|
+
T as IconEmpty,
|
|
77
|
+
_ as IconRenderer,
|
|
78
|
+
L as IconSelect,
|
|
79
|
+
P as PageNotFound,
|
|
80
|
+
p as PaginationTable,
|
|
81
|
+
y as STEP_ARROW_IMAGE,
|
|
82
|
+
e as SearchBar,
|
|
83
|
+
d as TreeSelect,
|
|
84
|
+
I as TreeShowSelect,
|
|
85
|
+
g as UpdatePasswordDialog,
|
|
86
|
+
n as UploadFile,
|
|
87
|
+
oo as default,
|
|
88
|
+
B as iconLibraryMap
|
|
99
89
|
};
|
package/lib/AppIntro.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AppIntro.css');const _=require("./chunks/index.CkihWzK6.js"),e=require("vue"),i=require("element-plus"),B=require("color-message-lingyun-vue"),V=require("./chunks/layout.B9EVVV-O.js"),k=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),C=require("ling-yun-methods"),w={class:"flex w-full mg-b-10"},b={class:"config-item__label text-right inline-block"},D={class:"flex-1 flex justify-start items-flex-start flex-wrap flex-gap-row-wrap-8 fz-14",style:{color:"#303133"}},S={__name:"ConfigItem",props:{title:{type:String,required:!0}},setup(o){return(r,d)=>(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",b,[e.createElementVNode("span",null,e.toDisplayString(o.title),1)]),e.createElementVNode("div",D,[e.renderSlot(r.$slots,"default",{},void 0,!0)])]))}},h=k._export_sfc(S,[["__scopeId","data-v-9093c13d"]]),a={LISTING:1,DELISTING:2,ONLINE:3,OFFLINE:4},f={PENDING:0,APPROVED:1,REJECTED:2},y={IMAGE:1,VIDEO:2},g={INTRO:"intro",TIMELINE:"timeline"},E={[a.LISTING]:"上架申请",[a.DELISTING]:"下架申请",[a.ONLINE]:"上线应用",[a.OFFLINE]:"下线应用"},x={class:"app-intro-content overflow-hidden h-full"},L={key:0,class:"media-section w-full pd-b-12"},O={class:"media-content relative w-full"},$={key:0,class:"media-video relative w-full"},F=["src"],M={key:1,class:"media-image relative w-full"},G=["src"],q=["onClick"],A={class:"info-section"},R={class:"text-item"},P={class:"text-item"},j={class:"file-list"},z={key:0,class:"preview-content"},U=["src"],H={key:1,class:"preview-content"},J=["src"],Y={__name:"AppIntroContent",props:{pics:{type:Array,default:()=>[]},appCreatorName:{type:String,default:""},appCreatorOrg:{type:String,default:""},appDesc:{type:String,default:""},accessSystem:{type:String,default:""},businessBackground:{type:String,default:""},businessTarget:{type:String,default:""},resultData:{type:String,default:""},attachements:{type:Array,default:()=>[]}},setup(o){const r=o,d=e.computed(()=>[{title:"申请人:",value:r.appCreatorName},{title:"应用省份:",value:r.appCreatorOrg},{title:"应用说明:",value:r.appDesc},{title:"接入系统:",value:r.accessSystem},{title:"业务背景:",value:r.businessBackground},{title:"业务目标:",value:r.businessTarget},{title:"成效数据:",value:r.resultData}]),p=e.ref(!1),u=e.ref(null),m=t=>{u.value=t,p.value=!0},c=()=>{p.value=!1,u.value=null},s=t=>{try{const n=document.createElement("a");n.href=t.attachementUrl,n.download=t.attachementName,n.style.display="none",n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}catch(n){console.error(n)}};return(t,n)=>{const T=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",x,[o.pics.length>0?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pics,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,class:"media-item w-full"},[l.type===e.unref(y).VIDEO?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("video",{class:"w-full",src:l.url,controls:""},null,8,F)])):e.createCommentVNode("",!0),l.type===e.unref(y).IMAGE?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("img",{class:"w-full",src:l.url,alt:""},null,8,G)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",onClick:I=>m(l)},[e.createVNode(e.unref(i.ElIcon),{size:24,class:"view-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconLook))]),_:1})],8,q)]))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,l=>(e.openBlock(),e.createBlock(h,{key:l.title,title:l.title},{default:e.withCtx(()=>[e.createElementVNode("div",R,e.toDisplayString(l.value??"--"),1)]),_:2},1032,["title"]))),128)),e.createVNode(h,{title:"附件:"},{default:e.withCtx(()=>[e.createElementVNode("div",P,[e.createElementVNode("div",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.attachements,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,class:"file-item"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(l.attachementName)+" ",1),l.attachementUrl?(e.openBlock(),e.createBlock(e.unref(i.ElLink),{key:0,type:"primary",underline:!1,onClick:I=>s(l)},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode(" 点击查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])),[[T,!l.attachementUrl]])]))),128))])])]),_:1})]),e.createVNode(V.CustomDialog,{modelValue:p.value,"onUpdate:modelValue":n[0]||(n[0]=l=>p.value=l),width:"60%","show-close":!0,onClose:c,buttons:{showCancel:!1,showConfirm:!1}},{default:e.withCtx(()=>[u.value?.type===e.unref(y).IMAGE?(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("img",{class:"preview-media w-full",src:u.value.url,alt:""},null,8,U)])):(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("video",{class:"preview-media w-full",src:u.value?.url,controls:""},null,8,J)]))]),_:1},8,["modelValue"])])}}},K=k._export_sfc(Y,[["__scopeId","data-v-ffbf63d2"]]),Q={class:"flex items-center flex-gap-row-nowrap-8 mg-b-12"},W={class:"fz-14 weight-500",style:{color:"#1d2129"}},X={class:"fz-14",style:{color:"#4e5969"}},Z={key:0,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ee={key:1,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},te={key:2,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ae={key:3,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},oe={key:4,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ne={key:5,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},le={key:6,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},re={key:7,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},se={key:8,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ce={__name:"AppTimeline",props:{appId:{type:String,default:""},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appOperationList:{type:Function,default:()=>{}}},setup(o){const r=o,d=async c=>{r.vueRouter.push({path:"/promptTestDetail",query:{id:c.id,type:c.auditStatus,sourceFlag:"1",operationType:c.operationType,sourceHistory:"1"}})},p=c=>[a.LISTING,a.DELISTING].includes(c),u=e.ref([]),m=async()=>{await r.appOperationList({appId:r.appId,operationType:[a.LISTING,a.DELISTING,a.ONLINE,a.OFFLINE].join(","),pageNum:C.pageParams.pageNum,pageSize:1e6}).then(({data:c})=>{u.value=c.list})};return e.onMounted(()=>{m()}),(c,s)=>(e.openBlock(),e.createBlock(e.unref(i.ElTimeline),{class:"overflow-y-auto h-full pd-l-12"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>(e.openBlock(),e.createBlock(e.unref(i.ElTimelineItem),{key:t.id,timestamp:t.createTime,placement:"top",color:"#165dff"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElCard),{shadow:"hover"},{default:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createElementVNode("span",W,e.toDisplayString(e.unref(E)[t.operationType]||"--"),1),p(t.operationType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.auditStatus===e.unref(f).PENDING?(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:0,type:"warning"},{default:e.withCtx(()=>[...s[0]||(s[0]=[e.createTextVNode(" 待审核 ",-1)])]),_:1})):t.auditStatus===e.unref(f).APPROVED?(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:1,type:"primary"},{default:e.withCtx(()=>[...s[1]||(s[1]=[e.createTextVNode(" 已通过 ",-1)])]),_:1})):t.auditStatus===e.unref(f).REJECTED?(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:2,type:"danger"},{default:e.withCtx(()=>[...s[2]||(s[2]=[e.createTextVNode(" 已驳回 ",-1)])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",X,[t.operationType===e.unref(a).LISTING||t.operationType===e.unref(a).DELISTING?(e.openBlock(),e.createElementBlock("p",Z," 申请人:"+e.toDisplayString(t.creatorName??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).ONLINE||t.operationType===e.unref(a).OFFLINE?(e.openBlock(),e.createElementBlock("p",ee," 操作人:"+e.toDisplayString(t.creatorName??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).DELISTING?(e.openBlock(),e.createElementBlock("p",te," 下架原因:"+e.toDisplayString(t.delistingReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).LISTING?(e.openBlock(),e.createElementBlock("p",ae," 成效数据:"+e.toDisplayString(t.resultData??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).LISTING?(e.openBlock(),e.createElementBlock("p",oe," 推荐理由:"+e.toDisplayString(t.recommendReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).ONLINE||t.operationType===e.unref(a).OFFLINE?(e.openBlock(),e.createElementBlock("p",ne," 版本号:"+e.toDisplayString(t.appVersionNum?"V"+t.appVersionNum:"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).ONLINE?(e.openBlock(),e.createElementBlock("p",le," 配置摘要:"+e.toDisplayString(t.configSummary??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).ONLINE||t.operationType===e.unref(a).OFFLINE?(e.openBlock(),e.createElementBlock("p",re," 版本说明:"+e.toDisplayString(t.publishRemark??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).OFFLINE?(e.openBlock(),e.createElementBlock("p",se," 下线原因:"+e.toDisplayString(t.offlineReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(a).LISTING&&!o.square?(e.openBlock(),e.createBlock(e.unref(i.ElLink),{key:9,type:"primary",underline:!1,class:"mg-t-8",onClick:n=>d(t)},{default:e.withCtx(()=>[...s[3]||(s[3]=[e.createTextVNode(" 查看上架申请 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),t.operationType===e.unref(a).DELISTING&&!o.square?(e.openBlock(),e.createBlock(e.unref(i.ElLink),{key:10,type:"primary",underline:!1,class:"mg-t-8",onClick:n=>d(t)},{default:e.withCtx(()=>[...s[4]||(s[4]=[e.createTextVNode(" 查看下架申请 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1}))}},ie=k._export_sfc(ce,[["__scopeId","data-v-102c0937"]]),ue=Object.assign({name:"AppIntro"},{__name:"layout",props:{introData:{type:Object,default:()=>({})},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appId:{type:String,default:""},appOperationList:{type:Function,default:()=>{}}},emits:["tab-change"],setup(o,{emit:r}){const d=r,p=e.ref(g.INTRO),u=m=>{d("tab-change",m)};return(m,c)=>(e.openBlock(),e.createBlock(e.unref(i.ElTabs),{class:"overflow-hidden h-full",modelValue:p.value,"onUpdate:modelValue":c[0]||(c[0]=s=>p.value=s),onTabChange:u},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTabPane),{label:"应用介绍",name:e.unref(g).INTRO},{default:e.withCtx(()=>[e.createVNode(K,{pics:o.introData?.pics,"app-creator-name":o.introData?.appCreatorName,"app-creator-org":o.introData?.appCreatorOrg,"app-desc":o.introData?.appDesc,"access-system":o.introData?.accessSystem,"business-background":o.introData?.businessBackground,"business-target":o.introData?.businessTarget,"result-data":o.introData?.resultData,attachements:o.introData?.attachements},null,8,["pics","app-creator-name","app-creator-org","app-desc","access-system","business-background","business-target","result-data","attachements"])]),_:1},8,["name"]),e.createVNode(e.unref(i.ElTabPane),{label:"迭代时间轴",name:e.unref(g).TIMELINE},{default:e.withCtx(()=>[e.createVNode(ie,{"app-operation-list":o.appOperationList,square:o.square,"vue-router":o.vueRouter,"app-id":o.appId},null,8,["app-operation-list","square","vue-router","app-id"])]),_:1},8,["name"])]),_:1},8,["modelValue"]))}}),pe=k._export_sfc(ue,[["__scopeId","data-v-e675a909"]]),v=_.withInstall(pe);exports.AppIntro=v;exports.auditStatusMap=f;exports.default=v;exports.mediaTypeMap=y;exports.operationTypeMap=a;exports.operationTypeToTextMap=E;exports.tabTypeMap=g;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AppIntro.css');const g=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),w=require("color-message-lingyun-vue"),V=require("./chunks/layout.B9EVVV-O.js"),f=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),B=require("ling-yun-methods"),x={class:"flex w-full mg-b-10"},L={class:"config-item__label text-right inline-block"},C={class:"flex-1 flex justify-start items-flex-start flex-wrap flex-gap-row-wrap-8 fz-14",style:{color:"#303133"}},D={__name:"ConfigItem",props:{title:{type:String,required:!0}},setup(l){return(n,c)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",L,e.toDisplayString(l.title),1),e.createElementVNode("div",C,[e.renderSlot(n.$slots,"default",{},void 0,!0)])]))}},I=f._export_sfc(D,[["__scopeId","data-v-0188f394"]]),a={LISTING:1,DELISTING:2,ONLINE:3,OFFLINE:4},y={PENDING:0,APPROVED:1,REJECTED:2},E={IMAGE:1,VIDEO:2},N={INTRO:"intro",TIMELINE:"timeline"},S={[a.LISTING]:"上架申请",[a.DELISTING]:"下架申请",[a.ONLINE]:"上线应用",[a.OFFLINE]:"下线应用"},h={[y.PENDING]:{type:"warning",text:"待审核"},[y.APPROVED]:{type:"primary",text:"已通过"},[y.REJECTED]:{type:"danger",text:"已驳回"}},b=[{title:"申请人:",field:"appCreatorName"},{title:"应用省份:",field:"appCreatorOrg"},{title:"应用说明:",field:"appDesc"},{title:"接入系统:",field:"accessSystem"},{title:"业务背景:",field:"businessBackground"},{title:"业务目标:",field:"businessTarget"},{title:"成效数据:",field:"resultData"}],F=[{title:"申请人",field:"creatorName",showForTypes:[a.LISTING,a.DELISTING]},{title:"操作人",field:"creatorName",showForTypes:[a.ONLINE,a.OFFLINE]},{title:"下架原因",field:"delistingReason",showForTypes:[a.DELISTING]},{title:"成效数据",field:"resultData",showForTypes:[a.LISTING]},{title:"推荐理由",field:"recommendReason",showForTypes:[a.LISTING]},{title:"版本号",field:"appVersionNum",showForTypes:[a.ONLINE,a.OFFLINE],formatter:l=>l?`V${l}`:"--"},{title:"配置摘要",field:"configSummary",showForTypes:[a.ONLINE]},{title:"版本说明",field:"publishRemark",showForTypes:[a.ONLINE,a.OFFLINE]},{title:"下线原因",field:"offlineReason",showForTypes:[a.OFFLINE]}],k={[a.LISTING]:{text:"查看上架申请"},[a.DELISTING]:{text:"查看下架申请"}},O={key:0,class:"media-video relative w-full"},G=["src"],$={key:1,class:"media-image relative w-full"},M=["src"],_={__name:"MediaViewer",props:{media:{type:Object,default:null}},setup(l){return(n,c)=>l.media?.type===e.unref(E).VIDEO?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("video",{class:"w-full",src:l.media.url,controls:""},null,8,G)])):l.media?.type===e.unref(E).IMAGE?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("img",{class:"w-full",src:l.media.url,alt:""},null,8,M)])):e.createCommentVNode("",!0)}},q={class:"app-intro-content overflow-hidden h-full"},R={key:0,class:"media-section w-full pd-b-12"},A={class:"media-content relative w-full"},P=["onClick"],j={class:"info-section"},z={class:"preview-content"},U={__name:"AppIntroContent",props:{introData:{type:Object,default:()=>({})}},setup(l){const n=e.ref(!1),c=e.ref(null),u=i=>{c.value=i,n.value=!0},p=()=>{n.value=!1,c.value=null},d=i=>{try{const t=document.createElement("a");t.href=i.attachementUrl,t.download=i.attachementName,t.style.display="none",t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(t){console.error(t)}};return(i,t)=>{const m=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",q,[l.introData?.pics?.length>0?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.introData.pics,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"media-item w-full"},[e.createVNode(_,{media:o},null,8,["media"]),e.createElementVNode("div",{class:"hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",onClick:v=>u(o)},[e.createVNode(e.unref(s.ElIcon),{size:24,class:"view-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(w.IconLook))]),_:1})],8,P)]))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),o=>(e.openBlock(),e.createBlock(I,{key:o.title,title:o.title},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.introData?.[o.field]??"--"),1)]),_:2},1032,["title"]))),128)),e.createVNode(I,{title:"附件:"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.introData?.attachements,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"file-item"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(o.attachementName)+" ",1),o.attachementUrl?(e.openBlock(),e.createBlock(e.unref(s.ElLink),{key:0,type:"primary",underline:!1,onClick:v=>d(o)},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode(" 点击查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])),[[m,!o.attachementUrl]])]))),128))]),_:1})]),e.createVNode(V.CustomDialog,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=o=>n.value=o),width:"60%","show-close":!0,onClose:p,buttons:{showCancel:!1,showConfirm:!1}},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createVNode(_,{media:c.value,class:"preview-media"},null,8,["media"])])]),_:1},8,["modelValue"])])}}},H=f._export_sfc(U,[["__scopeId","data-v-ba3ada8e"]]),J={class:"flex items-center flex-gap-row-nowrap-8 mg-b-12"},Y={class:"fz-14 weight-500",style:{color:"#1d2129"}},K={class:"fz-14",style:{color:"#4e5969"}},Q={__name:"AppTimeline",props:{appId:{type:String,default:""},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appOperationList:{type:Function,default:()=>{}}},setup(l){const n=l,c=async t=>{n.vueRouter.push({path:"/promptTestDetail",query:{id:t.id,type:t.auditStatus,sourceFlag:"1",operationType:t.operationType,sourceHistory:"1"}})},u=t=>[a.LISTING,a.DELISTING].includes(t),p=t=>F.filter(m=>m.showForTypes.includes(t)),d=e.ref([]),i=async()=>{await n.appOperationList({appId:n.appId,operationType:[a.LISTING,a.DELISTING,a.ONLINE,a.OFFLINE].join(","),pageNum:B.pageParams.pageNum,pageSize:1e6}).then(({data:t})=>{d.value=t.list})};return e.onMounted(()=>{i()}),(t,m)=>(e.openBlock(),e.createBlock(e.unref(s.ElTimeline),{class:"overflow-y-auto h-full pd-l-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,o=>(e.openBlock(),e.createBlock(e.unref(s.ElTimelineItem),{key:o.id,timestamp:o.createTime,placement:"top",color:"var(--primary-color-1)"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"hover"},{default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createElementVNode("span",Y,e.toDisplayString(e.unref(S)[o.operationType]||"--"),1),u(o.operationType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(h)[o.auditStatus]?(e.openBlock(),e.createBlock(e.unref(s.ElTag),{key:0,type:e.unref(h)[o.auditStatus].type},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)[o.auditStatus].text),1)]),_:2},1032,["type"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p(o.operationType),r=>(e.openBlock(),e.createElementBlock("div",{key:r.field+r.title,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},e.toDisplayString(r.title)+":"+e.toDisplayString(r.formatter?r.formatter(o[r.field]):o[r.field]??"--"),1))),128)),e.unref(k)[o.operationType]&&!l.square?(e.openBlock(),e.createBlock(e.unref(s.ElLink),{key:0,type:"primary",underline:!1,class:"mg-t-8",onClick:r=>c(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)[o.operationType].text),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1}))}},W=f._export_sfc(Q,[["__scopeId","data-v-3a2170d7"]]),X=Object.assign({name:"AppIntro"},{__name:"layout",props:{introData:{type:Object,default:()=>({})},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appId:{type:String,default:""},appOperationList:{type:Function,default:()=>{}}},emits:["tab-change"],setup(l,{emit:n}){const c=n,u=e.ref(N.INTRO),p=d=>{c("tab-change",d)};return(d,i)=>(e.openBlock(),e.createBlock(e.unref(s.ElTabs),{class:"overflow-hidden h-full",modelValue:u.value,"onUpdate:modelValue":i[0]||(i[0]=t=>u.value=t),onTabChange:p},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElTabPane),{label:"应用介绍",name:e.unref(N).INTRO},{default:e.withCtx(()=>[e.createVNode(H,{"intro-data":l.introData},null,8,["intro-data"])]),_:1},8,["name"]),e.createVNode(e.unref(s.ElTabPane),{label:"迭代时间轴",name:e.unref(N).TIMELINE},{default:e.withCtx(()=>[e.createVNode(W,{"app-operation-list":l.appOperationList,square:l.square,"vue-router":l.vueRouter,"app-id":l.appId},null,8,["app-operation-list","square","vue-router","app-id"])]),_:1},8,["name"])]),_:1},8,["modelValue"]))}}),Z=f._export_sfc(X,[["__scopeId","data-v-e0a3d317"]]),T=g.withInstall(Z);exports.AppIntro=T;exports.default=T;
|
package/lib/IconRenderer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),a={lingyun:"lingyun",aibox:"aibox"},d=async(o,n)=>{if(!n)return null;try{switch(o){case a.lingyun:const{icons:r}=await Promise.resolve().then(()=>require("./chunks/global.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),a={lingyun:"lingyun",aibox:"aibox"},d=async(o,n)=>{if(!n)return null;try{switch(o){case a.lingyun:const{icons:r}=await Promise.resolve().then(()=>require("./chunks/global.XouT1lGG.js"));return r[n]||null;case a.aibox:const{icons:t}=await Promise.resolve().then(()=>require("./chunks/global.BNjIXg3D.js"));return t[n]||null}}catch(r){return console.warn(`Failed to load icon ${n} from ${o} library:`,r),null}},m=Object.assign({name:"IconRenderer"},{__name:"layout",props:{iconName:{type:String,default:""},iconLibrary:{type:String,default:a.lingyun,validator:o=>Object.values(a).includes(o)},size:{type:Number,default:16},color:{type:String,default:""}},setup(o){const n=o,r=e.shallowRef(null),t=e.ref(!1),c=async()=>{if(!n.iconName){r.value=null;return}if(!t.value){t.value=!0;try{const l=await d(n.iconLibrary,n.iconName);r.value=l}catch(l){console.error("Failed to load icon component:",l),r.value=null}finally{t.value=!1}}};return e.watch(()=>[n.iconLibrary,n.iconName],()=>{c()},{immediate:!1}),e.onMounted(()=>{c()}),(l,y)=>o.iconName&&r.value?(e.openBlock(),e.createBlock(e.unref(s.ElIcon),e.mergeProps({key:0,size:o.size,color:o.color},l.$attrs),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},16,["size","color"])):e.createCommentVNode("",!0)}}),i=u.withInstall(m);exports.IconRenderer=i;exports.default=i;exports.iconLibraryMap=a;
|
package/lib/IconSelect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/IconSelect.css');const y=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),f=require("color-message-lingyun-vue"),p=require("./chunks/global.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/IconSelect.css');const y=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),f=require("color-message-lingyun-vue"),p=require("./chunks/global.XouT1lGG.js"),g=require("./chunks/layout.B8d4J538.js"),w=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),b={class:"icon-select-content flex flex-col overflow-hidden"},h={class:"icon-select-grid overflow-y-auto display-grid"},_=["title","onClick"],B={key:0,class:"no-data"},I=Object.assign({name:"IconSelect"},{__name:"layout",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请选择图标"},width:{type:Number,default:520},iconSize:{type:Number,default:62}},emits:["update:modelValue"],setup(r,{emit:k}){const s=r,x=k,i=e.ref(!1),a=e.ref(""),n=e.ref(s.modelValue),d=e.computed(()=>Object.entries(p.icons).filter(([t])=>t.toLowerCase().includes("menu")).map(([t,o])=>({name:t,component:o}))),m=e.computed(()=>a.value?d.value.filter(t=>t.name.toLowerCase().includes(a.value.toLowerCase())):d.value),u=e.computed(()=>n.value&&p.icons[n.value]||null),V=t=>{n.value=t.name,x("update:modelValue",t.name),i.value=!1};return e.watch(()=>s.modelValue,t=>{n.value=t}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(c.ElPopover),{visible:i.value,"onUpdate:visible":o[1]||(o[1]=l=>i.value=l),placement:"bottom-start",width:r.width,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center pointer radius-16 justify-center w-icon-item",{"select-icon-box bg-fcfdff text-202434 fz-14 flex-col":!u.value,"icon-item":n.value}])},[u.value?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),{key:0,size:r.iconSize},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))]),_:1},8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(c.ElIcon),{size:16},{default:e.withCtx(()=>[e.createVNode(e.unref(f.IconAdd))]),_:1}),o[2]||(o[2]=e.createTextVNode(" 上传 ",-1))],64))],2)]),default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(c.ElInput),{class:"mg-b-12",modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),placeholder:"搜索图标","prefix-icon":e.unref(f.IconSearch),clearable:""},null,8,["modelValue","prefix-icon"]),e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.name,class:e.normalizeClass(["icon-item radius-8 justify-center items-center pointer flex w-icon-item",{active:n.value===l.name}]),title:l.name,onClick:E=>V(l)},[e.createVNode(e.unref(c.ElIcon),{size:50},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component)))]),_:2},1024)],10,_))),128))]),m.value.length===0?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(g.IconEmpty,{text:"未找到相关图标"})])):e.createCommentVNode("",!0)])]),_:1},8,["visible","width"]))}}),C=w._export_sfc(I,[["__scopeId","data-v-b6a428ec"]]),v=y.withInstall(C);exports.IconSelect=v;exports.default=v;
|
package/lib/assets/AppIntro.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-item__label[data-v-
|
|
1
|
+
.config-item__label[data-v-0188f394]{width:80px;height:auto}.config-item__label span[data-v-0188f394]{line-height:20px;color:#5d6c89}.hover-overlay[data-v-ba3ada8e]{background-color:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}.el-tab-pane[data-v-e0a3d317]{height:100%;overflow:hidden}
|