gaoshp
2024-10-05 65972957e56a31778cc1633b1032ac16627665f3
src/views/console/workstation/CollDialog.vue
@@ -31,7 +31,7 @@
                <template #default="scope">
                    <el-button-group>
                        <el-button text type="primary" size="small" @click="table_edit(scope.row)">编辑</el-button>
                        <!-- <el-button text type="primary" size="small">复制</el-button> -->
                        <el-button text type="primary" size="small" @click="copy(scope.row)">复制</el-button>
                        <el-popconfirm width="220" title="确定将选择的数据删除" @confirm="del(scope.$index)">
                            <template #reference>
                                <el-button text type="primary" size="small">删除</el-button>
@@ -143,6 +143,9 @@
        del(index) {
            this.tabledata.splice(index, 1)
        },
        copy(row) {
            this.tabledata.push(Object.assign({}, row, { status: '1' }))
        },
        //表单提交方法
        submit() {
            let isRequiredKey = this.cols.filter(v => v.isRequired).map(v => v.prop)