wente
2023-12-29 e2cef6c358e57c2bc63e67a05c88c52585bb96db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-sysBaseInfo-testAgencyInfo}">
      <zt-table-wraper query-url="/sysBaseInfo/TestAgencyInfo/page" delete-url="/sysBaseInfo/TestAgencyInfo" v-slot="{ table }">
        <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
          <el-form-item>
                                <el-input v-model="dataForm.agencyName" placeholder="请输入测评机构名称" clearable></el-input>
              
          </el-form-item>
          <el-form-item>
            <zt-button type="query" @click="table.query()"/>
            <zt-button type="add" perm="sysBaseInfo:add" @click="table.editHandle()"/>
            <zt-button type="delete" perm="sysBaseInfo:delete" @click="table.deleteHandle()"/>
          </el-form-item>
        </el-form>
        <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" border @selection-change="table.selectionChangeHandle">
          <el-table-column type="selection" width="40"/>
            <el-table-column prop="agencyName" label="测评机构名称"/>
                <el-table-column prop="businContact" label="业务联系"/>
                <el-table-column prop="laborContact" label="实验室联系人"/>
              <zt-table-column-handle :table="table" edit-perm="sysBaseInfo:update" delete-perm="sysBaseInfo::delete"/>
        </el-table>
        <!-- 弹窗, 新增 / 修改 -->
        <add-or-update @refreshDataList="table.query"/>
      </zt-table-wraper>
    </div>
  </el-card>
</template>
 
<script>
  import AddOrUpdate from './TestAgencyInfo-AddOrUpdate'
  export default {
    data() {
      return {
        dataForm: {
          agencyName: '',
        }
      }
    },
    components: {
      AddOrUpdate
    }
  }
</script>