Skip to content

Commit

Permalink
🔥 Removing code or files.remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
lishangbu committed Sep 18, 2019
1 parent ed00f99 commit 2be875b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/const/crud/admin/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const tableOption = {
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: true,
props: {
label: 'label',
Expand Down
14 changes: 0 additions & 14 deletions src/views/admin/dict/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,6 @@
this.tableLoading = false
})
},
/**
* @title 打开新增窗口
* @detail 调用crud的handleadd方法即可
*
**/
handleAdd: function () {
this.$refs.crud.rowAdd()
},
handleEdit(row, index) {
this.$refs.crud.rowEdit(row, index)
},
handleDel(row, index) {
this.$refs.crud.rowDel(row, index)
},
rowDel: function (row, index) {
var _this = this
this.$confirm('是否确认删除标签名为"' + row.label + '",数据类型为"' + row.type + '"的数据项?', '警告', {
Expand Down
24 changes: 7 additions & 17 deletions src/views/admin/log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,11 @@
:data="tableData"
:table-loading="tableLoading"
:option="tableOption"
:permission="permissionList"
@on-load="getList"
@search-change="searchChange"
@refresh-change="refreshChange"
@row-del="rowDel">
<template slot-scope="scope"
slot="menu">
<el-button type="text"
v-if="permissions.sys_log_del"
icon="el-icon-delete"
size="mini"
@click="handleDel(scope.row,scope.index)">删除
</el-button>
</template>
</avue-crud>
</basic-container>
</div>
Expand All @@ -60,12 +52,13 @@
tableOption: tableOption
}
},
created() {
},
mounted: function () {
},
computed: {
...mapGetters(['permissions'])
...mapGetters(['permissions']),
permissionList() {
return {
delBtn: this.vaildData(this.permissions.sys_log_del, false),
}
}
},
methods: {
getList(page, params) {
Expand All @@ -80,9 +73,6 @@
this.tableLoading = false
})
},
handleDel(row, index) {
this.$refs.crud.rowDel(row, index)
},
rowDel: function (row, index) {
var _this = this
this.$confirm('是否确认删除ID为"' + row.id + '"的日志?', '警告', {
Expand Down
7 changes: 0 additions & 7 deletions src/views/admin/token/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
tableOption: tableOption
}
},
created() {
},
mounted: function () {
},
computed: {
...mapGetters(['permissions']),
permissionList() {
Expand All @@ -75,9 +71,6 @@
this.tableLoading = false
})
},
handleDel(row, index) {
this.$refs.crud.rowDel(row, index)
},
rowDel: function (row, index) {
var _this = this
this.$confirm('是否强制' + row.username+ '下线?', '提示', {
Expand Down

0 comments on commit 2be875b

Please sign in to comment.