Prechádzať zdrojové kódy

feat: 添加全局操作记录

aXin-0810 2 rokov pred
rodič
commit
8370736dee
1 zmenil súbory, kde vykonal 12 pridanie a 2 odobranie
  1. 12 2
      src/components/template/template-page-1.vue

+ 12 - 2
src/components/template/template-page-1.vue

@@ -10,8 +10,8 @@
       :columnParsing="columnParsing"
       :reduction="reduction"
       :plan="[...defaultPlan, ...morePlan]"
-      :operation="operation"
-      :operationColumnWidth="operationColumnWidth"
+      :operation="caozuojl"
+      :operationColumnWidth="operationColumnWidth + 50"
       :showTable="showTable"
       :codeGather="codeGather"
       :loading="loading"
@@ -140,6 +140,16 @@ export default {
     }
   },
   methods: {
+    caozuojl(h, { row, index, column }) {
+      return (
+        <div class="operation-btns">
+          <el-button size="mini" type="text" onClick={() => {}}>
+            操作记录
+          </el-button>
+          {this.operation(h, { row, index, column })}
+        </div>
+      )
+    },
     selBtn(arr) {
       for (var i = 0; i < arr.length; i++) {
         if (Array.isArray(arr[i])) {