Commit f3d6b81f authored by 李苏's avatar 李苏 💬

新增按钮

parent 68265d68
......@@ -28,6 +28,9 @@
<script>
import Dialog from './dialog.vue'
export default {
/*
@param {string}=>title
*/
data() {
return {
config: {
......
......@@ -6,7 +6,7 @@
<template #toolbar="ctx" >
<AttachFileButton :app='ctx.basePage'></AttachFileButton>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<el-button @click="cds(ctx.basePage)" size='mini' type="primary">创建默认仓库</el-button>
</template>
</BasePage>
......@@ -82,9 +82,14 @@
},
methods: {
/* 示例*/
// demo(basePage){
// }
cds(ctx){
this.$post('jcsj/u_ckwh/createDefaultCk',{}).then(res=>{
if(res.success){
this.$success('操作成功')
ctx.refresh()
}
})
}
},
components:{
Edit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment