Prechádzať zdrojové kódy

feat: 修改全局操作记录按钮逻辑

aXin-0810 2 rokov pred
rodič
commit
39a060e0b1

+ 4 - 4
src/components/template/template-page-1.vue

@@ -10,8 +10,8 @@
       :columnParsing="columnParsing"
       :reduction="reduction"
       :plan="[...defaultPlan, ...timePlan, ...paramList, ...morePlan]"
-      :operation="operationShow ? caozuojl : operation"
-      :operationColumnWidth="(operation ? operationColumnWidth : 0) + (operationShow ? 70 : 0)"
+      :operation="operationShow && pk ? caozuojl : operation"
+      :operationColumnWidth="(operation ? operationColumnWidth : 0) + (operationShow && pk ? 70 : 0)"
       :showTable="showTable"
       :codeGather="codeGather"
       :loading="loading"
@@ -350,9 +350,9 @@ export default {
             size="mini"
             type="text"
             onClick={() => {
-              if (row[this.operationRecordkey || this.pk || 'id']) {
+              if (row[this.pk]) {
                 commonLogList({
-                  objId: row[this.operationRecordkey || this.pk || 'id'],
+                  objId: row[this.pk],
                   pageNum: 1,
                   pageSize: -1
                 }).then(res => {