田源
2023-09-22 c7136f0b31ef2c260806b9a25807623bd01555d6
Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -24,7 +24,7 @@
      </template>
    </avue-crud>
    <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="分类授权" top="-10">
    <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="分类授权" top="-50px">
      <el-row>
        <el-col :span="10">
@@ -37,18 +37,19 @@
        </el-col>
      </el-row>
      <div slot="footer" class="dialog-footer" style="height: 50px;line-height: 50px">
        <el-button type="primary" icon="el-icon-plus" size="small">授 权</el-button>
        <el-button type="primary" icon="el-icon-plus" size="small" @click="empower">授 权</el-button>
        <el-button icon="el-icon-close"  size="small" type="danger">重 置</el-button>
    </div>
    </el-dialog>
  </basic-container>
</template>
<script>
import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel, sysInfoTree} from '@/api/integration/sysInfo.js'
import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel, sysInfoTree,batchAddSave} from '@/api/integration/sysInfo.js'
export default {
  data() {
    return {
      checkAll:[],
      //避免缓存
      reload: Math.random(),
      TreeLoading: false,
@@ -127,12 +128,18 @@
  },
  methods: {
    empower(){
      batchAddSave({systemOid: this.checkAll.oid, systemId: this.checkAll.id}).then(res=>{
        console.log(res)
      })
    },
    //分类授权多选回调
    checkChange(row,checked) {
      // console.log(row)
      // if(checked){
      //
      // }
      if(checked){
        console.log('row',row)
        this.checkAll.push(row);
        // console.log('checkAll',this.checkAll)
      }
    },
    //分类授权
    classifyHandler(row) {
@@ -266,9 +273,7 @@
    },
    // enter搜索
    handleEnter() {
      if (this.search[this.selectValue] === '') return
      else this.getDataList()
     this.getDataList()
    },
    // 输入框清空
    handleClear() {