simple-frame-unit 1.0.2
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/.env.dev +14 -0
- package/CHANGELOG.md +9 -0
- package/README.md +24 -0
- package/dist/ed-frame-vue.common.1.js +11046 -0
- package/dist/ed-frame-vue.common.1.js.map +1 -0
- package/dist/ed-frame-vue.common.2.js +1715 -0
- package/dist/ed-frame-vue.common.2.js.map +1 -0
- package/dist/ed-frame-vue.common.js +53427 -0
- package/dist/ed-frame-vue.common.js.map +1 -0
- package/dist/ed-frame-vue.umd.1.js +11046 -0
- package/dist/ed-frame-vue.umd.1.js.map +1 -0
- package/dist/ed-frame-vue.umd.2.js +1715 -0
- package/dist/ed-frame-vue.umd.2.js.map +1 -0
- package/dist/ed-frame-vue.umd.js +53437 -0
- package/dist/ed-frame-vue.umd.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.1.js +17 -0
- package/dist/ed-frame-vue.umd.min.1.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.2.js +4 -0
- package/dist/ed-frame-vue.umd.min.2.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.js +470 -0
- package/dist/ed-frame-vue.umd.min.js.map +1 -0
- package/import.easydata.js +46 -0
- package/lib/CHANGELOG.md +18 -0
- package/lib/README.md +27 -0
- package/lib/api/ds/index.js +124 -0
- package/lib/api/easyData.js +90 -0
- package/lib/api/easyform/easyForm.js +32 -0
- package/lib/api/index.js +61 -0
- package/lib/api/interface/index.js +32 -0
- package/lib/api/system.js +20 -0
- package/lib/index.js +80 -0
- package/lib/packages/BasicTemplate/EasyDataTemplate.vue +189 -0
- package/lib/packages/BasicTemplate/Props.js +64 -0
- package/lib/packages/BasicTemplate/components/TemplateComp.vue +263 -0
- package/lib/packages/BasicTemplate/components/TemplateViews.vue +292 -0
- package/lib/packages/BasicTemplate/hooks/business.js +74 -0
- package/lib/packages/BasicTemplate/hooks/getFormData.js +89 -0
- package/lib/packages/BasicTemplate/hooks/queryFormData.js +194 -0
- package/lib/packages/BasicTemplate/hooks/submitForm.js +53 -0
- package/lib/packages/BasicTemplate/hooks/useEmits.js +15 -0
- package/lib/packages/BasicTemplate/hooks/validate.js +42 -0
- package/lib/packages/EasyDataForm/EasyDataForm.vue +597 -0
- package/lib/packages/EasyDataForm/Props.js +22 -0
- package/lib/packages/EasyDataForm/components/FormItem.vue +228 -0
- package/lib/packages/EasyDataForm/hooks/useChosePopup.js +85 -0
- package/lib/packages/EasyDataForm/hooks/useEmits.js +19 -0
- package/lib/packages/EasyDataForm/hooks/useForm.js +169 -0
- package/lib/packages/EasyDataForm/hooks/useUpload.js +168 -0
- package/lib/packages/EasyDataList/EasyDataList.vue +348 -0
- package/lib/packages/EasyDataList/Props.js +116 -0
- package/lib/packages/EasyDataList/components/BasicModal.vue +150 -0
- package/lib/packages/EasyDataList/components/FormAction.vue +63 -0
- package/lib/packages/EasyDataList/hooks/useEmits.js +30 -0
- package/lib/packages/EasyDataList/hooks/useForm.js +62 -0
- package/lib/packages/EasyDataList/hooks/useTable.js +314 -0
- package/lib/packages/EasyDataTable/EasyDataTable.vue +233 -0
- package/lib/packages/EasyDataView/EasyDataView.vue +105 -0
- package/lib/packages/EdRichPreview/index.js +32 -0
- package/lib/packages/EdRichText/index.vue +167 -0
- package/lib/packages/EdRichText/replaceUrl.js +49 -0
- package/lib/packages/components/FileView.vue +97 -0
- package/lib/packages/index.js +11 -0
- package/lib/packages/mixins/EasyDataMixins.js +133 -0
- package/lib/packages/mixins/useTable.jsx +130 -0
- package/lib/pages/DataSource/index.js +8 -0
- package/lib/pages/DataSource/src/components/ControlViews/BaseProps.js +103 -0
- package/lib/pages/DataSource/src/components/ControlViews/control.js +1089 -0
- package/lib/pages/DataSource/src/components/ControlViews/index.vue +301 -0
- package/lib/pages/DataSource/src/components/TableOperationModal.vue +225 -0
- package/lib/pages/DataSource/src/components/TablePropsModal.vue +367 -0
- package/lib/pages/DataSource/src/components/ViewPropsModal.vue +737 -0
- package/lib/pages/DataSource/src/components/modal/ChooseDict.vue +119 -0
- package/lib/pages/DataSource/src/hooks/useTable.js +138 -0
- package/lib/pages/DataSource/src/index.vue +431 -0
- package/lib/pages/Interface/index.js +8 -0
- package/lib/pages/Interface/src/components/InterfaceCall.vue +73 -0
- package/lib/pages/Interface/src/components/InterfaceDepend.vue +299 -0
- package/lib/pages/Interface/src/components/InterfaceFee.vue +131 -0
- package/lib/pages/Interface/src/components/InterfaceMessage.vue +878 -0
- package/lib/pages/Interface/src/components/InterfaceMock.vue +203 -0
- package/lib/pages/Interface/src/components/InterfaceParam.vue +308 -0
- package/lib/pages/Interface/src/components/InterfaceRepeat.vue +281 -0
- package/lib/pages/Interface/src/components/InterfaceVariable.vue +31 -0
- package/lib/pages/Interface/src/index.vue +216 -0
- package/lib/pages/Template/index.js +8 -0
- package/lib/pages/Template/src/components/DefineModal.vue +524 -0
- package/lib/pages/Template/src/components/TemplatePreview.vue +109 -0
- package/lib/pages/Template/src/components/model/AddDialog.vue +60 -0
- package/lib/pages/Template/src/components/model/TemplatePreview2.vue +101 -0
- package/lib/pages/Template/src/hooks/index.js +3 -0
- package/lib/pages/Template/src/hooks/useEmits.js +64 -0
- package/lib/pages/Template/src/index.vue +124 -0
- package/lib/popup/index.js +8 -0
- package/lib/popup/src/DataSourceChoose.vue +44 -0
- package/lib/popup/src/DataSourceViewIdChoose.vue +67 -0
- package/lib/popup/src/DictChoose.vue +104 -0
- package/lib/popup/src/InterfaceChoose.vue +46 -0
- package/lib/popup/src/OrgChoose.vue +121 -0
- package/lib/popup/src/RoleChoose.vue +101 -0
- package/lib/popup/src/TemplateChoose.vue +43 -0
- package/lib/popup/src/UserChoose.vue +161 -0
- package/lib/popup//347/273/204/344/273/266/345/274/200/345/217/221/350/247/204/350/214/203.md +25 -0
- package/lib/style/custom.scss +126 -0
- package/lib/style/deep.scss +109 -0
- package/lib/style/index.scss +4 -0
- package/lib/utils/MapLoader.js +48 -0
- package/lib/utils/dateUtils.js +58 -0
- package/lib/utils/index.js +8 -0
- package/lib/utils/setting.js +25 -0
- package/lib/utils/sortable/index.js +3784 -0
- package/lib/utils/useBusiness.js +212 -0
- package/lib/utils/utils.js +588 -0
- package/package.json +77 -0
- package/src/App.vue +12 -0
- package/src/assets/Vue.png +0 -0
- package/src/assets/avatar.png +0 -0
- package/src/assets/images/bg.png +0 -0
- package/src/assets/images/logo-bills.png +0 -0
- package/src/assets/images/pic.png +0 -0
- package/src/assets/images/weplus-logo.png +0 -0
- package/src/assets/marker.png +0 -0
- package/src/assets/styles/common.scss +359 -0
- package/src/assets/styles/ele-docs.css +3278 -0
- package/src/assets/styles/fonts/icomoon.eot +0 -0
- package/src/assets/styles/fonts/icomoon.svg +14 -0
- package/src/assets/styles/fonts/icomoon.ttf +0 -0
- package/src/assets/styles/fonts/icomoon.woff +0 -0
- package/src/assets/styles/fonts/style.css +39 -0
- package/src/assets/styles/higtlightEle.css +84 -0
- package/src/assets/svg/code.svg +7 -0
- package/src/assets/svg/password.svg +1 -0
- package/src/components/Popups/DiyCompDictChoose.vue +112 -0
- package/src/components/Popups/index.js +28 -0
- package/src/components/ed-base-vue/global/variable.js +8 -0
- package/src/components/ed-base-vue/index.js +81 -0
- package/src/components/ed-base-vue/package/EdCard/index.js +7 -0
- package/src/components/ed-base-vue/package/EdCard/src/index.vue +87 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/AceConfig.js +71 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/Editor.vue +137 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/Toolbar.vue +68 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/index.vue +119 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/webpack-resolver.js +51 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/Toolbar.vue +57 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/config.js +64 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/index.vue +309 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/EdCodeEditor.vue +238 -0
- package/src/components/ed-base-vue/package/EdDate/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDate/src/index.js +50 -0
- package/src/components/ed-base-vue/package/EdDescriptions/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/EdDescriptions.vue +46 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/EdDescriptionsItem.js +20 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/Props.js +20 -0
- package/src/components/ed-base-vue/package/EdDialog/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDialog/src/EdDialog.vue +138 -0
- package/src/components/ed-base-vue/package/EdDialog/src/Props.js +91 -0
- package/src/components/ed-base-vue/package/EdDialog/src/components/DialogFooter.vue +42 -0
- package/src/components/ed-base-vue/package/EdDialog/src/components/DialogWrapper.vue +53 -0
- package/src/components/ed-base-vue/package/EdDrawer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/DrawerFooter.vue +41 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/EdDrawer.vue +150 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/props.js +71 -0
- package/src/components/ed-base-vue/package/EdFlow/index.js +8 -0
- package/src/components/ed-base-vue/package/EdFlow/src/EdFlowItem.vue +733 -0
- package/src/components/ed-base-vue/package/EdFlow/src/index.vue +148 -0
- package/src/components/ed-base-vue/package/EdForm/index.js +8 -0
- package/src/components/ed-base-vue/package/EdForm/src/EdForm.vue +172 -0
- package/src/components/ed-base-vue/package/EdForm/src/Props.js +33 -0
- package/src/components/ed-base-vue/package/EdForm/src/components/EdFormItem.vue +34 -0
- package/src/components/ed-base-vue/package/EdIcons/index.js +8 -0
- package/src/components/ed-base-vue/package/EdIcons/src/hooks/Icons.js +406 -0
- package/src/components/ed-base-vue/package/EdIcons/src/hooks/Icons1.js +830 -0
- package/src/components/ed-base-vue/package/EdIcons/src/index.vue +13 -0
- package/src/components/ed-base-vue/package/EdImage/index.js +8 -0
- package/src/components/ed-base-vue/package/EdImage/src/index.vue +28 -0
- package/src/components/ed-base-vue/package/EdInputArray/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputArray/src/Props.js +26 -0
- package/src/components/ed-base-vue/package/EdInputArray/src/index.vue +97 -0
- package/src/components/ed-base-vue/package/EdInputColor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputColor/src/InputColor.vue +81 -0
- package/src/components/ed-base-vue/package/EdInputMap/index.js +9 -0
- package/src/components/ed-base-vue/package/EdInputMap/src/EdInputMap.vue +246 -0
- package/src/components/ed-base-vue/package/EdInputMap/src/EdInputMapProps.js +6 -0
- package/src/components/ed-base-vue/package/EdInputPop/index.js +13 -0
- package/src/components/ed-base-vue/package/EdInputPop/src/EdInputPop.vue +144 -0
- package/src/components/ed-base-vue/package/EdInputPop/src/Props.js +48 -0
- package/src/components/ed-base-vue/package/EdInputTable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputTable/src/EdInputTable.vue +368 -0
- package/src/components/ed-base-vue/package/EdInputTable/src/Fetch.js +40 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/index.js +13 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/EdJsonEditor.vue +198 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/img/jsoneditor-icons.svg +749 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/jsoneditor.css +2031 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/plus.svg +1 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/hooks.js +63 -0
- package/src/components/ed-base-vue/package/EdJsonViewer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdJsonViewer/src/EdJsonViewer.vue +44 -0
- package/src/components/ed-base-vue/package/EdLable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdLable/src/index.vue +34 -0
- package/src/components/ed-base-vue/package/EdLink/index.js +8 -0
- package/src/components/ed-base-vue/package/EdLink/src/index.vue +43 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/index.js +15 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/EdMarkEditor.vue +368 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/extra-function.js +538 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/highlight.js +95 -0
- package/src/components/ed-base-vue/package/EdTable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdTable/src/EdTable.vue +240 -0
- package/src/components/ed-base-vue/package/EdTable/src/Props.js +97 -0
- package/src/components/ed-base-vue/package/EdTable/src/components/TableColumnItem.js +24 -0
- package/src/components/ed-base-vue/package/EdTable/src/components/TablePagination.vue +73 -0
- package/src/components/ed-base-vue/package/EdTableEditor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/EdTableEditor.vue +282 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/Props.js +107 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/hooks/validate.js +90 -0
- package/src/components/ed-base-vue/package/EdUpload/index.js +8 -0
- package/src/components/ed-base-vue/package/EdUpload/src/Props.js +90 -0
- package/src/components/ed-base-vue/package/EdUpload/src/index.vue +88 -0
- package/src/components/ed-base-vue/package/EdViewer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdViewer/src/EdViewer.vue +310 -0
- package/src/components/ed-base-vue/package/EdWangEditor/index.js +14 -0
- package/src/components/ed-base-vue/package/EdWangEditor/src/EdWangEditor.vue +127 -0
- package/src/components/ed-base-vue/package/ExtendSlot.js +12 -0
- package/src/components/ed-base-vue/package/OptionSlot.js +65 -0
- package/src/components/ed-base-vue/plugin/Message/index.js +2 -0
- package/src/components/ed-base-vue/plugin/Message/src/main.js +91 -0
- package/src/components/ed-base-vue/plugin/Message/src/main.vue +253 -0
- package/src/components/ed-base-vue/plugin/print/index.js +156 -0
- package/src/components/ed-base-vue/plugin/sortable/index.js +3784 -0
- package/src/components/ed-base-vue/style/custom.scss +107 -0
- package/src/components/ed-base-vue/style/deep.scss +100 -0
- package/src/components/ed-base-vue/style/index.scss +4 -0
- package/src/components/ed-base-vue/tools/date-format.js +315 -0
- package/src/components/ed-base-vue/tools/utils.js +124 -0
- package/src/layouts/components/AppMain.vue +17 -0
- package/src/layouts/components/Header.vue +256 -0
- package/src/layouts/components/Logo.vue +56 -0
- package/src/layouts/components/Navbar.vue +169 -0
- package/src/layouts/components/SideBar.vue +107 -0
- package/src/layouts/components/index.js +5 -0
- package/src/layouts/index.vue +57 -0
- package/src/main.js +42 -0
- package/src/request/config.js +6 -0
- package/src/request/index.js +85 -0
- package/src/request/request.js +147 -0
- package/src/router/index.js +65 -0
- package/src/router/modules/baseRouter.js +43 -0
- package/src/router/modules/easydata.js +49 -0
- package/src/views/base/BaseRichPreview.vue +23 -0
- package/src/views/base/BaseRichText.vue +28 -0
- package/src/views/base/EdFormView.vue +54 -0
- package/src/views/base/EdTable.vue +98 -0
- package/src/views/base/inputTable.vue +103 -0
- package/src/views/easydata/Interface.vue +3 -0
- package/src/views/easydata/dataSource.vue +13 -0
- package/src/views/easydata/dataSourceView.vue +71 -0
- package/src/views/easydata/templateDemo.vue +89 -0
- package/src/views/easydata/templateInfo.vue +13 -0
- package/src/views/index.vue +17 -0
- package/src/views/login.vue +208 -0
- package/src/views/redirect.vue +15 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-card title="表格选择器">
|
|
3
|
+
<div slot="header" class="clearfix">
|
|
4
|
+
<span>表格选择器</span>
|
|
5
|
+
</div>
|
|
6
|
+
<div>
|
|
7
|
+
<el-form>
|
|
8
|
+
<el-form-item label="表格选择器">
|
|
9
|
+
<ed-input-table v-model="dataValue" :action="action" :columns="columns" :headers="headers"
|
|
10
|
+
:method="method" :params="params">
|
|
11
|
+
</ed-input-table>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-form-item label="当前选中值">
|
|
14
|
+
<p>{{ dataValue }}</p>
|
|
15
|
+
</el-form-item>
|
|
16
|
+
</el-form>
|
|
17
|
+
</div>
|
|
18
|
+
</el-card>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
name: "InputTable",
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
dataValue: [],
|
|
27
|
+
columns: [],
|
|
28
|
+
action: this.$EdFrame.BASE_API + '/admin-api/easydata/dict/getDictList',
|
|
29
|
+
headers: this.$EdFrame.BASE_HEADERS(),
|
|
30
|
+
method: "get",
|
|
31
|
+
params: {type: ''}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
watch: {
|
|
35
|
+
dataValue(n) {
|
|
36
|
+
console.log(n)
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
},
|
|
40
|
+
mounted() {
|
|
41
|
+
this.getcolumns()
|
|
42
|
+
this.getDataValue()
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
getDataValue(){
|
|
46
|
+
setTimeout(()=>{
|
|
47
|
+
let Value = [
|
|
48
|
+
{
|
|
49
|
+
"name": "参数类型",
|
|
50
|
+
"dictType": "infra_config_type",
|
|
51
|
+
"description": null,
|
|
52
|
+
"sort": null,
|
|
53
|
+
"usable": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "通知类型",
|
|
57
|
+
"dictType": "system_notice_type",
|
|
58
|
+
"description": null,
|
|
59
|
+
"sort": null,
|
|
60
|
+
"usable": true
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
// this.dataValue = Value
|
|
65
|
+
this.dataValue = Value[1]
|
|
66
|
+
},1000)
|
|
67
|
+
},
|
|
68
|
+
getcolumns(){
|
|
69
|
+
setTimeout(()=>{
|
|
70
|
+
this.columns = [
|
|
71
|
+
{
|
|
72
|
+
"label": "字段名称",
|
|
73
|
+
"prop": "name",
|
|
74
|
+
rowKey: true,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"label": "字段类型",
|
|
78
|
+
"prop": "dictType",
|
|
79
|
+
"map": "type",
|
|
80
|
+
"query": true,
|
|
81
|
+
rowKey: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"label": "状态",
|
|
85
|
+
"prop": "usable",
|
|
86
|
+
"formatter": "function initUsable(row, column, cellValue, index){return cellValue === true ? '可用1' : '不可用'}"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},2000)
|
|
90
|
+
},
|
|
91
|
+
formatter(row, column, cellValue, index) {
|
|
92
|
+
let func = `function initUsable(row, column, cellValue, index){return cellValue === true ? "可用" : "不可用"}`
|
|
93
|
+
let funcTest = new Function('return ' + func)();
|
|
94
|
+
return funcTest(row, column, cellValue, index)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
<style scoped>
|
|
102
|
+
|
|
103
|
+
</style>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<EasyDataList ref="EasyDataList" :columnType="columnType" :dataSourceName="dataSourceName" model="list"
|
|
4
|
+
@editColumns="editColumns">
|
|
5
|
+
</EasyDataList>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import {formatDate} from "../../../lib/utils/dateUtils";
|
|
11
|
+
export default {
|
|
12
|
+
name: "dataSourceView",
|
|
13
|
+
data() {
|
|
14
|
+
return {
|
|
15
|
+
dataSourceName: '',
|
|
16
|
+
expandedRowRenderKey: 'keyInfo',
|
|
17
|
+
columnType: 'expand',
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
created() {
|
|
21
|
+
if (this.$route.params.dataSourceName) {
|
|
22
|
+
console.log(this.$route.params)
|
|
23
|
+
this.dataSourceName = this.$route.params.dataSourceName
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
mounted() {
|
|
27
|
+
this.initProps()
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
initProps() {
|
|
31
|
+
this.formProps = {
|
|
32
|
+
inline: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
editColumns() {
|
|
36
|
+
const columns = []
|
|
37
|
+
//规则名称增加点击获取编号
|
|
38
|
+
columns.push({
|
|
39
|
+
label: '新增时间',
|
|
40
|
+
width: 160,
|
|
41
|
+
prop: 'createTime',
|
|
42
|
+
formatter: (row, column, cellValue, index) => {
|
|
43
|
+
if (cellValue && cellValue !== '') {
|
|
44
|
+
let dateTime = new Date(cellValue)
|
|
45
|
+
return formatDate(dateTime, 'yyyy-MM-dd hh:mm:ss')
|
|
46
|
+
}
|
|
47
|
+
return cellValue
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
columns.push({
|
|
51
|
+
label: '更新时间',
|
|
52
|
+
align: "left",
|
|
53
|
+
width: 160,
|
|
54
|
+
prop: 'updateTime',
|
|
55
|
+
formatter: (row, column, cellValue, index) => {
|
|
56
|
+
if (cellValue && cellValue !== '') {
|
|
57
|
+
let dateTime = new Date(cellValue)
|
|
58
|
+
return formatDate(dateTime, 'yyyy-MM-dd hh:mm:ss')
|
|
59
|
+
}
|
|
60
|
+
return cellValue
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
return columns
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style scoped>
|
|
70
|
+
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<EasyDataList ref="EasyDataList" :action-props="{ showExportBtn: false, showAddBtn: false }"
|
|
4
|
+
:data-source-name="dataSourceName">
|
|
5
|
+
<template v-slot:tableSlot="{ row, $index }">
|
|
6
|
+
<el-tooltip class="item" content="业务编号为一个随机字符串,提交后,可去数据源中查看数据是否正常新增" effect="dark" placement="top">
|
|
7
|
+
<el-button size="small" type="text" @click="addView(row)">新增</el-button>
|
|
8
|
+
</el-tooltip>
|
|
9
|
+
<el-tooltip class="item" content="业务编号为当前数据的业务ID" effect="dark" placement="top">
|
|
10
|
+
<el-button size="small" type="text" @click="editView(row)">编辑</el-button>
|
|
11
|
+
</el-tooltip>
|
|
12
|
+
<el-tooltip class="item" content="业务编号为当前数据的业务ID" effect="dark" placement="top">
|
|
13
|
+
<el-button size="small" type="text" @click="showView(row)">查看</el-button>
|
|
14
|
+
</el-tooltip>
|
|
15
|
+
</template>
|
|
16
|
+
</EasyDataList>
|
|
17
|
+
<ed-dialog :fullscreen="true" :show-footer="false" :title="title" :visible="visibleView" @close="close">
|
|
18
|
+
<EasyDataTemplate :biz-params="bizParam" :template-id="templateId" @submitOk="submitOk"></EasyDataTemplate>
|
|
19
|
+
</ed-dialog>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import {randomUUID} from "../../../lib/utils/utils"
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
name: "TemplateDemo",
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
visible: false,
|
|
31
|
+
visibleView: false,
|
|
32
|
+
title: '',
|
|
33
|
+
templateId: '',
|
|
34
|
+
bizParam: {busi_id: ''},
|
|
35
|
+
dataSourceName: 'tmp_demo',
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
addView(row) {
|
|
40
|
+
if (row.keyInfoObject.templateId) {
|
|
41
|
+
this.visibleView = true
|
|
42
|
+
this.$nextTick(() => {
|
|
43
|
+
this.title = row.keyInfoObject.name + "-查询"
|
|
44
|
+
this.bizParam.busi_id = randomUUID()
|
|
45
|
+
this.templateId = row.keyInfoObject.templateId
|
|
46
|
+
})
|
|
47
|
+
} else {
|
|
48
|
+
this.$message.warning("不存在新增模板ID")
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
editView(row) {
|
|
52
|
+
if (row.keyInfoObject.templateIdEdit) {
|
|
53
|
+
this.visibleView = true
|
|
54
|
+
this.$nextTick(() => {
|
|
55
|
+
this.title = row.keyInfoObject.name + "-编辑"
|
|
56
|
+
this.bizParam.busi_id = row.keyInfoObject.busi_id
|
|
57
|
+
this.templateId = row.keyInfoObject.templateIdEdit
|
|
58
|
+
})
|
|
59
|
+
} else {
|
|
60
|
+
this.$message.warning("不存在编辑模板ID")
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
showView(row) {
|
|
64
|
+
if (row.keyInfoObject.templateIdQuery) {
|
|
65
|
+
this.visibleView = true
|
|
66
|
+
this.$nextTick(() => {
|
|
67
|
+
this.title = row.keyInfoObject.name + "-查看"
|
|
68
|
+
this.bizParam.busi_id = row.keyInfoObject.busi_id
|
|
69
|
+
this.templateId = row.keyInfoObject.templateIdQuery
|
|
70
|
+
})
|
|
71
|
+
} else {
|
|
72
|
+
this.$message.warning("不存在查询模板ID")
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
close() {
|
|
76
|
+
this.templateId = ""
|
|
77
|
+
this.visibleView = false
|
|
78
|
+
this.bizParam.busi_id = ""
|
|
79
|
+
},
|
|
80
|
+
submitOk(formData, isSupper) {
|
|
81
|
+
if (isSupper) {
|
|
82
|
+
this.close()
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style scoped></style>
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login">
|
|
3
|
+
<div class="login-content">
|
|
4
|
+
<div class="login-content--pic"></div>
|
|
5
|
+
|
|
6
|
+
<div class="login-content--form field-column">
|
|
7
|
+
<div class="form-title">
|
|
8
|
+
<div class="form-title--logo">
|
|
9
|
+
<el-image :src="logoBills" fit="cover" style="max-width: 100%; max-height: 100%;"></el-image>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-title--text" style="">微流水分析系统</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-cont">
|
|
14
|
+
<el-tabs v-model="loginForm.loginType" class="form" style=" float:none;">
|
|
15
|
+
<el-tab-pane label="账号密码登录" name="uname">
|
|
16
|
+
</el-tab-pane>
|
|
17
|
+
</el-tabs>
|
|
18
|
+
|
|
19
|
+
<div>
|
|
20
|
+
<el-form ref="loginForm" :model="loginForm" :rules="LoginRules" class="login-form">
|
|
21
|
+
<!-- 账号密码登录 -->
|
|
22
|
+
<div v-if="loginForm.loginType === 'uname'">
|
|
23
|
+
<el-form-item prop="username">
|
|
24
|
+
<el-input v-model="loginForm.username" auto-complete="off" placeholder="账号" type="text">
|
|
25
|
+
<i slot="prefix" class="el-icon-user-solid"/>
|
|
26
|
+
</el-input>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<el-form-item prop="password">
|
|
29
|
+
<el-input v-model="loginForm.password" auto-complete="off" placeholder="密码" type="password">
|
|
30
|
+
<img slot="prefix" src="@/assets/svg/password.svg" style="width: 14px;"/>
|
|
31
|
+
</el-input>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
<el-checkbox v-model="loginForm.rememberMe" style="margin:0 0 25px 0;">记住密码</el-checkbox>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- 下方的登录按钮 -->
|
|
36
|
+
<el-form-item style="width:100%;">
|
|
37
|
+
<el-button :loading="loading" size="medium" style="width:100%;" type="primary" @click.native.prevent="handlerLogin">
|
|
38
|
+
<span v-if="!loading">登 录</span>
|
|
39
|
+
<span v-else>登 录 中...</span>
|
|
40
|
+
</el-button>
|
|
41
|
+
</el-form-item>
|
|
42
|
+
</el-form>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<!-- footer -->
|
|
49
|
+
<div class="login-footer">
|
|
50
|
+
Copyright © 2023 <a href="https://www.myweplus.com" style="color: #2F53EB" tatget="_blank">微加科技</a>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
import logoBills from '@/assets/images/logo-bills.png'
|
|
57
|
+
import config from "@/request/config"
|
|
58
|
+
const avatar = require("@/assets/avatar.png")
|
|
59
|
+
export default {
|
|
60
|
+
name: "login",
|
|
61
|
+
data(){
|
|
62
|
+
return {
|
|
63
|
+
loading: false,
|
|
64
|
+
logoBills: logoBills,
|
|
65
|
+
loginForm: {
|
|
66
|
+
loginType: "uname",
|
|
67
|
+
username: "admin",
|
|
68
|
+
password: "admin123",
|
|
69
|
+
captchaVerification: process.env.VUE_APP_CAPTCHA_VERIF,
|
|
70
|
+
},
|
|
71
|
+
LoginRules: {
|
|
72
|
+
username: [
|
|
73
|
+
{required: true, trigger: "blur", message: "用户名不能为空"}
|
|
74
|
+
],
|
|
75
|
+
password: [
|
|
76
|
+
{required: true, trigger: "blur", message: "密码不能为空"}
|
|
77
|
+
],
|
|
78
|
+
mobile: [
|
|
79
|
+
{required: true, trigger: "blur", message: "手机号不能为空"},
|
|
80
|
+
{
|
|
81
|
+
validator: function (rule, value, callback) {
|
|
82
|
+
if (/^(?:(?:\+|00)86)?1(?:3[\d]|4[5-79]|5[0-35-9]|6[5-7]|7[0-8]|8[\d]|9[189])\d{8}$/.test(value) === false) {
|
|
83
|
+
callback(new Error("手机号格式错误"));
|
|
84
|
+
} else {
|
|
85
|
+
callback();
|
|
86
|
+
}
|
|
87
|
+
}, trigger: "blur"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
handlerLogin(){
|
|
95
|
+
this.loading = true;
|
|
96
|
+
this.$axios.postAction('/system/auth/login', this.loginForm).then(response=>{
|
|
97
|
+
if (response.success) {
|
|
98
|
+
console.log("-------------", response)
|
|
99
|
+
window.localStorage.setItem('FRAME_VUE_TOKEN', response.data.accessToken);
|
|
100
|
+
let userInfo = {
|
|
101
|
+
...this.loginForm,
|
|
102
|
+
...response.data,
|
|
103
|
+
avatar: avatar,
|
|
104
|
+
loginTime: new Date().getTime()
|
|
105
|
+
}
|
|
106
|
+
window.localStorage.setItem("FRAME_VUE_USER", JSON.stringify(userInfo))
|
|
107
|
+
this.$router.push({path: "/index"})
|
|
108
|
+
}
|
|
109
|
+
}).finally(()=>{
|
|
110
|
+
this.loading = false;
|
|
111
|
+
})
|
|
112
|
+
},
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
</script>
|
|
116
|
+
|
|
117
|
+
<style scoped lang="scss">
|
|
118
|
+
.login {
|
|
119
|
+
width: inherit;
|
|
120
|
+
height: inherit;
|
|
121
|
+
min-width: 1080px;
|
|
122
|
+
min-height: 620px;
|
|
123
|
+
background-color: #e6ebf2;
|
|
124
|
+
background-image: url('../assets/images/bg.png');
|
|
125
|
+
background-size: cover;
|
|
126
|
+
position: relative;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
align-items: center;
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
font-family: Microsoft YaHei;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
|
|
134
|
+
.login-content {
|
|
135
|
+
width: 52vw;
|
|
136
|
+
height: 29.12vw;
|
|
137
|
+
background-color: #fff;
|
|
138
|
+
box-shadow: 0 16px 40px rgba(0,0,0,.07);
|
|
139
|
+
border-radius: 20px;
|
|
140
|
+
position: relative;
|
|
141
|
+
|
|
142
|
+
.login-content--pic {
|
|
143
|
+
width: 23vw;
|
|
144
|
+
height: inherit;
|
|
145
|
+
background-image: url('../assets/images/pic.png');
|
|
146
|
+
background-repeat: no-repeat;
|
|
147
|
+
background-size: cover;
|
|
148
|
+
border-radius: 20px 0 0 20px;
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: 0;
|
|
151
|
+
left: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.login-content--form {
|
|
155
|
+
width: 29vw;
|
|
156
|
+
height: inherit;
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 0;
|
|
159
|
+
left: 23vw;
|
|
160
|
+
display: flex;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
align-items: center;
|
|
163
|
+
|
|
164
|
+
.form-title {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: row;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
align-items: center;
|
|
169
|
+
margin-bottom: 15px;
|
|
170
|
+
margin-right: 20px;
|
|
171
|
+
|
|
172
|
+
.form-title--logo {
|
|
173
|
+
width: 100px;
|
|
174
|
+
height: 70px;
|
|
175
|
+
display: flex;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.form-title--text {
|
|
181
|
+
font-size: 24px;
|
|
182
|
+
font-weight: 700;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.form-cont {
|
|
187
|
+
.form {
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
width: 320px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.login-footer {
|
|
196
|
+
height: 16px;
|
|
197
|
+
line-height: 16px;
|
|
198
|
+
font-size: 12px;
|
|
199
|
+
color: #8c8c8c;
|
|
200
|
+
position: absolute;
|
|
201
|
+
bottom: 30px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.field-column {
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
}
|
|
208
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export default {
|
|
3
|
+
beforeRouteLeave(to, from, next) {
|
|
4
|
+
next(this.$destroy());
|
|
5
|
+
},
|
|
6
|
+
created() {
|
|
7
|
+
const { params, query } = this.$route
|
|
8
|
+
const { path } = params
|
|
9
|
+
this.$router.replace({ path: '/' + path, query })
|
|
10
|
+
},
|
|
11
|
+
render: function(h) {
|
|
12
|
+
return h() // avoid warning message
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
</script>
|