From ae6d20ec4a30b7e796feb05958bcfc80e55f247b Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 20 七月 2023 15:21:45 +0800 Subject: [PATCH] 整合代码部署 --- Source/UBCS-WEB/dist/src/views/util/crud-form.vue | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/views/util/crud-form.vue b/Source/UBCS-WEB/dist/src/views/util/crud-form.vue new file mode 100644 index 0000000..2e1e0de --- /dev/null +++ b/Source/UBCS-WEB/dist/src/views/util/crud-form.vue @@ -0,0 +1,59 @@ +<template> + <basic-container> + <h3>鐐瑰嚮鏂板鎴栫紪杈戣烦杞埌鏂扮殑椤甸潰</h3> + <avue-crud :option="option" + :data="data"> + <template slot="menuLeft"> + <el-button type="primary" + size="small" + @click="handleForm()" + icon="el-icon-plus">add</el-button> + </template> + <template slot="menu" + slot-scope="{row}"> + <el-button size="small" + type="text" + @click="handleForm(row.id)" + icon="el-icon-edit">edit</el-button> + </template> + </avue-crud> + </basic-container> +</template> + +<script> +export default { + data() { + return { + option: { + addBtn: false, + editBtn: false, + column: [ + { + label: "濮撳悕", + prop: "name" + } + ] + }, + data: [ + { + id: 1, + name: "small" + } + ] + }; + }, + methods: { + handleForm(id) { + this.$router.push({ + path: "/form-detail/index", + query: { + id: id + } + }); + } + } +}; +</script> + +<style> +</style> -- Gitblit v1.9.3