hd-idevvue3 3.0.3 → 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 +3 -1
- 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,7 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-aside style="border-right: 1px solid #eee" width="260px">
|
|
4
|
-
<hd-tree
|
|
4
|
+
<hd-tree
|
|
5
|
+
:data="data"
|
|
6
|
+
@node-click="handleNodeClick"
|
|
7
|
+
node-key="id"
|
|
8
|
+
></hd-tree>
|
|
5
9
|
</el-aside>
|
|
6
10
|
<el-main>
|
|
7
11
|
<el-tabs v-model="activeTab">
|
|
@@ -15,42 +19,45 @@
|
|
|
15
19
|
</el-main>
|
|
16
20
|
</el-container>
|
|
17
21
|
</template>
|
|
18
|
-
<script>
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
<script>
|
|
24
|
+
import userlist from './userlist'
|
|
25
|
+
import rolelist from './rolelist'
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
export default {
|
|
28
|
+
components: {
|
|
29
|
+
rolelist,
|
|
30
|
+
userlist,
|
|
31
|
+
},
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
data: [],
|
|
35
|
+
hdQuery: new HdQuery(this),
|
|
36
|
+
activeTab: 'role',
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
mounted() {
|
|
40
|
+
this.doQuery()
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
doQuery() {
|
|
44
|
+
this.$http
|
|
45
|
+
.post('/webresources/login/privilege/AuthPrivilege/getAllTree')
|
|
46
|
+
.then((response) => {
|
|
40
47
|
this.data = response.data
|
|
41
48
|
})
|
|
42
|
-
},
|
|
43
|
-
handleNodeClick(obj) {
|
|
44
|
-
if(!obj.url) {
|
|
45
|
-
this.$refs.userlist.query('xxx');
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if(this.activeTab === 'role') {
|
|
49
|
-
this.$refs.rolelist.query(obj.id);
|
|
50
|
-
} else if(this.activeTab === 'user') {
|
|
51
|
-
this.$refs.userlist.query(obj.id);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
49
|
},
|
|
55
|
-
|
|
50
|
+
handleNodeClick(obj) {
|
|
51
|
+
if (!obj.url) {
|
|
52
|
+
this.$refs.userlist.query('xxx')
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
if (this.activeTab === 'role') {
|
|
56
|
+
this.$refs.rolelist.query(obj.id)
|
|
57
|
+
} else if (this.activeTab === 'user') {
|
|
58
|
+
this.$refs.userlist.query(obj.id)
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
}
|
|
56
63
|
</script>
|
|
@@ -1,47 +1,92 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<hd-com-grid
|
|
2
|
+
<hd-com-grid
|
|
3
|
+
ref="grid"
|
|
4
|
+
:hdQuery="hdQuery"
|
|
5
|
+
findUrl="/webresources/login/privilege/AuthPrivilege/role/find"
|
|
6
|
+
notInit
|
|
7
|
+
>
|
|
3
8
|
<div class="filter-container" slot="query">
|
|
4
|
-
<el-input
|
|
5
|
-
|
|
9
|
+
<el-input
|
|
10
|
+
@keyup.enter.native="doQuery"
|
|
11
|
+
style="width: 120px"
|
|
12
|
+
class="filter-item"
|
|
13
|
+
:placeholder="$t('名称')"
|
|
14
|
+
v-model="hdQuery.query.name"
|
|
15
|
+
>
|
|
6
16
|
</el-input>
|
|
7
|
-
<orgnselect
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
<orgnselect
|
|
18
|
+
style="width: 150px; display: inline-block"
|
|
19
|
+
:txtVal.sync="hdQuery.query.orgnName"
|
|
20
|
+
:idVal.sync="hdQuery.query.orgnId"
|
|
21
|
+
class="filter-item"
|
|
22
|
+
:placeholder="$t('选择部门')"
|
|
23
|
+
></orgnselect>
|
|
24
|
+
<el-button @click="doQuery" keyType="query" class="filter-item">{{
|
|
25
|
+
$t('搜索')
|
|
26
|
+
}}</el-button>
|
|
10
27
|
</div>
|
|
11
|
-
<el-table-column
|
|
28
|
+
<el-table-column
|
|
29
|
+
width="120px"
|
|
30
|
+
align="left"
|
|
31
|
+
header-align="center"
|
|
32
|
+
label="名称"
|
|
33
|
+
prop="name"
|
|
34
|
+
sortable
|
|
35
|
+
>
|
|
12
36
|
</el-table-column>
|
|
13
|
-
<el-table-column
|
|
37
|
+
<el-table-column
|
|
38
|
+
width="170px"
|
|
39
|
+
align="left"
|
|
40
|
+
header-align="center"
|
|
41
|
+
label="所属部门"
|
|
42
|
+
prop="orgnStr"
|
|
43
|
+
noEdit
|
|
44
|
+
>
|
|
14
45
|
</el-table-column>
|
|
15
|
-
<el-table-column
|
|
46
|
+
<el-table-column
|
|
47
|
+
width="150px"
|
|
48
|
+
align="left"
|
|
49
|
+
header-align="center"
|
|
50
|
+
label="描述"
|
|
51
|
+
prop="description"
|
|
52
|
+
>
|
|
16
53
|
</el-table-column>
|
|
17
|
-
<el-table-column
|
|
18
|
-
|
|
19
|
-
|
|
54
|
+
<el-table-column
|
|
55
|
+
width="100px"
|
|
56
|
+
align="center"
|
|
57
|
+
label="管理员"
|
|
58
|
+
prop="isAdmin"
|
|
59
|
+
input="el-switch"
|
|
60
|
+
v-if="$store.state.user.isAdmin"
|
|
61
|
+
:inputProp="{ activeValue: '1', inactiveValue: '0' }"
|
|
62
|
+
:inputFormat="$ckFt"
|
|
63
|
+
sortable
|
|
64
|
+
>
|
|
20
65
|
</el-table-column>
|
|
21
66
|
</hd-com-grid>
|
|
22
67
|
</template>
|
|
68
|
+
|
|
23
69
|
<script>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
70
|
+
import orgnselect from '../orgDept/orgnselect'
|
|
71
|
+
export default {
|
|
72
|
+
name: 'rolelist',
|
|
73
|
+
components: {
|
|
74
|
+
orgnselect,
|
|
75
|
+
},
|
|
76
|
+
data: function () {
|
|
77
|
+
return {
|
|
78
|
+
hdQuery: new HdQuery(this),
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
mounted() {},
|
|
82
|
+
methods: {
|
|
83
|
+
query(p) {
|
|
84
|
+
this.hdQuery.query.privilegeId = p
|
|
85
|
+
this.doQuery()
|
|
34
86
|
},
|
|
35
|
-
|
|
87
|
+
doQuery() {
|
|
88
|
+
this.$refs.grid.doQuery()
|
|
36
89
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.hdQuery.query.privilegeId = p;
|
|
40
|
-
this.doQuery();
|
|
41
|
-
},
|
|
42
|
-
doQuery() {
|
|
43
|
-
this.$refs.grid.doQuery()
|
|
44
|
-
},
|
|
45
|
-
}
|
|
46
|
-
}
|
|
90
|
+
},
|
|
91
|
+
}
|
|
47
92
|
</script>
|
|
@@ -1,49 +1,92 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<hd-com-grid
|
|
2
|
+
<hd-com-grid
|
|
3
|
+
ref="grid"
|
|
4
|
+
:hdQuery="hdQuery"
|
|
5
|
+
findUrl="/webresources/login/privilege/AuthPrivilege/user/find"
|
|
6
|
+
notInit
|
|
7
|
+
>
|
|
3
8
|
<div class="filter-container" slot="query">
|
|
4
|
-
<el-input
|
|
5
|
-
|
|
9
|
+
<el-input
|
|
10
|
+
@keyup.enter.native="doQuery"
|
|
11
|
+
style="width: 120px"
|
|
12
|
+
class="filter-item"
|
|
13
|
+
:placeholder="$t('名称')"
|
|
14
|
+
v-model="hdQuery.query.name"
|
|
15
|
+
>
|
|
6
16
|
</el-input>
|
|
7
|
-
<orgnselect
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
<orgnselect
|
|
18
|
+
style="width: 150px; display: inline-block"
|
|
19
|
+
:txtVal.sync="hdQuery.query.orgnName"
|
|
20
|
+
:idVal.sync="hdQuery.query.orgnId"
|
|
21
|
+
class="filter-item"
|
|
22
|
+
:placeholder="$t('选择部门')"
|
|
23
|
+
></orgnselect>
|
|
24
|
+
<el-button @click="doQuery" keyType="query" class="filter-item">{{
|
|
25
|
+
$t('搜索')
|
|
26
|
+
}}</el-button>
|
|
10
27
|
</div>
|
|
11
|
-
<el-table-column
|
|
28
|
+
<el-table-column
|
|
29
|
+
align="left"
|
|
30
|
+
header-align="center"
|
|
31
|
+
label="姓名"
|
|
32
|
+
prop="name"
|
|
33
|
+
sortable
|
|
34
|
+
width="100px"
|
|
35
|
+
>
|
|
12
36
|
</el-table-column>
|
|
13
|
-
<el-table-column
|
|
37
|
+
<el-table-column
|
|
38
|
+
align="left"
|
|
39
|
+
header-align="center"
|
|
40
|
+
label="账号"
|
|
41
|
+
prop="account"
|
|
42
|
+
sortable
|
|
43
|
+
width="100px"
|
|
44
|
+
>
|
|
14
45
|
</el-table-column>
|
|
15
|
-
|
|
16
|
-
|
|
46
|
+
<!-- <el-table-column :input="require('../orgDept/orgnselect').default" :inputFormat="(result, row)=>row.orgnName" align="left" header-align="center" label="部门" prop="orgnId"
|
|
47
|
+
sortable width="180px">-->
|
|
17
48
|
<!-- </el-table-column> -->
|
|
18
|
-
<el-table-column
|
|
49
|
+
<el-table-column
|
|
50
|
+
align="center"
|
|
51
|
+
label="账号过期日期"
|
|
52
|
+
prop="accountPassDate"
|
|
53
|
+
sortable
|
|
54
|
+
width="auto"
|
|
55
|
+
>
|
|
19
56
|
</el-table-column>
|
|
20
|
-
<el-table-column
|
|
57
|
+
<el-table-column
|
|
58
|
+
align="center"
|
|
59
|
+
label="密码修改时间"
|
|
60
|
+
prop="pwModifyTim"
|
|
61
|
+
sortable
|
|
62
|
+
width="auto"
|
|
63
|
+
>
|
|
21
64
|
</el-table-column>
|
|
22
65
|
</hd-com-grid>
|
|
23
66
|
</template>
|
|
67
|
+
|
|
24
68
|
<script>
|
|
25
|
-
|
|
69
|
+
import orgnselect from '../orgDept/orgnselect'
|
|
26
70
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
71
|
+
export default {
|
|
72
|
+
name: 'userlist',
|
|
73
|
+
components: {
|
|
74
|
+
orgnselect,
|
|
75
|
+
},
|
|
76
|
+
data: function () {
|
|
77
|
+
return {
|
|
78
|
+
hdQuery: new HdQuery(this),
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
mounted() {},
|
|
82
|
+
methods: {
|
|
83
|
+
query(p) {
|
|
84
|
+
this.hdQuery.query.privilegeId = p
|
|
85
|
+
this.doQuery()
|
|
36
86
|
},
|
|
37
|
-
|
|
87
|
+
doQuery() {
|
|
88
|
+
this.$refs.grid.doQuery()
|
|
38
89
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.hdQuery.query.privilegeId = p;
|
|
42
|
-
this.doQuery();
|
|
43
|
-
},
|
|
44
|
-
doQuery() {
|
|
45
|
-
this.$refs.grid.doQuery()
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
}
|
|
90
|
+
},
|
|
91
|
+
}
|
|
49
92
|
</script>
|
|
@@ -1,69 +1,145 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
:defaultSort="{ prop: 'versionNo', order: 'descending' }"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
ref="grid"
|
|
8
|
+
url="/webresources/login/mobile/AuthMobileUpdate"
|
|
9
|
+
>
|
|
7
10
|
<div class="filter-container" slot="query">
|
|
8
|
-
<el-input
|
|
9
|
-
|
|
11
|
+
<el-input
|
|
12
|
+
@keyup.enter.native="doQuery"
|
|
13
|
+
class="filter-item"
|
|
14
|
+
:placeholder="$t('名称')"
|
|
15
|
+
style="width: 200px"
|
|
16
|
+
v-model="hdQuery.query.anyQuery"
|
|
17
|
+
>
|
|
10
18
|
</el-input>
|
|
11
|
-
<el-button
|
|
12
|
-
|
|
19
|
+
<el-button
|
|
20
|
+
@click="$refs.grid.doQuery()"
|
|
21
|
+
class="filter-item"
|
|
22
|
+
:icon="ElIconSearch"
|
|
23
|
+
keyType="query"
|
|
24
|
+
type="primary"
|
|
25
|
+
>{{ $t('搜索') }}
|
|
13
26
|
</el-button>
|
|
14
|
-
<el-button
|
|
27
|
+
<el-button
|
|
28
|
+
@click="doEdit('')"
|
|
29
|
+
class="filter-item"
|
|
30
|
+
:icon="ElIconEdit"
|
|
31
|
+
keyType="add"
|
|
32
|
+
type="primary"
|
|
33
|
+
>{{ $t('新增') }}
|
|
15
34
|
</el-button>
|
|
16
|
-
<el-button
|
|
35
|
+
<el-button
|
|
36
|
+
@click="$refs.grid.doRemoveAll()"
|
|
37
|
+
class="filter-item"
|
|
38
|
+
keyType="del"
|
|
39
|
+
type="danger"
|
|
40
|
+
>{{ $t('删除') }}
|
|
17
41
|
</el-button>
|
|
18
42
|
</div>
|
|
19
|
-
<el-table-column
|
|
43
|
+
<el-table-column
|
|
44
|
+
align="center"
|
|
45
|
+
fixed="right"
|
|
46
|
+
label="操作"
|
|
47
|
+
width="100px"
|
|
48
|
+
>
|
|
20
49
|
<template slot-scope="scope">
|
|
21
|
-
<hd-btn
|
|
22
|
-
|
|
23
|
-
|
|
50
|
+
<hd-btn
|
|
51
|
+
@click.stop="doEdit(scope.row.updateId)"
|
|
52
|
+
hint="编辑"
|
|
53
|
+
icon="el-icon-edit"
|
|
54
|
+
></hd-btn>
|
|
55
|
+
<hd-btn
|
|
56
|
+
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
57
|
+
hint="删除"
|
|
58
|
+
icon="el-icon-delete"
|
|
59
|
+
></hd-btn>
|
|
60
|
+
<hd-btn
|
|
61
|
+
@click.stop="upload(scope.row)"
|
|
62
|
+
hint="apk管理"
|
|
63
|
+
icon="el-icon-upload"
|
|
64
|
+
></hd-btn>
|
|
24
65
|
</template>
|
|
25
66
|
</el-table-column>
|
|
26
|
-
<el-table-column
|
|
67
|
+
<el-table-column
|
|
68
|
+
align="center"
|
|
69
|
+
label="版本号"
|
|
70
|
+
prop="versionNo"
|
|
71
|
+
sortable
|
|
72
|
+
width="100px"
|
|
73
|
+
>
|
|
27
74
|
</el-table-column>
|
|
28
|
-
<el-table-column
|
|
75
|
+
<el-table-column
|
|
76
|
+
align="center"
|
|
77
|
+
label="更新信息"
|
|
78
|
+
prop="updateMsg"
|
|
79
|
+
sortable
|
|
80
|
+
width="200px"
|
|
81
|
+
>
|
|
29
82
|
</el-table-column>
|
|
30
|
-
<el-table-column
|
|
83
|
+
<el-table-column
|
|
84
|
+
align="center"
|
|
85
|
+
label="备注"
|
|
86
|
+
prop="remark"
|
|
87
|
+
sortable
|
|
88
|
+
width="200px"
|
|
89
|
+
>
|
|
31
90
|
</el-table-column>
|
|
32
91
|
|
|
33
|
-
<el-table-column
|
|
92
|
+
<el-table-column
|
|
93
|
+
align="center"
|
|
94
|
+
label="强制升级"
|
|
95
|
+
prop="isMust"
|
|
96
|
+
sortable
|
|
97
|
+
width="100px"
|
|
98
|
+
>
|
|
34
99
|
</el-table-column>
|
|
35
100
|
</hd-com-grid>
|
|
36
101
|
</el-main>
|
|
37
|
-
<authmobileupdateform
|
|
38
|
-
|
|
102
|
+
<authmobileupdateform
|
|
103
|
+
@save-ok="saveOk"
|
|
104
|
+
ref="authmobileupdateform"
|
|
105
|
+
></authmobileupdateform>
|
|
106
|
+
<HdFileUpload
|
|
107
|
+
:multiple="false"
|
|
108
|
+
accept="apk"
|
|
109
|
+
limit="1"
|
|
110
|
+
ref="upload"
|
|
111
|
+
></HdFileUpload>
|
|
39
112
|
</el-container>
|
|
40
113
|
</template>
|
|
114
|
+
|
|
41
115
|
<script>
|
|
42
|
-
|
|
116
|
+
import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons'
|
|
117
|
+
import authmobileupdateform from './authmobileupdateform'
|
|
43
118
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
119
|
+
export default {
|
|
120
|
+
data() {
|
|
121
|
+
return {
|
|
122
|
+
hdQuery: new HdQuery(this),
|
|
123
|
+
ElIconSearch,
|
|
124
|
+
ElIconEdit,
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
name: 'authmobileupdate',
|
|
128
|
+
components: { authmobileupdateform },
|
|
129
|
+
mounted() {},
|
|
130
|
+
methods: {
|
|
131
|
+
saveOk(row) {
|
|
132
|
+
// 增加或编辑
|
|
133
|
+
this.$refs.grid.doQuery()
|
|
134
|
+
this.upload(row)
|
|
51
135
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
136
|
+
doEdit(updateId) {
|
|
137
|
+
// 增加或编辑
|
|
138
|
+
this.$refs['authmobileupdateform'].show(updateId)
|
|
55
139
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
doEdit(updateId) { // 增加或编辑
|
|
62
|
-
this.$refs['authmobileupdateform'].show(updateId)
|
|
63
|
-
},
|
|
64
|
-
upload(row) {
|
|
65
|
-
this.$refs['upload'].open("AuthMobileUpdate", row.updateId, true)
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
140
|
+
upload(row) {
|
|
141
|
+
this.$refs['upload'].open('AuthMobileUpdate', row.updateId, true)
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
}
|
|
69
145
|
</script>
|