Files
pqs-9100_client/frontend/src/views/machine/testScript/components/testProjectPopup.vue

59 lines
1.3 KiB
Vue
Raw Normal View History

2024-12-26 09:28:19 +08:00
<template>
<el-dialog :title="dialogTitle" v-model='dialogVisible' @close="close" v-bind="dialogBig">
<div class="dialog-content" >
<el-tabs type="border-card" style="height: 100%;">
<el-tab-pane >
</el-tab-pane>
</el-tabs>
</div>
<!-- <SetValueTable ref="setValueTable"/> -->
<template #footer>
<div >
<el-button @click='close()'> </el-button>
<el-button type="primary" @click='save()'>保存</el-button>
</div>
</template>
</el-dialog>
</template>
<script setup lang="ts">
import { dialogBig } from '@/utils/elementBind'
import { ref } from 'vue'
import SetValueTable from '@/views/machine/testScript/components/setValueTable.vue';
const dialogVisible = ref(false)
const dialogTitle = ref()
const setValueTable = ref()
// 关闭弹窗
const close = () => {
dialogVisible.value = false
}
// 保存数据
const save = () => {
}
// 打开弹窗,可能是新增,也可能是编辑
const open = (sign: string,row: any) => {
dialogVisible.value = true
dialogTitle.value = sign === 'create'? '新增测试脚本' : '编辑测试脚本'
}
// 对外映射
defineExpose({ open })
</script>
<style scoped>
</style>