cloud-web-corejs 1.1.0-dev.33 → 1.1.0-dev.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/bin/core-resources.js +16 -0
- package/bin/create-child-app.js +34 -0
- package/docs/child-app/README.md +95 -0
- package/docs/child-app/activiti-resources.md +63 -0
- package/docs/child-app/generate-prompt.md +55 -0
- package/docs/child-app/luckysheet-resources.md +80 -0
- package/docs/child-app/public-resources-plan.md +288 -0
- package/docs/child-app/resources-implementation.md +101 -0
- package/docs/child-app/tinymce-resources.md +88 -0
- package/docs/child-app/validation.md +34 -0
- package/docs/qiankun/346/216/245/345/205/245/345/215/217/350/256/256.md +298 -0
- package/docs/qiankun/350/257/246/346/203/205/346/211/277/350/275/275/345/255/220/345/272/224/347/224/250/345/257/271/346/216/245/346/270/205/345/215/225.md +111 -0
- package/package.json +18 -2
- package/resource-tools/index.js +126 -0
- package/src/app-bootstrap.js +7 -2
- package/src/components/Tinymce/dynamicLoadScript.js +51 -59
- package/src/components/Tinymce/index.vue +382 -339
- package/src/components/code-editor/index.vue +361 -343
- package/src/components/luckysheet/loadResources.js +64 -0
- package/src/components/luckysheet/view.vue +239 -210
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +34 -3
- package/src/utils/featureResources.js +57 -0
- package/src/views/bd/setting/form_template/mixins/list.js +7 -6
- package/src/views/bd/setting/form_template/mixins/list2.js +412 -411
- package/src/views/bd/setting/form_template/mixins/wf_list.js +431 -430
- package/src/views/user/form/form_template/list.vue +513 -512
- package/src/views/user/wf/wf_obj_config/activiti_wf.vue +134 -133
- package/src/views/user/wf/wf_obj_config/list.vue +747 -746
- package/src/views/user/wf/wf_obj_config/list_form.vue +374 -373
- package/templates/child-app/.env +3 -0
- package/templates/child-app/README.md +49 -0
- package/templates/child-app/app.config.js +6 -0
- package/templates/child-app/babel.config.js +1 -0
- package/templates/child-app/core-resources.config.js +15 -0
- package/templates/child-app/gitignore +7 -0
- package/templates/child-app/package.json +34 -0
- package/templates/child-app/public/index.html +12 -0
- package/templates/child-app/src/assets/401_images/401.gif +0 -0
- package/templates/child-app/src/assets/404_images/404.png +0 -0
- package/templates/child-app/src/assets/404_images/404_cloud.png +0 -0
- package/templates/child-app/src/assets/logo.png +0 -0
- package/templates/child-app/src/corejsConfig.js +2 -0
- package/templates/child-app/src/icons/index.js +2 -0
- package/templates/child-app/src/icons/svg/child-demo.svg +1 -0
- package/templates/child-app/src/layout/index.vue +4 -0
- package/templates/child-app/src/main.js +5 -0
- package/templates/child-app/src/prefixConfig.js +13 -0
- package/templates/child-app/src/resources/css/login.scss +29 -0
- package/templates/child-app/src/resources/images/bg-login5.jpg +0 -0
- package/templates/child-app/src/resources/images/home-img.png +0 -0
- package/templates/child-app/src/router/modules/customer.js +3 -0
- package/templates/child-app/src/settings.js +24 -0
- package/templates/child-app/src/styles/app.scss +2 -0
- package/templates/child-app/src/views/demo/detail.vue +19 -0
- package/templates/child-app/src/views/demo/list.vue +38 -0
- package/templates/child-app/src/views/user/login/index.vue +18 -0
- package/templates/child-app/vue.config.js +107 -0
|
@@ -1,133 +1,134 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
|
|
4
|
-
<userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
|
|
5
|
-
:multi.sync="wfAssignMulti"/>
|
|
6
|
-
<positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import userDialog from '../../../../views/user/user/dialog.vue';
|
|
12
|
-
import positionDialog from '../../../../views/user/position/dialog.vue';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.
|
|
60
|
-
this
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
let
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
|
|
4
|
+
<userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
|
|
5
|
+
:multi.sync="wfAssignMulti"/>
|
|
6
|
+
<positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import userDialog from '../../../../views/user/user/dialog.vue';
|
|
12
|
+
import positionDialog from '../../../../views/user/position/dialog.vue';
|
|
13
|
+
import { workflowDesignerUrl } from "@base/utils/featureResources";
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
name: "activiti_wf",
|
|
17
|
+
components: {
|
|
18
|
+
userDialog,
|
|
19
|
+
positionDialog
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
dataId: 0,
|
|
24
|
+
showEdit: false,
|
|
25
|
+
showItemEdit: false,
|
|
26
|
+
vxeOption: {},
|
|
27
|
+
vxeOption1: {},
|
|
28
|
+
formData: {},
|
|
29
|
+
editId: '',
|
|
30
|
+
itemEditId: '',
|
|
31
|
+
pRow: '',
|
|
32
|
+
activeName: 'second',
|
|
33
|
+
currentRow: {},
|
|
34
|
+
itemServiceId: null,
|
|
35
|
+
|
|
36
|
+
showWfDialog: false,
|
|
37
|
+
wfUrl: '',
|
|
38
|
+
ph: '',
|
|
39
|
+
dialogActiveName: 'first',
|
|
40
|
+
showFunctionScriptList: false,
|
|
41
|
+
showUserDialog: false,
|
|
42
|
+
wfAssignData: [],
|
|
43
|
+
wfAssignCallback: null,
|
|
44
|
+
wfAssignMulti: true,
|
|
45
|
+
|
|
46
|
+
showPositionDialog: false,
|
|
47
|
+
wfAssignPositionData: [],
|
|
48
|
+
wfAssignPositionCallback: null,
|
|
49
|
+
|
|
50
|
+
showFormTemplateDialog: false,
|
|
51
|
+
wfAssignFormTemplateCallback: null,
|
|
52
|
+
|
|
53
|
+
modelId: null,
|
|
54
|
+
serviceId: 'sf-cloud-user'
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
mounted() {
|
|
58
|
+
this.initToken(() => {
|
|
59
|
+
this.initModel();
|
|
60
|
+
this.initWfWinParam();
|
|
61
|
+
this.$nextTick(() => {
|
|
62
|
+
this.wfEdit();
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
initModel() {
|
|
68
|
+
this.modelId = this.$route.query.modelId;
|
|
69
|
+
},
|
|
70
|
+
initToken(callback) {
|
|
71
|
+
let token = 'c7f08670-5190-4d72-b5fc-a91021524d59';
|
|
72
|
+
this.$store
|
|
73
|
+
.dispatch('user/addToken', {
|
|
74
|
+
token
|
|
75
|
+
})
|
|
76
|
+
.then(() => {
|
|
77
|
+
setTimeout(() => {
|
|
78
|
+
callback();
|
|
79
|
+
}, 200);
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
wfEdit() {
|
|
83
|
+
//wfType 0:单据流程,1:场景流程
|
|
84
|
+
this.wfUrl = workflowDesignerUrl({ wfType: 1, serviceId: this.serviceId, modelId: this.modelId, baseApi: process.env.VUE_APP_BASE_API });
|
|
85
|
+
this.dialogActiveName = 'first';
|
|
86
|
+
this.showWfDialog = true;
|
|
87
|
+
},
|
|
88
|
+
initWfWinParam() {
|
|
89
|
+
this.initCloseWfDesignWin();
|
|
90
|
+
this.initWinUserDialog();
|
|
91
|
+
this.initWinPositionDialog();
|
|
92
|
+
this.initSysParamForWf();
|
|
93
|
+
},
|
|
94
|
+
initCloseWfDesignWin() {
|
|
95
|
+
window.closeWfDesignWin = () => {
|
|
96
|
+
this.showWfDialog = false;
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
initWinUserDialog() {
|
|
100
|
+
window.openAssignUserDialog = opts => {
|
|
101
|
+
this.wfAssignMulti = opts.multi;
|
|
102
|
+
this.wfAssignData = opts.data || [];
|
|
103
|
+
this.wfAssignCallback = opts.callback;
|
|
104
|
+
this.showUserDialog = true;
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
confirmUser(rows) {
|
|
108
|
+
this.wfAssignCallback(rows);
|
|
109
|
+
},
|
|
110
|
+
initWinPositionDialog() {
|
|
111
|
+
window.openAssignPositionDialog = opts => {
|
|
112
|
+
this.wfAssignPositionData = opts.data || [];
|
|
113
|
+
this.wfAssignPositionCallback = opts.callback;
|
|
114
|
+
this.showPositionDialog = true;
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
initSysParamForWf() {
|
|
118
|
+
let webPrefix = WEB_PREFIX;
|
|
119
|
+
let baseApi = process.env.VUE_APP_BASE_API;
|
|
120
|
+
window.sysParamForWf = {
|
|
121
|
+
webPrefix,
|
|
122
|
+
baseApi
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
confirmPosition(rows) {
|
|
126
|
+
this.wfAssignPositionCallback(rows);
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<style scoped>
|
|
133
|
+
|
|
134
|
+
</style>
|