|
@@ -106,6 +106,7 @@
|
|
|
<div class="anty-form-btn">
|
|
|
<a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">重置</a-button>
|
|
|
<a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">修改并保存</a-button>
|
|
|
+ <a-button @click="print()" :href="printMouldUrl" target="_blank" type="primary">打印</a-button>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-tab-pane>
|
|
@@ -178,6 +179,7 @@
|
|
|
autoExpandParent: true,
|
|
|
currFlowId: '',
|
|
|
currFlowName: '',
|
|
|
+ printMouldUrl:'',
|
|
|
disable: true,
|
|
|
treeData: [],
|
|
|
visible: false,
|
|
@@ -225,6 +227,7 @@
|
|
|
exportXlsUrl: "sys/sysDepart/exportXls",
|
|
|
importExcelUrl: "sys/sysDepart/importExcel",
|
|
|
},
|
|
|
+ id:'',
|
|
|
orgCategoryDisabled:false,
|
|
|
}
|
|
|
},
|
|
@@ -383,6 +386,7 @@
|
|
|
}else{
|
|
|
this.orgCategoryDisabled = false;
|
|
|
}
|
|
|
+ this.id = record.id
|
|
|
this.form.getFieldDecorator('fax', {initialValue: ''})
|
|
|
this.form.setFieldsValue(pick(record, 'departName','dutyNum','parentId','orgCategory', 'orgCode', 'departOrder', 'mobile', 'fax', 'address', 'memo','description'))
|
|
|
},
|
|
@@ -509,6 +513,11 @@
|
|
|
this.checkStrictly = true
|
|
|
}
|
|
|
},
|
|
|
+ print(){
|
|
|
+ // var formData1 = this.form.getFieldsValue()
|
|
|
+ // debugger
|
|
|
+ this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/835862164483166208'+'?id='+this.id
|
|
|
+ },
|
|
|
getAllKeys(node) {
|
|
|
// console.log('node',node);
|
|
|
this.allTreeKeys.push(node.key)
|