cloud-web-corejs 1.0.46-dev.2 → 1.0.46
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/xform/form-designer/setting-panel/propertyRegister.js +0 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +33 -277
- package/src/views/bd/setting/table_model/edit.vue +0 -3
- package/src/views/bd/setting/table_model/mixins/edit.js +1 -1
- package/src/views/user/access_log/list.vue +346 -346
- package/src/views/user/home/index.vue +14 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +0 -146
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +0 -62
- package/src/views/user/home/default2.vue +0 -979
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
-
import corejsConfig from "@/corejsConfig";
|
|
15
14
|
|
|
16
15
|
export default {
|
|
17
16
|
name: 'home',
|
|
@@ -65,23 +64,22 @@ export default {
|
|
|
65
64
|
let menus = res.objx || [];
|
|
66
65
|
let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
|
|
67
66
|
let menuUrl = homeMenu?.url;
|
|
68
|
-
|
|
69
|
-
let str1 = "@base/views";
|
|
70
|
-
let str2 = "@/views";
|
|
71
|
-
let url = null;
|
|
67
|
+
let defaultUrl = '/user/home/default';
|
|
72
68
|
if (menuUrl) {
|
|
73
|
-
url = menuUrl + '.vue';
|
|
74
|
-
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
69
|
+
let url = menuUrl + '.vue';
|
|
70
|
+
let str1 = "@base/views";
|
|
71
|
+
let str2 = "@/views";
|
|
72
|
+
if (url.startsWith(str1)) {
|
|
73
|
+
let a = url.slice(str1.length);
|
|
74
|
+
this.homeContent = require('@base/views' + url.slice(str1.length)).default;
|
|
75
|
+
} else if (url.startsWith(str2)) {
|
|
76
|
+
this.homeContent = require('@/views' + url.slice(str2.length)).default;
|
|
77
|
+
} else {
|
|
78
|
+
this.homeContent = require('@/views' + url).default;
|
|
79
|
+
}
|
|
83
80
|
} else {
|
|
84
|
-
|
|
81
|
+
let url = defaultUrl + '.vue';
|
|
82
|
+
this.homeContent = require('@base/views' + url).default;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
this.showHomeContent = true;
|
package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider-margin-top">显隐规则设置</el-divider>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item :label="i18nt('启用显隐规则')">
|
|
7
|
-
<el-switch v-model="optionModel.showRuleEnabled"></el-switch>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
<el-form-item :label="i18nt('显隐规则')">
|
|
10
|
-
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
|
11
|
-
<span>{{ optionModel.showRules && optionModel.showRules.length ? "已维护" : "" }}</span>
|
|
12
|
-
<i class="el-icon-edit"></i>
|
|
13
|
-
</a>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item label-width="0">
|
|
16
|
-
<el-divider class="custom-divider-margin-top"></el-divider>
|
|
17
|
-
</el-form-item>
|
|
18
|
-
<el-dialog
|
|
19
|
-
v-if="dialogVisible"
|
|
20
|
-
custom-class="dialog-style list-dialog"
|
|
21
|
-
:title="i18nt('显隐规则')"
|
|
22
|
-
:visible.sync="dialogVisible"
|
|
23
|
-
:show-close="!0"
|
|
24
|
-
:append-to-body="false"
|
|
25
|
-
:modal="false"
|
|
26
|
-
:close-on-click-modal="!1"
|
|
27
|
-
:close-on-press-escape="!1"
|
|
28
|
-
:destroy-on-close="!0"
|
|
29
|
-
width="1220px"
|
|
30
|
-
top="5vh"
|
|
31
|
-
v-dialog-drag
|
|
32
|
-
>
|
|
33
|
-
<div class="cont">
|
|
34
|
-
<el-table
|
|
35
|
-
ref="singleTable"
|
|
36
|
-
width="100%"
|
|
37
|
-
:data="tableData"
|
|
38
|
-
height="500"
|
|
39
|
-
border=""
|
|
40
|
-
row-key="columnId"
|
|
41
|
-
stripe=""
|
|
42
|
-
>
|
|
43
|
-
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
|
44
|
-
<el-table-column :label="i18nt('匹配规则')" width="250" prop="label">
|
|
45
|
-
<template slot-scope="scope">
|
|
46
|
-
<el-select v-model="scope.row.ruleType">
|
|
47
|
-
<el-option :value="1" label="用户"></el-option>
|
|
48
|
-
<el-option :value="2" label="机构"></el-option>
|
|
49
|
-
<el-option :value="3" label="角色"></el-option>
|
|
50
|
-
</el-select>
|
|
51
|
-
</template>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
<el-table-column :label="i18nt('值')" width="300" prop="prop">
|
|
54
|
-
<template slot-scope="scope">
|
|
55
|
-
<el-input v-model="scope.row.value"></el-input>
|
|
56
|
-
</template>
|
|
57
|
-
</el-table-column>
|
|
58
|
-
<el-table-column :label="i18nt('是否可见')" width="150" prop="prop">
|
|
59
|
-
<template slot-scope="scope">
|
|
60
|
-
<el-switch v-model="scope.row.show"></el-switch>
|
|
61
|
-
</template>
|
|
62
|
-
</el-table-column>
|
|
63
|
-
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
|
64
|
-
<template #header>
|
|
65
|
-
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
|
66
|
-
<el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
|
|
67
|
-
icon="el-icon-plus" @click="addItem"></el-button>
|
|
68
|
-
</template>
|
|
69
|
-
<template slot-scope="scope">
|
|
70
|
-
<el-button
|
|
71
|
-
:title="i18nt('designer.setting.deleteTableColumn')"
|
|
72
|
-
size="mini"
|
|
73
|
-
type=""
|
|
74
|
-
circle=""
|
|
75
|
-
icon="el-icon-minus"
|
|
76
|
-
@click="tableData.splice(scope.$index,1)"
|
|
77
|
-
></el-button>
|
|
78
|
-
</template>
|
|
79
|
-
</el-table-column>
|
|
80
|
-
|
|
81
|
-
</el-table>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="dialog-footer" slot="footer">
|
|
84
|
-
<el-button @click="dialogVisible = false" class="button-sty" icon="el-icon-close">
|
|
85
|
-
{{ i18nt('designer.hint.cancel') }}
|
|
86
|
-
</el-button>
|
|
87
|
-
<el-button type="primary" @click="colSubmit" class="button-sty" icon="el-icon-check">
|
|
88
|
-
{{ i18nt('designer.hint.confirm') }}
|
|
89
|
-
</el-button>
|
|
90
|
-
</div>
|
|
91
|
-
</el-dialog>
|
|
92
|
-
</div>
|
|
93
|
-
</template>
|
|
94
|
-
|
|
95
|
-
<script>
|
|
96
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
|
97
|
-
|
|
98
|
-
export default {
|
|
99
|
-
name: "showRuleFlag-editor",
|
|
100
|
-
mixins: [i18n],
|
|
101
|
-
props: {
|
|
102
|
-
designer: Object,
|
|
103
|
-
selectedWidget: Object,
|
|
104
|
-
optionModel: Object,
|
|
105
|
-
},
|
|
106
|
-
inject: ["getReportTemplate"],
|
|
107
|
-
data() {
|
|
108
|
-
return {
|
|
109
|
-
dialogVisible: false,
|
|
110
|
-
tableData: [],
|
|
111
|
-
wfDefItems: [],
|
|
112
|
-
wfNodeMap: {}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
computed: {
|
|
116
|
-
current_prefix() {
|
|
117
|
-
let reportTemplate = this.getReportTemplate();
|
|
118
|
-
return "/" + reportTemplate.serviceName;
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
methods: {
|
|
122
|
-
openDialog() {
|
|
123
|
-
let reportTemplate = this.getReportTemplate();
|
|
124
|
-
let showRules = this.optionModel.showRules || [];
|
|
125
|
-
this.dialogVisible = true;
|
|
126
|
-
this.tableData = this.$baseLodash.cloneDeep(showRules)
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
addItem() {
|
|
130
|
-
this.tableData.push({
|
|
131
|
-
ruleType: 1,
|
|
132
|
-
value: null,
|
|
133
|
-
show: true
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
colSubmit() {
|
|
137
|
-
this.dialogVisible = !1;
|
|
138
|
-
this.optionModel.showRules = this.tableData;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
</script>
|
|
143
|
-
|
|
144
|
-
<style scoped>
|
|
145
|
-
|
|
146
|
-
</style>
|
package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider-margin-top">文本显示设置</el-divider>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item :label="i18nt('全部显示为*')">
|
|
7
|
-
<el-switch v-model="optionModel.textRule1" @change="changeTextRule1"></el-switch>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
<el-form-item :label="i18nt('前面明文,其他为*')">
|
|
10
|
-
<el-switch v-model="optionModel.textRule2" @change="changeTextRule2"></el-switch>
|
|
11
|
-
</el-form-item>
|
|
12
|
-
<el-form-item :label="i18nt('前面明文位数')">
|
|
13
|
-
<base-input-number v-model="optionModel.textRule2Number" :scale="0"></base-input-number>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item :label="i18nt('后面明文,其他为*')">
|
|
16
|
-
<el-switch v-model="optionModel.textRule3" @change="changeTextRule3"></el-switch>
|
|
17
|
-
</el-form-item>
|
|
18
|
-
<el-form-item :label="i18nt('后面明文位数')">
|
|
19
|
-
<base-input-number v-model="optionModel.textRule3Number" :scale="0"></base-input-number>
|
|
20
|
-
</el-form-item>
|
|
21
|
-
<el-form-item label-width="0">
|
|
22
|
-
<el-divider class="custom-divider-margin-top"></el-divider>
|
|
23
|
-
</el-form-item>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
name: "textFlag-editor",
|
|
32
|
-
mixins: [i18n],
|
|
33
|
-
props: {
|
|
34
|
-
designer: Object,
|
|
35
|
-
selectedWidget: Object,
|
|
36
|
-
optionModel: Object,
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
changeTextRule1(val) {
|
|
45
|
-
this.optionModel.textRule2 = false;
|
|
46
|
-
this.optionModel.textRule3 = false;
|
|
47
|
-
this.optionModel.textRule2Number = null;
|
|
48
|
-
this.optionModel.textRule3Number = null;
|
|
49
|
-
},
|
|
50
|
-
changeTextRule2(val) {
|
|
51
|
-
this.optionModel.textRule1 = false;
|
|
52
|
-
},
|
|
53
|
-
changeTextRule3(val) {
|
|
54
|
-
this.optionModel.textRule1 = false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style scoped>
|
|
61
|
-
|
|
62
|
-
</style>
|