|
@@ -38,15 +38,19 @@ export class ResourceModule extends ModuleRoot {
|
|
materialVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
materialVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
|
|
// 用户资源
|
|
// 用户资源
|
|
- matImageListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
- matVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
- CustCompListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
|
|
+ custImageListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
+ custVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
+ custCompListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
+ custTextListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
+ custShapeListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
|
|
// 平台资源
|
|
// 平台资源
|
|
|
|
+ sysTplListCtrl: new PageListController(this.config?.httpConfig),
|
|
sysImageListCtrl: new PageListController(this.config?.httpConfig),
|
|
sysImageListCtrl: new PageListController(this.config?.httpConfig),
|
|
sysVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
sysVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
- sysSvgListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
- sysCompListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
|
|
|
+ sysCompListCtrl: new PageListController<compType, any>(this.config?.httpConfig),
|
|
|
|
+ sysShapeListCtrl: new PageListController<compType, any>(this.config?.httpConfig),
|
|
|
|
+ sysTextListCtrl: new PageListController<compType, any>(this.config?.httpConfig),
|
|
};
|
|
};
|
|
natsBus = new BusController();
|
|
natsBus = new BusController();
|
|
treeController = new TreeController(this.natsBus);
|
|
treeController = new TreeController(this.natsBus);
|
|
@@ -69,13 +73,29 @@ export class ResourceModule extends ModuleRoot {
|
|
this.controls.materialVideoListCtrl.state.size = 18;
|
|
this.controls.materialVideoListCtrl.state.size = 18;
|
|
this.controls.materialVideoListCtrl.state.query = { fileType: "video" };
|
|
this.controls.materialVideoListCtrl.state.query = { fileType: "video" };
|
|
|
|
|
|
- this.controls.matImageListCtrl.setCrudPrefix("/source");
|
|
|
|
- this.controls.matImageListCtrl.state.size = 20;
|
|
|
|
- this.controls.matImageListCtrl.state.query = { fileType: "image" };
|
|
|
|
|
|
+ this.controls.custImageListCtrl.setCrudPrefix("/source");
|
|
|
|
+ this.controls.custImageListCtrl.state.size = 20;
|
|
|
|
+ this.controls.custImageListCtrl.state.query = { fileType: "image" };
|
|
|
|
|
|
- this.controls.matVideoListCtrl.setCrudPrefix("/source");
|
|
|
|
- this.controls.matVideoListCtrl.state.size = 20;
|
|
|
|
- this.controls.matVideoListCtrl.state.query = { fileType: "video" };
|
|
|
|
|
|
+ this.controls.custVideoListCtrl.setCrudPrefix("/source");
|
|
|
|
+ this.controls.custVideoListCtrl.state.size = 20;
|
|
|
|
+ this.controls.custVideoListCtrl.state.query = { fileType: "video" };
|
|
|
|
+
|
|
|
|
+ this.controls.custCompListCtrl.setCrudPrefix("/frame");
|
|
|
|
+ this.controls.custCompListCtrl.state.size = 20;
|
|
|
|
+ this.controls.custCompListCtrl.state.query = { type: "comp"};
|
|
|
|
+
|
|
|
|
+ this.controls.custTextListCtrl.setCrudPrefix("/frame");
|
|
|
|
+ this.controls.custTextListCtrl.state.size = 20;
|
|
|
|
+ this.controls.custTextListCtrl.state.query = { type: "text"};
|
|
|
|
+
|
|
|
|
+ this.controls.custShapeListCtrl.setCrudPrefix("/frame");
|
|
|
|
+ this.controls.custShapeListCtrl.state.size = 20;
|
|
|
|
+ this.controls.custShapeListCtrl.state.query = { type: "shape"};
|
|
|
|
+
|
|
|
|
+ this.controls.sysTplListCtrl.setCrudPrefix("/sys/h5");
|
|
|
|
+ this.controls.sysTplListCtrl.state.size = 20;
|
|
|
|
+ this.controls.sysTplListCtrl.state.query = { published: true};
|
|
|
|
|
|
this.controls.sysImageListCtrl.setCrudPrefix("/sys/source");
|
|
this.controls.sysImageListCtrl.setCrudPrefix("/sys/source");
|
|
this.controls.sysImageListCtrl.state.size = 20;
|
|
this.controls.sysImageListCtrl.state.size = 20;
|
|
@@ -85,18 +105,18 @@ export class ResourceModule extends ModuleRoot {
|
|
this.controls.sysVideoListCtrl.state.size = 20;
|
|
this.controls.sysVideoListCtrl.state.size = 20;
|
|
this.controls.sysVideoListCtrl.state.query = { fileType: "video" , published: true};
|
|
this.controls.sysVideoListCtrl.state.query = { fileType: "video" , published: true};
|
|
|
|
|
|
- this.controls.sysSvgListCtrl.setCrudPrefix("/sys/source");
|
|
|
|
- this.controls.sysSvgListCtrl.state.size = 20;
|
|
|
|
- this.controls.sysSvgListCtrl.state.query = { fileType: "image" , isSvg: true};
|
|
|
|
- this.controls.sysSvgListCtrl.state.query = { published: true};
|
|
|
|
-
|
|
|
|
- this.controls.CustCompListCtrl.setCrudPrefix("/frame");
|
|
|
|
- this.controls.CustCompListCtrl.state.size = 20;
|
|
|
|
- // this.controls.CustCompListCtrl.state.query = { type: "comp"};
|
|
|
|
-
|
|
|
|
this.controls.sysCompListCtrl.setCrudPrefix("sys/frame");
|
|
this.controls.sysCompListCtrl.setCrudPrefix("sys/frame");
|
|
this.controls.sysCompListCtrl.state.size = 20;
|
|
this.controls.sysCompListCtrl.state.size = 20;
|
|
|
|
+ this.controls.sysCompListCtrl.state.query = { type: "comp", published: true};
|
|
|
|
+
|
|
|
|
+ this.controls.sysShapeListCtrl.setCrudPrefix("/sys/frame");
|
|
|
|
+ this.controls.sysShapeListCtrl.state.size = 20;
|
|
|
|
+ this.controls.sysShapeListCtrl.state.query = { type: "shape", published: true};
|
|
|
|
|
|
|
|
+ this.controls.sysTextListCtrl.setCrudPrefix("/sys/frame");
|
|
|
|
+ this.controls.sysTextListCtrl.state.size = 20;
|
|
|
|
+ this.controls.sysTextListCtrl.state.query = { type: "text", published: true};
|
|
|
|
+
|
|
this.natsBus.init();
|
|
this.natsBus.init();
|
|
}
|
|
}
|
|
}
|
|
}
|