Procházet zdrojové kódy

:sparkles: 添加新特性。支持多数据源密码 加密

冷冷 před 6 roky
rodič
revize
696a6f7704
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      src/views/gen/index.vue

+ 6 - 0
src/views/gen/index.vue

@@ -79,9 +79,11 @@
                  :table-loading="tableLoading"
                  @close="dsBox=false">
         <avue-crud ref="crud"
+                   v-modle="dsForm"
                    :page="dsPage"
                    :data="tableDsData"
                    :option="tableDsOption"
+                   :before-open="handleOpenBefore"
                    @row-update="handleUpdate"
                    @row-save="handleSave"
                    @row-del="rowDel"
@@ -120,6 +122,7 @@
           currentPage: 1, // 当前页数
           pageSize: 20 // 每页显示多少条
         },
+        dsForm: {},
         tableLoading: false,
         tableOption: tableOption,
         tableDsOption: tableDsOption,
@@ -158,6 +161,9 @@
         }).catch(function (err) {
         })
       },
+      handleOpenBefore: function () {
+        this.dsForm.password = undefined
+      },
       handleUpdate: function (row, index, done) {
         putObj(row).then(data => {
           this.tableData.splice(index, 1, Object.assign({}, row))