Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
9e6f7d36
提交
9e6f7d36
编写于
11月 20, 2023
作者:
zhf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新图表插件
上级
2e7e5e56
变更
30
展开全部
显示空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
651 行增加
和
272 行删除
+651
-272
chart-control-e83eabb6.js
...e/vue2-de-chart-view@0.0.1/dist/chart-control-e83eabb6.js
+60
-0
chart-control-e83eabb6.js.map
...e2-de-chart-view@0.0.1/dist/chart-control-e83eabb6.js.map
+1
-0
chart-control.legacy.js
...age/vue2-de-chart-view@0.0.1/dist/chart-control.legacy.js
+2
-1
chart-control.legacy.js.map
...vue2-de-chart-view@0.0.1/dist/chart-control.legacy.js.map
+1
-0
chart-portlet-5b6b8afb.js
...e/vue2-de-chart-view@0.0.1/dist/chart-portlet-5b6b8afb.js
+2
-1
chart-portlet-5b6b8afb.js.map
...e2-de-chart-view@0.0.1/dist/chart-portlet-5b6b8afb.js.map
+1
-0
chart-portlet.legacy.js
...age/vue2-de-chart-view@0.0.1/dist/chart-portlet.legacy.js
+1
-0
chart-portlet.legacy.js.map
...vue2-de-chart-view@0.0.1/dist/chart-portlet.legacy.js.map
+1
-0
chart-view-2e05f0a8.js
...kage/vue2-de-chart-view@0.0.1/dist/chart-view-2e05f0a8.js
+1
-0
chart-view-2e05f0a8.js.map
.../vue2-de-chart-view@0.0.1/dist/chart-view-2e05f0a8.js.map
+1
-0
chart-view.legacy.js
...ackage/vue2-de-chart-view@0.0.1/dist/chart-view.legacy.js
+1
-0
chart-view.legacy.js.map
...ge/vue2-de-chart-view@0.0.1/dist/chart-view.legacy.js.map
+1
-0
gwxn-chart-control-fa848c26.js
...2-de-chart-view@0.0.1/dist/gwxn-chart-control-fa848c26.js
+292
-0
gwxn-chart-control-fa848c26.js.map
...-chart-view@0.0.1/dist/gwxn-chart-control-fa848c26.js.map
+1
-0
gwxn-chart-control.legacy.js
...ue2-de-chart-view@0.0.1/dist/gwxn-chart-control.legacy.js
+2
-0
gwxn-chart-control.legacy.js.map
...de-chart-view@0.0.1/dist/gwxn-chart-control.legacy.js.map
+1
-0
ibiz-template-plugin.es.js
.../vue2-de-chart-view@0.0.1/dist/ibiz-template-plugin.es.js
+2
-1
ibiz-template-plugin.es.js.map
...2-de-chart-view@0.0.1/dist/ibiz-template-plugin.es.js.map
+1
-0
index-25c28368.js
...e-package/vue2-de-chart-view@0.0.1/dist/index-25c28368.js
+31
-22
index-25c28368.js.map
...ckage/vue2-de-chart-view@0.0.1/dist/index-25c28368.js.map
+1
-0
index.legacy.js
...ate-package/vue2-de-chart-view@0.0.1/dist/index.legacy.js
+1
-0
index.legacy.js.map
...package/vue2-de-chart-view@0.0.1/dist/index.legacy.js.map
+1
-0
index.legacy2.js
...te-package/vue2-de-chart-view@0.0.1/dist/index.legacy2.js
+2
-1
index.legacy2.js.map
...ackage/vue2-de-chart-view@0.0.1/dist/index.legacy2.js.map
+1
-0
polyfills.legacy.js
...package/vue2-de-chart-view@0.0.1/dist/polyfills.legacy.js
+1
-1
style.css
...-template-package/vue2-de-chart-view@0.0.1/dist/style.css
+1
-1
use-chart-controller-d5d0d5a1.js
...de-chart-view@0.0.1/dist/use-chart-controller-d5d0d5a1.js
+236
-244
use-chart-controller-d5d0d5a1.js.map
...hart-view@0.0.1/dist/use-chart-controller-d5d0d5a1.js.map
+1
-0
use-chart-controller.legacy.js
...2-de-chart-view@0.0.1/dist/use-chart-controller.legacy.js
+2
-0
use-chart-controller.legacy.js.map
...-chart-view@0.0.1/dist/use-chart-controller.legacy.js.map
+1
-0
未找到文件。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-control-e83eabb6.js
0 → 100644
浏览文件 @
9e6f7d36
import
{
defineComponent
as
s
,
getCurrentInstance
as
n
,
h
as
t
}
from
"vue"
;
import
{
useNamespace
as
a
}
from
"@ibiz-template/vue-util"
;
import
{
ChartModel
as
i
}
from
"@ibiz-template/model"
;
import
{
u
as
c
}
from
"./use-chart-controller-d5d0d5a1.js"
;
import
"@ibiz-template/controller"
;
import
"qx-util"
;
import
"echarts"
;
import
"ramda"
;
import
"@ibiz-template/service"
;
const
g
=
s
({
name
:
"ChartControl"
,
props
:
{
modelData
:
{
type
:
i
,
required
:
!
0
},
context
:
{
type
:
Object
,
required
:
!
0
},
params
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
setup
(
e
)
{
const
{
proxy
:
r
}
=
n
(),
o
=
a
(
"chart"
);
return
{
c
:
c
(
r
,
e
.
modelData
,
e
.
context
,
e
.
params
),
ns
:
o
};
},
render
()
{
if
(
this
.
c
.
complete
)
return
t
(
"control-layout"
,
{
attrs
:
{
modelData
:
this
.
c
.
model
}
},
[
t
(
"div"
,
{
class
:
this
.
ns
.
b
(),
style
:
{
width
:
this
.
c
.
width
,
height
:
this
.
c
.
height
}
},
[
t
(
"div"
,
{
attrs
:
{
id
:
this
.
c
.
chartId
},
class
:
this
.
ns
.
b
(
"content"
)
}),
this
.
c
.
items
.
length
?
null
:
t
(
"div"
,
{
class
:
this
.
ns
.
b
(
"empty-content"
)
},
[
"暂无数据"
])])]);
}
});
export
{
g
as
default
};
//# sourceMappingURL=chart-control-e83eabb6.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-control-e83eabb6.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-control-e83eabb6.js","sources":["../src/components/chart-control/chart-control.tsx"],"sourcesContent":["import { defineComponent, getCurrentInstance, PropType } from 'vue';\nimport { useNamespace } from '@ibiz-template/vue-util';\nimport { ChartModel } from '@ibiz-template/model';\nimport { useChartController } from '../../vue-util/use-chart-controller';\nimport './chart-control.scss';\n\nexport default defineComponent({\n name: 'ChartControl',\n props: {\n modelData: {\n type: ChartModel,\n required: true,\n },\n context: { type: Object as PropType<IContext>, required: true },\n params: { type: Object as PropType<IParams>, default: () => ({}) },\n },\n setup(props) {\n const { proxy } = getCurrentInstance()!;\n const ns = useNamespace('chart');\n const c = useChartController(\n proxy,\n props.modelData,\n props.context,\n props.params,\n );\n return { c, ns };\n },\n render() {\n if (!this.c.complete) {\n return;\n }\n return (\n <control-layout modelData={this.c.model}>\n <div\n class={this.ns.b()}\n style={{ width: this.c.width, height: this.c.height }}\n >\n <div id={this.c.chartId} class={this.ns.b('content')}></div>\n {this.c.items.length ? null : (\n <div class={this.ns.b('empty-content')}>暂无数据</div>\n )}\n </div>\n </control-layout>\n );\n },\n});\n"],"names":["chartControl","defineComponent","name","props","modelData","type","ChartModel","required","context","Object","params","default","setup","proxy","getCurrentInstance","ns","useNamespace","c","useChartController","render","complete","h","model","b","width","height","chartId","items","length"],"mappings":";;;;;;;;;AAMA,MAAAA,IAAeC,EAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACLC,WAAW;AAAA,MACTC,MAAMC;AAAAA,MACNC,UAAU;AAAA,IACX;AAAA,IACDC,SAAS;AAAA,MAAEH,MAAMI;AAAAA,MAA8BF,UAAU;AAAA,IAAM;AAAA,IAC/DG,QAAQ;AAAA,MAAEL,MAAMI;AAAAA,MAA6BE,SAASA,OAAO,CAAA;AAAA,IAAI;AAAA,EAClE;AAAA,EACDC,MAAMT,GAAO;AACX,UAAM;AAAA,MAAEU,OAAAA;AAAAA,IAAO,IAAGC,EAAkB,GAC9BC,IAAKC,EAAa,OAAO;AAO/B,WAAO;AAAA,MAAEC,GANCC,EACRL,GACAV,EAAMC,WACND,EAAMK,SACNL,EAAMO,MAAM;AAAA,MAEFK,IAAAA;AAAAA;EACb;AAAA,EACDI,SAAS;AACP,QAAK,KAAKF,EAAEG;AAGZ,aAAAC,EAAA,kBAAA;AAAA,QAAA,OAAA;AAAA,UAAA,WAC6B,KAAKJ,EAAEK;AAAAA,QAAK;AAAA,MAAA,GAAA,CAAAD,EAAA,OAAA;AAAA,QAAA,OAE5B,KAAKN,GAAGQ,EAAG;AAAA,QAAA,OACX;AAAA,UAAEC,OAAO,KAAKP,EAAEO;AAAAA,UAAOC,QAAQ,KAAKR,EAAEQ;AAAAA,QAAO;AAAA,MAAC,GAAA,CAAAJ,EAAA,OAAA;AAAA,QAAA,OAAA;AAAA,UAAA,IAE5C,KAAKJ,EAAES;AAAAA,QAAO;AAAA,QAAA,OAAS,KAAKX,GAAGQ,EAAE,SAAS;AAAA,OAClD,GAAA,KAAKN,EAAEU,MAAMC,SAAS,OAAIP,EAAA,OAAA;AAAA,QAAA,OACb,KAAKN,GAAGQ,EAAE,eAAe;AAAA,MACtC,GAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,EAIT;AACF,CAAC;"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-control.legacy.js
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-control.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-control.legacy.js","sources":["../src/components/chart-control/chart-control.tsx"],"sourcesContent":["import { defineComponent, getCurrentInstance, PropType } from 'vue';\nimport { useNamespace } from '@ibiz-template/vue-util';\nimport { ChartModel } from '@ibiz-template/model';\nimport { useChartController } from '../../vue-util/use-chart-controller';\nimport './chart-control.scss';\n\nexport default defineComponent({\n name: 'ChartControl',\n props: {\n modelData: {\n type: ChartModel,\n required: true,\n },\n context: { type: Object as PropType<IContext>, required: true },\n params: { type: Object as PropType<IParams>, default: () => ({}) },\n },\n setup(props) {\n const { proxy } = getCurrentInstance()!;\n const ns = useNamespace('chart');\n const c = useChartController(\n proxy,\n props.modelData,\n props.context,\n props.params,\n );\n return { c, ns };\n },\n render() {\n if (!this.c.complete) {\n return;\n }\n return (\n <control-layout modelData={this.c.model}>\n <div\n class={this.ns.b()}\n style={{ width: this.c.width, height: this.c.height }}\n >\n <div id={this.c.chartId} class={this.ns.b('content')}></div>\n {this.c.items.length ? null : (\n <div class={this.ns.b('empty-content')}>暂无数据</div>\n )}\n </div>\n </control-layout>\n );\n },\n});\n"],"names":["exports","defineComponent","name","props","modelData","type","ChartModel","required","context","Object","params","default","setup","proxy","getCurrentInstance","ns","useNamespace","c","useChartController","render","this","complete","h","attrs","model","class","b","style","width","height","id","chartId","items","length"],"mappings":"ibAMAA,EAAA,UAAeC,EAAgB,CAC7BC,KAAM,eACNC,MAAO,CACLC,UAAW,CACTC,KAAMC,EACNC,UAAU,GAEZC,QAAS,CAAEH,KAAMI,OAA8BF,UAAU,GACzDG,OAAQ,CAAEL,KAAMI,OAA6BE,QAASA,WAAO,MAAA,CAAA,CAAI,IAEnEC,eAAMT,GACJ,IAAQU,EAAUC,IAAVD,MACFE,EAAKC,EAAa,SAOxB,MAAO,CAAEC,EANCC,EACRL,EACAV,EAAMC,UACND,EAAMK,QACNL,EAAMO,QAEIK,GAAAA,EACb,EACDI,kBACE,GAAKC,KAAKH,EAAEI,SAGZ,OAAAC,EAAA,iBAAA,CAAAC,MAAA,CAAAnB,UAC6BgB,KAAKH,EAAEO,QAAK,CAAAF,EAAA,MAAA,CAAAG,MAE5BL,KAAKL,GAAGW,IAAGC,MACX,CAAEC,MAAOR,KAAKH,EAAEW,MAAOC,OAAQT,KAAKH,EAAEY,SAAQ,CAAAP,EAAA,MAAA,CAAAC,MAAA,CAAAO,GAE5CV,KAAKH,EAAEc,SAAON,MAASL,KAAKL,GAAGW,EAAE,aACzCN,KAAKH,EAAEe,MAAMC,OAAS,KAAIX,EAAA,MAAA,CAAAG,MACbL,KAAKL,GAAGW,EAAE,kBACvB,CAAA,YAIT"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-portlet-5
4877294
.js
→
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-portlet-5
b6b8afb
.js
浏览文件 @
9e6f7d36
import
{
ChartPortletModel
as
s
}
from
"@ibiz-template/model"
;
import
{
useNamespace
as
l
}
from
"@ibiz-template/vue-util"
;
import
{
defineComponent
as
m
,
h
as
o
}
from
"vue"
;
import
{
C
as
c
}
from
"./index-
42d80035
.js"
;
import
{
C
as
c
}
from
"./index-
25c28368
.js"
;
import
"@ibiz-template/runtime"
;
import
"@ibiz-template/controller"
;
const
f
=
m
({
...
...
@@ -51,3 +51,4 @@ const f = m({
export
{
f
as
default
};
//# sourceMappingURL=chart-portlet-5b6b8afb.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-portlet-5b6b8afb.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-portlet-5b6b8afb.js","sources":["../src/components/chart-portlet/chart-portlet.tsx"],"sourcesContent":["import { ChartPortletModel } from '@ibiz-template/model';\nimport { useNamespace } from '@ibiz-template/vue-util';\nimport { defineComponent, h } from 'vue';\nimport { ChartPortletController } from '../../controller/chart-portlet-controller';\nimport { ChartNeuron } from '../../controller/neuron/chart-neuron';\n\nexport default defineComponent({\n name: 'ChartPortlet',\n props: {\n modelData: {\n type: ChartPortletModel,\n required: true,\n },\n controller: {\n type: ChartPortletController,\n required: true,\n },\n },\n setup() {\n const ns = useNamespace('chart-portlet');\n\n return { ns };\n },\n render() {\n const c = this.controller;\n let chartComponent = null;\n const { chart } = c.model;\n if (c.chartProvider) {\n chartComponent = h(c.chartProvider.component, {\n props: {\n modelData: chart,\n context: c.context,\n params: c.params,\n },\n on: {\n neuronInit: (neuron: ChartNeuron) => {\n c.setChartNeuron(neuron);\n },\n },\n });\n }\n const classArr: string[] = [\n this.ns.b(),\n this.ns.m(this.modelData.modelClass),\n ];\n return (\n <portlet-layout controller={this.controller} class={classArr}>\n {chartComponent}\n </portlet-layout>\n );\n },\n});\n"],"names":["chartPortlet","defineComponent","name","props","modelData","type","ChartPortletModel","required","controller","ChartPortletController","setup","ns","useNamespace","render","c","chartComponent","chart","model","chartProvider","h","component","context","params","on","neuronInit","neuron","setChartNeuron","classArr","b","m","modelClass"],"mappings":";;;;;;AAMA,MAAAA,IAAeC,EAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACLC,WAAW;AAAA,MACTC,MAAMC;AAAAA,MACNC,UAAU;AAAA,IACX;AAAA,IACDC,YAAY;AAAA,MACVH,MAAMI;AAAAA,MACNF,UAAU;AAAA,IACZ;AAAA,EACD;AAAA,EACDG,QAAQ;AAGN,WAAO;AAAA,MAAEC,IAFEC,EAAa,eAAe;AAAA;EAGxC;AAAA,EACDC,SAAS;AACP,UAAMC,IAAI,KAAKN;AACf,QAAIO,IAAiB;AACrB,UAAM;AAAA,MAAEC,OAAAA;AAAAA,QAAUF,EAAEG;AACpB,IAAIH,EAAEI,kBACJH,IAAiBI,EAAEL,EAAEI,cAAcE,WAAW;AAAA,MAC5CjB,OAAO;AAAA,QACLC,WAAWY;AAAAA,QACXK,SAASP,EAAEO;AAAAA,QACXC,QAAQR,EAAEQ;AAAAA,MACX;AAAA,MACDC,IAAI;AAAA,QACFC,YAAaC,CAAAA,MAAwB;AACnCX,UAAAA,EAAEY,eAAeD,CAAM;AAAA,QACzB;AAAA,MACF;AAAA,IACF,CAAC;AAEH,UAAME,IAAqB,CACzB,KAAKhB,GAAGiB,EAAC,GACT,KAAKjB,GAAGkB,EAAE,KAAKzB,UAAU0B,UAAU,CAAC;AAEtC,WAAAX,EAAA,kBAAA;AAAA,MAAA,OAAA;AAAA,QAAA,YAC8B,KAAKX;AAAAA,MAAU;AAAA,MAAA,OAASmB;AAAAA,IAAQ,GAAA,CACzDZ,CAAc,CAAA;AAAA,EAGrB;AACF,CAAC;"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-portlet.legacy.js
浏览文件 @
9e6f7d36
System
.
register
([
"@ibiz-template/model"
,
"@ibiz-template/vue-util"
,
"vue"
,
"./index.legacy2.js"
,
"@ibiz-template/runtime"
,
"@ibiz-template/controller"
],(
function
(
t
,
e
){
"use strict"
;
var
r
,
n
,
o
,
l
,
a
;
return
{
setters
:[
function
(
t
){
r
=
t
.
ChartPortletModel
},
function
(
t
){
n
=
t
.
useNamespace
},
function
(
t
){
o
=
t
.
defineComponent
,
l
=
t
.
h
},
function
(
t
){
a
=
t
.
C
},
null
,
null
],
execute
:
function
(){
t
(
"default"
,
o
({
name
:
"ChartPortlet"
,
props
:{
modelData
:{
type
:
r
,
required
:
!
0
},
controller
:{
type
:
a
,
required
:
!
0
}},
setup
:
function
(){
return
{
ns
:
n
(
"chart-portlet"
)}},
render
:
function
(){
var
t
=
this
.
controller
,
e
=
null
,
r
=
t
.
model
.
chart
;
t
.
chartProvider
&&
(
e
=
l
(
t
.
chartProvider
.
component
,{
props
:{
modelData
:
r
,
context
:
t
.
context
,
params
:
t
.
params
},
on
:{
neuronInit
:
function
(
e
){
t
.
setChartNeuron
(
e
)}}}));
var
n
=
[
this
.
ns
.
b
(),
this
.
ns
.
m
(
this
.
modelData
.
modelClass
)];
return
l
(
"portlet-layout"
,{
attrs
:{
controller
:
this
.
controller
},
class
:
n
},[
e
])}}))}}}));
//# sourceMappingURL=chart-portlet.legacy.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-portlet.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-portlet.legacy.js","sources":["../src/components/chart-portlet/chart-portlet.tsx"],"sourcesContent":["import { ChartPortletModel } from '@ibiz-template/model';\nimport { useNamespace } from '@ibiz-template/vue-util';\nimport { defineComponent, h } from 'vue';\nimport { ChartPortletController } from '../../controller/chart-portlet-controller';\nimport { ChartNeuron } from '../../controller/neuron/chart-neuron';\n\nexport default defineComponent({\n name: 'ChartPortlet',\n props: {\n modelData: {\n type: ChartPortletModel,\n required: true,\n },\n controller: {\n type: ChartPortletController,\n required: true,\n },\n },\n setup() {\n const ns = useNamespace('chart-portlet');\n\n return { ns };\n },\n render() {\n const c = this.controller;\n let chartComponent = null;\n const { chart } = c.model;\n if (c.chartProvider) {\n chartComponent = h(c.chartProvider.component, {\n props: {\n modelData: chart,\n context: c.context,\n params: c.params,\n },\n on: {\n neuronInit: (neuron: ChartNeuron) => {\n c.setChartNeuron(neuron);\n },\n },\n });\n }\n const classArr: string[] = [\n this.ns.b(),\n this.ns.m(this.modelData.modelClass),\n ];\n return (\n <portlet-layout controller={this.controller} class={classArr}>\n {chartComponent}\n </portlet-layout>\n );\n },\n});\n"],"names":["exports","defineComponent","name","props","modelData","type","ChartPortletModel","required","controller","ChartPortletController","setup","ns","useNamespace","render","c","this","chartComponent","chart","model","chartProvider","h","component","context","params","on","neuronInit","neuron","setChartNeuron","classArr","b","m","modelClass","attrs","class"],"mappings":"sWAMAA,EAAA,UAAeC,EAAgB,CAC7BC,KAAM,eACNC,MAAO,CACLC,UAAW,CACTC,KAAMC,EACNC,UAAU,GAEZC,WAAY,CACVH,KAAMI,EACNF,UAAU,IAGdG,MAAKA,WAGH,MAAO,CAAEC,GAFEC,EAAa,iBAGzB,EACDC,kBACE,IAAMC,EAAIC,KAAKP,WACXQ,EAAiB,KACbC,EAAUH,EAAEI,MAAZD,MACJH,EAAEK,gBACJH,EAAiBI,EAAEN,EAAEK,cAAcE,UAAW,CAC5ClB,MAAO,CACLC,UAAWa,EACXK,QAASR,EAAEQ,QACXC,OAAQT,EAAES,QAEZC,GAAI,CACFC,WAAaC,SAAAA,GACXZ,EAAEa,eAAeD,EACnB,MAIN,IAAME,EAAqB,CACzBb,KAAKJ,GAAGkB,IACRd,KAAKJ,GAAGmB,EAAEf,KAAKX,UAAU2B,aAE3B,OAAAX,EAAA,iBAAA,CAAAY,MAAA,CAAAxB,WAC8BO,KAAKP,YAAUyB,MAASL,GAAQ,CACzDZ,GAGP"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-view-2e05f0a8.js
浏览文件 @
9e6f7d36
...
...
@@ -114,3 +114,4 @@ const V = c({
export
{
V
as
default
};
//# sourceMappingURL=chart-view-2e05f0a8.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-view-2e05f0a8.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-view-2e05f0a8.js","sources":["../src/controller/neuron/chart-view-neuron.ts","../src/controller/nerve/chart-view-nerve.ts","../src/controller/chart-view-controller.ts","../src/vue-util/use-chart-view-controller.ts","../src/components/chart-view/chart-view.tsx"],"sourcesContent":["import { Neuron } from '@ibiz-template/controller';\nimport { IChartViewEvent } from '../interface/i-chart-view-event';\nimport { IChartViewAbility } from '../interface/i-chart-view-ability';\n\n/**\n * 图表视图神经元\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:06\n * @export\n * @class ChartViewNeuron\n * @extends {Neuron<IChartViewEvent, IChartViewAbility>}\n */\nexport class ChartViewNeuron extends Neuron<\n IChartViewEvent,\n IChartViewAbility\n> {}\n","import { Neuron, ViewNerve } from '@ibiz-template/controller';\nimport { ChartViewController } from '../chart-view-controller';\nimport { ChartViewNeuron } from '../neuron/chart-view-neuron';\nimport { ChartNeuron } from '../neuron/chart-neuron';\n\n/**\n * 图表视图神经系统\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewNerve\n * @extends {ViewNerve<ChartViewNeuron, ChartViewController>}\n */\nexport class ChartViewNerve extends ViewNerve<\n ChartViewNeuron,\n ChartViewController\n> {\n chart!: ChartNeuron;\n\n protected createNeuron() {\n return new ChartViewNeuron(this.bindAbility());\n }\n\n inclusive(name: string): boolean {\n return name === 'chart' || super.inclusive(name);\n }\n\n connect(name: string, neuron: Neuron): void {\n super.connect(name, neuron);\n if (name === 'chart') {\n this.chart = neuron as ChartNeuron;\n this.chart.evt.on('destroyed', () => {\n this.chart = undefined as never;\n });\n }\n }\n\n destroy(): void {\n super.destroy();\n this.chart = undefined as never;\n }\n}\n","import { ViewController } from '@ibiz-template/controller';\nimport { ChartViewModel } from '@ibiz-template/model';\nimport { ChartViewNerve } from './nerve/chart-view-nerve';\n\n/**\n * 图表视图控制器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewController\n * @extends {ViewController<ChartViewModel>}\n */\nexport class ChartViewController extends ViewController<ChartViewModel> {\n declare nerve: ChartViewNerve;\n\n protected createNerve(): ChartViewNerve {\n return new ChartViewNerve(this);\n }\n\n protected async onInit(): Promise<void> {\n await super.onInit();\n // 图表适配器\n const { chart } = this.model;\n if (chart) {\n this.providers[chart.name] = await ibiz.register.control.get(chart);\n }\n this.nerve.self.evt.on('mounted', () => {\n if (this.model.source.loadDefault) {\n this.load();\n }\n });\n }\n\n /**\n * 视图加载方法\n *\n * @return {*} {Promise<IData[]>}\n * @memberof ChartViewController\n */\n async load(): Promise<void> {\n const { chart } = this.nerve;\n return chart.call.load();\n }\n\n /**\n * 刷新视图\n *\n * @author zhanghengfeng\n * @date 2023-04-07 17:04:41\n * @return {*} {Promise<void>}\n */\n async refresh(): Promise<void> {\n this.load();\n }\n}\n","import { useViewController } from '@ibiz-template/vue-util';\nimport { ChartViewController } from '../controller/chart-view-controller';\n\nexport function useChartViewController(\n vue: Vue,\n path: string,\n): ChartViewController {\n return useViewController<ChartViewController>(\n vue,\n (context: IContext, params: IParams) => {\n return new ChartViewController(path, context, params);\n },\n );\n}\n","import { IModal } from '@ibiz-template/runtime';\nimport { PropType, defineComponent, getCurrentInstance } from 'vue';\nimport { useChartViewController } from '../../vue-util/use-chart-view-controller';\n\nexport default defineComponent({\n props: {\n context: Object as PropType<IContext>,\n params: { type: Object as PropType<IParams>, default: () => ({}) },\n modelPath: { type: String, required: true },\n modal: { type: Object as PropType<IModal> },\n },\n setup(props) {\n const { proxy } = getCurrentInstance()!;\n const c = useChartViewController(proxy, props.modelPath);\n return { c };\n },\n render(h) {\n let chartComponent = null;\n if (this.c.complete) {\n const { chart } = this.c.model;\n if (this.c.providers[chart.name]) {\n chartComponent = h(this.c.providers[chart.name].component, {\n props: {\n modelData: chart,\n context: this.c.context,\n params: this.c.params,\n },\n on: {\n neuronInit: this.c.nerve.onNeuronInit(chart.name),\n },\n });\n }\n }\n return <view-base controller={this.c}>{chartComponent}</view-base>;\n },\n});\n"],"names":["ChartViewNeuron","Neuron","ChartViewNerve","ViewNerve","__publicField","name","neuron","ChartViewController","ViewController","chart","useChartViewController","vue","path","useViewController","context","params","chartView","defineComponent","props","Object","type","default","modelPath","String","required","modal","setup","proxy","getCurrentInstance","c","render","h","chartComponent","complete","model","providers","component","modelData","on","neuronInit","nerve","onNeuronInit"],"mappings":";;;;;;AAaO,MAAMA,UAAwBC,EAGnC;AAAC;ACFI,MAAMC,UAAuBC,EAGlC;AAAA,EAHK;AAAA;AAIL,IAAAC,EAAA;AAAA;AAAA,EAEU,eAAe;AACvB,WAAO,IAAIJ,EAAgB,KAAK,YAAa,CAAA;AAAA,EAC/C;AAAA,EAEA,UAAUK,GAAuB;AAC/B,WAAOA,MAAS,WAAW,MAAM,UAAUA,CAAI;AAAA,EACjD;AAAA,EAEA,QAAQA,GAAcC,GAAsB;AACpC,UAAA,QAAQD,GAAMC,CAAM,GACtBD,MAAS,YACX,KAAK,QAAQC,GACb,KAAK,MAAM,IAAI,GAAG,aAAa,MAAM;AACnC,WAAK,QAAQ;AAAA,IAAA,CACd;AAAA,EAEL;AAAA,EAEA,UAAgB;AACd,UAAM,QAAQ,GACd,KAAK,QAAQ;AAAA,EACf;AACF;AC7BO,MAAMC,UAA4BC,EAA+B;AAAA,EA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AiB;AACrB,QAAI,KAAKH,EAAEI,UAAU;AACnB,YAAM;AAAA,QAAExB,OAAAA;AAAAA,MAAM,IAAI,KAAKoB,EAAEK;AACzB,MAAI,KAAKL,EAAEM,UAAU1B,EAAMJ,IAAI,MAC7B2B,IAAiBD,EAAE,KAAKF,EAAEM,UAAU1B,EAAMJ,IAAI,EAAE+B,WAAW;AAAA,QACzDlB,OAAO;AAAA,UACLmB,WAAW5B;AAAAA,UACXK,SAAS,KAAKe,EAAEf;AAAAA,UAChBC,QAAQ,KAAKc,EAAEd;AAAAA,QAChB;AAAA,QACDuB,IAAI;AAAA,UACFC,YAAY,KAAKV,EAAEW,MAAMC,aAAahC,EAAMJ,IAAI;AAAA,QAClD;AAAA,MACF,CAAC;AAAA;AAGL,WAAA0B,EAAA,aAAA;AAAA,MAAA,OAAA;AAAA,QAAA,YAA8B,KAAKF;AAAAA,MAAC;AAAA,IAAA,GAAA,CAAGG,CAAc,CAAA;AAAA,EACvD;AACF,CAAC;"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-view.legacy.js
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/chart-view.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"chart-view.legacy.js","sources":["../src/controller/neuron/chart-view-neuron.ts","../src/controller/nerve/chart-view-nerve.ts","../src/controller/chart-view-controller.ts","../src/components/chart-view/chart-view.tsx","../src/vue-util/use-chart-view-controller.ts"],"sourcesContent":["import { Neuron } from '@ibiz-template/controller';\nimport { IChartViewEvent } from '../interface/i-chart-view-event';\nimport { IChartViewAbility } from '../interface/i-chart-view-ability';\n\n/**\n * 图表视图神经元\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:06\n * @export\n * @class ChartViewNeuron\n * @extends {Neuron<IChartViewEvent, IChartViewAbility>}\n */\nexport class ChartViewNeuron extends Neuron<\n IChartViewEvent,\n IChartViewAbility\n> {}\n","import { Neuron, ViewNerve } from '@ibiz-template/controller';\nimport { ChartViewController } from '../chart-view-controller';\nimport { ChartViewNeuron } from '../neuron/chart-view-neuron';\nimport { ChartNeuron } from '../neuron/chart-neuron';\n\n/**\n * 图表视图神经系统\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewNerve\n * @extends {ViewNerve<ChartViewNeuron, ChartViewController>}\n */\nexport class ChartViewNerve extends ViewNerve<\n ChartViewNeuron,\n ChartViewController\n> {\n chart!: ChartNeuron;\n\n protected createNeuron() {\n return new ChartViewNeuron(this.bindAbility());\n }\n\n inclusive(name: string): boolean {\n return name === 'chart' || super.inclusive(name);\n }\n\n connect(name: string, neuron: Neuron): void {\n super.connect(name, neuron);\n if (name === 'chart') {\n this.chart = neuron as ChartNeuron;\n this.chart.evt.on('destroyed', () => {\n this.chart = undefined as never;\n });\n }\n }\n\n destroy(): void {\n super.destroy();\n this.chart = undefined as never;\n }\n}\n","import { ViewController } from '@ibiz-template/controller';\nimport { ChartViewModel } from '@ibiz-template/model';\nimport { ChartViewNerve } from './nerve/chart-view-nerve';\n\n/**\n * 图表视图控制器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewController\n * @extends {ViewController<ChartViewModel>}\n */\nexport class ChartViewController extends ViewController<ChartViewModel> {\n declare nerve: ChartViewNerve;\n\n protected createNerve(): ChartViewNerve {\n return new ChartViewNerve(this);\n }\n\n protected async onInit(): Promise<void> {\n await super.onInit();\n // 图表适配器\n const { chart } = this.model;\n if (chart) {\n this.providers[chart.name] = await ibiz.register.control.get(chart);\n }\n this.nerve.self.evt.on('mounted', () => {\n if (this.model.source.loadDefault) {\n this.load();\n }\n });\n }\n\n /**\n * 视图加载方法\n *\n * @return {*} {Promise<IData[]>}\n * @memberof ChartViewController\n */\n async load(): Promise<void> {\n const { chart } = this.nerve;\n return chart.call.load();\n }\n\n /**\n * 刷新视图\n *\n * @author zhanghengfeng\n * @date 2023-04-07 17:04:41\n * @return {*} {Promise<void>}\n */\n async refresh(): Promise<void> {\n this.load();\n }\n}\n","import { IModal } from '@ibiz-template/runtime';\nimport { PropType, defineComponent, getCurrentInstance } from 'vue';\nimport { useChartViewController } from '../../vue-util/use-chart-view-controller';\n\nexport default defineComponent({\n props: {\n context: Object as PropType<IContext>,\n params: { type: Object as PropType<IParams>, default: () => ({}) },\n modelPath: { type: String, required: true },\n modal: { type: Object as PropType<IModal> },\n },\n setup(props) {\n const { proxy } = getCurrentInstance()!;\n const c = useChartViewController(proxy, props.modelPath);\n return { c };\n },\n render(h) {\n let chartComponent = null;\n if (this.c.complete) {\n const { chart } = this.c.model;\n if (this.c.providers[chart.name]) {\n chartComponent = h(this.c.providers[chart.name].component, {\n props: {\n modelData: chart,\n context: this.c.context,\n params: this.c.params,\n },\n on: {\n neuronInit: this.c.nerve.onNeuronInit(chart.name),\n },\n });\n }\n }\n return <view-base controller={this.c}>{chartComponent}</view-base>;\n },\n});\n","import { useViewController } from '@ibiz-template/vue-util';\nimport { ChartViewController } from '../controller/chart-view-controller';\n\nexport function useChartViewController(\n vue: Vue,\n path: string,\n): ChartViewController {\n return useViewController<ChartViewController>(\n vue,\n (context: IContext, params: IParams) => {\n return new ChartViewController(path, context, params);\n },\n );\n}\n"],"names":["ChartViewNeuron","Neuron","ChartViewNerve","this","bindAbility","key","value","name","_get","_getPrototypeOf","prototype","call","neuron","_this2","chart","evt","on","ViewNerve","ChartViewController","_refresh","_load","_onInit","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_this3","wrap","_context","prev","next","model","ibiz","register","control","get","providers","sent","nerve","self","source","loadDefault","load","stop","apply","arguments","_callee2","_context2","abrupt","_callee3","_callee3$","_context3","refresh","ViewController","exports","defineComponent","props","context","Object","params","type","default","modelPath","String","required","modal","setup","vue","path","proxy","getCurrentInstance","c","useViewController","render","h","chartComponent","complete","component","modelData","neuronInit","onNeuronInit","attrs","controller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B,IAAQ9D,EAAUX,KAAKoE,EAAExC,MAAjBjB,MACJX,KAAKoE,EAAEnC,UAAUtB,EAAMP,QACzBoE,EAAiBD,EAAEvE,KAAKoE,EAAEnC,UAAUtB,EAAMP,MAAMsE,UAAW,CACzDrB,MAAO,CACLsB,UAAWhE,EACX2C,QAAStD,KAAKoE,EAAEd,QAChBE,OAAQxD,KAAKoE,EAAEZ,QAEjB3C,GAAI,CACF+D,WAAY5E,KAAKoE,EAAEjC,MAAM0C,aAAalE,EAAMP,SAIpD,CACA,OAAAmE,EAAA,YAAA,CAAAO,MAAA,CAAAC,WAA8B/E,KAAKoE,IAAC,CAAGI,GACzC"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/gwxn-chart-control-fa848c26.js
0 → 100644
浏览文件 @
9e6f7d36
import
G
,
{
defineComponent
as
S
,
ref
as
q
,
h
as
e
,
getCurrentInstance
as
z
}
from
"vue"
;
import
{
useNamespace
as
H
}
from
"@ibiz-template/vue-util"
;
import
{
ChartModel
as
B
}
from
"@ibiz-template/model"
;
import
{
mergeDeepRight
as
N
}
from
"ramda"
;
import
{
u
as
J
}
from
"./use-chart-controller-d5d0d5a1.js"
;
import
"@ibiz-template/controller"
;
import
"qx-util"
;
import
"echarts"
;
import
"@ibiz-template/service"
;
const
V
=
S
({
name
:
"ChartTooltip"
,
props
:
{
params
:
{
type
:
[
Object
,
Array
],
required
:
!
0
},
c
:
{
type
:
Object
,
required
:
!
0
},
codeListMap
:
{
type
:
Array
,
required
:
!
0
}
},
setup
(
t
)
{
var
r
;
const
k
=
H
(
"chart-tooltip"
),
g
=
q
([]),
l
=
q
(
""
),
c
=
q
(),
u
=
((
r
=
t
.
c
.
model
.
source
.
getPSControlParam
())
==
null
?
void
0
:
r
.
ctrlParams
)
||
{},
x
=
u
.
LABEL
,
T
=
u
.
TEXT
,
F
=
u
.
LEFT
,
I
=
u
.
CENTER
,
E
=
u
.
RIGHT
,
n
=
u
.
PERCENTAGE
,
$
=
u
.
RATE
,
o
=
JSON
.
parse
(
u
.
LIST
||
"[]"
),
b
=
(
s
)
=>
{
if
(
s
==
null
)
return
""
;
try
{
return
ibiz
.
util
.
text
.
format
(
`
${
s
}
`
,
"#,##0"
);
}
catch
(
a
)
{
return
ibiz
.
log
.
error
(
`
${
s
}
值格式化错误`
),
`
${
s
}
`
;
}
};
return
(()
=>
{
var
a
,
m
,
p
,
L
,
C
,
M
,
w
,
R
;
const
s
=
t
.
params
;
if
(
Array
.
isArray
(
s
))
g
.
value
=
s
.
map
((
i
)
=>
{
var
v
,
d
;
if
(
!
c
.
value
&&
Array
.
isArray
(
t
.
c
.
items
)
&&
t
.
c
.
items
.
length
)
{
const
f
=
i
.
seriesIndex
||
0
,
D
=
t
.
c
.
service
.
seriesList
[
f
],
y
=
(
v
=
D
==
null
?
void
0
:
D
.
catalogField
)
==
null
?
void
0
:
v
.
toLowerCase
(),
A
=
i
.
name
||
""
,
h
=
(
d
=
t
.
codeListMap
[
f
])
==
null
?
void
0
:
d
.
catalog
;
y
&&
A
&&
(
c
.
value
=
t
.
c
.
items
.
find
((
j
)
=>
h
&&
h
.
get
(
j
[
y
])
?
h
.
get
(
j
[
y
])
===
A
:
j
[
y
]
===
A
));
}
l
.
value
=
i
.
name
||
""
;
const
P
=
Array
.
isArray
(
i
.
value
)
?
i
.
value
[
1
]
:
i
.
value
;
return
{
text
:
i
.
seriesName
,
value
:
b
(
P
),
color
:
i
.
color
};
}),
Array
.
isArray
(
o
)
&&
o
.
length
&&
(
g
.
value
=
o
.
map
((
i
)
=>
{
var
v
,
d
;
const
P
=
(
v
=
c
.
value
)
==
null
?
void
0
:
v
[
i
.
value
];
return
{
color
:
i
.
color
,
text
:
i
.
text
,
value
:
b
(
P
),
rate
:
(
d
=
c
.
value
)
==
null
?
void
0
:
d
[
i
.
rate
]
};
}));
else
if
(
s
)
{
const
i
=
s
;
if
(
Array
.
isArray
(
t
.
c
.
items
)
&&
t
.
c
.
items
.
length
)
{
const
v
=
i
.
seriesIndex
||
0
,
d
=
t
.
c
.
service
.
seriesList
[
v
],
f
=
(
a
=
d
==
null
?
void
0
:
d
.
catalogField
)
==
null
?
void
0
:
a
.
toLowerCase
(),
D
=
(
m
=
d
==
null
?
void
0
:
d
.
valueField
)
==
null
?
void
0
:
m
.
toLowerCase
();
if
(
i
.
seriesType
===
"radar"
)
{
g
.
value
=
t
.
c
.
items
.
map
((
h
)
=>
({
text
:
h
[
f
],
value
:
b
(
h
[
D
]),
color
:
i
.
color
,
left
:
F
,
center
:
h
[
I
],
right
:
E
})),
c
.
value
=
{};
return
;
}
const
y
=
i
.
name
||
""
,
A
=
(
p
=
t
.
codeListMap
[
v
])
==
null
?
void
0
:
p
.
catalog
;
f
&&
y
&&
(
c
.
value
=
t
.
c
.
items
.
find
((
h
)
=>
A
&&
A
.
get
(
h
[
f
])
?
A
.
get
(
h
[
f
])
===
y
:
h
[
f
]
===
y
));
}
const
P
=
Array
.
isArray
(
i
.
value
)
?
(
L
=
i
.
value
)
==
null
?
void
0
:
L
[
1
]
:
i
.
value
;
g
.
value
=
[{
text
:
((
C
=
c
.
value
)
==
null
?
void
0
:
C
[
T
])
||
s
.
name
,
value
:
b
(
P
),
color
:
i
.
color
,
left
:
F
,
center
:
(
M
=
c
.
value
)
==
null
?
void
0
:
M
[
I
],
right
:
E
,
percentage
:
(
w
=
c
.
value
)
==
null
?
void
0
:
w
[
n
],
rate
:
(
R
=
c
.
value
)
==
null
?
void
0
:
R
[
$
]
}];
}
})(),
{
ns
:
k
,
title
:
l
,
items
:
g
,
curData
:
c
,
label
:
x
};
},
render
()
{
if
(
this
.
curData
)
return
e
(
"div"
,
{
class
:
this
.
ns
.
b
()
},
[
this
.
label
&&
this
.
curData
[
this
.
label
]
&&
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"header"
)
},
[
this
.
curData
[
this
.
label
]]),
!
(
this
.
label
&&
this
.
curData
[
this
.
label
])
&&
this
.
title
&&
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"header"
)
},
[
this
.
title
]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"content"
)
},
[
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-icon"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
color
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"icon"
),
style
:
{
background
:
t
.
color
}
})]))]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-text"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
text
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"text"
)
},
[
t
.
text
])]))]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-value"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
value
!=
null
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"value"
)
},
[
t
.
value
])]))]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-center"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
left
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"left"
)
},
[
t
.
left
]),
t
.
center
!=
null
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"center"
)
},
[
t
.
center
]),
t
.
right
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"right"
)
},
[
t
.
right
])]))]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-percentage"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
percentage
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"percentage"
)
},
[
t
.
percentage
])]))]),
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item-rate"
)
},
[
this
.
items
.
map
((
t
)
=>
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"item"
)
},
[
t
.
rate
&&
e
(
"div"
,
{
class
:
this
.
ns
.
be
(
"item"
,
"rate"
)
},
[
e
(
"rate-span"
,
{
attrs
:
{
value
:
t
.
rate
}
})])]))])])]);
}
}),
et
=
S
({
name
:
"GwxnChartControl"
,
props
:
{
modelData
:
{
type
:
B
,
required
:
!
0
},
context
:
{
type
:
Object
,
required
:
!
0
},
params
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
setup
(
t
)
{
var
E
;
const
{
proxy
:
k
}
=
z
(),
g
=
H
(
"chart"
),
l
=
J
(
k
,
t
.
modelData
,
t
.
context
,
t
.
params
),
c
=
((
E
=
l
.
model
.
source
.
getPSControlParam
())
==
null
?
void
0
:
E
.
ctrlParams
)
||
{},
u
=
c
.
TYPE
,
x
=
c
.
TOTAL
;
let
T
=
!
0
;
const
F
=
(
n
)
=>
(
Array
.
isArray
(
n
)
&&
x
&&
n
.
length
===
0
&&
(
n
.
push
({
[
x
]:
100
}),
T
=
!
1
),
n
);
l
.
registerLoadHook
(
F
);
const
I
=
async
(
n
)
=>
{
var
b
,
O
;
const
$
=
n
.
tooltip
;
if
(
$
)
{
const
r
=
await
l
.
service
.
getAllCodeListMap
(
l
.
context
,
l
.
params
);
$
.
formatter
=
(
s
)
=>
{
const
a
=
document
.
createElement
(
"div"
);
return
new
G
({
el
:
a
,
render
:
(
p
)
=>
p
(
V
,
{
props
:
{
params
:
s
,
ctrlParams
:
c
,
c
:
l
,
codeListMap
:
r
}
})
}).
$el
;
};
}
if
(
u
===
"line"
)
{
const
r
=
n
.
xAxis
;
Array
.
isArray
(
r
)
&&
r
.
length
&&
r
.
forEach
((
s
)
=>
{
const
a
=
s
;
a
.
max
=
(
m
)
=>
m
.
max
+
1
;
});
}
const
o
=
n
.
series
;
if
(
!
Array
.
isArray
(
o
))
return
n
;
if
(
u
===
"custom"
)
{
const
r
=
o
.
findIndex
((
a
)
=>
a
.
type
===
"pie"
);
if
(
r
!==
-
1
)
{
let
a
=
!
0
;
const
p
=
(
O
=
(
b
=
l
.
service
.
seriesList
[
r
])
==
null
?
void
0
:
b
.
valueField
)
==
null
?
void
0
:
O
.
toLowerCase
();
p
&&
l
.
items
.
every
((
C
)
=>
!
C
[
p
])
&&
(
o
.
splice
(
r
,
1
),
a
=
!
1
),
a
&&
(
o
[
r
]
=
N
(
o
[
r
],
{
emphasis
:
{
label
:
{
formatter
:
(
L
)
=>
{
var
w
;
const
C
=
(
w
=
L
.
value
[
0
])
==
null
?
void
0
:
w
.
replace
(
"~"
,
"-"
);
return
`{value|
${
L
.
value
[
1
]}
}
{key|
${
C
}
}`
;
}
}
}
}));
}
const
s
=
o
.
findIndex
((
a
)
=>
a
.
type
===
"gauge"
);
s
!==
-
1
&&
(
o
[
s
]
=
N
(
o
[
s
],
{
axisLabel
:
{
formatter
:
(
a
)
=>
a
===
24
||
a
%
2
===
1
?
""
:
`
${
a
}
`
}
}));
}
if
(
u
===
"radar"
)
{
const
r
=
n
.
radar
,
s
=
o
.
find
((
a
)
=>
a
.
type
===
"radar"
);
r
&&
!
Array
.
isArray
(
r
)
&&
Array
.
isArray
(
r
.
indicator
)
&&
s
&&
Array
.
isArray
(
s
.
data
)
&&
s
.
data
.
length
&&
(
r
.
indicator
=
[...
r
.
indicator
.
slice
(
0
,
1
),
...
r
.
indicator
.
slice
(
1
).
reverse
()],
s
.
data
[
0
]
=
[...
s
.
data
[
0
].
slice
(
0
,
1
),
...
s
.
data
[
0
].
slice
(
1
).
reverse
()]);
}
if
(
x
)
{
const
r
=
n
.
graphic
;
if
(
Array
.
isArray
(
r
)
&&
r
.
length
&&
T
)
{
const
s
=
l
.
items
.
reduce
((
a
,
m
)
=>
a
+
m
[
x
],
0
);
r
[
0
]
=
N
(
r
[
0
],
{
style
:
{
text
:
s
}
});
}
T
||
n
.
tooltip
&&
Object
.
assign
(
n
.
tooltip
,
{
show
:
!
1
});
}
return
n
;
};
return
l
.
registerHook
(
I
),
{
c
:
l
,
ns
:
g
};
},
render
()
{
if
(
this
.
c
.
complete
)
return
e
(
"control-layout"
,
{
attrs
:
{
modelData
:
this
.
c
.
model
}
},
[
e
(
"div"
,
{
class
:
this
.
ns
.
b
(),
style
:
{
width
:
this
.
c
.
width
,
height
:
this
.
c
.
height
}
},
[
e
(
"div"
,
{
attrs
:
{
id
:
this
.
c
.
chartId
},
class
:
this
.
ns
.
b
(
"content"
)
}),
this
.
c
.
items
.
length
?
null
:
e
(
"div"
,
{
class
:
this
.
ns
.
b
(
"empty-content"
)
},
[
"暂无数据"
])])]);
}
});
export
{
et
as
default
};
//# sourceMappingURL=gwxn-chart-control-fa848c26.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/gwxn-chart-control-fa848c26.js.map
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/gwxn-chart-control.legacy.js
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/gwxn-chart-control.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/ibiz-template-plugin.es.js
浏览文件 @
9e6f7d36
import
"@ibiz-template/model"
;
import
{
i
as
p
}
from
"./index-
42d80035
.js"
;
import
{
i
as
p
}
from
"./index-
25c28368
.js"
;
import
"@ibiz-template/runtime"
;
import
"@ibiz-template/controller"
;
export
{
p
as
default
};
//# sourceMappingURL=ibiz-template-plugin.es.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/ibiz-template-plugin.es.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"ibiz-template-plugin.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index-
42d80035
.js
→
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index-
25c28368
.js
浏览文件 @
9e6f7d36
var
n
=
Object
.
defineProperty
;
var
s
=
(
t
,
e
,
r
)
=>
e
in
t
?
n
(
t
,
e
,
{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
r
})
:
t
[
e
]
=
r
;
var
o
=
(
t
,
e
,
r
)
=>
(
s
(
t
,
typeof
e
!=
"symbol"
?
e
+
""
:
e
,
r
),
r
);
var
a
=
Object
.
defineProperty
;
var
s
=
(
t
,
o
,
r
)
=>
o
in
t
?
a
(
t
,
o
,
{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
r
})
:
t
[
o
]
=
r
;
var
e
=
(
t
,
o
,
r
)
=>
(
s
(
t
,
typeof
o
!=
"symbol"
?
o
+
""
:
o
,
r
),
r
);
import
{
ControlType
as
c
,
ViewType
as
l
}
from
"@ibiz-template/model"
;
import
{
PluginStaticResource
as
h
}
from
"@ibiz-template/runtime"
;
import
{
PortletPartController
as
m
}
from
"@ibiz-template/controller"
;
const
C
=
new
h
(
import
.
meta
.
url
);
import
{
PortletPartController
as
C
}
from
"@ibiz-template/controller"
;
const
m
=
new
h
(
import
.
meta
.
url
);
class
p
{
constructor
()
{
o
(
this
,
"component"
,
"ChartControl"
);
e
(
this
,
"component"
,
"ChartControl"
);
}
}
class
d
{
class
w
{
constructor
()
{
o
(
this
,
"component"
,
"ChartView"
);
e
(
this
,
"component"
,
"ChartView"
);
}
}
class
w
extends
m
{
class
d
extends
C
{
constructor
()
{
super
(...
arguments
);
/**
...
...
@@ -25,7 +25,7 @@ class w extends m {
* @date 2023-10-30 19:10:58
* @type {ChartNeuron}
*/
o
(
this
,
"chart"
);
e
(
this
,
"chart"
);
/**
* 图表适配器
*
...
...
@@ -33,7 +33,7 @@ class w extends m {
* @date 2023-10-30 19:10:22
* @type {IControlProvider}
*/
o
(
this
,
"chartProvider"
);
e
(
this
,
"chartProvider"
);
}
async
onInit
()
{
await
super
.
onInit
();
...
...
@@ -58,36 +58,45 @@ class w extends m {
}
class
P
{
constructor
()
{
o
(
this
,
"component"
,
"ChartPortlet"
);
e
(
this
,
"component"
,
"ChartPortlet"
);
}
async
createController
(
e
,
r
,
i
)
{
const
a
=
new
w
(
e
,
async
createController
(
o
,
r
,
i
)
{
const
n
=
new
d
(
o
,
r
,
i
);
return
await
a
.
init
(),
a
;
return
await
n
.
init
(),
n
;
}
}
class
g
{
constructor
()
{
e
(
this
,
"component"
,
"GwxnChartControl"
);
}
}
const
T
=
{
mateUrl
:
import
.
meta
.
url
,
install
(
t
)
{
C
.
loadStyle
([
"/style.css"
]),
t
.
component
(
m
.
loadStyle
([
"/style.css"
]),
t
.
component
(
"ChartControl"
,
()
=>
import
(
"./chart-control-
82e4972f
.js"
)
()
=>
import
(
"./chart-control-
e83eabb6
.js"
)
),
ibiz
.
register
.
control
.
register
(
c
.
CHART
,
new
p
()),
t
.
component
(
"ChartView"
,
()
=>
import
(
"./chart-view-2e05f0a8.js"
)
),
ibiz
.
register
.
view
.
register
(
l
.
DE_CHART_VIEW
,
new
d
()
new
w
()
),
t
.
component
(
"ChartPortlet"
,
()
=>
import
(
"./chart-portlet-54877294.js"
)
),
ibiz
.
register
.
portletPart
.
register
(
"CHART"
,
new
P
());
()
=>
import
(
"./chart-portlet-5b6b8afb.js"
)
),
ibiz
.
register
.
portletPart
.
register
(
"CHART"
,
new
P
()),
t
.
component
(
"GwxnChartControl"
,
()
=>
import
(
"./gwxn-chart-control-fa848c26.js"
)
),
ibiz
.
register
.
control
.
register
(
"CUSTOM_GwxnChart"
,
new
g
());
}
};
export
{
w
as
C
,
d
as
C
,
T
as
i
};
//# sourceMappingURL=index-25c28368.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index-25c28368.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"index-25c28368.js","sources":["../src/global.ts","../src/provider/chart-provider.ts","../src/provider/chart-view-provider.ts","../src/controller/chart-portlet-controller.ts","../src/provider/chart-portlet-provider.ts","../src/provider/gwxn-chart-provider.ts","../src/index.ts"],"sourcesContent":["// 文件路径: [插件项目的根目录]/src/global.ts\n\nimport { PluginStaticResource } from '@ibiz-template/runtime';\n\nconst resource = new PluginStaticResource(import.meta.url);\n\nexport { resource };\n","import { IControlProvider } from '@ibiz-template/controller';\n\n/**\n * 图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 16:04:11\n * @export\n * @class ChartProvider\n * @implements {IControlProvider}\n */\nexport class ChartProvider implements IControlProvider {\n component: string = 'ChartControl';\n}\n","import { IViewProvider } from '@ibiz-template/controller';\n\n/**\n * 图表视图适配器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewProvider\n * @implements {IViewProvider}\n */\nexport class ChartViewProvider implements IViewProvider {\n component: string = 'ChartView';\n}\n","import { ChartPortletModel } from '@ibiz-template/model';\nimport {\n IControlProvider,\n PortletPartController,\n} from '@ibiz-template/controller';\nimport { ChartNeuron } from './neuron/chart-neuron';\n\nexport class ChartPortletController extends PortletPartController<ChartPortletModel> {\n /**\n * 图表神经元\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:58\n * @type {ChartNeuron}\n */\n chart?: ChartNeuron;\n\n /**\n * 图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:22\n * @type {IControlProvider}\n */\n chartProvider?: IControlProvider;\n\n protected async onInit(): Promise<void> {\n await super.onInit();\n const { chart } = this.model;\n if (chart) {\n this.chartProvider = await ibiz.register.control.get(chart);\n }\n }\n\n /**\n * 设置图表神经元\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:45\n * @param {ChartNeuron} neuron\n */\n setChartNeuron(neuron: ChartNeuron) {\n this.chart = neuron;\n this.chart.evt.on('mounted', () => {\n this.chart?.call.load();\n });\n this.chart.evt.on('destroyed', () => {\n this.chart = undefined;\n });\n }\n}\n","import {\n ContainerPortletController,\n DashboardController,\n IPortletPartProvider,\n} from '@ibiz-template/controller';\nimport { ChartPortletModel, PortletPartModel } from '@ibiz-template/model';\nimport { ChartPortletController } from '../controller/chart-portlet-controller';\n\n/**\n * 数据看板成员实体图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-10-30 20:10:54\n * @export\n * @class ChartPortletProvider\n * @implements {IPortletPartProvider}\n */\nexport class ChartPortletProvider implements IPortletPartProvider {\n component: string = 'ChartPortlet';\n\n async createController(\n portletModel: PortletPartModel,\n dashboard: DashboardController,\n parent?: ContainerPortletController,\n ): Promise<ChartPortletController> {\n const c = new ChartPortletController(\n portletModel as ChartPortletModel,\n dashboard,\n parent,\n );\n await c.init();\n return c;\n }\n}\n","import { IControlProvider } from '@ibiz-template/controller';\n\nexport class GwxnChartProvider implements IControlProvider {\n component: string = 'GwxnChartControl';\n}\n","import { VueConstructor } from 'vue';\nimport { ControlType, ViewType } from '@ibiz-template/model';\nimport { resource } from './global';\nimport { ChartProvider } from './provider/chart-provider';\nimport { ChartViewProvider } from './provider/chart-view-provider';\nimport { ChartPortletProvider } from './provider/chart-portlet-provider';\nimport { GwxnChartProvider } from './provider/gwxn-chart-provider';\n\nexport default {\n mateUrl: import.meta.url,\n install(vue: VueConstructor) {\n resource.loadStyle(['/style.css']);\n vue.component(\n 'ChartControl',\n () => import('./components/chart-control/chart-control'),\n );\n ibiz.register.control.register(ControlType.CHART, new ChartProvider());\n vue.component(\n 'ChartView',\n () => import('./components/chart-view/chart-view'),\n );\n ibiz.register.view.register(\n ViewType.DE_CHART_VIEW,\n new ChartViewProvider(),\n );\n vue.component(\n 'ChartPortlet',\n () => import('./components/chart-portlet/chart-portlet'),\n );\n ibiz.register.portletPart.register('CHART', new ChartPortletProvider());\n\n vue.component(\n 'GwxnChartControl',\n () => import('./components/gwxn-chart-control/gwxn-chart-control'),\n );\n ibiz.register.control.register('CUSTOM_GwxnChart', new GwxnChartProvider());\n },\n};\n"],"names":["resource","PluginStaticResource","ChartProvider","__publicField","ChartViewProvider","ChartPortletController","PortletPartController","chart","neuron","_a","ChartPortletProvider","portletModel","dashboard","parent","c","GwxnChartProvider","index","vue","ControlType","ViewType"],"mappings":";;;;;;AAIA,MAAMA,IAAW,IAAIC,EAAqB,YAAY,GAAG;ACOlD,MAAMC,EAA0C;AAAA,EAAhD;AACL,IAAAC,EAAA,mBAAoB;AAAA;AACtB;ACFO,MAAMC,EAA2C;AAAA,EAAjD;AACL,IAAAD,EAAA,mBAAoB;AAAA;AACtB;ACNO,MAAME,UAA+BC,EAAyC;AAAA,EAA9E;AAAA;AAQL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAH,EAAA;AASA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,EAAA;AAAA;AAAA,EAEA,MAAgB,SAAwB;AACtC,UAAM,MAAM;AACN,UAAA,EAAE,OAAAI,EAAM,IAAI,KAAK;AACvB,IAAIA,MACF,KAAK,gBAAgB,MAAM,KAAK,SAAS,QAAQ,IAAIA,CAAK;AAAA,EAE9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,eAAeC,GAAqB;AAClC,SAAK,QAAQA,GACb,KAAK,MAAM,IAAI,GAAG,WAAW,MAAM;;AAC5B,OAAAC,IAAA,KAAA,UAAA,QAAAA,EAAO,KAAK;AAAA,IAAK,CACvB,GACD,KAAK,MAAM,IAAI,GAAG,aAAa,MAAM;AACnC,WAAK,QAAQ;AAAA,IAAA,CACd;AAAA,EACH;AACF;ACjCO,MAAMC,EAAqD;AAAA,EAA3D;AACL,IAAAP,EAAA,mBAAoB;AAAA;AAAA,EAEpB,MAAM,iBACJQ,GACAC,GACAC,GACiC;AACjC,UAAMC,IAAI,IAAIT;AAAA,MACZM;AAAA,MACAC;AAAA,MACAC;AAAA,IAAA;AAEF,iBAAMC,EAAE,QACDA;AAAA,EACT;AACF;AC/BO,MAAMC,EAA8C;AAAA,EAApD;AACL,IAAAZ,EAAA,mBAAoB;AAAA;AACtB;ACIA,MAAea,IAAA;AAAA,EACb,SAAS,YAAY;AAAA,EACrB,QAAQC,GAAqB;AAClB,IAAAjB,EAAA,UAAU,CAAC,YAAY,CAAC,GAC7BiB,EAAA;AAAA,MACF;AAAA,MACA,MAAM,OAAO,6BAA0C;AAAA,IAAA,GAEzD,KAAK,SAAS,QAAQ,SAASC,EAAY,OAAO,IAAIhB,GAAe,GACjEe,EAAA;AAAA,MACF;AAAA,MACA,MAAM,OAAO,0BAAoC;AAAA,IAAA,GAEnD,KAAK,SAAS,KAAK;AAAA,MACjBE,EAAS;AAAA,MACT,IAAIf,EAAkB;AAAA,IAAA,GAEpBa,EAAA;AAAA,MACF;AAAA,MACA,MAAM,OAAO,6BAA0C;AAAA,IAAA,GAEzD,KAAK,SAAS,YAAY,SAAS,SAAS,IAAIP,GAAsB,GAElEO,EAAA;AAAA,MACF;AAAA,MACA,MAAM,OAAO,kCAAoD;AAAA,IAAA,GAEnE,KAAK,SAAS,QAAQ,SAAS,oBAAoB,IAAIF,GAAmB;AAAA,EAC5E;AACF;"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index.legacy.js
浏览文件 @
9e6f7d36
System
.
register
([
"@ibiz-template/model"
,
"./index.legacy2.js"
,
"@ibiz-template/runtime"
,
"@ibiz-template/controller"
],(
function
(
e
,
t
){
"use strict"
;
return
{
setters
:[
null
,
function
(
t
){
e
(
"default"
,
t
.
i
)},
null
,
null
],
execute
:
function
(){}}}));
//# sourceMappingURL=index.legacy.js.map
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"index.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index.legacy2.js
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/index.legacy2.js.map
0 → 100644
浏览文件 @
9e6f7d36
{"version":3,"file":"index.legacy2.js","sources":["../src/global.ts","../src/provider/chart-provider.ts","../src/provider/chart-view-provider.ts","../src/controller/chart-portlet-controller.ts","../src/provider/chart-portlet-provider.ts","../src/provider/gwxn-chart-provider.ts","../src/index.ts"],"sourcesContent":["// 文件路径: [插件项目的根目录]/src/global.ts\n\nimport { PluginStaticResource } from '@ibiz-template/runtime';\n\nconst resource = new PluginStaticResource(import.meta.url);\n\nexport { resource };\n","import { IControlProvider } from '@ibiz-template/controller';\n\n/**\n * 图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 16:04:11\n * @export\n * @class ChartProvider\n * @implements {IControlProvider}\n */\nexport class ChartProvider implements IControlProvider {\n component: string = 'ChartControl';\n}\n","import { IViewProvider } from '@ibiz-template/controller';\n\n/**\n * 图表视图适配器\n *\n * @author zhanghengfeng\n * @date 2023-04-03 17:04:29\n * @export\n * @class ChartViewProvider\n * @implements {IViewProvider}\n */\nexport class ChartViewProvider implements IViewProvider {\n component: string = 'ChartView';\n}\n","import { ChartPortletModel } from '@ibiz-template/model';\nimport {\n IControlProvider,\n PortletPartController,\n} from '@ibiz-template/controller';\nimport { ChartNeuron } from './neuron/chart-neuron';\n\nexport class ChartPortletController extends PortletPartController<ChartPortletModel> {\n /**\n * 图表神经元\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:58\n * @type {ChartNeuron}\n */\n chart?: ChartNeuron;\n\n /**\n * 图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:22\n * @type {IControlProvider}\n */\n chartProvider?: IControlProvider;\n\n protected async onInit(): Promise<void> {\n await super.onInit();\n const { chart } = this.model;\n if (chart) {\n this.chartProvider = await ibiz.register.control.get(chart);\n }\n }\n\n /**\n * 设置图表神经元\n *\n * @author zhanghengfeng\n * @date 2023-10-30 19:10:45\n * @param {ChartNeuron} neuron\n */\n setChartNeuron(neuron: ChartNeuron) {\n this.chart = neuron;\n this.chart.evt.on('mounted', () => {\n this.chart?.call.load();\n });\n this.chart.evt.on('destroyed', () => {\n this.chart = undefined;\n });\n }\n}\n","import {\n ContainerPortletController,\n DashboardController,\n IPortletPartProvider,\n} from '@ibiz-template/controller';\nimport { ChartPortletModel, PortletPartModel } from '@ibiz-template/model';\nimport { ChartPortletController } from '../controller/chart-portlet-controller';\n\n/**\n * 数据看板成员实体图表适配器\n *\n * @author zhanghengfeng\n * @date 2023-10-30 20:10:54\n * @export\n * @class ChartPortletProvider\n * @implements {IPortletPartProvider}\n */\nexport class ChartPortletProvider implements IPortletPartProvider {\n component: string = 'ChartPortlet';\n\n async createController(\n portletModel: PortletPartModel,\n dashboard: DashboardController,\n parent?: ContainerPortletController,\n ): Promise<ChartPortletController> {\n const c = new ChartPortletController(\n portletModel as ChartPortletModel,\n dashboard,\n parent,\n );\n await c.init();\n return c;\n }\n}\n","import { IControlProvider } from '@ibiz-template/controller';\n\nexport class GwxnChartProvider implements IControlProvider {\n component: string = 'GwxnChartControl';\n}\n","import { VueConstructor } from 'vue';\nimport { ControlType, ViewType } from '@ibiz-template/model';\nimport { resource } from './global';\nimport { ChartProvider } from './provider/chart-provider';\nimport { ChartViewProvider } from './provider/chart-view-provider';\nimport { ChartPortletProvider } from './provider/chart-portlet-provider';\nimport { GwxnChartProvider } from './provider/gwxn-chart-provider';\n\nexport default {\n mateUrl: import.meta.url,\n install(vue: VueConstructor) {\n resource.loadStyle(['/style.css']);\n vue.component(\n 'ChartControl',\n () => import('./components/chart-control/chart-control'),\n );\n ibiz.register.control.register(ControlType.CHART, new ChartProvider());\n vue.component(\n 'ChartView',\n () => import('./components/chart-view/chart-view'),\n );\n ibiz.register.view.register(\n ViewType.DE_CHART_VIEW,\n new ChartViewProvider(),\n );\n vue.component(\n 'ChartPortlet',\n () => import('./components/chart-portlet/chart-portlet'),\n );\n ibiz.register.portletPart.register('CHART', new ChartPortletProvider());\n\n vue.component(\n 'GwxnChartControl',\n () => import('./components/gwxn-chart-control/gwxn-chart-control'),\n );\n ibiz.register.control.register('CUSTOM_GwxnChart', new GwxnChartProvider());\n },\n};\n"],"names":["resource","PluginStaticResource","module","ChartProvider","_createClass","_classCallCheck","this","_defineProperty","ChartViewProvider","ChartPortletController","_onInit","_assertThisInitialized","_this","key","value","_asyncToGenerator","_regeneratorRuntime","mark","_callee","chart","wrap","_callee$","_context","prev","next","_get","_getPrototypeOf","prototype","call","model","ibiz","register","control","get","chartProvider","onInit","apply","arguments","neuron","_this2","evt","on","_this2$chart","load","PortletPartController","exports","ChartPortletProvider","_createController","_callee2","portletModel","dashboard","parent","c","_context2","init","abrupt","stop","createController","_x","_x2","_x3","GwxnChartProvider","mateUrl","meta","url","install","vue","loadStyle","component","import","ControlType","CHART","view","ViewType","DE_CHART_VIEW","portletPart"],"mappings":"q/SAIA,IAAMA,EAAW,IAAIC,EAAqBC,YCO7BC,EAA0CC,GAAAD,SAAAA,IAAAE,EAAAC,KAAAH,GAAAI,mBACjC,eAAA,ICDTC,EAA2CJ,GAAA,SAAAI,IAAAH,EAAAG,KAAAA,GAAAD,mBAClC,YAAA,ICLTE,8SAQXC,qHARmFH,EAAAI,sCAQnF,aAAA,GAAAJ,EAAAI,EAAAC,2BAAAA,CAAA,CAkCAH,OAlCAL,EAAAK,EAAA,CAAA,CAAAI,IAAAC,SAAAA,OAAAJ,EAAAK,EAAAC,IAAAC,MAWA,SAAAC,IAAA,IAAAC,EAAAH,OAAAA,IAAAI,MAAAC,SAAAC,GAAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAE,KAAA,EAAAC,EAAAC,EAAA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,IAAA,CACbiB,QAAS5D,EAAY6D,KAAAC,IACrBC,iBAAQC,GACGlE,EAAAmE,UAAU,CAAC,eAChBD,EAAAE,UACF,gBACA,WAAA,OAAMlE,EAAOmE,OAAA,4BACf,IACAvC,KAAKC,SAASC,QAAQD,SAASuC,EAAYC,MAAO,IAAIpE,GAClD+D,EAAAE,UACF,aACA,kBAAMlE,EAAOmE,OAAA,yBAAoC,IAEnDvC,KAAKC,SAASyC,KAAKzC,SACjB0C,EAASC,cACT,IAAIlE,GAEF0D,EAAAE,UACF,gBACA,WAAM,OAAAlE,EAAOmE,OAAA,gCAEfvC,KAAKC,SAAS4C,YAAY5C,SAAS,QAAS,IAAIe,GAE5CoB,EAAAE,UACF,oBACA,kBAAMlE,EAAOmE,OAAA,iCAAoD,IAEnEvC,KAAKC,SAASC,QAAQD,SAAS,mBAAoB,IAAI8B,EACzD"}
\ No newline at end of file
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/polyfills.legacy.js
浏览文件 @
9e6f7d36
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/style.css
浏览文件 @
9e6f7d36
@charset
"UTF-8"
;
.ibiz-chart
{
width
:
100%
;
height
:
100%
;
overflow
:
auto
;
position
:
relative
}
.ibiz-chart
.ibiz-chart-content
{
width
:
100%
;
height
:
100%
}
.ibiz-chart
.ibiz-chart-empty-content
{
position
:
absolute
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
}
.chart-tooltip
.chart-tooltip-container
{
width
:
141px
;
padding
:
10px
12px
6px
8px
;
background
:
rgba
(
255
,
255
,
255
,
.45
);
border-radius
:
6px
;
backdrop-filter
:
blur
(
3px
)}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-title
{
font-size
:
14px
;
font-weight
:
700
;
line-height
:
19px
;
color
:
#666
}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
8px
}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
.chart-tooltip-item-name
,
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
.chart-tooltip-item-number
{
font-size
:
12px
;
line-height
:
16px
;
color
:
#666
}
@charset
"UTF-8"
;
.ibiz-chart
.ibiz-chart-empty-content
{
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
}
.chart-tooltip
.chart-tooltip-container
{
width
:
141px
;
padding
:
10px
12px
6px
8px
;
background
:
rgba
(
255
,
255
,
255
,
.45
);
border-radius
:
6px
;
backdrop-filter
:
blur
(
3px
)}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-title
{
font-size
:
14px
;
font-weight
:
700
;
line-height
:
19px
;
color
:
#666
}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
8px
}
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
.chart-tooltip-item-name
,
.chart-tooltip
.chart-tooltip-container
.chart-tooltip-item
.chart-tooltip-item-number
{
font-size
:
12px
;
line-height
:
16px
;
color
:
#666
}
.ibiz-chart
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
overflow
:
auto
}
.ibiz-chart
.ibiz-chart-content
{
width
:
100%
;
height
:
100%
}
.ibiz-chart
.ibiz-chart-empty-content
,
.ibiz-chart
.ibiz-chart-center
{
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
}
.ibiz-chart-tooltip
{
font-family
:
MicrosoftYaHei
,
sans-serif
;
font-size
:
12px
;
color
:
#000
}
.ibiz-chart-tooltip-header
{
margin-bottom
:
4px
}
.ibiz-chart-tooltip-content
{
display
:
flex
}
.ibiz-chart-tooltip-item
{
display
:
flex
;
align-items
:
center
;
height
:
21px
;
margin-bottom
:
4px
}
.ibiz-chart-tooltip-item
:last-child
{
margin-bottom
:
0
}
.ibiz-chart-tooltip-item__icon
{
flex
:
0
0
auto
;
width
:
6px
;
height
:
6px
;
margin-right
:
8px
;
border-radius
:
50%
}
.ibiz-chart-tooltip-item__text
{
margin-right
:
16px
}
.ibiz-chart-tooltip-item__value
{
width
:
100%
;
color
:
#337dff
;
text-align
:
right
}
.ibiz-chart-tooltip-item__center
{
color
:
#337dff
}
.ibiz-chart-tooltip-item__percentage
{
margin-left
:
10px
;
color
:
#337dff
}
.ibiz-chart-tooltip-item__rate
{
margin-left
:
17px
}
.ibiz-chart-tooltip-item-value
{
margin-left
:
auto
}
.ibiz-chart-tooltip-item-center
{
margin-left
:
4px
}
.ibiz-chart-tooltip-item-percentage
+
.ibiz-chart-tooltip-item-rate
.ibiz-chart-tooltip-item__rate
{
margin-left
:
10px
}
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/
chart-control-82e4972f
.js
→
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/
use-chart-controller-d5d0d5a1
.js
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/use-chart-controller-d5d0d5a1.js.map
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/use-chart-controller.legacy.js
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-package/vue2-de-chart-view@0.0.1/dist/use-chart-controller.legacy.js.map
0 → 100644
浏览文件 @
9e6f7d36
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录