diff --git a/src/views/system/tablegen/column.vue b/src/views/system/tablegen/column.vue
index 4c04e05..d03b73b 100644
--- a/src/views/system/tablegen/column.vue
+++ b/src/views/system/tablegen/column.vue
@@ -36,7 +36,7 @@
-
+
添加
@@ -49,52 +49,100 @@
-
-
+
+
-
-
+
+
+
+
+
+ Primary
+ Success
+ Warning
+ Danger
+ Info
+ Text
+
+
+
-
+
-
-
+
+
+
+
+
+ Primary
+ Success
+ Warning
+ Danger
+ Info
+ Text
+
+
+
-
+
-
-
+
+
+
+
+
+ Primary
+ Success
+ Warning
+ Danger
+ Info
+ Text
+
+
+
-
+
-
-
+
+
+
+
+
+ Primary
+ Success
+ Warning
+ Danger
+ Info
+ Text
+
+
+
@@ -125,11 +173,13 @@
-
-
-
+
+
+
+
+
@@ -156,9 +206,9 @@
-
+
-
+
@@ -166,11 +216,6 @@
-
-
-
-
-
@@ -184,16 +229,18 @@
+
-
+
-
+
-
+
+
diff --git a/src/views/system/tablegen/index.vue b/src/views/system/tablegen/index.vue
index 535b949..b080937 100644
--- a/src/views/system/tablegen/index.vue
+++ b/src/views/system/tablegen/index.vue
@@ -23,19 +23,19 @@
- {{ scope.row.title }}
+
- {{ scope.row.name }}
+
-
-
+
+
-
+
@@ -58,17 +58,17 @@
-
+
-
+
-
-
+
+ 复制
编辑
@@ -136,6 +136,21 @@
this.$refs.column.open('edit').setData(row)
})
},
+ //复制
+ async table_copy(row){
+ var res = await this.$http.post('system/table/copy', {id: row.id});
+ if(res.code == 200){
+ this.$refs.table.reload({})
+
+ if (res.data) {
+ this.table_edit(res.data)
+ }
+
+ this.$message.success("复制成功")
+ return ;
+ }
+ this.$alert(res.message, "提示", {type: 'error'})
+ },
//删除
async table_del(row, index){
var res = await this.$http.post('system/table/delete', {id: row.id});
@@ -143,9 +158,9 @@
//这里选择刷新整个表格 OR 插入/编辑现有表格数据
this.$refs.table.tableData.splice(index, 1);
this.$message.success("删除成功")
- }else{
- this.$alert(res.message, "提示", {type: 'error'})
+ return ;
}
+ this.$alert(res.message, "提示", {type: 'error'})
},
//批量删除
async batch_del(){