请描述一下下面的代码：
<template>
    <div class="app-container" ref="appContainer">
        <PropTable
                :loading="loading"
                @selection-change="selectionChange"
                :columns="column"
                :data="list"
                @reset="reset"
                @onSubmit="onSubmit"
        >
            <template v-slot:btn>
                <div style="display: flex; justify-content: flex-end">
                    <el-button type="primary" @click="add"
                    ><el-icon><plus /></el-icon> 添加</el-button
                    >
                    <el-button type="danger" @click="batchDelete"
                    ><el-icon><delete /></el-icon>删除</el-button
                    >
                </div>
            </template>
            <template v-slot:gender="scope">{{ scope.row.gender ? '男' : '女' }}</template>
            <template v-slot:operation="scope">
                <el-button type="primary" size="small" icon="Edit" @click="edit(scope.row)">
                    编辑
                </el-button>
                <el-button @click="del(scope.row)" type="danger" size="small" icon="Delete">
                    删除
                </el-button>
            </template>
        </PropTable>

        <el-dialog v-model="dialogVisible" :title="title" width="50%">
            <el-form
                    ref="ruleFormRef"
                    :model="ruleForm"
                    :rules="rules"
                    label-width="120px"
                    class="demo-ruleForm"
                    :size="formSize"
            >
                <el-form-item label="标题" prop="title">
                    <el-input v-model="ruleForm.title" />
                </el-form-item>
                <el-form-item label="简介" prop="summary">
                    <el-input v-model="ruleForm.summary" />
                </el-form-item>
            </el-form>
            <template #footer>
          <span class="dialog-footer">
            <el-button @click="dialogVisible = false">取消</el-button>
            <el-button type="primary" @click="handleClose(ruleFormRef)">确定</el-button>
          </span>
            </template>
        </el-dialog>
    </div>
</template>
<script lang="ts" setup name="comprehensive">
    import {ref, reactive, onMounted, nextTick, getCurrentInstance} from 'vue'
    import * as dayjs from 'dayjs'
    import { ElMessage, ElMessageBox } from 'element-plus'
    import type { FormInstance } from 'element-plus'
    const {proxy} = getCurrentInstance()
    const loading = ref(true)
    const appContainer = ref(null)
    import service from "@/api/request";
    import PropTable from '@/components/Table/PropTable/index.vue'

    const api = {
        "getLabelsInfo": '/api/api/label/getLabelContent',
    }
    const data = []

    const list = ref(data)
    const getLabelList = async ()=>{
        // let result = await service({
        //     url: api.getAllArticle,
        //     method: 'POST', // 请求方式
        // })
        let result = await proxy.Request({
            url: api.getLabelsInfo,
        });
        if(!result)
            return;

        list.value = result.data;
        console.log(list.value);
    }
    getLabelList();

    const column = [
        { type: 'selection', width: 60 ,fixed: 'left'},
        { name: 'label_id', label: '标签ID', inSearch: true, valueType: 'input', width: 80 },
        { name: 'label_name', label: '名称', inSearch: true, valueType: 'input', width: 130 },
        { name: 'logo', label: 'log', width: 130},
        { name: 'create_user', label: '创建用户', width: 100 },
        { name: 'update_user', label: '更改用户', width: 100 },
        { name: 'create_time', label: '创建时间', sorter: true, width: 180 },
        { name: 'update_time', label: '更新时间', sorter: true, width: 180 },

        { name: 'operation', slot: true, fixed: 'right', width: 200,label: '操作'  },
    ]


    const formSize = ref('default')
    const ruleFormRef = ref<FormInstance>()
    const ruleForm = reactive({
        title: '',
        summary: ''
    })

    const rules = reactive({
        // name: [
        //     { required: true, message: '请输入活动名称活动区域', trigger: 'blur' },
        //     { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' },
        // ],
        // price: [{ required: true, message: '请输入价格', trigger: 'blur' }],
        // sex: [
        //     {
        //         required: true,
        //         message: '请选择性别',
        //         trigger: 'change',
        //     },
        // ],
    })

    const dialogVisible = ref(false)
    const title = ref('新增')
    const rowObj = ref({})
    const selectObj = ref([])

    const handleClose = async (done: () => void) => {
        await ruleFormRef.value.validate(async (valid, fields) => {
            if (valid) {
                let obj = {
                    // id: Date.now(),
                    ...ruleForm,
                    // age: 0,
                    // city: '普陀区',
                    // address: '上海市普上海',
                    // zip: 200333,
                    // province: '上海',
                    // admin: 'admin',
                    // date: dayjs().format('YYYY-MM-DD'),
                }
                if (title.value === '新增') {
                    list.value = [obj, ...list.value]
                    ElMessage.success('添加成功')
                } else {
                    list.value.forEach((item) => {
                        // 如果当前项是要修改的
                        if (item.article_id === rowObj.value.article_id) {
                            obj.article_id = rowObj.value.article_id
                            item.title = obj.title
                            item.summary = obj.summary
                        }
                    })
                }
                dialogVisible.value = false
                let result = await proxy.Request({
                    url: api.updateArticle,
                    params: {
                        article_id: obj.article_id,
                        title: obj.title,
                        summary: obj.summary
                    },
                });
                if(!result)
                    return;
                console.log('submit!', obj)
            } else {
                console.log('error submit!', fields)
            }
        })
    }

    const add = () => {
        title.value = '新增'
        dialogVisible.value = true
    }

    const batchDelete = () => {
        if (!selectObj.value.length) {
            return ElMessage.error('未选中任何行')
        }
        ElMessageBox.confirm('你确定要删除选中项吗?', '温馨提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning',
            draggable: true,
        })
            .then(() => {
                ElMessage.success('模拟删除成功')
                list.value = list.value.concat([])
            })
            .catch(() => {})
    }
    const selectionChange = (val) => {
        selectObj.value = val
    }

    // 编辑
    const edit = (row) => {
        title.value = '编辑'
        rowObj.value = row
        dialogVisible.value = true
        ruleForm.title = row.title
        ruleForm.summary = row.summary

    }

    const del = (row) => {
        console.log('row==', row)
        ElMessageBox.confirm('你确定要删除当前项吗?', '温馨提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning',
            draggable: true,
        })
            .then(() => {
                list.value = list.value.filter((item) => item.id !== row.id)
                ElMessage.success('删除成功')
                loading.value = true
                setTimeout(() => {
                    loading.value = false
                }, 500)
            })
            .catch(() => {})
    }

    const reset = () => {
        loading.value = true
        setTimeout(() => {
            loading.value = false
        }, 500)
        ElMessage.success('触发重置方法')
    }

    const onSubmit = (val) => {
        console.log('val===', val)
        ElMessage.success('触发查询方法')
        loading.value = true
        setTimeout(() => {
            loading.value = false
        }, 500)
    }

    const getHeight = ()=>{

    }

    onMounted(() => {
        nextTick(()=>{
            // let data = appContainer.value.
        })
        setTimeout(() => {
            loading.value = false
        }, 500)
    })
</script>

<style scoped>
    .edit-input {
        padding-right: 100px;
    }
    .app-container{
        flex: 1;
        display: flex;
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    .cancel-btn {
        position: absolute;
        right: 15px;
        top: 10px;
    }
</style>