联调承载能力评估 技术监督ui绘制

This commit is contained in:
GGJ
2024-03-15 16:31:06 +08:00
parent 02cb3fa518
commit 1b6b8c8777
8 changed files with 571 additions and 331 deletions

View File

@@ -36,7 +36,7 @@
</el-form-item>
</template>
<template #operation>
<el-button icon="el-icon-Plus" type="primary">新增</el-button>
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
<el-button icon="el-icon-Edit" type="primary">修改</el-button>
<el-button icon="el-icon-Delete" type="primary">删除</el-button>
<el-button icon="el-icon-Download" type="primary">导出</el-button>
@@ -46,6 +46,8 @@
</template>
</TableHeader>
<Table ref="tableRef" />
<!-- 新增 -->
<newlyIncreased ref="addRef" />
</div>
</div>
</template>
@@ -54,6 +56,7 @@ import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import newlyIncreased from './add.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
@@ -75,7 +78,7 @@ const uploadData = [
const dialogVisible = ref(false)
const TableHeaderRef = ref()
const title = ref('')
const addRef = ref()
const ruleFormRef = ref()
const tableStore = new TableStore({
@@ -84,7 +87,7 @@ const tableStore = new TableStore({
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
{ field: 'orgName', title: '所属单位' },
{ field: 'id', title: '终端编号' },
{ field: 'name', title: '终端名称' },
@@ -140,6 +143,13 @@ tableStore.table.params.searchValue = ''
tableStore.table.params.type = ''
provide('tableStore', tableStore)
const add = () => {
addRef.value.open({
title: '新增'
})
}
onMounted(() => {
tableStore.index()
})