hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
    <div class="ag-box">
      <v-header title="用户协议"></v-header>
      <div>
        <div class="tab">
          <v-tool-table
            :trs="trs"
            :tds="tds"
          >
            <template v-slot:btn="{scope}">
              <el-button @click="edit(scope)" type="text">编辑</el-button>
            </template>
          </v-tool-table>
        </div>
      </div>
    </div>
</template>
<script>
    export default {
        props: [],
        components: {},
        data() {
            return {
              trs: [
                { text: "序号", val: "id"},
                { text: "协议名称", val: "name"},
                { text: "操作", val: "btn" },
              ],
              tds: [],
            }
        },
        created() {
          this.init()
        },
        mounted() {
 
        },
        methods: {
          init(){
            this.$api.get('systemmanagement/listagreement','',e=>{
              // console.log(e)
              this.tds = e
            })
          },
          edit(item){
            //编辑
            this.$router.push({
              name:'sysAgEdit',
              params:{
                item:item
              }
            })
          }
        },
        watch: {},
        computed: {}
    }
 
</script>
<style scoped lang="less">
  .ag-box{
    overflow: scroll;
 
  }
</style>