cloud-web-corejs 1.0.54-dev.22 → 1.0.54-dev.220
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 +6 -3
- 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 +3 -2
- 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/index.js +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/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/content.vue +2 -0
- package/src/components/wf/setCandidateDialog.vue +1 -0
- package/src/components/wf/wf.js +3 -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/container-widget/data-table-mixin.js +2 -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 +26 -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/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -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 +21 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +200 -6
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -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/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -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 +13 -3
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
- 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 +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +312 -56
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
- 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 +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -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 +1043 -496
- 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/container-list-h5/list-h5-editor.vue +0 -8
- 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 +48 -5
- 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-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -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 +26 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -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-status/field-status-editor.vue +47 -28
- 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-vabSearch/vabSearchName-editor.vue +13 -1
- 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 +46 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- 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/multiple-editor.vue +19 -14
- 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 +318 -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 +216 -29
- 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 +11 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +747 -355
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +45 -15
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2361 -18
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +15 -2
- 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/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- 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 +8 -25
- package/src/components/xform/lang/zh-CN.js +14 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +182 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/AppMain.vue +5 -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/layout/components/watermark/index.vue +83 -0
- package/src/mixins/selectDialog/index.js +1 -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/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -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 +14 -3
- package/src/views/bd/setting/form_script/form_list.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/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +212 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +381 -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 +645 -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 +201 -1
- package/src/views/bd/setting/table_model/edit.vue +834 -426
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +12 -13
- package/src/views/bd/setting/table_model/mixins/list.js +399 -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 +775 -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 +36 -5
- package/src/views/user/login/indexMixin.js +117 -3
- 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/project_tag/list.vue +9 -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 -11
- 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,190 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
+
<editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
|
6
|
+
@reload="$reloadHandle"></editView>
|
7
|
+
</el-tab-pane>
|
8
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
9
|
+
<div class="grid-height">
|
10
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
11
|
+
@custom="$vxeTableUtil.customHandle">
|
12
|
+
<template #form>
|
13
|
+
<div class="clearfix screen-btns">
|
14
|
+
<div class="fl">
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
16
|
+
{{ $t1('新增') }}
|
17
|
+
</vxe-button>
|
18
|
+
<base-table-export :option="{ title: $t1('邮件模板导出'), targetRef: 'table-m1'}"
|
19
|
+
:parent-target="_self"/>
|
20
|
+
</div>
|
21
|
+
<div class="fr">
|
22
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
23
|
+
plain>{{ $t1('重置') }}
|
24
|
+
</vxe-button>
|
25
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
26
|
+
{{ $t1('搜索') }}
|
27
|
+
</vxe-button>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
31
|
+
@submit="searchEvent" @reset="searchEvent">
|
32
|
+
<vxe-form-item :title="$t1('邮件模板编码')+':'" field="ntCode">
|
33
|
+
<template v-slot>
|
34
|
+
<el-input v-model="formData.notifyType" size="small" clearable/>
|
35
|
+
</template>
|
36
|
+
</vxe-form-item>
|
37
|
+
<vxe-form-item :title="$t1('主题')+':'" field="ntName">
|
38
|
+
<template v-slot>
|
39
|
+
<el-input v-model="formData.ntName" size="small" clearable/>
|
40
|
+
</template>
|
41
|
+
</vxe-form-item>
|
42
|
+
<vxe-form-item :title="$t1('是否启用')+':'">
|
43
|
+
<template v-slot>
|
44
|
+
<el-select v-model="formData.enabled" clearable>
|
45
|
+
<el-option :value="true" :label="$t1('启用')"></el-option>
|
46
|
+
<el-option :value="false" :label="$t1('禁用')"></el-option>
|
47
|
+
</el-select>
|
48
|
+
</template>
|
49
|
+
</vxe-form-item>
|
50
|
+
</vxe-form>
|
51
|
+
</template>
|
52
|
+
</vxe-grid>
|
53
|
+
</div>
|
54
|
+
</el-tab-pane>
|
55
|
+
</el-tabs>
|
56
|
+
</div>
|
57
|
+
</template>
|
58
|
+
|
59
|
+
<script>
|
60
|
+
import editView from './edit2.vue';
|
61
|
+
|
62
|
+
export default {
|
63
|
+
name: 'notify_template:list2',
|
64
|
+
components: {editView},
|
65
|
+
data() {
|
66
|
+
return {
|
67
|
+
activeName: 'second',
|
68
|
+
dataId: 0,
|
69
|
+
showEdit: false,
|
70
|
+
vxeOption: {},
|
71
|
+
formData: {}
|
72
|
+
};
|
73
|
+
},
|
74
|
+
mounted() {
|
75
|
+
this.initTableList();
|
76
|
+
},
|
77
|
+
methods: {
|
78
|
+
searchEvent() {
|
79
|
+
this.$refs['table-m1'].commitProxy('reload');
|
80
|
+
},
|
81
|
+
resetEvent() {
|
82
|
+
this.formData = {};
|
83
|
+
this.$refs['table-m1'].commitProxy('reload');
|
84
|
+
},
|
85
|
+
openEditDialog(id) {
|
86
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
87
|
+
this.activeName = 'first';
|
88
|
+
this.$openEditView('showEdit');
|
89
|
+
},
|
90
|
+
initTableList() {
|
91
|
+
let that = this;
|
92
|
+
let tableOption = {
|
93
|
+
vue: this,
|
94
|
+
tableRef: 'table-m1',
|
95
|
+
tableName: 'basic_notifyTemplate_list-m2',
|
96
|
+
path: USER_PREFIX + '/notify_template/listPage',
|
97
|
+
param: () => {
|
98
|
+
return {
|
99
|
+
...this.formData,
|
100
|
+
ntType: 1
|
101
|
+
};
|
102
|
+
},
|
103
|
+
columns: [
|
104
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
105
|
+
{
|
106
|
+
title: this.$t1('邮件模板编码'),
|
107
|
+
field: 'notifyType',
|
108
|
+
width: 250,
|
109
|
+
fixed: 'left'
|
110
|
+
},
|
111
|
+
{
|
112
|
+
title: this.$t1('主题'),
|
113
|
+
field: 'ntName',
|
114
|
+
width: 150
|
115
|
+
},
|
116
|
+
{
|
117
|
+
title: this.$t1('是否启用'),
|
118
|
+
field: 'enabled',
|
119
|
+
width: 150,
|
120
|
+
slots: {
|
121
|
+
default: ({row}) => {
|
122
|
+
if (row.enabled) {
|
123
|
+
return [
|
124
|
+
<div class="txt-status">
|
125
|
+
<span>{this.$t1('启用')}</span>
|
126
|
+
</div>
|
127
|
+
];
|
128
|
+
} else {
|
129
|
+
return [
|
130
|
+
<div class="txt-status disable">
|
131
|
+
<span>{this.$t1('禁用')}</span>
|
132
|
+
</div>
|
133
|
+
];
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
},
|
138
|
+
{title: this.$t1('备注'), field: 'remark', width: 150},
|
139
|
+
{
|
140
|
+
title: this.$t1('创建时间'),
|
141
|
+
field: 'createDate',
|
142
|
+
width: 150
|
143
|
+
},
|
144
|
+
{
|
145
|
+
width: 47,
|
146
|
+
fixed: 'right',
|
147
|
+
title: '',
|
148
|
+
sortable: false,
|
149
|
+
slots: {
|
150
|
+
default: ({row}) => {
|
151
|
+
return [
|
152
|
+
<div>
|
153
|
+
<a
|
154
|
+
href="javascript:void(0);"
|
155
|
+
class="a-link"
|
156
|
+
onclick={() => {
|
157
|
+
this.openEditDialog(row.id);
|
158
|
+
}}
|
159
|
+
>
|
160
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
161
|
+
popper-class="tooltip-skin">
|
162
|
+
<i class="el-icon-edit"/>
|
163
|
+
</el-tooltip>
|
164
|
+
</a>
|
165
|
+
</div>
|
166
|
+
];
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
]
|
171
|
+
};
|
172
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
173
|
+
this.vxeOption = opts;
|
174
|
+
});
|
175
|
+
},
|
176
|
+
importExcel() {
|
177
|
+
let that = this;
|
178
|
+
that.$excelImport({
|
179
|
+
prefix: USER_PREFIX,
|
180
|
+
excel: USER_PREFIX + '/excelTemplate/notify_template/notifyTemplate.xlsx',
|
181
|
+
multi: false,
|
182
|
+
saveUrl: USER_PREFIX + '/notify_template/save',
|
183
|
+
callback: () => {
|
184
|
+
that.searchEvent();
|
185
|
+
}
|
186
|
+
});
|
187
|
+
}
|
188
|
+
}
|
189
|
+
};
|
190
|
+
</script>
|
@@ -64,6 +64,25 @@ export default {
|
|
64
64
|
|
65
65
|
delete queryParam.urlmobile;
|
66
66
|
delete queryParam.url;
|
67
|
+
|
68
|
+
if (purl.indexOf('.html') >= 0) {
|
69
|
+
let eUrl = purl;
|
70
|
+
let pstr = Object.keys(queryParam).map(key => {
|
71
|
+
return key + "=" + queryParam[key]
|
72
|
+
}).join("&")
|
73
|
+
|
74
|
+
if (pstr) {
|
75
|
+
if (purl.indexOf('.html?') >= 0) {
|
76
|
+
eUrl = eUrl + '&' + pstr
|
77
|
+
} else {
|
78
|
+
eUrl = eUrl + '?' + pstr
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
location.href = eUrl;
|
83
|
+
return
|
84
|
+
}
|
85
|
+
|
67
86
|
delete queryParam.dataId;
|
68
87
|
delete queryParam.showWfContent;
|
69
88
|
delete queryParam.access_token;
|
@@ -74,7 +93,6 @@ export default {
|
|
74
93
|
let url = purl + '.vue';
|
75
94
|
this.queryParam = queryParam;
|
76
95
|
this.showWfContent = true;
|
77
|
-
await this.initI18n();
|
78
96
|
// this.wfContent = require('@/views' + url).default;
|
79
97
|
let t = "@base/views";
|
80
98
|
let urlArr = [
|
@@ -82,25 +100,34 @@ export default {
|
|
82
100
|
'/user/form/view/list.vue',
|
83
101
|
'/user/form/view/edit.vue'
|
84
102
|
]
|
85
|
-
|
86
|
-
this.
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
103
|
+
this.initUserInfo(() => {
|
104
|
+
this.initI18n();
|
105
|
+
if (urlArr.includes(url)) {
|
106
|
+
this.wfContent = require('@base/views' + url).default;
|
107
|
+
} else if (url.startsWith(t)) {
|
108
|
+
let path = url.slice(t.length);
|
109
|
+
this.wfContent = require('@base/views' + path).default;
|
110
|
+
} else {
|
111
|
+
this.wfContent = require('@/views' + url).default;
|
112
|
+
}
|
113
|
+
})
|
114
|
+
},
|
115
|
+
initUserInfo(callback) {
|
116
|
+
this.$store
|
117
|
+
.dispatch('user/getInfo2')
|
118
|
+
.then(() => {
|
119
|
+
callback && callback();
|
120
|
+
});
|
94
121
|
},
|
95
122
|
getI18nLang() {
|
96
123
|
let i18nLang = this.$route.query.i18nLang || "zh";
|
97
124
|
return i18nLang;
|
98
125
|
},
|
99
|
-
initI18n() {
|
126
|
+
async initI18n() {
|
100
127
|
let lang = this.getI18nLang();
|
101
128
|
this.$i18n.locale = lang // 设置给本地的i18n插件
|
102
129
|
localStorage.setItem("i18n-lang", lang);
|
103
|
-
|
130
|
+
await indexUtil.initI18nMessage("business", lang, true);
|
104
131
|
},
|
105
132
|
login() {
|
106
133
|
let token = this.$route.query.access_token;
|
@@ -8,6 +8,8 @@
|
|
8
8
|
</template>
|
9
9
|
|
10
10
|
<script>
|
11
|
+
import {getToken} from "@base/utils/auth";
|
12
|
+
|
11
13
|
export default {
|
12
14
|
name: 'outLink',
|
13
15
|
data() {
|
@@ -36,6 +38,21 @@ export default {
|
|
36
38
|
this.type = 1;
|
37
39
|
}
|
38
40
|
});
|
41
|
+
}else if (url.indexOf('token=platform_token') >= 0) {
|
42
|
+
this.$http({
|
43
|
+
url: YX_PREFIX + `/fundPlatform/getToken`,
|
44
|
+
method: `post`,
|
45
|
+
data: {},
|
46
|
+
isLoading: true,
|
47
|
+
success: res => {
|
48
|
+
this.url = url.replace('token=platform_token', 'token=' + res.objx);
|
49
|
+
this.type = 1;
|
50
|
+
}
|
51
|
+
});
|
52
|
+
} else if (url.indexOf('token=true') >= 0) {
|
53
|
+
let token = getToken();
|
54
|
+
this.url = url.replace('token=true', ('token=' + token))
|
55
|
+
this.type = 1;
|
39
56
|
} else {
|
40
57
|
this.url = url;
|
41
58
|
this.type = 1;
|
@@ -55,6 +55,25 @@ export default {
|
|
55
55
|
|
56
56
|
delete queryParam.urlmobile;
|
57
57
|
delete queryParam.url;
|
58
|
+
|
59
|
+
if (purl.indexOf('.html') >= 0) {
|
60
|
+
let eUrl = purl;
|
61
|
+
let pstr = Object.keys(queryParam).map(key => {
|
62
|
+
return key + "=" + queryParam[key]
|
63
|
+
}).join("&")
|
64
|
+
|
65
|
+
if (pstr) {
|
66
|
+
if (purl.indexOf('.html?') >= 0) {
|
67
|
+
eUrl = eUrl + '&' + pstr
|
68
|
+
} else {
|
69
|
+
eUrl = eUrl + '?' + pstr
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
location.href = eUrl;
|
74
|
+
return
|
75
|
+
}
|
76
|
+
|
58
77
|
delete queryParam.dataId;
|
59
78
|
delete queryParam.showWfContent;
|
60
79
|
delete queryParam.access_token;
|
@@ -72,27 +91,34 @@ export default {
|
|
72
91
|
'/user/form/view/list.vue',
|
73
92
|
'/user/form/view/edit.vue'
|
74
93
|
]
|
75
|
-
|
76
|
-
this.
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
94
|
+
this.initUserInfo(() => {
|
95
|
+
this.initI18n();
|
96
|
+
if (urlArr.includes(url)) {
|
97
|
+
this.wfContent = require('@base/views' + url).default;
|
98
|
+
} else if (url.startsWith(t)) {
|
99
|
+
let path = url.slice(t.length);
|
100
|
+
this.wfContent = require('@base/views' + path).default;
|
101
|
+
} else {
|
102
|
+
this.wfContent = require('@/views' + url).default;
|
103
|
+
}
|
104
|
+
})
|
105
|
+
},
|
106
|
+
initUserInfo(callback) {
|
107
|
+
this.$store
|
108
|
+
.dispatch('user/getInfo2')
|
109
|
+
.then(() => {
|
110
|
+
callback && callback();
|
111
|
+
});
|
86
112
|
},
|
87
113
|
getI18nLang() {
|
88
114
|
let i18nLang = this.$route.query.i18nLang || "zh";
|
89
115
|
return i18nLang;
|
90
116
|
},
|
91
|
-
initI18n() {
|
117
|
+
async initI18n() {
|
92
118
|
let lang = this.getI18nLang();
|
93
119
|
this.$i18n.locale = lang // 设置给本地的i18n插件
|
94
120
|
localStorage.setItem("i18n-lang", lang);
|
95
|
-
indexUtil.initI18nMessage("business", lang, true);
|
121
|
+
await indexUtil.initI18nMessage("business", lang, true);
|
96
122
|
},
|
97
123
|
login() {
|
98
124
|
let token = this.$route.query.access_token;
|
@@ -33,11 +33,11 @@
|
|
33
33
|
<el-input v-model="formData.name" size="small" clearable/>
|
34
34
|
</template>
|
35
35
|
</vxe-form-item>
|
36
|
-
<vxe-form-item :title="$t1('岗位编码')+':'" field="code">
|
36
|
+
<!-- <vxe-form-item :title="$t1('岗位编码')+':'" field="code">
|
37
37
|
<template v-slot>
|
38
38
|
<el-input v-model="formData.code" size="small" clearable/>
|
39
39
|
</template>
|
40
|
-
</vxe-form-item>
|
40
|
+
</vxe-form-item> -->
|
41
41
|
</vxe-form>
|
42
42
|
</template>
|
43
43
|
</vxe-grid>
|
@@ -96,11 +96,11 @@ export default {
|
|
96
96
|
width: 150,
|
97
97
|
fixed: 'left'
|
98
98
|
},
|
99
|
-
{
|
99
|
+
/* {
|
100
100
|
field: 'code',
|
101
101
|
title: this.$t1('岗位编码'),
|
102
102
|
width: 250
|
103
|
-
},
|
103
|
+
}, */
|
104
104
|
{title: this.$t1('所属组织'), field: 'companyName', width: 150},
|
105
105
|
{
|
106
106
|
field: 'enabled',
|
@@ -114,13 +114,13 @@ export default {
|
|
114
114
|
width: 250
|
115
115
|
},
|
116
116
|
{
|
117
|
-
field: '
|
118
|
-
title: this.$t1('
|
117
|
+
field: '_createBy',
|
118
|
+
title: this.$t1('创建人'),
|
119
119
|
width: 150
|
120
120
|
},
|
121
121
|
{
|
122
|
-
field: '
|
123
|
-
title: this.$t1('
|
122
|
+
field: 'createDate',
|
123
|
+
title: this.$t1('创建时间'),
|
124
124
|
width: 150
|
125
125
|
},
|
126
126
|
{
|
@@ -128,6 +128,11 @@ export default {
|
|
128
128
|
title: this.$t1('更新人'),
|
129
129
|
width: 150
|
130
130
|
},
|
131
|
+
{
|
132
|
+
field: 'modifyDate',
|
133
|
+
title: this.$t1('更新时间'),
|
134
|
+
width: 150
|
135
|
+
},
|
131
136
|
{
|
132
137
|
width: 47,
|
133
138
|
fixed: 'right',
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<el-input v-model="formData.dataType" size="small" clearable/>
|
33
33
|
</template>
|
34
34
|
</vxe-form-item>
|
35
|
-
<vxe-form-item title="
|
35
|
+
<vxe-form-item title="推送组织编码:" field="pushCompanyCode">
|
36
36
|
<template v-slot>
|
37
37
|
<el-input v-model="formData.pushCompanyCode" size="small" clearable/>
|
38
38
|
</template>
|
@@ -142,7 +142,7 @@ export default {
|
|
142
142
|
fixed: 'left'
|
143
143
|
},
|
144
144
|
{
|
145
|
-
title: '
|
145
|
+
title: '推送组织编码',
|
146
146
|
field: 'pushCompanyCode',
|
147
147
|
width: 150
|
148
148
|
},
|
@@ -34,11 +34,11 @@
|
|
34
34
|
<el-input v-model="formData.name" size="small" clearable/>
|
35
35
|
</template>
|
36
36
|
</vxe-form-item>
|
37
|
-
<vxe-form-item :title="$t1('角色编码')+':'" field="code">
|
37
|
+
<!-- <vxe-form-item :title="$t1('角色编码')+':'" field="code">
|
38
38
|
<template v-slot>
|
39
39
|
<el-input v-model="formData.code" size="small" clearable/>
|
40
40
|
</template>
|
41
|
-
</vxe-form-item>
|
41
|
+
</vxe-form-item> -->
|
42
42
|
</vxe-form>
|
43
43
|
</template>
|
44
44
|
</vxe-grid>
|
@@ -106,11 +106,11 @@ export default {
|
|
106
106
|
sortable: true,
|
107
107
|
fixed: 'left'
|
108
108
|
},
|
109
|
-
{
|
109
|
+
/* {
|
110
110
|
title: this.$t1('角色编码'),
|
111
111
|
field: 'code',
|
112
112
|
width: 150
|
113
|
-
},
|
113
|
+
}, */
|
114
114
|
{
|
115
115
|
title: this.$t1('角色描述'),
|
116
116
|
field: 'description',
|
@@ -7,7 +7,10 @@
|
|
7
7
|
@custom="$vxeTableUtil.customHandle">
|
8
8
|
<template #form>
|
9
9
|
<div class="clearfix screen-btns">
|
10
|
-
<div class="fl"
|
10
|
+
<div class="fl">
|
11
|
+
<base-table-export :option="{ title: $t1('机构导出'), targetRef: 'table-m1', conditionExport: false}"
|
12
|
+
:parent-target="_self"/>
|
13
|
+
</div>
|
11
14
|
<div class="fr">
|
12
15
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
13
16
|
plain>{{ $t1('重置') }}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
{{ dataId ? $t1('查看用户') : $t1('新增用户') }}
|
8
8
|
</div>
|
9
9
|
<div class="fr">
|
10
|
-
|
10
|
+
<temp-storage-button :option="tempStorageOption" v-if="!dataId"></temp-storage-button>
|
11
11
|
<base-input-export :option="exportOption" :parent-target="_self" v-if="dataId"/>
|
12
12
|
<el-button type="primary" plain class="button-sty" icon="el-icon-unlock" @click="unlock" v-if="user.locked"
|
13
13
|
v-hasPermi="'user:unlock'">{{ $t1('解锁') }}
|
@@ -136,14 +136,14 @@
|
|
136
136
|
<el-input size="small" v-model="user.email" maxlength="200" clearable/>
|
137
137
|
</el-form-item>
|
138
138
|
</td>
|
139
|
-
<th v-if="flag!=='2'">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
139
|
+
<!-- <th v-if="flag!=='2'">
|
140
|
+
GUID
|
141
|
+
</th>
|
142
|
+
<td v-if="flag!=='2'">
|
143
|
+
<el-form-item prop="guid" :rules="[{ required: false, trigger: 'blur' }]">
|
144
|
+
<el-input size="small" v-model="user.guid" maxlength="200" clearable/>
|
145
|
+
</el-form-item>
|
146
|
+
</td>-->
|
147
147
|
<th>{{ $t1('地址') }}</th>
|
148
148
|
<td colspan="3">
|
149
149
|
<el-input size="small" v-model="user.address" class="b" maxlength="255" clearable/>
|
@@ -215,12 +215,19 @@
|
|
215
215
|
</el-button>
|
216
216
|
</div>
|
217
217
|
<div class="title-form">
|
218
|
-
<span
|
218
|
+
<span>
|
219
219
|
<el-form-item label="GUID" :prop="'userCompanyInfoDTOs.'+index1+'.guid'"
|
220
220
|
:rules="[{ required: false, trigger: 'blur' }]">
|
221
221
|
<el-input size="small" v-model="item.guid" maxlength="200" clearable/>
|
222
222
|
</el-form-item>
|
223
223
|
</span>
|
224
|
+
<span>
|
225
|
+
<el-form-item label="是否默认组织" :prop="'userCompanyInfoDTOs.'+index1+'.defaults'"
|
226
|
+
:rules="[{ required: false, trigger: 'blur' }]">
|
227
|
+
<el-checkbox v-model="item.defaults"
|
228
|
+
@change="changeCompanyDefault(item)"></el-checkbox>
|
229
|
+
</el-form-item>
|
230
|
+
</span>
|
224
231
|
</div>
|
225
232
|
<div class="m-2">
|
226
233
|
<div class="d-item" style="width: 65%;">
|
@@ -297,7 +304,7 @@
|
|
297
304
|
|
298
305
|
<script>
|
299
306
|
import xeUtils from "xe-utils";
|
300
|
-
|
307
|
+
import tempStorageButton from "@base/components/tempStorage/index.vue";
|
301
308
|
|
302
309
|
|
303
310
|
export default {
|
@@ -307,8 +314,8 @@ export default {
|
|
307
314
|
companyDialog: () => import('../../../views/user/company_info/dialog.vue'),
|
308
315
|
saleOrgDialog: () => import('../../../views/user/sale_org/dialog.vue'),
|
309
316
|
positionDialog: () => import('../../../views/user/position/dialog.vue'),
|
310
|
-
countryDialog: () => import('../../../views/user/country/dialog.vue')
|
311
|
-
tempStorageButton
|
317
|
+
countryDialog: () => import('../../../views/user/country/dialog.vue'),
|
318
|
+
tempStorageButton
|
312
319
|
},
|
313
320
|
props: ['_dataId', 'userType', 'flag'],
|
314
321
|
data() {
|
@@ -590,12 +597,13 @@ export default {
|
|
590
597
|
disabled={disabled}
|
591
598
|
onchange={() => {
|
592
599
|
this.gridSaleOrgDataMap[row.companyCode].forEach((item, index) => {
|
593
|
-
if (index
|
594
|
-
item.defaults = true;
|
595
|
-
} else {
|
600
|
+
if (index !== rowIndex) {
|
596
601
|
item.defaults = false;
|
597
602
|
}
|
598
603
|
});
|
604
|
+
this.$nextTick(()=>{
|
605
|
+
row.defaults = true;
|
606
|
+
})
|
599
607
|
}}
|
600
608
|
/>
|
601
609
|
];
|
@@ -698,7 +706,7 @@ export default {
|
|
698
706
|
if (rows.length > 0) {
|
699
707
|
let outUserCodes = this.outUserCodes;
|
700
708
|
if (this.userType === 1) {
|
701
|
-
|
709
|
+
//组织用户
|
702
710
|
rows = rows.filter(row => !outUserCodes.includes(row.code));
|
703
711
|
} else if (this.userType === 2) {
|
704
712
|
//外部用户
|
@@ -754,7 +762,7 @@ export default {
|
|
754
762
|
});
|
755
763
|
var items = [];
|
756
764
|
rows.forEach(row => {
|
757
|
-
const item = {companyCode: row.companyCode, companyName: row.companyName, guid: null};
|
765
|
+
const item = {companyCode: row.companyCode, companyName: row.companyName, guid: null, defaults: false};
|
758
766
|
if (!map[item.companyCode]) {
|
759
767
|
items.push(item);
|
760
768
|
}
|
@@ -763,6 +771,9 @@ export default {
|
|
763
771
|
});
|
764
772
|
// $grid.insertAt(items, -1);
|
765
773
|
this.user.userCompanyInfoDTOs.splice(0, 0, ...items);
|
774
|
+
if (this.user.userCompanyInfoDTOs.length == 1) {
|
775
|
+
this.user.userCompanyInfoDTOs[0].defaults = true
|
776
|
+
}
|
766
777
|
// this.user.userCompanyInfoDTOs = this.user.userCompanyInfoDTOs.concat(items);
|
767
778
|
}
|
768
779
|
callback && callback();
|
@@ -973,7 +984,7 @@ export default {
|
|
973
984
|
initRoleDialogParam() {
|
974
985
|
//初始化角色弹框的查询参数
|
975
986
|
if (this.userType == 1) {
|
976
|
-
|
987
|
+
//组织用户
|
977
988
|
this.roleDialogParam = {
|
978
989
|
queryAll: true,
|
979
990
|
neCodes: [...this.outUserCodes]
|
@@ -1015,6 +1026,15 @@ export default {
|
|
1015
1026
|
this.user.countryName = row.countryName;
|
1016
1027
|
this.user.countryCode = row.countryCode;
|
1017
1028
|
}
|
1029
|
+
},
|
1030
|
+
changeCompanyDefault(item) {
|
1031
|
+
let companyCode = item.companyCode
|
1032
|
+
if (item.defaults) {
|
1033
|
+
this.user.userCompanyInfoDTOs.forEach(row => {
|
1034
|
+
row.defaults = row.companyCode == companyCode;
|
1035
|
+
})
|
1036
|
+
}
|
1037
|
+
|
1018
1038
|
}
|
1019
1039
|
}
|
1020
1040
|
};
|