瀏覽代碼

电签角色库修改

duy 2 月之前
父節點
當前提交
519f09d0e2
共有 1 個文件被更改,包括 23 次插入5 次删除
  1. 23 5
      src/views/digital/signer.vue

+ 23 - 5
src/views/digital/signer.vue

@@ -103,7 +103,8 @@
                                     </el-table-column>
                             </el-table>
                         </div>
-                        <el-pagination
+                        <div class="pagination-page">
+                            <el-pagination
                             @size-change="handleSizeChange"
                             @current-change="handleCurrentChange"
                             :current-page="currentPage"
@@ -112,6 +113,7 @@
                             layout="total, sizes, prev, pager, next, jumper"
                             :total="total">
                          </el-pagination>
+                        </div>
                     </div>
                 </el-col>
               
@@ -360,7 +362,7 @@
 <script>
   import {getRoleList,getListPage,getElementList,getTableTypeList,getTableList,queryAllRoleList,submitEle,elementDetail,roleDetail,removeEle,updateStatusEle} from "@/api/sigital/signer.js";
   import { getDictionary } from "@/api/system/dict";
-import { log } from "@antv/g2plot/lib/utils";
+
     export default {
         data() {
             return {
@@ -897,6 +899,13 @@ import { log } from "@antv/g2plot/lib/utils";
             // 确认按钮点击事件
             confirmSourceSelection() {
                 console.log(this.eleIndex,'eleIndex');
+                if(!this.selectedSourceOption){
+                    this.$message({
+                        type: 'warning',
+                        message: '请选择元素来源!'
+                    });
+                    return
+                }
                 
                 if (this.selectedSourceOption === 0) {
                     // 处理适配所有元素表的逻辑
@@ -1022,6 +1031,10 @@ import { log } from "@antv/g2plot/lib/utils";
 
             // 确认选择岗位
             confirmBindPostSelection() {
+                if(this.positionNameSelect.length==0){
+                    this.$message.error('请选择岗位')
+                    return
+                }
                 if (this.positionNameSelect.length > 0) {
                         // this.selectedPostRow.roleIds = this.positionNameSelect.join(',');
                         this.tableData1.forEach((item, index) => {
@@ -1084,7 +1097,7 @@ import { log } from "@antv/g2plot/lib/utils";
         border-right: 1px solid #D6D6D6;
         padding-right: 10px;
         .post-list{
-            margin-top: 10px;
+            margin-top: -18px;
             height: calc(100% - 110px);
             // border: 1px solid red;
         }
@@ -1156,7 +1169,8 @@ import { log } from "@antv/g2plot/lib/utils";
     display: flex;
     flex-direction: column;
     .header-btn{
-        float: right;
+        margin-top: 10px;
+        text-align: right;
    }
    .table-box {
         flex: 1;
@@ -1173,7 +1187,7 @@ margin-top: -30px;
   
 }
 .source-radio-group{
-    margin-top: 40px;
+    margin-top: 20px;
     text-align: center;
 }
 .dropdown-container {
@@ -1251,5 +1265,9 @@ margin-top: -30px;
       text-align: center;
     }
 }
+.pagination-page{
+    text-align: center;
+    margin-top: 10px;
+}
 </style>