1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
|
| let extension = {
| components: {//动态扩充组件或组件路径
| //表单header、content、footer对应位置扩充的组件
| gridHeader:'',
| gridbody:'',
| gridFooter: '',
| //弹出框(修改、编辑、查看)header、content、footer对应位置扩充的组件
| modelHeader: '',
| modelBody: '',
| modelFooter: ''
| },
| buttons: [],//扩展的按钮
| methods: {//事件扩展
| onInit() {
| let ExportProcessCardBtn = this.buttons.find(x => x.value == 'ExportProcessCard');
| if (ExportProcessCardBtn) {
| ExportProcessCardBtn.onClick = function () {
| this.http
| .post("api/scanStation/ExportData", null, "数据处理中")
| .then((x) => {
| if (!x.status) return this.$message.error(x.message);
| this.$message.success("操作成功");
| this.refresh();
| });
| }
| }
| },
| onInited() {
| }
| }
| };
| export default extension;
|
|