田源
2023-09-21 810e34d320111d0101ca8115de5f82db61d080e2
Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -19,7 +19,24 @@
                  :size="size" clearable style="width:300px;margin-left: 10px;"
                  @clear="handleClear" @keyup.enter.native="handleEnter"></el-input>
      </template>
      <template #menu="{row,index,size}">
        <el-button type="text" icon="el-icon-menu" size="small" @click="classifyHandler">分类授权</el-button>
      </template>
    </avue-crud>
    <el-dialog :visible.sync="dialogVisible" append-to-body title="分类授权">
      <el-row>
        <el-col :span="14">
          <avue-tree ref="tree"
                     :option="TreeOption"
                     :data="TreeData"
                     v-model="TreeForm"
                     @check-change="checkChange">
          </avue-tree>
        </el-col>
      </el-row>
    </el-dialog>
  </basic-container>
</template>
<script>
@@ -28,7 +45,16 @@
export default {
  data() {
    return {
      TreeOption:{
        defaultExpandAll: true,
        multiple: true,
        addBtn:false,
        filter:false
      },
      TreeData:[],
      TreeForm:{},
      loading: false,
      dialogVisible:false,
      page: {
        currentPage: 1,
        pageSize: 10,
@@ -93,24 +119,14 @@
    }
  },
  methods: {
    // 获取列表
    // async getDataList() {
    //     this.loading = true
    //     console.log(this.search)
    //     const { pageSize, currentPage } = this.page
    //     let param = { size: pageSize, current: currentPage }
    //     this.search = Object.keys(this.search)
    //         .filter((key) => this.search[key] !== null && this.search[key] !== undefined && this.search[key] !== "")
    //         .reduce((acc, key) => ({ ...acc, [key]: this.search[key] }), {});
    //     const response = await getSysInfoList(pageSize,currentPage,{...param})
    //     if (response.status === 200) {
    //         console.log(response)
    //         this.loading = false
    //         const data = response.data.data
    //         this.data = data.records
    //         this.page.total = data.total
    //     } else this.loading = false
    // },
    //分类授权多选回调
    checkChange(){
    },
    //分类授权
    classifyHandler(){
      this.dialogVisible=true;
    },
    async getDataList() {
      this.loading = true;
      console.log(this.search);