Browse Source

完善职级页面逻辑

yuanrf 2 years ago
parent
commit
c61734dbce
1 changed files with 9 additions and 5 deletions
  1. 9 5
      src/components/child/AuthorityJob.vue

+ 9 - 5
src/components/child/AuthorityJob.vue

@@ -65,7 +65,7 @@
                         </template>
                     </el-table-column>
                    
-                    <el-table-column width="55" label="下载">
+                    <!-- <el-table-column width="55" label="下载">
                         <template slot-scope="scope">
                             <el-checkbox v-model="authorityLists[scope.$index].xz"
                                 @change="selectRadiodown(scope.$index, scope.row)"
@@ -78,7 +78,7 @@
                                 @change="selectRadioup(scope.$index, scope.row)"
                                 :disabled="authorityLists[scope.$index].disabled"></el-checkbox>
                         </template>
-                    </el-table-column>
+                    </el-table-column> -->
                     <el-table-column prop="address" label="备注">
                     </el-table-column>
                 </el-table>
@@ -104,10 +104,10 @@ export default {
             corporation: [],
             valuecorporation: '',
 
-            departmental: [],
+            departmental: [], //部门数据
             valuedepartmental: '', //部门val
 
-            position: [],
+            position: [], //职位数据
             valueposition: '',//职位val
 
             authorityLists: [],
@@ -191,6 +191,8 @@ export default {
         companyChange(){
             this.valuedepartmental = ''; //清空数据
             this.valueposition = '';
+            this.position = [];
+            this.departmental = [];
             var that = this;
             //初始化界面数据
             this.$axios.post(this.PathUrl + '/api/System/QueryDepartmentList', {
@@ -211,6 +213,8 @@ export default {
         //部门下拉框
         depaChange(){
             var that = this;
+            this.position = [], //职位数据
+            this.valueposition = '',//职位val
             //初始化界面数据
             this.$axios.post(this.PathUrl + '/api/System/QueryJobPost', {
                 "CompanyId": this.valuecorporation,
@@ -232,7 +236,7 @@ export default {
             var that = this;
 
             if(this.valueposition == ''){
-                alert("未选择职位!");
+                this.$message.error('请选择职位!');
                 return;  
             }