cloud-web-corejs 1.0.75 → 1.0.77
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/VabUpload/view.vue +2 -2
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +22 -23
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +7 -7
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -4
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +45 -9
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +61 -2
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/table/index.js +12 -11
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +16 -16
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +54 -14
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +12 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1051 -1051
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +42 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +107 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +38 -6
- package/src/components/xform/form-render/container-item/data-table-item.vue +18 -19
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/lang/zh-CN.js +1 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/Sidebar/default.vue +1266 -1233
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +192 -0
- package/src/store/config/index.js +1 -1
- package/src/utils/index.js +4 -2
- package/src/utils/pddLog.js +103 -0
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +1 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +205 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +14 -14
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +25 -22
- package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +7 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +70 -12
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +12 -13
- package/src/views/bd/setting/table_model/mixins/list.js +1 -1
- package/src/views/user/access_log/list.vue +349 -349
- package/src/views/user/company_info/dialog.vue +164 -164
- package/src/views/user/form/vform/designer.vue +5 -1
- package/src/views/user/home/default.vue +15 -11
- package/src/views/user/login/index2.vue +131 -0
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/position/list.vue +2 -2
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +2 -2
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/user/dialog.vue +1 -1
@@ -0,0 +1,92 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('获取提取码')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
10
|
+
width="350px"
|
11
|
+
v-el-drag-dialog
|
12
|
+
v-el-dialog-center
|
13
|
+
@close="dialogClose"
|
14
|
+
>
|
15
|
+
<div class="cont">
|
16
|
+
<el-form ref="editCategoryForm" :model="formData" label-width="102px" class="adSearchForm" style="min-height: 150px; width: auto;">
|
17
|
+
<el-form-item :label="$t1('类型')">
|
18
|
+
<el-select v-model="formData.objType" class="all-width">
|
19
|
+
<el-option value="FormTemplate" :label="$t1('表单模板')"></el-option>
|
20
|
+
<el-option value="FormScript" :label="$t1('逻辑脚本')"></el-option>
|
21
|
+
<el-option value="TableTemplate" :label="$t1('数据表')"></el-option>
|
22
|
+
</el-select>
|
23
|
+
</el-form-item>
|
24
|
+
<el-form-item :label="$t1('唯一标识')">
|
25
|
+
<el-input v-model="formData.sid" clearable class="all-width"/>
|
26
|
+
</el-form-item>
|
27
|
+
<el-form-item :label="$t1('提取码')">
|
28
|
+
<span>{{ extractedCode }}</span>
|
29
|
+
</el-form-item>
|
30
|
+
</el-form>
|
31
|
+
</div>
|
32
|
+
<span slot="footer" class="dialog-footer">
|
33
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
34
|
+
<i class="el-icon-close el-icon"></i>
|
35
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
36
|
+
</el-button>
|
37
|
+
<el-button type="primary" @click="dialogConfirm" class="button-sty">
|
38
|
+
<i class="el-icon-check el-icon"></i>
|
39
|
+
{{ $t1('生成提取码') }}
|
40
|
+
</el-button>
|
41
|
+
</span>
|
42
|
+
</el-dialog>
|
43
|
+
</template>
|
44
|
+
<script>
|
45
|
+
export default {
|
46
|
+
name: "createDialog",
|
47
|
+
data() {
|
48
|
+
return {
|
49
|
+
showDialog: true,
|
50
|
+
formData: {
|
51
|
+
objType: "FormTemplate",
|
52
|
+
sid: null
|
53
|
+
},
|
54
|
+
extractedCode: null
|
55
|
+
}
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
dialogConfirm() {
|
59
|
+
this.extractedCode = null;
|
60
|
+
if (!this.formData.sid) {
|
61
|
+
this.$baseAlert("唯一标识不能为空");
|
62
|
+
return
|
63
|
+
}
|
64
|
+
this.$http({
|
65
|
+
aes: true,
|
66
|
+
url: USER_PREFIX + `/form_develop/getExtractedCodeData`,
|
67
|
+
method: `post`,
|
68
|
+
data: this.formData,
|
69
|
+
isLoading: true,
|
70
|
+
success: res => {
|
71
|
+
let rows = res.objx || []
|
72
|
+
if (rows.length) {
|
73
|
+
let row = rows[0];
|
74
|
+
this.extractedCode = row.extractedCode
|
75
|
+
}
|
76
|
+
}
|
77
|
+
})
|
78
|
+
},
|
79
|
+
dialogClose() {
|
80
|
+
this.showDialog = false;
|
81
|
+
this.$emit('update:visiable', false)
|
82
|
+
},
|
83
|
+
}
|
84
|
+
}
|
85
|
+
</script>
|
86
|
+
|
87
|
+
|
88
|
+
<style scoped>
|
89
|
+
::v-deep .el-select.all-width .el-input{
|
90
|
+
width: 100% !important;
|
91
|
+
}
|
92
|
+
</style>
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('查询提取码')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
10
|
+
width="350px"
|
11
|
+
v-el-drag-dialog
|
12
|
+
:before-close="dialogClose"
|
13
|
+
>
|
14
|
+
<div class="cont">
|
15
|
+
<el-form ref="editCategoryForm" :model="formData" label-width="102px" class="adSearchForm" style="height: auto; width: auto;">
|
16
|
+
<el-form-item :label="$t1('提取码')">
|
17
|
+
<el-input v-model="formData.extractedCode" clearable class="all-width"/>
|
18
|
+
</el-form-item>
|
19
|
+
</el-form>
|
20
|
+
</div>
|
21
|
+
<span slot="footer" class="dialog-footer">
|
22
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
23
|
+
<i class="el-icon-close el-icon"></i>
|
24
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
25
|
+
</el-button>
|
26
|
+
<el-button type="primary" @click="dialogConfirm" class="button-sty">
|
27
|
+
<i class="el-icon-check el-icon"></i>
|
28
|
+
{{ $t1('确定') }}
|
29
|
+
</el-button>
|
30
|
+
</span>
|
31
|
+
<viewDialog v-if="showViewDialog" :visiable.sync="showViewDialog" @close="dialogClose"
|
32
|
+
:extractedObj="extractedObj"></viewDialog>
|
33
|
+
</el-dialog>
|
34
|
+
</template>
|
35
|
+
<script>
|
36
|
+
import viewDialog from "./viewDialog.vue";
|
37
|
+
|
38
|
+
export default {
|
39
|
+
name: "createDialog",
|
40
|
+
components: {
|
41
|
+
viewDialog
|
42
|
+
},
|
43
|
+
data() {
|
44
|
+
return {
|
45
|
+
showDialog: true,
|
46
|
+
formData: {
|
47
|
+
extractedCode: null
|
48
|
+
},
|
49
|
+
showViewDialog: false,
|
50
|
+
extractedObj: {}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
methods: {
|
54
|
+
dialogConfirm() {
|
55
|
+
if (!this.formData.extractedCode) {
|
56
|
+
this.$baseAlert(this.$t1("提取码不能为空"));
|
57
|
+
return
|
58
|
+
}
|
59
|
+
this.$http({
|
60
|
+
aes: true,
|
61
|
+
url: USER_PREFIX + `/form_develop/getExtractedObjData`,
|
62
|
+
method: `post`,
|
63
|
+
data: {
|
64
|
+
stringOne: this.formData.extractedCode
|
65
|
+
},
|
66
|
+
isLoading: true,
|
67
|
+
success: res => {
|
68
|
+
let rows = res.objx || []
|
69
|
+
if (rows.length) {
|
70
|
+
let row = rows[0];
|
71
|
+
let obj = row.obj
|
72
|
+
if (!obj) {
|
73
|
+
this.$baseAlert(this.$t1("提取对象为空"));
|
74
|
+
return
|
75
|
+
}
|
76
|
+
this.extractedObj = row;
|
77
|
+
this.showDialog = false;
|
78
|
+
this.showViewDialog = true;
|
79
|
+
} else {
|
80
|
+
this.$baseAlert(this.$t1("无效提取码"));
|
81
|
+
}
|
82
|
+
}
|
83
|
+
})
|
84
|
+
},
|
85
|
+
dialogClose() {
|
86
|
+
this.showDialog = false;
|
87
|
+
this.$emit('update:visiable', false)
|
88
|
+
},
|
89
|
+
}
|
90
|
+
}
|
91
|
+
</script>
|
92
|
+
|
93
|
+
|
94
|
+
<style scoped>
|
95
|
+
|
96
|
+
</style>
|
@@ -0,0 +1,192 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="title"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showWfDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
10
|
+
width="100%"
|
11
|
+
height="100%"
|
12
|
+
top="0px"
|
13
|
+
bottom="0px"
|
14
|
+
:destroy-on-close="true"
|
15
|
+
@close="wfClose"
|
16
|
+
>
|
17
|
+
<div id="containt">
|
18
|
+
<component
|
19
|
+
v-if="showWfContent && wfContent"
|
20
|
+
:is="wfContent"
|
21
|
+
visible-key="showWfContent"
|
22
|
+
v-bind="param"
|
23
|
+
:parent-target="_self"
|
24
|
+
:defaultShowWfContent="true"
|
25
|
+
:_viewType="1"
|
26
|
+
@reload="$reloadHandle"
|
27
|
+
@openDesignDialog="openDesingerDialogByChild"
|
28
|
+
></component>
|
29
|
+
<el-drawer :title="$t1('表单设计({formName})',{formName})" :visible.sync="showDesingerDialog" :modal="false"
|
30
|
+
:destroy-on-close="true"
|
31
|
+
size="100%" direction="rtl" :before-close="closeFormDesignwinEvent" :append-to-body="false"
|
32
|
+
class="designer-drawer" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
|
33
|
+
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
34
|
+
<el-tab-pane :label="$t1('设计器')" name="first">
|
35
|
+
<designer ref="designer" :formCode.sync="formCode" :readonly="true"
|
36
|
+
@reflushTemplateList="reflushTemplateList"></designer>
|
37
|
+
</el-tab-pane>
|
38
|
+
</el-tabs>
|
39
|
+
<el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
|
40
|
+
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
41
|
+
<i class="iconfont icon-quanping"></i>
|
42
|
+
</el-tooltip>
|
43
|
+
|
44
|
+
</el-button>
|
45
|
+
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
46
|
+
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
47
|
+
<i class="iconfont icon-suoxiao"></i>
|
48
|
+
</el-tooltip>
|
49
|
+
</el-button>
|
50
|
+
</el-drawer>
|
51
|
+
</div>
|
52
|
+
</el-dialog>
|
53
|
+
</template>
|
54
|
+
|
55
|
+
<script>
|
56
|
+
|
57
|
+
|
58
|
+
import indexUtil from "@base/utils";
|
59
|
+
import designer from "@base/views/user/form/vform/designer.vue";
|
60
|
+
|
61
|
+
export default {
|
62
|
+
name: "wfContentDialog",
|
63
|
+
props: {
|
64
|
+
extractedObj: Object,
|
65
|
+
},
|
66
|
+
components: {designer},
|
67
|
+
data() {
|
68
|
+
return {
|
69
|
+
param: {},
|
70
|
+
wfContent: null,
|
71
|
+
showWfContent: false,
|
72
|
+
showWfDialog: true,
|
73
|
+
|
74
|
+
showDesingerDialog: false,
|
75
|
+
formCode: null,
|
76
|
+
formName: null,
|
77
|
+
isFullscreen: false,
|
78
|
+
formDesTabs: 'first',
|
79
|
+
title: null
|
80
|
+
};
|
81
|
+
},
|
82
|
+
mounted() {
|
83
|
+
this.$nextTick(() => {
|
84
|
+
this.openWfDialog();
|
85
|
+
})
|
86
|
+
},
|
87
|
+
methods: {
|
88
|
+
wfClose() {
|
89
|
+
this.showWfDialog = false;
|
90
|
+
this.$emit('update:visible', false);
|
91
|
+
this.$emit('close');
|
92
|
+
},
|
93
|
+
openWfDialog() {
|
94
|
+
let extractedObj = this.extractedObj;
|
95
|
+
let objType = extractedObj.objType;
|
96
|
+
let obj = extractedObj.obj;
|
97
|
+
let id = obj.id;
|
98
|
+
let wfDataId = id;
|
99
|
+
let param = {
|
100
|
+
readonly: true
|
101
|
+
};
|
102
|
+
|
103
|
+
let url;
|
104
|
+
if (objType == "FormTemplate") {
|
105
|
+
url = "/bd/setting/form_template/edit.vue"
|
106
|
+
wfDataId = obj.formCode;
|
107
|
+
this.title = this.$t1("查看表单模板");
|
108
|
+
} else if (objType == "FormScript") {
|
109
|
+
if (obj.scriptType == 1) {
|
110
|
+
url = "/bd/setting/form_script/edit1.vue"
|
111
|
+
} else {
|
112
|
+
url = "/bd/setting/form_script/edit.vue"
|
113
|
+
}
|
114
|
+
this.title = this.$t1("查看表单脚本");
|
115
|
+
} else if (objType == "TableTemplate") {
|
116
|
+
url = "/bd/setting/table_model/edit.vue"
|
117
|
+
this.title = this.$t1("查看数据表定义模板");
|
118
|
+
}
|
119
|
+
this.param = Object.assign(param, {
|
120
|
+
_dataId: wfDataId
|
121
|
+
});
|
122
|
+
this.wfContent = require('@base/views' + url).default;
|
123
|
+
|
124
|
+
this.showWfContent = true;
|
125
|
+
},
|
126
|
+
|
127
|
+
handleFormDesignClose() {
|
128
|
+
this.formDesTabs = 'first';
|
129
|
+
this.showFormScriptList = false;
|
130
|
+
},
|
131
|
+
openDesingerDialog(row, callback) {
|
132
|
+
this.formCode = row.formCode;
|
133
|
+
this.formName = row.formName;
|
134
|
+
this.currentFormTemplate = row;
|
135
|
+
this.isFullscreen = false;
|
136
|
+
this.showDesingerDialog = true;
|
137
|
+
this.designerSaveCallback = callback ?? null;
|
138
|
+
},
|
139
|
+
openDesingerDialogByChild({row, callback}) {
|
140
|
+
this.openDesingerDialog(row, callback)
|
141
|
+
},
|
142
|
+
reflushTemplateList() {
|
143
|
+
// this.searchEvent();
|
144
|
+
this.designerSaveCallback && this.designerSaveCallback();
|
145
|
+
},
|
146
|
+
handleFullscreen() {
|
147
|
+
let isFullscreen = this.isFullscreen;
|
148
|
+
if (!isFullscreen) {
|
149
|
+
indexUtil.addClass(document.body, "hideMenu");
|
150
|
+
} else {
|
151
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
152
|
+
}
|
153
|
+
this.isFullscreen = !isFullscreen;
|
154
|
+
},
|
155
|
+
closeFormDesignwinEvent(done) {
|
156
|
+
this.$baseConfirm(this.$t1('请确认"已保存"报表模板,是否继续关闭?')).then(() => {
|
157
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
158
|
+
done && done();
|
159
|
+
});
|
160
|
+
},
|
161
|
+
|
162
|
+
}
|
163
|
+
}
|
164
|
+
</script>
|
165
|
+
|
166
|
+
<style scoped>
|
167
|
+
::v-deep .tab-boxOnly > .el-tabs__header {
|
168
|
+
position: absolute;
|
169
|
+
right: 130px;
|
170
|
+
top: 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
174
|
+
.detail-wrap .d-cont {
|
175
|
+
height: calc(100vh - 158px) !important
|
176
|
+
}
|
177
|
+
|
178
|
+
.grid-height {
|
179
|
+
height: calc(100vh - 126px) !important
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
::v-deep .designer-drawer.is-fullscreen .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
184
|
+
.detail-wrap .d-cont {
|
185
|
+
height: calc(100vh - 116px) !important
|
186
|
+
}
|
187
|
+
|
188
|
+
.grid-height {
|
189
|
+
height: calc(100vh - 84px) !important
|
190
|
+
}
|
191
|
+
}
|
192
|
+
</style>
|