服务日志功能开发
This commit is contained in:
@@ -284,6 +284,12 @@
|
||||
@size-change="logSizeChange"
|
||||
@current-change="logCurrentChange"
|
||||
>
|
||||
<template slot="menuLeft">
|
||||
<el-button @click="addNewLog" icon="el-icon-plus" type="primary" size="mini">添加</el-button>
|
||||
</template>
|
||||
<template slot="menu" slot-scope="{row}">
|
||||
<el-button type="text" @click="editLogInfo(row.id)" icon="el-icon-edit" size="mini">修改</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</el-drawer>
|
||||
</el-drawer>
|
||||
@@ -747,13 +753,14 @@ export default {
|
||||
},
|
||||
logOption() {
|
||||
return {
|
||||
editBtn: true,
|
||||
editBtn: false,
|
||||
delBtn: true,
|
||||
addBtn: true,
|
||||
addBtn: false,
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: "序号",
|
||||
refreshBtn: false,
|
||||
dialogType: "drawer",
|
||||
height: '100',
|
||||
column: [{
|
||||
label: '服务时间',
|
||||
@@ -1468,6 +1475,14 @@ export default {
|
||||
window.console.log(error);
|
||||
})
|
||||
},
|
||||
addNewLog() {
|
||||
console.log('add log')
|
||||
this.$router.push({ name: '添加/修改日志log', params: { type: 'add', id: null } })
|
||||
},
|
||||
editLogInfo() {
|
||||
console.log('edit log')
|
||||
this.$router.push({ name: '添加/修改日志log', params: { type: 'edit', id: null } })
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user