diff --git a/Web/src/components/yoTable/index.js b/Web/src/components/yoTable/index.js
index 26f7700..eb89b08 100644
--- a/Web/src/components/yoTable/index.js
+++ b/Web/src/components/yoTable/index.js
@@ -159,7 +159,18 @@ export default {
onResetQuery() {
this.$emit('resetQuery')
this.$emit('reset-query')
- }
+ },
+
+ onAddRow(row = {}) {
+ if (!this.data.find(p => !p.id))
+ this.data.push(row)
+ },
+
+ onDeleteRow(row) {
+ if (row && this.data.indexOf(row) > -1) {
+ this.data.splice(this.data.indexOf(row), 1)
+ }
+ },
},
render() {
@@ -171,7 +182,8 @@ export default {
bordered: true,
size: 'middle',
rowKey: record => record.id || Math.random().toString(16).slice(2),
- scroll: { x: 'max-content' }
+ scroll: { x: 'max-content' },
+ ...this.$attrs
}
const on = {
diff --git a/Web/src/pages/system/dict/dictdata/form.vue b/Web/src/pages/system/dict/dictdata/form.vue
deleted file mode 100644
index 273cf2b..0000000
--- a/Web/src/pages/system/dict/dictdata/form.vue
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/dictdata/index.vue b/Web/src/pages/system/dict/dictdata/index.vue
index 69a80f6..25be091 100644
--- a/Web/src/pages/system/dict/dictdata/index.vue
+++ b/Web/src/pages/system/dict/dictdata/index.vue
@@ -1,11 +1,13 @@
@@ -16,16 +18,35 @@
-
- 新增字典数据
+
+ 新增字典数据
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ bindCodeValue(text, 'commonStatus') }}
-
+
- 编辑
+ 保存编辑
@@ -34,25 +55,30 @@
+
+
+ 保存
+
+
+ 取消
+
+
-
-
-
-
-
-
-
-
+
\ No newline at end of file