Explorar el Código

姓名搜索+关联

sunyize hace 2 años
padre
commit
e307397605

+ 1 - 1
src/views/specialApply/modules/TaskImport.vue

@@ -142,7 +142,7 @@ export default {
     /**下载模版*/
     downloadTemplat(){
       const a = document.createElement('a')
-      a.href = 'web/tnc/static/specialExamination.xlsx'
+      a.href = '/static/specialExamination.xlsx'
       a.setAttribute('download', '特审复开审批模版.xlsx')
       a.click();
       a.remove();

+ 11 - 6
src/views/system/modules/SelectUserModal.vue

@@ -20,6 +20,11 @@
                 <a-input placeholder="请输入用户账号" v-model="queryParam.username"></a-input>
               </a-form-item>
             </a-col>
+            <a-col :span="10">
+              <a-form-item label="用户名称">
+                <a-input placeholder="请输入用户名称" v-model="queryParam.realname"></a-input>
+              </a-form-item>
+            </a-col>
             <a-col :span="8">
                     <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
                       <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@@ -92,12 +97,12 @@
             width: 100,
             dataIndex: 'realname'
           },
-          {
-            title: '性别',
-            align: "center",
-            width: 100,
-            dataIndex: 'sex_dictText'
-          },
+          // {
+          //   title: '性别',
+          //   align: "center",
+          //   width: 100,
+          //   dataIndex: 'sex_dictText'
+          // },
           {
             title: '电话',
             align: "center",

+ 27 - 0
src/views/system/modules/UserRoleModal.vue

@@ -88,6 +88,33 @@
       },
       onCheck (o) {
         if(this.checkStrictly){
+          if (this.checkedKeys.length<o.checked.length){
+            if (o.checked.includes("1692075961975046146")&& !o.checked.includes("1703718760638693377")){
+              o.checked.push("1703718760638693377");
+            }
+            if (o.checked.includes("1703718760638693377")&&!o.checked.includes("1692075961975046146")){
+              o.checked.push("1692075961975046146");
+            }
+          }else {
+            //在减少
+            if (this.checkedKeys.includes("1703718760638693377")&& !o.checked.includes("1703718760638693377")){
+              let index = o.checked.indexOf("1692075961975046146");
+              if (index !== -1) {
+                o.checked.splice(index, 1);
+              }
+            }
+            if (this.checkedKeys.includes("1692075961975046146")&& !o.checked.includes("1692075961975046146")){
+              let index = o.checked.indexOf("1703718760638693377");
+              if (index !== -1) {
+                o.checked.splice(index, 1);
+              }
+            }
+          }
+          // else {
+          //   let index = o.checked.indexOf("1692075961975046146");
+          //   if (index !== -1) {
+          //     o.checked.splice(index, 1);
+          //   }
           this.checkedKeys = o.checked;
         }else{
           this.checkedKeys = o