cloud-web-corejs 1.1.0-dev.22 → 1.1.0-dev.24
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/package.json +1 -1
- package/src/components/bizTab/BizTabListPage.vue +66 -33
- package/src/components/bizTab/README.md +3 -1
- package/src/components/mobile/wf/content.vue +27 -3
- package/src/components/table/index.js +5 -2
- package/src/components/table/plugins/cell-area/index.js +10 -3
- package/src/components/wf/wfStartDialog.vue +1 -0
- package/src/components/wf/wfUtil.js +47 -29
- package/src/components/wf/wfVisibility.js +6 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +7 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +3 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +25 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +14 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +318 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +23 -7
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +48 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +8 -6
- package/src/components/xform/form-render/container-item/data-table-mixin.js +584 -24
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +26 -16
- package/src/components/xform/form-render/container-item/detail-item.vue +350 -446
- package/src/components/xform/form-render/fieldControlMixin.js +2 -0
- package/src/components/xform/form-render/indexMixin.js +25 -15
- package/src/components/xform/mixins/businessLock.js +59 -0
- package/src/components/xform/mixins/wfStart.js +103 -0
- package/src/components/xform/mixins/wfVisibility.js +33 -0
- package/src/components/xform/styles/h5.scss +6 -1
- package/src/components/xform/utils/util.js +2 -0
- package/src/views/user/home/index.vue +1 -1
- package/src/views/user/home/net/distributor.vue +1015 -0
- package/src/views/user/home/net/index.vue +61 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<component
|
|
4
|
+
v-if="homeContent && showHomeContent"
|
|
5
|
+
:is="homeContent"
|
|
6
|
+
visible-key="showHomeContent"
|
|
7
|
+
:parent-target="_self"
|
|
8
|
+
@reload="$reloadHandle"
|
|
9
|
+
></component>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
/*import distributorView from './distributor'*/
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'home',
|
|
18
|
+
components: {/*, distributorView*/},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
flag: 0,
|
|
22
|
+
homeContent: null,
|
|
23
|
+
showHomeContent: false,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
created() {
|
|
27
|
+
this.init();
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
init() {
|
|
31
|
+
this.$http({
|
|
32
|
+
url: USER_PREFIX + '/user/currentUser',
|
|
33
|
+
method: 'post',
|
|
34
|
+
success: res => {
|
|
35
|
+
let userInfo = res.objx;
|
|
36
|
+
this.getIsDistributor(userInfo);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
getIsDistributor(userInfo) {
|
|
41
|
+
this.$http({
|
|
42
|
+
url: USER_PREFIX + '/userb/getUserRole',
|
|
43
|
+
method: `post`,
|
|
44
|
+
data: {id: userInfo.id},
|
|
45
|
+
success: res2 => {
|
|
46
|
+
let rows = res2.objx || [];
|
|
47
|
+
let codes = rows.map(row => row.roleCode);
|
|
48
|
+
if (codes.includes('distributor')) {
|
|
49
|
+
this.homeContent = require('@/views/user/home/net/distributor.vue').default;
|
|
50
|
+
this.showHomeContent = true;
|
|
51
|
+
} else {
|
|
52
|
+
this.homeContent = require('@base/views/user/home/default.vue').default;
|
|
53
|
+
this.showHomeContent = true;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
</script>
|