用户管理-增加组织机构搜索条件

This commit is contained in:
zyx.net
2022-07-22 15:30:42 +08:00
parent 6a916e0037
commit c7dbf58f68
3 changed files with 50 additions and 1 deletions
+1
View File
@@ -1168,4 +1168,5 @@ module.exports = {
fullTextComments:'Full text comments', fullTextComments:'Full text comments',
fileDeclaration:'file Declaration', fileDeclaration:'file Declaration',
FileForDetails:'File For Details', FileForDetails:'File For Details',
Theorganization:'The Organization',
} }
+1
View File
@@ -1172,4 +1172,5 @@ module.exports = {
fullTextComments:'全文评论', fullTextComments:'全文评论',
fileDeclaration:'文件说明', fileDeclaration:'文件说明',
FileForDetails:'文件详情', FileForDetails:'文件详情',
Theorganization:'组织机构',
} }
+48 -1
View File
@@ -57,6 +57,28 @@
</a-select> </a-select>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('Theorganization')">
<span>{{ $t('Theorganization') }}</span>
</div>
<a-tree-select
tree-node-filter-prop="title"
v-model="queryParam.orgCode"
:maxTagCount="1"
show-search
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="CategoryTreeList"
:placeholder="$t('PleaseSelect')+$t('Theorganization')"
/>
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.technologyTerritory"-->
<!-- :placeholder="$t('PleaseSelect')+$t('technicalField')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
</div>
</a-col>
</template> </template>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
@@ -141,7 +163,7 @@
import DepartmentAllocation from './modules/departmentAllocation' import DepartmentAllocation from './modules/departmentAllocation'
import UserModal from './modules/UserModal' import UserModal from './modules/UserModal'
import PasswordModal from './modules/PasswordModal' import PasswordModal from './modules/PasswordModal'
import { putAction, getFileAccessHttpUrl } from '@/api/manage' import {getAction, putAction, getFileAccessHttpUrl } from '@/api/manage'
import { frozenBatch } from '@/api/api' import { frozenBatch } from '@/api/api'
import { JeroListMixin } from '@/mixins/JeroListMixin' import { JeroListMixin } from '@/mixins/JeroListMixin'
import JInput from '@/components/jero/JInput' import JInput from '@/components/jero/JInput'
@@ -174,6 +196,18 @@
departmentvisible: false, // 部门配置得弹框 departmentvisible: false, // 部门配置得弹框
selectedRowKeys: [], selectedRowKeys: [],
selectedRowKeysvalue: [], selectedRowKeysvalue: [],
CategoryTreeList:[],
ipagination: {
current: 1,
pageSize: 10,
pageSizeOptions: ['10', '30', '50', '100'],
showTotal: (total, range) => {
return range[0] + '-' + range[1] + ' 共' + total + '条'
},
showQuickJumper: true,
showSizeChanger: true,
total: 0
},
columns: [ columns: [
{ {
title: this.$t('serialNumber'), title: this.$t('serialNumber'),
@@ -259,6 +293,7 @@
list: '/sys/user/page', list: '/sys/user/page',
delete: '/sys/user/delete', delete: '/sys/user/delete',
deleteBatch: '/sys/user/deleteBatch', deleteBatch: '/sys/user/deleteBatch',
getSysCategoryTree: '/sys/sysDepart/queryTreeList',
exportXlsUrl: '/sys/user/exportXls', exportXlsUrl: '/sys/user/exportXls',
importExcelUrl: 'sys/user/importExcel' importExcelUrl: 'sys/user/importExcel'
} }
@@ -269,6 +304,9 @@
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
} }
}, },
mounted() {
this.getSysCategoryTree()
},
methods: { methods: {
// 重置密码 // 重置密码
resetPassword(val) { resetPassword(val) {
@@ -368,6 +406,15 @@
}) })
} }
}, },
getSysCategoryTree() {
getAction(this.url.getSysCategoryTree, {}).then((res) => {
if (res.success) {
this.CategoryTreeList = res.result
} else {
this.CategoryTreeList = []
}
})
},
handleMenuClick(e) { handleMenuClick(e) {
if (e.key == 1) { if (e.key == 1) {
this.batchDel() this.batchDel()