cloud-web-corejs 1.0.54-dev.19 → 1.0.54-dev.191
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 +10 -4
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +22 -6
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +22 -13
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +2 -1
- package/src/components/excelExport/index.vue +8 -6
- package/src/components/excelExport/mixins.js +1 -2
- package/src/components/excelImport/index.vue +1 -0
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- 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 +337 -207
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- 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/jsonImport/mixins.js +1 -1
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- 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 +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +23 -7
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1389 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +196 -6
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +5 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +80 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +67 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +12 -3
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- 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/vabSearch-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
- package/src/components/xform/form-designer/indexMixin.js +866 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +67 -36
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- 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/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1054 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +812 -455
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +19 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +80 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- 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/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +177 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -7
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +277 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +321 -276
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +37 -15
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2167 -18
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/indexMixin.js +2029 -1
- package/src/components/xform/lang/zh-CN.js +3 -2
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +3 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +0 -1
- 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/mixins/selectDialog/index.js +241 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +4 -2
- package/src/utils/pddLog.js +103 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +19 -27
- 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/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- 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/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +834 -426
- package/src/views/bd/setting/table_model/mixins/dialog.js +72 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1117 -13
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/form/vform/designer.vue +772 -749
- package/src/views/user/form/view/list.vue +27 -9
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1022 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/login/default.vue +4 -2
- 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/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/position/list.vue +4 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +1 -1
- package/src/views/user/user/edit.vue +39 -19
- package/src/views/user/user/form_edit.vue +63 -2
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +4 -4
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/list.vue +94 -8
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -0,0 +1,29 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt" class="index-home-sys">
|
3
|
+
<i class="iconfont icon-a-kaifa1"></i>
|
4
|
+
<span>{{$t1('开发管理平台')}}</span>
|
5
|
+
</div>
|
6
|
+
</template>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
|
10
|
+
export default {
|
11
|
+
data() {
|
12
|
+
return {
|
13
|
+
}
|
14
|
+
},
|
15
|
+
methods: {
|
16
|
+
}
|
17
|
+
|
18
|
+
};
|
19
|
+
</script>
|
20
|
+
<style scoped lang="scss">
|
21
|
+
.index-home-sys{
|
22
|
+
background-color: #DEE9F2 !important;margin-top: 10px !important;height: calc(100vh - 52px);border-radius: 12px !important;text-align: center;line-height: calc(100vh - 60px);letter-spacing: 2px;
|
23
|
+
font-size: 48px;font-weight: 600;
|
24
|
+
i{vertical-align: middle;font-weight: 400;margin-right: 24px;color:#225076;font-size:48px;}
|
25
|
+
span{position: relative;
|
26
|
+
&:before{content: "";position: absolute;bottom:0;left:0;width: 223px;height: 16px;background: #96B4CD;z-index: -1;opacity: 0.8;}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
</style>
|
@@ -36,9 +36,7 @@ export default {
|
|
36
36
|
let userInfo = res.objx;
|
37
37
|
this.userInfo = userInfo;
|
38
38
|
let flag = userInfo.flag;
|
39
|
-
|
40
|
-
this.initHome();
|
41
|
-
}
|
39
|
+
this.initHome();
|
42
40
|
}
|
43
41
|
});
|
44
42
|
},
|
@@ -59,6 +57,15 @@ export default {
|
|
59
57
|
});
|
60
58
|
},
|
61
59
|
initHome() {
|
60
|
+
let url = null;
|
61
|
+
let userInfo = this.userInfo;
|
62
|
+
let flag = userInfo.flag;
|
63
|
+
if (flag == 6 || flag == 7 || flag == 8) {
|
64
|
+
let url = '/user/home/dev.vue'
|
65
|
+
this.homeContent = require('@base/views' + url).default;
|
66
|
+
this.showHomeContent = true;
|
67
|
+
return
|
68
|
+
}
|
62
69
|
this.$http({
|
63
70
|
url: USER_PREFIX + '/menu/currentList',
|
64
71
|
data: {},
|
@@ -68,17 +75,20 @@ export default {
|
|
68
75
|
let homeMenu = menus.find(menu => menu.type == 2 && menu.enabled);
|
69
76
|
let menuUrl = homeMenu?.url;
|
70
77
|
|
78
|
+
let userInfo = this.userInfo;
|
79
|
+
let flag = userInfo.flag;
|
80
|
+
|
71
81
|
let str1 = "@base/views";
|
72
82
|
let str2 = "@/views";
|
73
|
-
|
74
|
-
if (menuUrl) {
|
83
|
+
|
84
|
+
if (menuUrl && flag !== 1) {
|
85
|
+
//超级管理员不使用角色首页
|
75
86
|
url = menuUrl + '.vue';
|
76
87
|
} else {
|
77
88
|
let defaultHomePage = this.userInfo.defaultHomePage;
|
78
89
|
url = defaultHomePage ? defaultHomePage : '@base/views/user/home/default.vue'
|
79
90
|
}
|
80
91
|
if (url.startsWith(str1)) {
|
81
|
-
let a = url.slice(str1.length);
|
82
92
|
this.homeContent = require('@base/views' + url.slice(str1.length)).default;
|
83
93
|
} else if (url.startsWith(str2)) {
|
84
94
|
this.homeContent = require('@/views' + url.slice(str2.length)).default;
|
@@ -59,8 +59,10 @@
|
|
59
59
|
</el-tabs>
|
60
60
|
</div>
|
61
61
|
<div class="tc copyright">
|
62
|
-
|
63
|
-
|
62
|
+
<slot name="footer">
|
63
|
+
© 广州同望科技发展有限公司
|
64
|
+
<span style="margin-left:50px;">4000646100</span>
|
65
|
+
</slot>
|
64
66
|
</div>
|
65
67
|
</div>
|
66
68
|
</template>
|
@@ -0,0 +1,131 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="login-container" :class="backgroundClass" ref="login-container" v-show="showContent">
|
3
|
+
<div class="login-main" style="height: auto;">
|
4
|
+
<el-tabs v-model="activeName">
|
5
|
+
<el-tab-pane label="账号登录" name="first">
|
6
|
+
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="box-form login" autocomplete="on"
|
7
|
+
label-position="left">
|
8
|
+
<el-form-item prop="username" class="txt">
|
9
|
+
<span class="svg-container"><i class="el-icon-user"/></span>
|
10
|
+
<el-input ref="username" v-model="loginForm.username" placeholder="请输入用户名" name="" type="text"
|
11
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
12
|
+
</el-form-item>
|
13
|
+
<el-tooltip :enterable="false" v-model="capsTooltip" content="Caps lock is On" placement="right" manual>
|
14
|
+
<el-form-item prop="password" class="txt">
|
15
|
+
<span class="svg-container"><i class="el-icon-lock"/></span>
|
16
|
+
<el-input
|
17
|
+
:key="passwordType"
|
18
|
+
ref="password"
|
19
|
+
v-model="loginForm.password"
|
20
|
+
:type="passwordType"
|
21
|
+
placeholder="请输入密码"
|
22
|
+
name=""
|
23
|
+
tabindex="2"
|
24
|
+
autocomplete="on"
|
25
|
+
auto-complete="new-password"
|
26
|
+
@keyup.native="checkCapslock"
|
27
|
+
@blur="capsTooltip = false"
|
28
|
+
@keyup.enter.native="handleLogin"
|
29
|
+
/>
|
30
|
+
<span class="show-pwd" @click="showPwd"><svg-icon
|
31
|
+
:icon-class="passwordType === 'password' ? 'eye' : 'eye-open'"/></span>
|
32
|
+
</el-form-item>
|
33
|
+
</el-tooltip>
|
34
|
+
<div class="">
|
35
|
+
<el-checkbox v-model="isRememberPassword">记住密码</el-checkbox>
|
36
|
+
</div>
|
37
|
+
<el-button :loading="loading" type="primary" @click.prevent.stop="handleLogin" class="btn">登录</el-button>
|
38
|
+
</el-form>
|
39
|
+
</el-tab-pane>
|
40
|
+
<el-tab-pane label="手机验证码登录" name="second">
|
41
|
+
<el-form ref="loginForm" :model="loginForm2" :rules="loginRules" class="box-form login" autocomplete="on"
|
42
|
+
label-position="left">
|
43
|
+
<el-form-item prop="username" class="txt" style="width:66%">
|
44
|
+
<span class="svg-container"><i class="el-icon-mobile-phone"/></span>
|
45
|
+
<el-input ref="mobile" v-model="loginForm2.username" placeholder="请输入手机号" name="" type="text"
|
46
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
47
|
+
</el-form-item>
|
48
|
+
<el-button class="btn-send" type="success" :class="{'gray-btn':isCounting}" @click="sendCode">
|
49
|
+
{{ buttonText }}
|
50
|
+
</el-button>
|
51
|
+
<el-form-item prop="smsCode" class="txt">
|
52
|
+
<span class="svg-container"><i class="el-icon-message"/></span>
|
53
|
+
<el-input ref="smsCode" v-model="loginForm2.smsCode" placeholder="请输入验证码" name="" type="text"
|
54
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
55
|
+
</el-form-item>
|
56
|
+
<el-button :loading="loading" type="primary" @click.prevent.stop="handleLogin" class="btn">登录</el-button>
|
57
|
+
</el-form>
|
58
|
+
</el-tab-pane>
|
59
|
+
</el-tabs>
|
60
|
+
</div>
|
61
|
+
<div class="tc copyright">
|
62
|
+
<slot name="footer">
|
63
|
+
© 广州同望科技发展有限公司
|
64
|
+
<span style="margin-left:50px;">4000646100</span>
|
65
|
+
</slot>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</template>
|
69
|
+
|
70
|
+
<script>
|
71
|
+
import mixin from "@base/views/user/login/indexMixin";
|
72
|
+
|
73
|
+
export default {
|
74
|
+
name: 'Login',
|
75
|
+
mixins: [mixin]
|
76
|
+
}
|
77
|
+
</script>
|
78
|
+
<style lang="scss" scoped>
|
79
|
+
@import '@/resources/css/login.scss';
|
80
|
+
|
81
|
+
.login-container.tc {
|
82
|
+
background: url(~@/resources/images/bg-login5.jpg) center center/cover no-repeat;
|
83
|
+
}
|
84
|
+
|
85
|
+
.login-container.chigo {
|
86
|
+
background: url(~@/resources/images/bg-login6.jpg) center center/cover no-repeat;
|
87
|
+
}
|
88
|
+
|
89
|
+
.login-container.pcp {
|
90
|
+
background: url(~@/resources/images/bg-login8.jpg) center center/cover no-repeat;
|
91
|
+
}
|
92
|
+
|
93
|
+
.el-select-dropdown {
|
94
|
+
right: 5px;
|
95
|
+
top: 25px;
|
96
|
+
}
|
97
|
+
|
98
|
+
::v-deep .login-main .el-tabs__header {
|
99
|
+
margin-bottom: 0;
|
100
|
+
|
101
|
+
.el-tabs__nav {
|
102
|
+
line-height: 65px;
|
103
|
+
margin: 0 25px;
|
104
|
+
width: calc(100% - 50px);
|
105
|
+
|
106
|
+
.el-tabs__item {
|
107
|
+
font-size: 18px;
|
108
|
+
width: 50%;
|
109
|
+
text-align: center;
|
110
|
+
margin-right: 0;
|
111
|
+
padding-right: 0 !important;
|
112
|
+
line-height: 65px;
|
113
|
+
height: 65px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
.btn-send {
|
119
|
+
position: absolute;
|
120
|
+
margin-top: -74px;
|
121
|
+
right: 35px;
|
122
|
+
height: 52px;
|
123
|
+
width: 27%;
|
124
|
+
|
125
|
+
&.gray-btn {
|
126
|
+
background: #dedede;
|
127
|
+
border-color: #dedede;
|
128
|
+
color: #8a8686;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
</style>
|
@@ -1,187 +1,188 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="detail-wrap">
|
3
|
-
<el-form ref="editForm" :model="notifyTemplate">
|
4
|
-
<div class="d-header clearfix">
|
5
|
-
<div class="fl">
|
6
|
-
<i class="el-icon-info"/>
|
7
|
-
{{ dataId ? $t1('查看通知模板') : $t1('新增通知模板') }}
|
8
|
-
</div>
|
9
|
-
<div class="fr">
|
10
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
11
|
-
{{ $t1('重置') }}
|
12
|
-
</el-button>
|
13
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
14
|
-
</el-button>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
<baseTabs>
|
18
|
-
<baseTabPane :label="$t1('基本信息')">
|
19
|
-
<template #default>
|
20
|
-
<table class="table-detail">
|
21
|
-
<tbody>
|
22
|
-
<tr>
|
23
|
-
<th><em class="f-red">*</em>{{ $t1('通知模板编码') }}</th>
|
24
|
-
<td>
|
25
|
-
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
26
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
27
|
-
</el-form-item>
|
28
|
-
</td>
|
29
|
-
<th>
|
30
|
-
<em class="f-red">*</em>
|
31
|
-
{{ $t1('通知模板名称') }}
|
32
|
-
</th>
|
33
|
-
<td>
|
34
|
-
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
35
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
36
|
-
</el-form-item>
|
37
|
-
</td>
|
38
|
-
<th>{{ $t1('是否启用') }}</th>
|
39
|
-
<td>
|
40
|
-
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
41
|
-
<el-radio-group v-model="notifyTemplate.enabled">
|
42
|
-
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
43
|
-
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
44
|
-
</el-radio-group>
|
45
|
-
</el-form-item>
|
46
|
-
</td>
|
47
|
-
</tr>
|
48
|
-
<tr>
|
49
|
-
<th><em class="f-red">*</em>{{ $t1('通知内容') }}</th>
|
50
|
-
<td colspan="5">
|
51
|
-
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
52
|
-
<el-input type="textarea" :rows="2" size="small"
|
53
|
-
v-model="notifyTemplate.content"
|
54
|
-
clearable></el-input>
|
55
|
-
</el-form-item>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<tr>
|
59
|
-
<th>{{ $t1('跳转内容') }}</th>
|
60
|
-
<td colspan="5">
|
61
|
-
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
62
|
-
<el-input type="textarea" :rows="2" size="small"
|
63
|
-
v-model="notifyTemplate.jumpContent"
|
64
|
-
clearable></el-input>
|
65
|
-
</el-form-item>
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
<tr>
|
69
|
-
<th>{{ $t1('备注') }}</th>
|
70
|
-
<td colspan="5">
|
71
|
-
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
72
|
-
clearable></el-input>
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
<tr>
|
76
|
-
<th>
|
77
|
-
{{ $t1('脚本(获取通知人)') }}
|
78
|
-
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
79
|
-
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
80
|
-
</th>
|
81
|
-
<td colspan="7">
|
82
|
-
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
83
|
-
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
84
|
-
v-if="showCodeEditor"></code-editor>
|
85
|
-
</el-form-item>
|
86
|
-
</td>
|
87
|
-
</tr>
|
88
|
-
<tr>
|
89
|
-
<th>{{ $t1('创建人') }}</th>
|
90
|
-
<td>{{ notifyTemplate.createBy }}</td>
|
91
|
-
<th>{{ $t1('创建时间') }}</th>
|
92
|
-
<td>{{ notifyTemplate.createDate }}</td>
|
93
|
-
<th>{{ $t1('更新人') }}</th>
|
94
|
-
<td>{{ notifyTemplate.modifyBy }}</td>
|
95
|
-
<th>{{ $t1('更新时间') }}</th>
|
96
|
-
<td>{{ notifyTemplate.modifyDate }}</td>
|
97
|
-
</tr>
|
98
|
-
</tbody>
|
99
|
-
</table>
|
100
|
-
</template>
|
101
|
-
</baseTabPane>
|
102
|
-
</baseTabs>
|
103
|
-
</el-form>
|
104
|
-
</div>
|
105
|
-
</template>
|
106
|
-
|
107
|
-
<script>
|
108
|
-
export default {
|
109
|
-
name: 'notify_templateEdit',
|
110
|
-
props: {
|
111
|
-
_dataId: [String, Number]
|
112
|
-
},
|
113
|
-
components: {},
|
114
|
-
data() {
|
115
|
-
return {
|
116
|
-
isEdit: false,
|
117
|
-
tabIndex: 'first',
|
118
|
-
dataId: '',
|
119
|
-
notifyTemplate: {
|
120
|
-
enabled: true
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
this
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
this.
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
this
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
}
|
187
|
-
|
1
|
+
<template>
|
2
|
+
<div class="detail-wrap">
|
3
|
+
<el-form ref="editForm" :model="notifyTemplate">
|
4
|
+
<div class="d-header clearfix">
|
5
|
+
<div class="fl">
|
6
|
+
<i class="el-icon-info"/>
|
7
|
+
{{ dataId ? $t1('查看通知模板') : $t1('新增通知模板') }}
|
8
|
+
</div>
|
9
|
+
<div class="fr">
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
11
|
+
{{ $t1('重置') }}
|
12
|
+
</el-button>
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
14
|
+
</el-button>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<baseTabs>
|
18
|
+
<baseTabPane :label="$t1('基本信息')">
|
19
|
+
<template #default>
|
20
|
+
<table class="table-detail">
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<th><em class="f-red">*</em>{{ $t1('通知模板编码') }}</th>
|
24
|
+
<td>
|
25
|
+
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
26
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
27
|
+
</el-form-item>
|
28
|
+
</td>
|
29
|
+
<th>
|
30
|
+
<em class="f-red">*</em>
|
31
|
+
{{ $t1('通知模板名称') }}
|
32
|
+
</th>
|
33
|
+
<td>
|
34
|
+
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
35
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
36
|
+
</el-form-item>
|
37
|
+
</td>
|
38
|
+
<th>{{ $t1('是否启用') }}</th>
|
39
|
+
<td>
|
40
|
+
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
41
|
+
<el-radio-group v-model="notifyTemplate.enabled">
|
42
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
43
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
44
|
+
</el-radio-group>
|
45
|
+
</el-form-item>
|
46
|
+
</td>
|
47
|
+
</tr>
|
48
|
+
<tr>
|
49
|
+
<th><em class="f-red">*</em>{{ $t1('通知内容') }}</th>
|
50
|
+
<td colspan="5">
|
51
|
+
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
52
|
+
<el-input type="textarea" :rows="2" size="small"
|
53
|
+
v-model="notifyTemplate.content"
|
54
|
+
clearable></el-input>
|
55
|
+
</el-form-item>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<th>{{ $t1('跳转内容') }}</th>
|
60
|
+
<td colspan="5">
|
61
|
+
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
62
|
+
<el-input type="textarea" :rows="2" size="small"
|
63
|
+
v-model="notifyTemplate.jumpContent"
|
64
|
+
clearable></el-input>
|
65
|
+
</el-form-item>
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
69
|
+
<th>{{ $t1('备注') }}</th>
|
70
|
+
<td colspan="5">
|
71
|
+
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
72
|
+
clearable></el-input>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<th>
|
77
|
+
{{ $t1('脚本(获取通知人)') }}
|
78
|
+
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
79
|
+
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
80
|
+
</th>
|
81
|
+
<td colspan="7">
|
82
|
+
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
83
|
+
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
84
|
+
v-if="showCodeEditor"></code-editor>
|
85
|
+
</el-form-item>
|
86
|
+
</td>
|
87
|
+
</tr>
|
88
|
+
<tr>
|
89
|
+
<th>{{ $t1('创建人') }}</th>
|
90
|
+
<td>{{ notifyTemplate.createBy }}</td>
|
91
|
+
<th>{{ $t1('创建时间') }}</th>
|
92
|
+
<td>{{ notifyTemplate.createDate }}</td>
|
93
|
+
<th>{{ $t1('更新人') }}</th>
|
94
|
+
<td>{{ notifyTemplate.modifyBy }}</td>
|
95
|
+
<th>{{ $t1('更新时间') }}</th>
|
96
|
+
<td>{{ notifyTemplate.modifyDate }}</td>
|
97
|
+
</tr>
|
98
|
+
</tbody>
|
99
|
+
</table>
|
100
|
+
</template>
|
101
|
+
</baseTabPane>
|
102
|
+
</baseTabs>
|
103
|
+
</el-form>
|
104
|
+
</div>
|
105
|
+
</template>
|
106
|
+
|
107
|
+
<script>
|
108
|
+
export default {
|
109
|
+
name: 'notify_templateEdit',
|
110
|
+
props: {
|
111
|
+
_dataId: [String, Number]
|
112
|
+
},
|
113
|
+
components: {},
|
114
|
+
data() {
|
115
|
+
return {
|
116
|
+
isEdit: false,
|
117
|
+
tabIndex: 'first',
|
118
|
+
dataId: '',
|
119
|
+
notifyTemplate: {
|
120
|
+
enabled: true,
|
121
|
+
ntType:0
|
122
|
+
},
|
123
|
+
showCodeEditor: false
|
124
|
+
};
|
125
|
+
},
|
126
|
+
created() {
|
127
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
128
|
+
},
|
129
|
+
mounted() {
|
130
|
+
this.getData();
|
131
|
+
},
|
132
|
+
methods: {
|
133
|
+
getData() {
|
134
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
135
|
+
this.isEdit = true;
|
136
|
+
this.$commonHttp({
|
137
|
+
url: USER_PREFIX + `/notify_template/get`,
|
138
|
+
method: `post`,
|
139
|
+
data: {
|
140
|
+
id: this.dataId
|
141
|
+
},
|
142
|
+
isLoading: true,
|
143
|
+
modalStrictly: true,
|
144
|
+
success: res => {
|
145
|
+
this.notifyTemplate = res.objx || {};
|
146
|
+
this.showCodeEditor = true;
|
147
|
+
}
|
148
|
+
});
|
149
|
+
} else {
|
150
|
+
this.showCodeEditor = true;
|
151
|
+
}
|
152
|
+
},
|
153
|
+
saveData() {
|
154
|
+
this.$refs.editForm.$baseValidate(valid => {
|
155
|
+
if (valid) {
|
156
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
157
|
+
var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
|
158
|
+
this.$http({
|
159
|
+
url: url,
|
160
|
+
method: `post`,
|
161
|
+
data: this.notifyTemplate,
|
162
|
+
isLoading: true,
|
163
|
+
success: res => {
|
164
|
+
this.$message({
|
165
|
+
message: res.content,
|
166
|
+
type: 'success',
|
167
|
+
duration: 500,
|
168
|
+
onClose: t => {
|
169
|
+
if (this.isEdit) {
|
170
|
+
this.$baseReload();
|
171
|
+
} else {
|
172
|
+
this.$baseReload({
|
173
|
+
updateParam: {
|
174
|
+
_dataId: res.objx
|
175
|
+
}
|
176
|
+
});
|
177
|
+
}
|
178
|
+
}
|
179
|
+
});
|
180
|
+
}
|
181
|
+
});
|
182
|
+
});
|
183
|
+
}
|
184
|
+
});
|
185
|
+
}
|
186
|
+
}
|
187
|
+
};
|
188
|
+
</script>
|