-
-
-
-
-
-
obj.i !== 'drop');
this.addItem(data)
if (!data.prop) data.prop = Date.now() + '_' + Math.ceil(Math.random() * 99999)
if(data.hasOwnProperty("gridName") && data.gridName=="_random_"){
@@ -373,11 +375,12 @@ background:url("data:image/svg+xml;utf8,
@@ -101,6 +103,7 @@ export default {
grp_id:-1,
template_dialog_visible:false,
template_xml:{},
+ parent_defaultsetting:{},
search_file_name:"",
cur_pre_copy_file:""
}
@@ -170,16 +173,6 @@ export default {
)
}
},
- async open_template_dialog(){
- let _this=this
- let resp=await open_template(this.grp_id,this.cur_grp.loc_path.join("/"))
- if(resp.errcode==undefined)
- this.template_xml=x2jsone.xml2js(resp.content).template
- else
- this.template_xml={}
-
- this.template_dialog_visible=true
- },
async template_handleSubmit(){
let _this=this
let resp=await save_template(this.grp_id,this.cur_grp.loc_path.join("/"),x2jsone.js2xml({template: this.template_xml}))
@@ -214,8 +207,10 @@ export default {
if(command=="修改模板"){
let _this=this
let resp=await open_template(this.grp_id,this.cur_grp.loc_path.join("/"))
- if(resp.errcode==undefined)
+ if(resp.errcode==undefined){
this.template_xml=x2jsone.xml2js(resp.content).template
+ this.parent_defaultsetting=resp.parent_defaultsetting
+ }
else
this.template_xml={}
if(this.template_xml=="")
diff --git a/front/src/views/rpt_design/preview.vue b/front/src/views/rpt_design/preview.vue
index 0b58b54..e3c9d58 100644
--- a/front/src/views/rpt_design/preview.vue
+++ b/front/src/views/rpt_design/preview.vue
@@ -102,13 +102,12 @@
-
\ No newline at end of file
diff --git a/front/src/views/rpt_design/widgetManger.vue b/front/src/views/rpt_design/widgetManger.vue
new file mode 100644
index 0000000..7d052ed
--- /dev/null
+++ b/front/src/views/rpt_design/widgetManger.vue
@@ -0,0 +1,318 @@
+
+
+
+
+
+
+ 创建新组件
+
+
+ 添加
+
+
+
+
+
{{ item.label }}
+
+ 编辑
+ 删除
+ 克隆
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file