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

新增按钮

parent 68265d68
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
<script> <script>
import Dialog from './dialog.vue' import Dialog from './dialog.vue'
export default { export default {
/*
@param {string}=>title
*/
data() { data() {
return { return {
config: { config: {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<template #toolbar="ctx" > <template #toolbar="ctx" >
<AttachFileButton :app='ctx.basePage'></AttachFileButton> <AttachFileButton :app='ctx.basePage'></AttachFileButton>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 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> </template>
</BasePage> </BasePage>
...@@ -82,9 +82,14 @@ ...@@ -82,9 +82,14 @@
}, },
methods: { methods: {
/* 示例*/ /* 示例*/
// demo(basePage){ cds(ctx){
this.$post('jcsj/u_ckwh/createDefaultCk',{}).then(res=>{
// } if(res.success){
this.$success('操作成功')
ctx.refresh()
}
})
}
}, },
components:{ components:{
Edit 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