Browse Source

部门编码可以修改

fenghaifu 2 years ago
parent
commit
3dc545e44b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/system/DepartList.vue

+ 3 - 3
src/views/system/DepartList.vue

@@ -95,7 +95,7 @@
                 :labelCol="labelCol"
                 :wrapperCol="wrapperCol"
                 label="机构编码">
-                <a-input disabled placeholder="请输入机构编码" v-decorator="['orgCode', validatorRules.orgCode ]"/>
+                <a-input placeholder="请输入机构编码" v-decorator="['orgCode', validatorRules.orgCode ]"/>
               </a-form-item>
               <a-form-item
                 :labelCol="labelCol"
@@ -162,7 +162,7 @@
 <script>
   import DepartModal from './modules/DepartModal'
   import pick from 'lodash.pick'
-  import {queryDepartTreeListNotOrg,queryDepartTreeList, searchByKeywords, deleteByDepartId} from '@/api/api'
+  import {queryDepartTreeListNotOrg,queryDepartTreeList, searchByKeywords, deleteByDepartId,queryMyDepartTreeList} from '@/api/api'
   import {httpAction, deleteAction} from '@/api/manage'
   import {JeecgListMixin} from '@/mixins/JeecgListMixin'
   import DepartAuthModal from './modules/DepartAuthModal'
@@ -280,7 +280,7 @@
         var that = this
         that.treeData = []
         that.departTree = []
-        queryDepartTreeListNotOrg().then((res) => {
+        queryMyDepartTreeList().then((res) => {
           if (res.success) {
             for (let i = 0; i < res.result.length; i++) {
               let temp = res.result[i]