ustcyc
2025-01-08 e58b27d9b5b6b3d63267ca89d28ebe9d3363f94b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
    <el-dialog v-model="visible" :title="title" width="900" @close="handleClose">
        <div slot="footer" class="text-right">
            <el-button type="primary" @click="submitForm" :loading="loading">确 定</el-button>
            <el-button @click="handleClose">取 消</el-button>
        </div>
    </el-dialog>
</template>
<script setup>
const { proxy } = getCurrentInstance();
let visible = ref(false)
let title = ref()
function handleClose() {
    visible.value = false
    // proxy.$refs.queryRef.resetFields()
 
}
function submitForm() {
    // proxy.$refs.queryRef.validate(valid => {
    //     if (valid) { }
    // })
 
}
 
function handleOpen(row) {
    if (row && row.id) {
        title.value = "关联用户"
        form.value = JSON.parse(JSON.stringify(row))
    } else {
        title.value = "关联用户"
    }
    visible.value = true
}
defineExpose({ handleOpen })
</script>
 
<style lang='scss' scoped></style>