Compare commits

..

2 Commits

3 changed files with 15 additions and 11 deletions

View File

@ -0,0 +1,10 @@
<template>
</template>
<script lang="ts" setup>
</script>
<style scoped>
</style>

View File

@ -1,6 +1,6 @@
import authentication_main from '../views/authentication/authentication_main.vue' // import authentication_main from '../views/authentication/authentication_main.vue'
import register from '../views/authentication/authentication_register.vue' // import register from '../views/authentication/authentication_register.vue'
import authentication_login from "../views/authentication/authentication_login.vue"; // import authentication_login from "../views/authentication/authentication_login.vue";
export default [ export default [
// { path: '/main', component: authentication_main }, // { path: '/main', component: authentication_main },
// { path: '/login', component: authentication_login }, // { path: '/login', component: authentication_login },

View File

@ -101,7 +101,6 @@
<script lang="ts"> <script lang="ts">
import {ref, onMounted, defineComponent} from 'vue'; import {ref, onMounted, defineComponent} from 'vue';
import organizationService from '../../services/organizationService'; import organizationService from '../../services/organizationService';
import {useStore} from 'vuex';
import {ElMessage, ElMessageBox} from "element-plus"; import {ElMessage, ElMessageBox} from "element-plus";
@ -120,7 +119,6 @@ interface Organization {
export default defineComponent({ export default defineComponent({
setup() { setup() {
const store = useStore();
const showTable = ref(true); const showTable = ref(true);
const show = ref(false); const show = ref(false);
const showDialogAdd = ref(false); const showDialogAdd = ref(false);
@ -138,9 +136,6 @@ export default defineComponent({
organizationStatus: true, organizationStatus: true,
} }
); );
const dialogFormPerson = ref({
});
const originTableData = ref<Organization[]>([]); const originTableData = ref<Organization[]>([]);
const tableData = ref<Organization[]>([]); const tableData = ref<Organization[]>([]);
@ -211,7 +206,7 @@ export default defineComponent({
organizationService.addOrganization(dialogFormAdd.value); organizationService.addOrganization(dialogFormAdd.value);
ElMessage({ ElMessage({
type: 'success', type: 'success',
message: `添加成功`, message: `成功`,
}) })
showDialogAdd.value = false; showDialogAdd.value = false;
@ -251,7 +246,7 @@ export default defineComponent({
.catch(() => { .catch(() => {
ElMessage({ ElMessage({
type: 'info', type: 'info',
message: 'Delete canceled', message: '取消删除',
}) })
}) })
@ -282,7 +277,6 @@ export default defineComponent({
}) })
const handleSearch = () => { const handleSearch = () => {
console.log('搜索', search.value); console.log('搜索', search.value);
// if(search.value.name != ''){
tableData.value = noChildrenData.value.filter( tableData.value = noChildrenData.value.filter(
(data) => { (data) => {
const isNameValid = search.value && search.value.name; const isNameValid = search.value && search.value.name;