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,22 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog :visible.sync="visible" title="编辑" width=
|
|
2
|
+
<el-dialog :visible.sync="visible" title="编辑" width="60%">
|
|
3
3
|
<el-form :model="hdform" label-width="100px" ref="hdform">
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="8" :xs="16">
|
|
6
|
-
<el-form-item :rules="$r(1,0,36)" label="版本号" prop="versionNo">
|
|
6
|
+
<el-form-item :rules="$r(1, 0, 36)" label="版本号" prop="versionNo">
|
|
7
7
|
<el-input :clearable="false" type="text" v-model="hdform.versionNo">
|
|
8
|
-
<hd-btn
|
|
8
|
+
<hd-btn
|
|
9
|
+
hint="版本号使用字符串排序,请确保版本号是最大的,并且上传的apk的版本号必须和本版号一致"
|
|
10
|
+
icon="el-icon-question"
|
|
11
|
+
slot="suffix"
|
|
12
|
+
></hd-btn>
|
|
9
13
|
</el-input>
|
|
10
14
|
</el-form-item>
|
|
11
15
|
</el-col>
|
|
12
16
|
<el-col :span="8" :xs="16">
|
|
13
|
-
<el-form-item :rules="$r(0,0,1)" label="强制升级" prop="isMust">
|
|
14
|
-
<el-switch
|
|
17
|
+
<el-form-item :rules="$r(0, 0, 1)" label="强制升级" prop="isMust">
|
|
18
|
+
<el-switch
|
|
19
|
+
active-value="1"
|
|
20
|
+
inactive-value="0"
|
|
21
|
+
v-model="hdform.isMust"
|
|
22
|
+
></el-switch>
|
|
15
23
|
</el-form-item>
|
|
16
24
|
</el-col>
|
|
17
25
|
<el-col :span="22" :xs="22">
|
|
18
|
-
<el-form-item
|
|
19
|
-
|
|
26
|
+
<el-form-item
|
|
27
|
+
:rules="$r(0, 0, 2048)"
|
|
28
|
+
label="更新信息(提示用户)"
|
|
29
|
+
prop="updateMsg"
|
|
30
|
+
>
|
|
31
|
+
<el-input
|
|
32
|
+
:rows="6"
|
|
33
|
+
type="textarea"
|
|
34
|
+
v-model="hdform.updateMsg"
|
|
35
|
+
></el-input>
|
|
20
36
|
</el-form-item>
|
|
21
37
|
</el-col>
|
|
22
38
|
<!--<el-col :span="8" :xs="16">-->
|
|
@@ -25,66 +41,80 @@
|
|
|
25
41
|
<!--</el-form-item>-->
|
|
26
42
|
<!--</el-col>-->
|
|
27
43
|
<el-col :span="22" :xs="22">
|
|
28
|
-
<el-form-item :rules="$r(0,0,512)" label="备注" prop="remark">
|
|
29
|
-
<el-input
|
|
44
|
+
<el-form-item :rules="$r(0, 0, 512)" label="备注" prop="remark">
|
|
45
|
+
<el-input
|
|
46
|
+
:rows="6"
|
|
47
|
+
type="textarea"
|
|
48
|
+
v-model="hdform.remark"
|
|
49
|
+
></el-input>
|
|
30
50
|
</el-form-item>
|
|
31
51
|
</el-col>
|
|
32
52
|
</el-row>
|
|
33
53
|
</el-form>
|
|
34
54
|
<div class="dialog-footer" slot="footer">
|
|
35
|
-
<el-button @click="visible = false">{{$t('取 消')}}</el-button>
|
|
36
|
-
<el-button :loading="loading" @click="submit" type="primary">
|
|
55
|
+
<el-button @click="visible = false">{{ $t('取 消') }}</el-button>
|
|
56
|
+
<el-button :loading="loading" @click="submit" type="primary">
|
|
57
|
+
{{ $t('确 定') }}</el-button
|
|
58
|
+
>
|
|
37
59
|
</div>
|
|
38
60
|
</el-dialog>
|
|
39
|
-
|
|
40
61
|
</template>
|
|
41
62
|
|
|
42
63
|
<script>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
export default {
|
|
65
|
+
name: 'authmobileupdateform',
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
hdform: {},
|
|
69
|
+
visible: false,
|
|
70
|
+
tsLoading: false,
|
|
71
|
+
loading: false,
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
show(updateId) {
|
|
76
|
+
// 换为本表主键
|
|
77
|
+
//弹窗重复使用时,清除校验项目
|
|
78
|
+
if (this.$refs['hdform']) this.$refs['hdform'].resetFields()
|
|
79
|
+
this.visible = true
|
|
80
|
+
this.$http
|
|
81
|
+
.get(
|
|
82
|
+
'/webresources/login/mobile/AuthMobileUpdate/findone?updateId=' +
|
|
83
|
+
updateId
|
|
84
|
+
)
|
|
85
|
+
.then((response) => {
|
|
61
86
|
const data = response.data
|
|
62
87
|
this.hdform = data
|
|
63
88
|
})
|
|
64
|
-
|
|
89
|
+
},
|
|
65
90
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
submit() {
|
|
92
|
+
// console.debug(this.hdform)
|
|
93
|
+
this.$refs['hdform'].validate((valid) => {
|
|
94
|
+
if (!valid) {
|
|
95
|
+
return false
|
|
96
|
+
}
|
|
97
|
+
this.loading = true
|
|
98
|
+
this.$http
|
|
99
|
+
.post(
|
|
100
|
+
'/webresources/login/mobile/AuthMobileUpdate/saveone',
|
|
101
|
+
this.hdform
|
|
102
|
+
)
|
|
103
|
+
.then((response) => {
|
|
74
104
|
this.loading = false
|
|
75
105
|
const data = response.data
|
|
76
106
|
this.$message({
|
|
77
107
|
type: 'success',
|
|
78
|
-
message: this.$t('保存成功,请上传app')
|
|
108
|
+
message: this.$t('保存成功,请上传app'),
|
|
79
109
|
})
|
|
80
110
|
this.$emit('save-ok', data.data) // 主页面调用弹窗时添加
|
|
81
111
|
this.visible = false
|
|
82
|
-
})
|
|
112
|
+
})
|
|
113
|
+
.catch(() => {
|
|
83
114
|
this.loading = false
|
|
84
115
|
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
}
|
|
89
120
|
</script>
|
|
90
|
-
|
|
@@ -1,96 +1,188 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
ref="grid"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
url="/webresources/login/privilege/AuthOrgn"
|
|
8
|
+
:removeUrl="removeUrl"
|
|
9
|
+
:defaultSort="{ prop: 'sorter', order: 'ascending' }"
|
|
10
|
+
readForm
|
|
11
|
+
genChart
|
|
12
|
+
>
|
|
7
13
|
<div class="filter-container" slot="query">
|
|
8
|
-
<el-input
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
<el-input
|
|
15
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
16
|
+
style="width: 200px"
|
|
17
|
+
class="filter-item"
|
|
18
|
+
:placeholder="$t('名称')"
|
|
19
|
+
v-model="hdQuery.query.anyQuery"
|
|
20
|
+
>
|
|
11
21
|
</el-input>
|
|
12
|
-
<el-button @click="$refs.grid.doQuery()" keyType="query">{{
|
|
13
|
-
|
|
22
|
+
<el-button @click="$refs.grid.doQuery()" keyType="query">{{
|
|
23
|
+
$t('搜索')
|
|
24
|
+
}}</el-button>
|
|
25
|
+
<el-button
|
|
26
|
+
class="filter-item"
|
|
27
|
+
@click="doEdit('')"
|
|
28
|
+
type="primary"
|
|
29
|
+
keyType="add"
|
|
30
|
+
>{{ $t('新增') }}
|
|
14
31
|
</el-button>
|
|
15
|
-
<el-button
|
|
32
|
+
<el-button
|
|
33
|
+
class="filter-item"
|
|
34
|
+
@click="$refs.grid.doRemoveAll()"
|
|
35
|
+
type="danger"
|
|
36
|
+
keyType="del"
|
|
37
|
+
>{{ $t('删除') }}
|
|
16
38
|
</el-button>
|
|
17
39
|
</div>
|
|
18
|
-
<el-table-column
|
|
40
|
+
<el-table-column
|
|
41
|
+
width="100px"
|
|
42
|
+
align="center"
|
|
43
|
+
label="操作"
|
|
44
|
+
fixed="right"
|
|
45
|
+
>
|
|
19
46
|
<template slot-scope="scope">
|
|
20
|
-
<hd-btn
|
|
21
|
-
|
|
47
|
+
<hd-btn
|
|
48
|
+
icon="el-icon-edit"
|
|
49
|
+
hint="编辑"
|
|
50
|
+
@click.stop="doEdit(scope.row)"
|
|
51
|
+
></hd-btn>
|
|
52
|
+
<hd-btn
|
|
53
|
+
icon="el-icon-delete"
|
|
54
|
+
hint="删除"
|
|
55
|
+
@click.stop="doRemove(scope.row)"
|
|
56
|
+
></hd-btn>
|
|
22
57
|
</template>
|
|
23
58
|
</el-table-column>
|
|
24
59
|
|
|
25
|
-
<el-table-column
|
|
60
|
+
<el-table-column
|
|
61
|
+
width="170px"
|
|
62
|
+
align="left"
|
|
63
|
+
header-align="center"
|
|
64
|
+
label="名称"
|
|
65
|
+
prop="name"
|
|
66
|
+
sortable
|
|
67
|
+
>
|
|
26
68
|
</el-table-column>
|
|
27
|
-
<el-table-column
|
|
69
|
+
<el-table-column
|
|
70
|
+
width="170px"
|
|
71
|
+
align="left"
|
|
72
|
+
header-align="center"
|
|
73
|
+
label="编码"
|
|
74
|
+
prop="orgnCod"
|
|
75
|
+
sortable
|
|
76
|
+
>
|
|
28
77
|
</el-table-column>
|
|
29
|
-
<el-table-column
|
|
78
|
+
<el-table-column
|
|
79
|
+
width="100px"
|
|
80
|
+
align="left"
|
|
81
|
+
header-align="center"
|
|
82
|
+
label="英文名"
|
|
83
|
+
prop="enName"
|
|
84
|
+
sortable
|
|
85
|
+
>
|
|
30
86
|
</el-table-column>
|
|
31
|
-
<el-table-column
|
|
87
|
+
<el-table-column
|
|
88
|
+
width="120px"
|
|
89
|
+
align="left"
|
|
90
|
+
header-align="center"
|
|
91
|
+
label="简称"
|
|
92
|
+
prop="shortNam"
|
|
93
|
+
sortable
|
|
94
|
+
>
|
|
32
95
|
</el-table-column>
|
|
33
96
|
|
|
34
|
-
<el-table-column
|
|
35
|
-
|
|
97
|
+
<el-table-column
|
|
98
|
+
width="100px"
|
|
99
|
+
align="left"
|
|
100
|
+
header-align="center"
|
|
101
|
+
label="类型"
|
|
102
|
+
prop="orgnTyp"
|
|
103
|
+
sortable
|
|
104
|
+
input="hd-drop"
|
|
105
|
+
:inputProp="{ field: 'ORGN_TYP' }"
|
|
106
|
+
:inputFormat="(d, row) => row.orgnTypStr"
|
|
107
|
+
>
|
|
36
108
|
</el-table-column>
|
|
37
|
-
<el-table-column
|
|
109
|
+
<el-table-column
|
|
110
|
+
width="150px"
|
|
111
|
+
align="left"
|
|
112
|
+
header-align="center"
|
|
113
|
+
label="描述"
|
|
114
|
+
prop="description"
|
|
115
|
+
sortable
|
|
116
|
+
>
|
|
38
117
|
</el-table-column>
|
|
39
|
-
<el-table-column
|
|
118
|
+
<el-table-column
|
|
119
|
+
width="60px"
|
|
120
|
+
align="left"
|
|
121
|
+
header-align="center"
|
|
122
|
+
label="排序"
|
|
123
|
+
prop="sorter"
|
|
124
|
+
chartNum
|
|
125
|
+
sortable
|
|
126
|
+
>
|
|
40
127
|
</el-table-column>
|
|
41
|
-
|
|
42
128
|
</hd-com-grid>
|
|
43
129
|
</el-main>
|
|
44
|
-
<authorgnform
|
|
130
|
+
<authorgnform
|
|
131
|
+
ref="authorgnform"
|
|
132
|
+
@change="change"
|
|
133
|
+
:hdQuery="hdQuery"
|
|
134
|
+
></authorgnform>
|
|
45
135
|
</el-container>
|
|
46
136
|
</template>
|
|
47
|
-
<script>
|
|
48
|
-
import authorgnform from './authorgnform'
|
|
49
137
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
components: {authorgnform},
|
|
53
|
-
data() {
|
|
54
|
-
return {
|
|
55
|
-
removeUrl: '',
|
|
56
|
-
parentId: '',
|
|
57
|
-
hdQuery: new HdQuery(this)
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
mounted() {
|
|
138
|
+
<script>
|
|
139
|
+
import authorgnform from './authorgnform'
|
|
61
140
|
|
|
141
|
+
export default {
|
|
142
|
+
name: 'authOrgn',
|
|
143
|
+
components: { authorgnform },
|
|
144
|
+
data() {
|
|
145
|
+
return {
|
|
146
|
+
removeUrl: '',
|
|
147
|
+
parentId: '',
|
|
148
|
+
hdQuery: new HdQuery(this),
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
mounted() {},
|
|
152
|
+
methods: {
|
|
153
|
+
queryOrg(parentId) {
|
|
154
|
+
this.parentId = parentId
|
|
155
|
+
this.hdQuery.query.parentId = parentId
|
|
156
|
+
this.$refs.grid.doQuery()
|
|
62
157
|
},
|
|
63
|
-
methods: {
|
|
64
|
-
queryOrg(parentId) {
|
|
65
|
-
this.parentId = parentId
|
|
66
|
-
this.hdQuery.query.parentId = parentId
|
|
67
|
-
this.$refs.grid.doQuery()
|
|
68
|
-
},
|
|
69
158
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
this.$refs['authorgnform'].show(row, this.parentId)
|
|
79
|
-
},
|
|
80
|
-
doRemove(row) {
|
|
81
|
-
// 为了兼容easyui,不能传对象到后台删除
|
|
82
|
-
this.removeUrl = '/webresources/login/privilege/AuthOrgn/remove?orgnId=' + row.orgnId
|
|
83
|
-
this.$refs.grid.doRemove(row).then(() => {
|
|
84
|
-
this.$emit('change', {
|
|
85
|
-
type: 'remove',
|
|
86
|
-
parentId: this.parentId,
|
|
87
|
-
data: {id: row.orgnId}
|
|
88
|
-
})
|
|
159
|
+
doEdit(row) {
|
|
160
|
+
// 增加或编辑
|
|
161
|
+
if (!row && !this.parentId) {
|
|
162
|
+
// 新增
|
|
163
|
+
this.$message({
|
|
164
|
+
type: 'error',
|
|
165
|
+
message: this.$t('未选择数据'),
|
|
89
166
|
})
|
|
90
|
-
|
|
91
|
-
change: function (data) {
|
|
92
|
-
this.$emit('change', data)
|
|
167
|
+
return false
|
|
93
168
|
}
|
|
94
|
-
|
|
95
|
-
|
|
169
|
+
this.$refs['authorgnform'].show(row, this.parentId)
|
|
170
|
+
},
|
|
171
|
+
doRemove(row) {
|
|
172
|
+
// 为了兼容easyui,不能传对象到后台删除
|
|
173
|
+
this.removeUrl =
|
|
174
|
+
'/webresources/login/privilege/AuthOrgn/remove?orgnId=' + row.orgnId
|
|
175
|
+
this.$refs.grid.doRemove(row).then(() => {
|
|
176
|
+
this.$emit('change', {
|
|
177
|
+
type: 'remove',
|
|
178
|
+
parentId: this.parentId,
|
|
179
|
+
data: { id: row.orgnId },
|
|
180
|
+
})
|
|
181
|
+
})
|
|
182
|
+
},
|
|
183
|
+
change: function (data) {
|
|
184
|
+
this.$emit('change', data)
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
}
|
|
96
188
|
</script>
|
|
@@ -1,58 +1,64 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width=
|
|
2
|
+
<el-dialog title="编辑" :visible.sync="visible" width="65%" top="10vh">
|
|
3
3
|
<!--:hdform.sync 对应的form对象 formRef对应的是el-form的 ref="hdform"-->
|
|
4
|
-
<hd-form
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<hd-form
|
|
5
|
+
saveoneUrl="webresources/login/privilege/AuthOrgn/save"
|
|
6
|
+
removeUrl="webresources/login/privilege/AuthOrgn/entity/remove"
|
|
7
|
+
:findoneUrl="findoneUrl"
|
|
8
|
+
noCopy="orgnId"
|
|
9
|
+
@saveCall="saveCall"
|
|
10
|
+
@delCall="delCall"
|
|
11
|
+
label-width="100px"
|
|
12
|
+
:model.sync="hdform"
|
|
13
|
+
ref="hdform"
|
|
14
|
+
>
|
|
9
15
|
<el-row>
|
|
10
16
|
<el-col :span="8" :xs="16">
|
|
11
|
-
<el-form-item label="组织名称" prop="name"
|
|
12
|
-
:rules="$r(1,0,200)">
|
|
17
|
+
<el-form-item label="组织名称" prop="name" :rules="$r(1, 0, 200)">
|
|
13
18
|
<el-input type="text" v-model="hdform.name"></el-input>
|
|
14
19
|
</el-form-item>
|
|
15
20
|
</el-col>
|
|
16
21
|
<el-col :span="8" :xs="16">
|
|
17
|
-
<el-form-item label="组织编码" prop="orgnCod"
|
|
18
|
-
:rules="$r(0,0,300)">
|
|
22
|
+
<el-form-item label="组织编码" prop="orgnCod" :rules="$r(0, 0, 300)">
|
|
19
23
|
<el-input type="text" v-model="hdform.orgnCod"></el-input>
|
|
20
24
|
</el-form-item>
|
|
21
25
|
</el-col>
|
|
22
26
|
<el-col :span="8" :xs="16">
|
|
23
|
-
<el-form-item label="英文名" prop="enName"
|
|
24
|
-
:rules="$r(0,0,200)">
|
|
27
|
+
<el-form-item label="英文名" prop="enName" :rules="$r(0, 0, 200)">
|
|
25
28
|
<el-input type="text" v-model="hdform.enName"></el-input>
|
|
26
29
|
</el-form-item>
|
|
27
30
|
</el-col>
|
|
28
31
|
<el-col :span="8" :xs="16">
|
|
29
|
-
<el-form-item label="组织简称" prop="shortNam"
|
|
30
|
-
:rules="$r(0,0,100)">
|
|
32
|
+
<el-form-item label="组织简称" prop="shortNam" :rules="$r(0, 0, 100)">
|
|
31
33
|
<el-input type="text" v-model="hdform.shortNam"></el-input>
|
|
32
34
|
</el-form-item>
|
|
33
35
|
</el-col>
|
|
34
36
|
<el-col :span="8" :xs="16">
|
|
35
|
-
<el-form-item label="组织类型" prop="orgnTyp"
|
|
36
|
-
:rules="$r(1)">
|
|
37
|
+
<el-form-item label="组织类型" prop="orgnTyp" :rules="$r(1)">
|
|
37
38
|
<hd-drop field="ORGN_TYP" v-model="hdform.orgnTyp"></hd-drop>
|
|
38
39
|
</el-form-item>
|
|
39
40
|
</el-col>
|
|
40
41
|
<el-col :span="8" :xs="16">
|
|
41
|
-
<el-form-item label="上级部门" prop="parentId"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
<el-form-item label="上级部门" prop="parentId" :rules="$r(1)">
|
|
43
|
+
<orgnselect
|
|
44
|
+
style="width: 100%"
|
|
45
|
+
:txtVal.sync="hdform.parentName"
|
|
46
|
+
:idVal.sync="hdform.parentId"
|
|
47
|
+
></orgnselect>
|
|
45
48
|
</el-form-item>
|
|
46
49
|
</el-col>
|
|
47
50
|
<el-col :span="8" :xs="16">
|
|
48
|
-
<el-form-item label="描述" prop="description"
|
|
49
|
-
:rules="$r(0,0,255)">
|
|
51
|
+
<el-form-item label="描述" prop="description" :rules="$r(0, 0, 255)">
|
|
50
52
|
<el-input type="text" v-model="hdform.description"></el-input>
|
|
51
53
|
</el-form-item>
|
|
52
54
|
</el-col>
|
|
53
55
|
|
|
54
56
|
<el-col :span="8" :xs="16">
|
|
55
|
-
<el-form-item
|
|
57
|
+
<el-form-item
|
|
58
|
+
label="排序"
|
|
59
|
+
prop="sorter"
|
|
60
|
+
:rules="$r(0, 0, 99999, 'number', 0)"
|
|
61
|
+
>
|
|
56
62
|
<hd-num v-model="hdform.sorter"></hd-num>
|
|
57
63
|
</el-form-item>
|
|
58
64
|
</el-col>
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
</hd-form>
|
|
81
87
|
<div slot="footer" class="dialog-footer">
|
|
82
88
|
<hd-form-btn ref="hdformbtn" style="float: left"></hd-form-btn>
|
|
83
|
-
<el-button @click="visible = false">{{$t('取 消')}}</el-button>
|
|
89
|
+
<el-button @click="visible = false">{{ $t('取 消') }}</el-button>
|
|
84
90
|
</div>
|
|
85
91
|
</el-dialog>
|
|
86
92
|
</template>
|
|
@@ -94,52 +100,58 @@ export default {
|
|
|
94
100
|
name: 'authorgnform',
|
|
95
101
|
components: {
|
|
96
102
|
HdFormBtn,
|
|
97
|
-
orgnselect,
|
|
103
|
+
orgnselect,
|
|
104
|
+
orgTree,
|
|
98
105
|
},
|
|
99
|
-
data: function() {
|
|
106
|
+
data: function () {
|
|
100
107
|
return {
|
|
101
108
|
hdform: {},
|
|
102
109
|
parentId: '',
|
|
103
110
|
findoneUrl: '',
|
|
104
|
-
visible: false
|
|
111
|
+
visible: false,
|
|
105
112
|
}
|
|
106
113
|
},
|
|
107
114
|
props: {
|
|
108
|
-
hdQuery: Object
|
|
115
|
+
hdQuery: Object,
|
|
109
116
|
},
|
|
110
117
|
methods: {
|
|
111
|
-
show(row, parentId) {
|
|
118
|
+
show(row, parentId) {
|
|
119
|
+
// 换为本表主键
|
|
112
120
|
this.parentId = parentId
|
|
113
121
|
this.hdform.parentId = parentId
|
|
114
122
|
this.visible = true
|
|
115
|
-
this.findoneUrl =
|
|
123
|
+
this.findoneUrl =
|
|
124
|
+
'webresources/login/privilege/AuthOrgn/findone?parentId=' + parentId
|
|
116
125
|
this.$nextTick(() => {
|
|
117
|
-
this.$refs.hdform.show(row, this.$vnode.context.$refs.grid)// form
|
|
118
|
-
this.$refs.hdformbtn.show(
|
|
126
|
+
this.$refs.hdform.show(row, this.$vnode.context.$refs.grid) // form
|
|
127
|
+
this.$refs.hdformbtn.show(
|
|
128
|
+
this.$vnode.context.$refs.grid,
|
|
129
|
+
this.$refs.hdform
|
|
130
|
+
) // 按钮
|
|
119
131
|
})
|
|
120
132
|
},
|
|
121
133
|
saveCall(row, isAdd) {
|
|
122
134
|
this.$emit('change', {
|
|
123
135
|
type: isAdd ? 'add' : 'edit',
|
|
124
136
|
parentId: row.parentId,
|
|
125
|
-
data: { id: row.orgnId, text: row.name }
|
|
137
|
+
data: { id: row.orgnId, text: row.name },
|
|
126
138
|
})
|
|
127
139
|
},
|
|
128
140
|
delCall(row) {
|
|
129
|
-
if (!row.orgnId) {
|
|
141
|
+
if (!row.orgnId) {
|
|
142
|
+
// 新增就删除
|
|
130
143
|
return false
|
|
131
144
|
}
|
|
132
145
|
this.$emit('change', {
|
|
133
146
|
type: 'remove',
|
|
134
147
|
parentId: this.parentId,
|
|
135
|
-
data: { id: row.orgnId }
|
|
148
|
+
data: { id: row.orgnId },
|
|
136
149
|
})
|
|
137
150
|
},
|
|
138
151
|
handleNodeClick(data) {
|
|
139
152
|
// this.$emit('org-node-click', data)
|
|
140
153
|
// this.currentNodeData = data
|
|
141
|
-
}
|
|
142
|
-
}
|
|
154
|
+
},
|
|
155
|
+
},
|
|
143
156
|
}
|
|
144
157
|
</script>
|
|
145
|
-
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import orgTree from './orgTree'
|
|
14
|
-
import authOrgn from './authOrgn'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'orgDept',
|
|
18
|
-
components: {
|
|
19
|
-
orgTree,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<el-container>
|
|
3
|
+
<el-aside>
|
|
4
|
+
<orgTree ref="orgTree" @org-node-click="query"></orgTree>
|
|
5
|
+
</el-aside>
|
|
6
|
+
<el-main>
|
|
7
|
+
<authOrgn ref="authOrgn" @change="change"></authOrgn>
|
|
8
|
+
</el-main>
|
|
9
|
+
</el-container>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import orgTree from './orgTree'
|
|
14
|
+
import authOrgn from './authOrgn'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'orgDept',
|
|
18
|
+
components: {
|
|
19
|
+
orgTree,
|
|
20
|
+
authOrgn,
|
|
21
|
+
},
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
parentId: '0',
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
query: function (data) {
|
|
29
|
+
this.$refs['authOrgn'].queryOrg(data.id)
|
|
30
|
+
this.parentId = data.id
|
|
31
|
+
},
|
|
32
|
+
change: function (data) {
|
|
33
|
+
// console.log('change', data)
|
|
34
|
+
this.$refs['orgTree'].refresh(data)
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
</script>
|