diff --git a/src/components/CrudTable/index.vue b/src/components/CrudTable/CrudTable.vue similarity index 98% rename from src/components/CrudTable/index.vue rename to src/components/CrudTable/CrudTable.vue index 2d10b32..09d1c79 100644 --- a/src/components/CrudTable/index.vue +++ b/src/components/CrudTable/CrudTable.vue @@ -142,7 +142,6 @@ export default { this.$emit(args[0], ...Array.from(args).slice(1)); }, Refresh() { - console.log(111) this.fetchData(this.listQuery); }, @@ -189,10 +188,11 @@ export default { this.dialogFormVisible = true; }, async Detail(id) { - this.dialogStatus = 'update'; + this.dialogStatus = 'detail'; const response = await this.crud('detail', this.tableName, { id }); this.formValues = response.data; this.dialogFormVisible = true; + this.disabled = true }, }, } diff --git a/src/main.js b/src/main.js index 29c48fe..8b745e8 100644 --- a/src/main.js +++ b/src/main.js @@ -21,7 +21,7 @@ import store from './store' import '@/icons/index' // icon import '@/permission' // 权限import axios from 'axios'; import '@/styles/index.scss' // global css -import CrudTable from '@/components/CrudTable'; +import CrudTable from '@/components/CrudTable/CrudTable.vue'; import { newGuid } from '@/utils/index' import crud from '@/api/Public/crud'