jinlin
2024-08-02 826cd5b51d5106cfea07e397eda184fb15ec7a30
web/packages/views/modules/sys/dict-type.vue
@@ -1,21 +1,19 @@
<template>
  <div class="fa-card-a" shadow="never">
    <div class="mod-sys__dict">
      <el-row :gutter="20">
      <el-row :gutter="5">
        <el-col :span="11">
          <div class="">
          <div class="fa-card-a">
          <zt-table-wraper ref="typeTable" v-slot="{ table }" :paging='false'
                           delete-url="/sys/dict/type"
                           query-url="/sys/dict/type/tree">
                <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
                  <el-form-item>
                    <zt-button perm="sys:dict" type="add" @click="table.editHandle()"/>
                    <zt-button type='self' icon2="el-icon-upload2"  @click="DictImport">导入</zt-button>
                  </el-form-item>
                </el-form>
            <zt-button type='self' icon2="el-icon-upload2"  @click="DictImport">导入</zt-button>
              <el-table ref="table" v-adaptive="{bottomOffset:30}" v-loading="table.dataLoading"
                          :data="table.dataList" border
                          :data="table.dataList"
                          height="100px" highlight-current-row
                          row-key="id" @current-change="handleCurrentChange"
                          @selection-change="table.selectionChangeHandle"
@@ -55,8 +53,6 @@
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
import AddOrUpdate from './dict-type-add-or-update'