修改组件录入、新增项目管理

This commit is contained in:
GGJ
2025-05-28 16:45:50 +08:00
parent 06d4f0ec91
commit 80bdda9abc
8 changed files with 845 additions and 321 deletions

View File

@@ -80,8 +80,6 @@
@current-change="onTableCurrentChange"
></el-pagination>
</div>
<popup ref="popupRef" @submit="tableStore.index()" v-if="popupFlag" />
</div>
</template>
<script setup lang="ts">
@@ -91,23 +89,22 @@ import TableStore from '@/utils/tableStore'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Edit } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router'
import popup from './components/popup.vue'
const { push } = useRouter()
import { deleteDashboard, activatePage } from '@/api/system-boot/csstatisticalset'
defineOptions({
name: 'cockpit/setUp'
})
const tableRef = ref()
const popupRef = ref()
const popupFlag = ref(false)
const tableStore = new TableStore({
showPage: false,
url: '/system-boot/dashboard/queryPage',
method: 'POST',
publicHeight: 60,
column: [],
loadCallback: () => {
popupFlag.value = false
}
loadCallback: () => {}
})
provide('tableStore', tableStore)
tableStore.table.params.searchValue = ''
@@ -118,23 +115,12 @@ onMounted(() => {
})
// 查询
const onSubmitadd = () => {
popupFlag.value = true
setTimeout(() => {
popupRef.value.open({
title: '新增页面'
})
}, 100)
push(`/admin/cockpit/popup`)
}
// 修改
const editd = (e: any) => {
popupFlag.value = true
setTimeout(() => {
popupRef.value.open({
data: e,
title: '修改页面'
})
}, 100)
push(`/admin/cockpit/popup?id=${e.id}`)
}
// 删除
const deleted = (e: any) => {