Skip to content

Commit

Permalink
无用代码清理
Browse files Browse the repository at this point in the history
  • Loading branch information
pixel committed Jan 8, 2021
1 parent 65474b6 commit f3afd7d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
6 changes: 2 additions & 4 deletions server/resource/template/web/table.vue.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<el-table-column label="按钮组">
<template slot-scope="scope">
<el-button class="table-button" @click="update{{.StructName}}(scope.row)" size="small" type="primary" icon="el-icon-edit">变更</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="openComfirm(scope.row)">删除</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteRow(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
Expand Down Expand Up @@ -138,7 +138,6 @@ export default {
return {
listApi: get{{ .StructName }}List,
dialogFormVisible: false,
visible: false,
type: "",
deleteVisible: false,
multipleSelection: [],
Expand Down Expand Up @@ -201,7 +200,7 @@ export default {
handleSelectionChange(val) {
this.multipleSelection = val
},
openComfirm(row){
deleteRow(row){
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
Expand Down Expand Up @@ -267,7 +266,6 @@ export default {
};
},
async delete{{.StructName}}(row) {
this.visible = false;
const res = await delete{{.StructName}}({ ID: row.ID });
if (res.code == 0) {
this.$message({
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/example/customer/customer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export default {
return {
listApi: getExaCustomerList,
dialogFormVisible: false,
visible: false,
type: "",
form: {
customerName: "",
Expand Down Expand Up @@ -119,7 +118,7 @@ export default {
};
},
async deleteCustomer(row) {
this.visible = false;
row.visible = false;
const res = await deleteExaCustomer({ ID: row.ID });
if (res.code == 0) {
this.$message({
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/superAdmin/dictionary/sysDictionary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export default {
return {
listApi: getSysDictionaryList,
dialogFormVisible: false,
visible: false,
type: "",
formData: {
name: null,
Expand Down Expand Up @@ -214,7 +213,7 @@ export default {
};
},
async deleteSysDictionary(row) {
this.visible = false;
row.visible = false;
const res = await deleteSysDictionary({ ID: row.ID });
if (res.code == 0) {
this.$message({
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default {
return {
listApi: getSysDictionaryDetailList,
dialogFormVisible: false,
visible: false,
type: "",
formData: {
label: null,
Expand Down Expand Up @@ -203,7 +202,7 @@ export default {
};
},
async deleteSysDictionaryDetail(row) {
this.visible = false;
row.visible = false;
const res = await deleteSysDictionaryDetail({ ID: row.ID });
if (res.code == 0) {
this.$message({
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/superAdmin/operation/sysOperationRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default {
return {
listApi: getSysOperationRecordList,
dialogFormVisible: false,
visible: false,
type: "",
deleteVisible: false,
multipleSelection: [],
Expand Down Expand Up @@ -186,7 +185,7 @@ export default {
}
},
async deleteSysOperationRecord(row) {
this.visible = false;
row.visible = false;
const res = await deleteSysOperationRecord({ ID: row.ID });
if (res.code == 0) {
this.$message({
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/workflow/workflowProcess/workflowProcess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default {
return {
listApi: getWorkflowProcessList,
dialogFormVisible: false,
visible: false,
deleteVisible: false,
multipleSelection: []
};
Expand Down Expand Up @@ -191,7 +190,7 @@ export default {
});
},
async deleteWorkflowProcess(row) {
this.visible = false;
row.visible = false;
const res = await deleteWorkflowProcess({ id: row.id });
if (res.code == 0) {
this.$message({
Expand Down

0 comments on commit f3afd7d

Please sign in to comment.