Browse Source

[新增]作战部署增加限制基本信息素材不能复制粘贴

zhuzhou
邵佳豪 4 years ago
parent
commit
08843a8784
  1. 4
      angular.json
  2. 1
      src/app/ui/collection-tools-plan/collection-tools.component.ts
  3. 9
      src/app/ui/collection-tools/collection-tools.component.ts

4
angular.json

@ -64,8 +64,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "6mb",
"maximumError": "6mb"
"maximumWarning": "8mb",
"maximumError": "8mb"
},
{
"type": "anyComponentStyle",

1
src/app/ui/collection-tools-plan/collection-tools.component.ts

@ -627,7 +627,6 @@ export class CollectionToolsPlanComponent implements OnInit {
firstMultipleAssetData:any//当前多选的第一个素材
ngOnInit(): void {
let _this = this
AxMessageSystem.addListener('selectionChanged', ()=>{
if(this.canvas.selection.size() == 1){//如果是单选
this.isMultipleAsset = false

9
src/app/ui/collection-tools/collection-tools.component.ts

@ -822,7 +822,14 @@ export class CollectionToolsComponent implements OnInit {
copyAssetData:any //存储用于复制的素材
//复制素材
copyAsset(){
this.canvas.copy()
if(this.canvas.selection.allowEdit()){//如果当前选中素材可以编辑
this.canvas.copy()
}else{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open('当前选中素材不可复制','确定',config);
}
}
//粘贴素材
pasteAsset(){

Loading…
Cancel
Save