wangting
2024-11-28 4cf67af090dbed353f1ddf3bd3ba5e0f854c0020
Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
@@ -19,7 +19,7 @@
    </el-aside>
    <el-main>
      <basic-container>
      <basic-container cardBodyStyle="padding-bottom:0;">
        <avue-crud
          ref="crud"
          :data="data"
@@ -34,8 +34,8 @@
            <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">查看授权结果</el-button>
          </template>
        </avue-crud>
        <div>
          <data-view key="dataView" :btmNode="nodeRow" :data="viewData" :readOnly="true" height="400px"></data-view>
        <div style="margin-top: 15px;">
          <data-view key="dataView" :btmNode="nodeRow" :data="viewData" :readOnly="true" :height="clientHeight-260-220"></data-view>
        </div>
        <!-- 新增 && 编辑 -->
        <el-dialog
@@ -44,10 +44,10 @@
          :visible.sync="visible"
          append-to-body="true"
          class="avue-dialog"
          width="75%"
          width="70%"
          @close="addDialogClose">
            <div>
              <data-view key="editView" :btmNode="nodeRow" :data="viewData" :readOnly="false" height="60vh"></data-view>
              <data-view key="editView" :btmNode="nodeRow" :data="viewData" :readOnly="false" :height="clientHeight-340"></data-view>
            </div>
            <span slot="footer" class="dialog-footer">
               <el-button size="small" type="primary" @click="addDialogSavaHandler">确 定</el-button>
@@ -93,6 +93,7 @@
  components:{dataView},
  data:function (){
    return{
      clientHeight:Math.max(document.body.clientHeight,700),
      treeOption: {
        height: 'auto',
        defaultExpandAll: true,
@@ -110,7 +111,7 @@
      selectList: [],
      option: {
        ...basicOption,
        height:260,
        height:280,
        addBtn: false,
        editBtn: false,
        delBtn: false,
@@ -194,7 +195,9 @@
    },
    //获取下方数据
    getViewData(row){
      this.viewData={};
      this.viewData={
        oid:row.plOId
      };
    },
    // 查看授权结果
    chekView() {