hd-idevvue3 3.0.2 → 3.0.4
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/dist/assets/index.9c127719.css +1 -0
- package/dist/hd-idevvue3.mjs +3521 -3305
- package/dist/hd-idevvue3.umd.js +29 -29
- package/npminstall-debug.log +2 -10
- package/package.json +4 -2
- package/pnpm-lock.yaml +37 -4
- package/src/App.vue +11 -15
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +9 -10
- package/src/demo/dropdemo.vue +42 -43
- package/src/demo/extsets.vue +140 -39
- package/src/demo/formedit.vue +157 -145
- package/src/demo/hightquery.vue +263 -66
- package/src/demo/inlineedit.vue +129 -35
- package/src/demo/selfdrop.vue +32 -15
- package/src/directive/el-dragDialog/drag.js +13 -13
- package/src/directive/el-dragDialog/index.js +13 -13
- package/src/errorLog.js +3 -3
- package/src/hdcom/BigGrid.js +54 -48
- package/src/hdcom/BillShow.vue +84 -63
- package/src/hdcom/BillUpload.vue +144 -86
- package/src/hdcom/BtnRight.vue +26 -23
- package/src/hdcom/ErrHint.vue +36 -24
- package/src/hdcom/ExtendColumn.vue +97 -90
- package/src/hdcom/ExtendCommon.js +24 -13
- package/src/hdcom/ExtendForm.vue +107 -80
- package/src/hdcom/FacePicUpload.vue +59 -50
- package/src/hdcom/FaceRecTest.vue +87 -77
- package/src/hdcom/GridChart.vue +175 -162
- package/src/hdcom/GridExField.vue +328 -234
- package/src/hdcom/GridShow.vue +89 -39
- package/src/hdcom/HdAside.vue +192 -145
- package/src/hdcom/HdBtn.vue +44 -32
- package/src/hdcom/HdButton.vue +141 -117
- package/src/hdcom/HdComFaceRec.vue +80 -32
- package/src/hdcom/HdComGrid.vue +329 -229
- package/src/hdcom/HdComQuery.vue +179 -90
- package/src/hdcom/HdComQueryDetail.vue +159 -115
- package/src/hdcom/HdComSortDetail.vue +136 -130
- package/src/hdcom/HdDatePicker.vue +32 -16
- package/src/hdcom/HdDialog.vue +62 -44
- package/src/hdcom/HdDrop.vue +163 -138
- package/src/hdcom/HdFileUpload.vue +138 -119
- package/src/hdcom/HdFilterBox.vue +62 -62
- package/src/hdcom/HdFooter.vue +152 -119
- package/src/hdcom/HdForm.vue +276 -203
- package/src/hdcom/HdFormBtn.vue +81 -39
- package/src/hdcom/HdFormItem.vue +14 -10
- package/src/hdcom/HdGrid.vue +353 -156
- package/src/hdcom/HdGridEditBtn.vue +34 -20
- package/src/hdcom/HdGridExt.js +78 -47
- package/src/hdcom/HdGridSel.vue +227 -193
- package/src/hdcom/HdHeader.vue +149 -117
- package/src/hdcom/HdHotKey.vue +70 -67
- package/src/hdcom/HdInputHint.vue +40 -36
- package/src/hdcom/HdMain.vue +25 -27
- package/src/hdcom/HdMessage.vue +180 -171
- package/src/hdcom/HdNum.vue +67 -57
- package/src/hdcom/HdPopSel.vue +46 -24
- package/src/hdcom/HdRightMenu.vue +63 -61
- package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
- package/src/hdcom/HdTableColumn.vue +156 -109
- package/src/hdcom/HdTempSave.vue +138 -116
- package/src/hdcom/HdTree.vue +89 -72
- package/src/hdcom/HdTreeTable/eval.js +8 -3
- package/src/hdcom/HdTreeTable/index.vue +229 -174
- package/src/hdcom/ImportExcel.vue +69 -34
- package/src/hdcom/index.js +39 -44
- package/src/idev.common.js +54 -47
- package/src/index.js +3 -6
- package/src/utils/HdQuery.js +25 -14
- package/src/utils/comutils.js +50 -28
- package/src/utils/gogocodeTransfer.js +59 -0
- package/src/utils/utils.js +30 -19
- package/src/vendor/Blob.js +187 -179
- package/src/vendor/Export2Excel.js +231 -220
- package/src/vendor/Export2Zip.js +25 -22
- package/src/views/layout/AppMain.vue +34 -32
- package/src/views/layout/HdLayout.vue +64 -52
- package/src/views/layout/header/ElasticSearch.vue +196 -159
- package/src/views/layout/header/HZRecorder.js +163 -135
- package/src/views/layout/header/HeaderSearch.vue +165 -145
- package/src/views/layout/header/Levelbar.vue +55 -49
- package/src/views/layout/header/MainHeader.vue +233 -189
- package/src/views/layout/header/Navbar.vue +74 -78
- package/src/views/layout/header/ScrollPane.vue +103 -81
- package/src/views/layout/header/TagsView.vue +169 -164
- package/src/views/layout/header/VocRec.vue +86 -78
- package/src/views/layout/header/changepswform.vue +98 -64
- package/src/views/layout/index.js +5 -7
- package/src/views/layout/menu/Hamburger.vue +63 -45
- package/src/views/layout/menu/HdMenu.vue +155 -118
- package/src/views/layout/menu/index.vue +21 -19
- package/src/views/privilege/commsg/commsg.vue +115 -41
- package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
- package/src/views/privilege/commsg/commsgRole.vue +180 -109
- package/src/views/privilege/commsg/commsgform.vue +125 -101
- package/src/views/privilege/commsg/commsgiframe.vue +30 -23
- package/src/views/privilege/commsg/commsgto.vue +163 -84
- package/src/views/privilege/commsg/commsgtoform.vue +64 -58
- package/src/views/privilege/commsg/commsgtrans.vue +187 -115
- package/src/views/privilege/exfield/comexcolumn.vue +133 -43
- package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
- package/src/views/privilege/exfield/comexfield.vue +15 -17
- package/src/views/privilege/exfield/comexfieldform.vue +71 -53
- package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
- package/src/views/privilege/index.js +19 -20
- package/src/views/privilege/menu/comMenu.vue +49 -41
- package/src/views/privilege/menu/menu.vue +166 -49
- package/src/views/privilege/menu/menuinfo.vue +41 -34
- package/src/views/privilege/menu/rolelist.vue +78 -33
- package/src/views/privilege/menu/userlist.vue +76 -33
- package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
- package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
- package/src/views/privilege/orgDept/authOrgn.vue +157 -65
- package/src/views/privilege/orgDept/authorgnform.vue +50 -38
- package/src/views/privilege/orgDept/orgDept.vue +38 -37
- package/src/views/privilege/orgDept/orgTree.vue +99 -88
- package/src/views/privilege/orgDept/orgnselect.vue +132 -111
- package/src/views/privilege/personDept/authuser.vue +197 -91
- package/src/views/privilege/personDept/authuserform.vue +123 -71
- package/src/views/privilege/personDept/facerec.vue +128 -83
- package/src/views/privilege/personDept/orgncascader.vue +134 -115
- package/src/views/privilege/personDept/personDept.vue +9 -7
- package/src/views/privilege/quartz/comquartzjob.vue +123 -38
- package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
- package/src/views/privilege/quartz/comquartzlog.vue +116 -32
- package/src/views/privilege/role/btnRole.vue +123 -67
- package/src/views/privilege/role/menuRole.vue +65 -45
- package/src/views/privilege/role/orgnRole.vue +63 -41
- package/src/views/privilege/role/role.vue +26 -9
- package/src/views/privilege/role/rolelist.vue +114 -45
- package/src/views/privilege/role/roleselect.vue +34 -17
- package/src/views/privilege/search/comsearch.vue +164 -73
- package/src/views/privilege/search/menu.vue +38 -22
- package/src/views/privilege/syscode/syscode.vue +157 -69
- package/src/views/privilege/syscode/sysfield.vue +96 -43
- package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
- package/src/views/privilege/syslog/menulog.vue +38 -22
- package/src/views/privilege/syslog/syslog.vue +145 -78
- package/src/views/privilege/syslog/syslogconfig.vue +91 -24
- package/src/views/privilege/syslog/syslogform.vue +45 -43
- package/src/views/privilege/syslog/syslogframe.vue +26 -26
- package/src/views/privilege/userRole/userRole.vue +187 -89
- package/vite.config.js +7 -0
- package/dist/assets/index.774ef40e.css +0 -1
- package/src/views/privilege.zip +0 -0
|
@@ -1,71 +1,161 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
ref="grid"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
url="/webresources/login/tech/ComExColumn"
|
|
8
|
+
@row-click="rowClick"
|
|
9
|
+
>
|
|
6
10
|
<div class="filter-container" slot="query">
|
|
7
|
-
<el-input
|
|
8
|
-
|
|
11
|
+
<el-input
|
|
12
|
+
@keyup.enter.native="doQuery"
|
|
13
|
+
style="width: 200px"
|
|
14
|
+
class="filter-item"
|
|
15
|
+
placeholder="名称"
|
|
16
|
+
v-model="hdQuery.query.anyQuery"
|
|
17
|
+
>
|
|
9
18
|
</el-input>
|
|
10
|
-
<el-button
|
|
19
|
+
<el-button
|
|
20
|
+
class="filter-item"
|
|
21
|
+
type="primary"
|
|
22
|
+
:icon="ElIconSearch"
|
|
23
|
+
@click="$refs.grid.doQuery()"
|
|
24
|
+
keyType="query"
|
|
25
|
+
>搜索
|
|
11
26
|
</el-button>
|
|
12
|
-
<el-button
|
|
27
|
+
<el-button
|
|
28
|
+
class="filter-item"
|
|
29
|
+
@click="doEdit('')"
|
|
30
|
+
type="primary"
|
|
31
|
+
:icon="ElIconEdit"
|
|
32
|
+
keyType="add"
|
|
33
|
+
>新增
|
|
13
34
|
</el-button>
|
|
14
|
-
<el-button
|
|
35
|
+
<el-button
|
|
36
|
+
class="filter-item"
|
|
37
|
+
@click="$refs.grid.doRemoveAll()"
|
|
38
|
+
type="danger"
|
|
39
|
+
keyType="del"
|
|
40
|
+
>删除
|
|
15
41
|
</el-button>
|
|
16
42
|
</div>
|
|
17
|
-
<el-table-column
|
|
43
|
+
<el-table-column
|
|
44
|
+
width="100px"
|
|
45
|
+
align="center"
|
|
46
|
+
label="操作"
|
|
47
|
+
fixed="right"
|
|
48
|
+
>
|
|
18
49
|
<template slot-scope="scope">
|
|
19
|
-
<hd-btn
|
|
20
|
-
|
|
50
|
+
<hd-btn
|
|
51
|
+
icon="el-icon-edit"
|
|
52
|
+
hint="编辑"
|
|
53
|
+
@click.stop="doEdit(scope.row.exColumnId)"
|
|
54
|
+
></hd-btn>
|
|
55
|
+
<hd-btn
|
|
56
|
+
icon="el-icon-delete"
|
|
57
|
+
hint="删除"
|
|
58
|
+
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
59
|
+
></hd-btn>
|
|
21
60
|
</template>
|
|
22
61
|
</el-table-column>
|
|
23
|
-
<el-table-column
|
|
62
|
+
<el-table-column
|
|
63
|
+
width="100px"
|
|
64
|
+
align="center"
|
|
65
|
+
label="表名"
|
|
66
|
+
prop="tableName"
|
|
67
|
+
sortable
|
|
68
|
+
>
|
|
24
69
|
</el-table-column>
|
|
25
|
-
<el-table-column
|
|
70
|
+
<el-table-column
|
|
71
|
+
width="100px"
|
|
72
|
+
align="center"
|
|
73
|
+
label="字段名"
|
|
74
|
+
prop="columnName"
|
|
75
|
+
sortable
|
|
76
|
+
>
|
|
26
77
|
</el-table-column>
|
|
27
|
-
<el-table-column
|
|
78
|
+
<el-table-column
|
|
79
|
+
width="100px"
|
|
80
|
+
align="center"
|
|
81
|
+
label="字段注解"
|
|
82
|
+
prop="columnComment"
|
|
83
|
+
sortable
|
|
84
|
+
>
|
|
28
85
|
</el-table-column>
|
|
29
|
-
<el-table-column
|
|
86
|
+
<el-table-column
|
|
87
|
+
width="100px"
|
|
88
|
+
align="center"
|
|
89
|
+
label="字段类型"
|
|
90
|
+
prop="columnTypeStr"
|
|
91
|
+
sortable
|
|
92
|
+
>
|
|
30
93
|
</el-table-column>
|
|
31
|
-
<el-table-column
|
|
94
|
+
<el-table-column
|
|
95
|
+
width="100px"
|
|
96
|
+
align="center"
|
|
97
|
+
label="是否必填"
|
|
98
|
+
prop="columnRequire"
|
|
99
|
+
sortable
|
|
100
|
+
:inputFormat="$ckFt"
|
|
101
|
+
>
|
|
32
102
|
</el-table-column>
|
|
33
|
-
<el-table-column
|
|
103
|
+
<el-table-column
|
|
104
|
+
width="100px"
|
|
105
|
+
align="center"
|
|
106
|
+
label="长度"
|
|
107
|
+
prop="columnLen"
|
|
108
|
+
sortable
|
|
109
|
+
>
|
|
34
110
|
</el-table-column>
|
|
35
|
-
<el-table-column
|
|
111
|
+
<el-table-column
|
|
112
|
+
width="100px"
|
|
113
|
+
align="center"
|
|
114
|
+
label="比例"
|
|
115
|
+
prop="columnScale"
|
|
116
|
+
sortable
|
|
117
|
+
>
|
|
36
118
|
</el-table-column>
|
|
37
|
-
<el-table-column
|
|
119
|
+
<el-table-column
|
|
120
|
+
width="100px"
|
|
121
|
+
align="center"
|
|
122
|
+
label="默认值"
|
|
123
|
+
prop="defaultValue"
|
|
124
|
+
sortable
|
|
125
|
+
>
|
|
38
126
|
</el-table-column>
|
|
39
|
-
|
|
40
|
-
|
|
41
127
|
</hd-com-grid>
|
|
42
128
|
</el-main>
|
|
43
|
-
<comexcolumnform
|
|
129
|
+
<comexcolumnform
|
|
130
|
+
ref="comexcolumnform"
|
|
131
|
+
@save-ok="$refs.grid.doQuery()"
|
|
132
|
+
></comexcolumnform>
|
|
44
133
|
</el-container>
|
|
45
134
|
</template>
|
|
46
|
-
<script>
|
|
47
|
-
import comexcolumnform from './comexcolumnform'
|
|
48
135
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
hdQuery: new HdQuery(this),
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
mounted() {
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
methods: {
|
|
136
|
+
<script>
|
|
137
|
+
import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons'
|
|
138
|
+
import comexcolumnform from './comexcolumnform'
|
|
62
139
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
140
|
+
export default {
|
|
141
|
+
data() {
|
|
142
|
+
return {
|
|
143
|
+
hdQuery: new HdQuery(this),
|
|
144
|
+
ElIconSearch,
|
|
145
|
+
ElIconEdit,
|
|
70
146
|
}
|
|
147
|
+
},
|
|
148
|
+
name: 'comexcolumn',
|
|
149
|
+
components: { comexcolumnform },
|
|
150
|
+
mounted() {},
|
|
151
|
+
methods: {
|
|
152
|
+
doEdit(exColumnId) {
|
|
153
|
+
// 增加或编辑
|
|
154
|
+
this.$refs['comexcolumnform'].show(exColumnId)
|
|
155
|
+
},
|
|
156
|
+
rowClick(row) {
|
|
157
|
+
this.$emit('rowClick', row)
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
}
|
|
71
161
|
</script>
|
|
@@ -1,39 +1,59 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width=
|
|
2
|
+
<el-dialog title="编辑" :visible.sync="visible" width="60%">
|
|
3
3
|
<el-form label-width="100px" :model="hdform" ref="hdform">
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="8" :xs="16">
|
|
6
|
-
<el-form-item label="表名" prop="tableName" :rules="$r(0,0,36)">
|
|
6
|
+
<el-form-item label="表名" prop="tableName" :rules="$r(0, 0, 36)">
|
|
7
7
|
<el-input type="text" v-model="hdform.tableName"></el-input>
|
|
8
8
|
</el-form-item>
|
|
9
9
|
</el-col>
|
|
10
10
|
<el-col :span="8" :xs="16">
|
|
11
|
-
<el-form-item label="字段名" prop="columnName" :rules="$r(0,0,36)">
|
|
11
|
+
<el-form-item label="字段名" prop="columnName" :rules="$r(0, 0, 36)">
|
|
12
12
|
<el-input type="text" v-model="hdform.columnName"></el-input>
|
|
13
13
|
</el-form-item>
|
|
14
14
|
</el-col>
|
|
15
15
|
<el-col :span="8" :xs="16">
|
|
16
|
-
<el-form-item
|
|
16
|
+
<el-form-item
|
|
17
|
+
label="字段注解"
|
|
18
|
+
prop="columnComment"
|
|
19
|
+
:rules="$r(0, 0, 36)"
|
|
20
|
+
>
|
|
17
21
|
<el-input type="text" v-model="hdform.columnComment"></el-input>
|
|
18
22
|
</el-form-item>
|
|
19
23
|
</el-col>
|
|
20
24
|
<el-col :span="8" :xs="16">
|
|
21
|
-
<el-form-item
|
|
25
|
+
<el-form-item
|
|
26
|
+
label="字段类型"
|
|
27
|
+
prop="columnType"
|
|
28
|
+
:rules="$r(0, 0, 10)"
|
|
29
|
+
>
|
|
22
30
|
<el-input type="text" v-model="hdform.columnType"></el-input>
|
|
23
31
|
</el-form-item>
|
|
24
32
|
</el-col>
|
|
25
33
|
<el-col :span="8" :xs="16">
|
|
26
|
-
<el-form-item
|
|
34
|
+
<el-form-item
|
|
35
|
+
label="长度"
|
|
36
|
+
prop="columnLen"
|
|
37
|
+
:rules="$r(0, 'number', 0, 99999)"
|
|
38
|
+
>
|
|
27
39
|
<el-input type="number" v-model="hdform.columnLen"></el-input>
|
|
28
40
|
</el-form-item>
|
|
29
41
|
</el-col>
|
|
30
42
|
<el-col :span="8" :xs="16">
|
|
31
|
-
<el-form-item
|
|
43
|
+
<el-form-item
|
|
44
|
+
label="比例"
|
|
45
|
+
prop="columnScale"
|
|
46
|
+
:rules="$r(0, 'number', 0, 99999)"
|
|
47
|
+
>
|
|
32
48
|
<el-input type="number" v-model="hdform.columnScale"></el-input>
|
|
33
49
|
</el-form-item>
|
|
34
50
|
</el-col>
|
|
35
51
|
<el-col :span="8" :xs="16">
|
|
36
|
-
<el-form-item
|
|
52
|
+
<el-form-item
|
|
53
|
+
label="默认值"
|
|
54
|
+
prop="defaultValue"
|
|
55
|
+
:rules="$r(0, 0, 255)"
|
|
56
|
+
>
|
|
37
57
|
<el-input type="text" v-model="hdform.defaultValue"></el-input>
|
|
38
58
|
</el-form-item>
|
|
39
59
|
</el-col>
|
|
@@ -41,61 +61,68 @@
|
|
|
41
61
|
</el-form>
|
|
42
62
|
<div slot="footer" class="dialog-footer">
|
|
43
63
|
<el-button @click="visible = false">取 消</el-button>
|
|
44
|
-
<el-button type="primary" @click="submit" :loading="loading">
|
|
64
|
+
<el-button type="primary" @click="submit" :loading="loading">
|
|
65
|
+
确 定</el-button
|
|
66
|
+
>
|
|
45
67
|
</div>
|
|
46
68
|
</el-dialog>
|
|
47
|
-
|
|
48
69
|
</template>
|
|
49
70
|
|
|
50
71
|
<script>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
export default {
|
|
73
|
+
name: 'comexcolumnform',
|
|
74
|
+
data() {
|
|
75
|
+
return {
|
|
76
|
+
hdform: {},
|
|
77
|
+
visible: false,
|
|
78
|
+
tsLoading: false,
|
|
79
|
+
loading: false,
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
show(exColumnId) {
|
|
84
|
+
// 换为本表主键
|
|
85
|
+
//弹窗重复使用时,清除校验项目
|
|
86
|
+
if (this.$refs['hdform']) this.$refs['hdform'].resetFields()
|
|
87
|
+
this.visible = true
|
|
88
|
+
this.$http
|
|
89
|
+
.get(
|
|
90
|
+
'/webresources/login/tech/ComExColumn/findone?exColumnId=' +
|
|
91
|
+
exColumnId
|
|
92
|
+
)
|
|
93
|
+
.then((response) => {
|
|
94
|
+
const data = response.data
|
|
95
|
+
this.hdform = data
|
|
96
|
+
})
|
|
97
|
+
},
|
|
73
98
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
this.loading = true
|
|
81
|
-
this.$http.post('/webresources/login/tech/ComExColumn/saveone', this.hdform).then(response => {
|
|
82
|
-
this.loading = false
|
|
83
|
-
const data = response.data
|
|
84
|
-
this.$message({
|
|
85
|
-
type: data.code == '-1' ? 'error' : 'success',
|
|
86
|
-
message: data.message
|
|
87
|
-
})
|
|
88
|
-
if (data.code == '-1') {
|
|
89
|
-
return
|
|
90
|
-
}
|
|
91
|
-
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
92
|
-
this.visible = false
|
|
93
|
-
}).catch(() => {
|
|
94
|
-
this.loading = false
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
}
|
|
99
|
+
submit() {
|
|
100
|
+
// console.debug(this.hdform)
|
|
101
|
+
this.$refs['hdform'].validate((valid) => {
|
|
102
|
+
if (!valid) {
|
|
103
|
+
return false
|
|
98
104
|
}
|
|
99
|
-
|
|
105
|
+
this.loading = true
|
|
106
|
+
this.$http
|
|
107
|
+
.post('/webresources/login/tech/ComExColumn/saveone', this.hdform)
|
|
108
|
+
.then((response) => {
|
|
109
|
+
this.loading = false
|
|
110
|
+
const data = response.data
|
|
111
|
+
this.$message({
|
|
112
|
+
type: data.code == '-1' ? 'error' : 'success',
|
|
113
|
+
message: data.message,
|
|
114
|
+
})
|
|
115
|
+
if (data.code == '-1') {
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
119
|
+
this.visible = false
|
|
120
|
+
})
|
|
121
|
+
.catch(() => {
|
|
122
|
+
this.loading = false
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
}
|
|
100
128
|
</script>
|
|
101
|
-
|
|
@@ -8,24 +8,22 @@
|
|
|
8
8
|
</el-main>
|
|
9
9
|
</el-container>
|
|
10
10
|
</template>
|
|
11
|
-
<script>
|
|
12
|
-
import comexfieldsub from './comexfieldsub'
|
|
13
|
-
import comexcolumn from "./comexcolumn";
|
|
14
|
-
export default {
|
|
15
|
-
name: 'comexfield',
|
|
16
|
-
components: {comexcolumn, comexfieldsub },
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
11
|
|
|
22
|
-
|
|
12
|
+
<script>
|
|
13
|
+
import comexfieldsub from './comexfieldsub'
|
|
14
|
+
import comexcolumn from './comexcolumn'
|
|
15
|
+
export default {
|
|
16
|
+
name: 'comexfield',
|
|
17
|
+
components: { comexcolumn, comexfieldsub },
|
|
18
|
+
data() {
|
|
19
|
+
return {}
|
|
20
|
+
},
|
|
23
21
|
|
|
22
|
+
mounted() {},
|
|
23
|
+
methods: {
|
|
24
|
+
rowClick(row) {
|
|
25
|
+
this.$refs['comexfieldsub'].query(row.exColumnId)
|
|
24
26
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.$refs['comexfieldsub'].query(row.exColumnId)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
27
|
+
},
|
|
28
|
+
}
|
|
31
29
|
</script>
|
|
@@ -1,94 +1,112 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width=
|
|
2
|
+
<el-dialog title="编辑" :visible.sync="visible" width="60%" top="10vh">
|
|
3
3
|
<!--:hdform.sync 对应的form对象 formRef对应的是el-form的 ref="hdform"-->
|
|
4
|
-
<hd-form
|
|
5
|
-
|
|
4
|
+
<hd-form
|
|
5
|
+
@saveCall="saveCall"
|
|
6
|
+
@delCall="delCall"
|
|
7
|
+
label-width="100px"
|
|
8
|
+
:model.sync="hdform"
|
|
9
|
+
ref="hdform"
|
|
10
|
+
>
|
|
6
11
|
<el-row>
|
|
7
12
|
<el-col :span="8" :xs="16">
|
|
8
|
-
<el-form-item label
|
|
9
|
-
<el-input type="text" v-model="hdform.gridCode"
|
|
13
|
+
<el-form-item label="编码" prop="gridCode" :rules="$r(0, 0, 20)">
|
|
14
|
+
<el-input type="text" v-model="hdform.gridCode"></el-input>
|
|
10
15
|
</el-form-item>
|
|
11
16
|
</el-col>
|
|
12
17
|
<el-col :span="8" :xs="16">
|
|
13
|
-
<el-form-item label
|
|
14
|
-
<el-input type="text" v-model="hdform.useFlg"
|
|
18
|
+
<el-form-item label="是否使用" prop="useFlg" :rules="$r(0, 0, 1)">
|
|
19
|
+
<el-input type="text" v-model="hdform.useFlg"></el-input>
|
|
15
20
|
</el-form-item>
|
|
16
21
|
</el-col>
|
|
17
22
|
<el-col :span="8" :xs="16">
|
|
18
|
-
<el-form-item label
|
|
19
|
-
<el-input type="text" v-model="hdform.formWidth"
|
|
23
|
+
<el-form-item label="表达宽度" prop="formWidth" :rules="$r(0, 0, 22)">
|
|
24
|
+
<el-input type="text" v-model="hdform.formWidth"></el-input>
|
|
20
25
|
</el-form-item>
|
|
21
26
|
</el-col>
|
|
22
27
|
<el-col :span="8" :xs="16">
|
|
23
|
-
<el-form-item
|
|
24
|
-
|
|
28
|
+
<el-form-item
|
|
29
|
+
label="表单高度"
|
|
30
|
+
prop="formHeigth"
|
|
31
|
+
:rules="$r(0, 0, 22)"
|
|
32
|
+
>
|
|
33
|
+
<el-input type="text" v-model="hdform.formHeigth"></el-input>
|
|
25
34
|
</el-form-item>
|
|
26
35
|
</el-col>
|
|
27
36
|
<el-col :span="8" :xs="16">
|
|
28
|
-
<el-form-item
|
|
29
|
-
|
|
37
|
+
<el-form-item
|
|
38
|
+
label="列表默认宽度"
|
|
39
|
+
prop="gridWidth"
|
|
40
|
+
:rules="$r(0, 0, 22)"
|
|
41
|
+
>
|
|
42
|
+
<el-input type="text" v-model="hdform.gridWidth"></el-input>
|
|
30
43
|
</el-form-item>
|
|
31
44
|
</el-col>
|
|
32
45
|
<el-col :span="8" :xs="16">
|
|
33
|
-
<el-form-item
|
|
34
|
-
|
|
46
|
+
<el-form-item
|
|
47
|
+
label="默认值"
|
|
48
|
+
prop="defaultValue"
|
|
49
|
+
:rules="$r(0, 0, 255)"
|
|
50
|
+
>
|
|
51
|
+
<el-input type="text" v-model="hdform.defaultValue"></el-input>
|
|
35
52
|
</el-form-item>
|
|
36
53
|
</el-col>
|
|
37
54
|
<el-col :span="8" :xs="16">
|
|
38
|
-
<el-form-item label
|
|
39
|
-
<el-input type="text" v-model="hdform.placeHolder"
|
|
55
|
+
<el-form-item label="描述" prop="placeHolder" :rules="$r(0, 0, 255)">
|
|
56
|
+
<el-input type="text" v-model="hdform.placeHolder"></el-input>
|
|
40
57
|
</el-form-item>
|
|
41
58
|
</el-col>
|
|
42
59
|
<el-col :span="8" :xs="16">
|
|
43
|
-
<el-form-item label
|
|
44
|
-
<el-input type="text" v-model="hdform.rules"
|
|
60
|
+
<el-form-item label="规则" prop="rules" :rules="$r(0, 0, 255)">
|
|
61
|
+
<el-input type="text" v-model="hdform.rules"></el-input>
|
|
45
62
|
</el-form-item>
|
|
46
63
|
</el-col>
|
|
47
64
|
<el-col :span="8" :xs="16">
|
|
48
|
-
<el-form-item label
|
|
49
|
-
<el-input type="text" v-model="hdform.columnId"
|
|
65
|
+
<el-form-item label="对应列" prop="columnId" :rules="$r(0, 0, 36)">
|
|
66
|
+
<el-input type="text" v-model="hdform.columnId"></el-input>
|
|
50
67
|
</el-form-item>
|
|
51
68
|
</el-col>
|
|
52
69
|
</el-row>
|
|
53
70
|
</hd-form>
|
|
54
71
|
<div slot="footer" class="dialog-footer">
|
|
55
72
|
<hd-form-btn ref="hdformbtn" style="float: left"></hd-form-btn>
|
|
56
|
-
<el-button @click="visible = false">{{$t('取 消')}}</el-button>
|
|
73
|
+
<el-button @click="visible = false">{{ $t('取 消') }}</el-button>
|
|
57
74
|
</div>
|
|
58
75
|
</el-dialog>
|
|
59
76
|
</template>
|
|
60
77
|
|
|
61
78
|
<script>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
visible: false
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
props: {
|
|
73
|
-
hdQuery: Object
|
|
74
|
-
},
|
|
75
|
-
methods: {
|
|
76
|
-
show(row) { // 换为本表主键
|
|
77
|
-
this.visible = true
|
|
78
|
-
this.$nextTick(() => {
|
|
79
|
-
this.$refs.hdform.show(row, this.$vnode.context.$refs.grid)// form
|
|
80
|
-
this.$refs.hdformbtn.show(this.$vnode.context.$refs.grid, this.$refs.hdform)// 按钮
|
|
81
|
-
})
|
|
82
|
-
},
|
|
83
|
-
saveCall(row, isAdd) {
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
delCall(row) {
|
|
87
|
-
if (!row.orgnId) { // 新增就删除
|
|
88
|
-
return false
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
}
|
|
79
|
+
export default {
|
|
80
|
+
name: 'comexfieldform',
|
|
81
|
+
components: {},
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
hdform: {},
|
|
85
|
+
visible: false,
|
|
92
86
|
}
|
|
87
|
+
},
|
|
88
|
+
props: {
|
|
89
|
+
hdQuery: Object,
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
show(row) {
|
|
93
|
+
// 换为本表主键
|
|
94
|
+
this.visible = true
|
|
95
|
+
this.$nextTick(() => {
|
|
96
|
+
this.$refs.hdform.show(row, this.$vnode.context.$refs.grid) // form
|
|
97
|
+
this.$refs.hdformbtn.show(
|
|
98
|
+
this.$vnode.context.$refs.grid,
|
|
99
|
+
this.$refs.hdform
|
|
100
|
+
) // 按钮
|
|
101
|
+
})
|
|
102
|
+
},
|
|
103
|
+
saveCall(row, isAdd) {},
|
|
104
|
+
delCall(row) {
|
|
105
|
+
if (!row.orgnId) {
|
|
106
|
+
// 新增就删除
|
|
107
|
+
return false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
}
|
|
93
112
|
</script>
|
|
94
|
-
|