Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<loading :loading="Loading">加载中...</loading>
|
<loading :loading="Loading">加载中...</loading>
|
||||||
<pagination :page="page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
<pagination :page="page" :total="total" :pageSize="pageSize" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
||||||
</div>
|
</div>
|
||||||
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
|
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -278,13 +278,18 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'treeLoading'
|
loading: 'treeLoading'
|
||||||
}, res => {
|
}, res => {
|
||||||
|
console.log(res);
|
||||||
this.treeData = res.data
|
this.treeData = res.data
|
||||||
this.id = res.data[0].id
|
this.id = res.data[0].id
|
||||||
this.getData()
|
this.getData()
|
||||||
|
}, e => {
|
||||||
|
console.log(e);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
this.$http.post('SarInstitution/institution/user', {
|
this.$http.post('SarInstitution/institution/user', {
|
||||||
|
current:this.page,
|
||||||
|
size: this.pageSize,
|
||||||
institutionId: this.id,
|
institutionId: this.id,
|
||||||
uname: this.searchForm.uname,
|
uname: this.searchForm.uname,
|
||||||
email: this.searchForm.email
|
email: this.searchForm.email
|
||||||
@@ -293,7 +298,7 @@ export default {
|
|||||||
loading: 'Loading'
|
loading: 'Loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
res.data.forEach((item) => {
|
res.data.records.forEach((item) => {
|
||||||
var NameList = ''
|
var NameList = ''
|
||||||
item.positions.forEach((items) => {
|
item.positions.forEach((items) => {
|
||||||
if (NameList.length > 0) {
|
if (NameList.length > 0) {
|
||||||
@@ -303,8 +308,8 @@ export default {
|
|||||||
})
|
})
|
||||||
item.NameList = NameList
|
item.NameList = NameList
|
||||||
})
|
})
|
||||||
this.data = res.data
|
this.data = res.data.records
|
||||||
this.total = res.data.length
|
this.total = res.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
@@ -312,7 +317,7 @@ export default {
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
pageSizeChange (pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.$store.getters.userInfo.configContent = pageSize
|
this.pageSize = pageSize
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,30 @@
|
|||||||
<!-- 配置管理 - 岗位管理 -->
|
<!-- 配置管理 - 岗位管理 -->
|
||||||
<template>
|
<template>
|
||||||
<div id="post-manage">
|
<div id="post-manage">
|
||||||
|
<div class="search-area">
|
||||||
|
<div class="left">
|
||||||
|
<el-form ref="" :model="sarPost" inline>
|
||||||
|
<el-form-item label="岗位名称" class="search-item">
|
||||||
|
<el-input v-model="sarPost.name"
|
||||||
|
placeholder="岗位名称查找"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="" class="search-item btn-box">
|
||||||
|
<el-button class="common-button-primary" type="primary" size="mini" @click="searchPostName"
|
||||||
|
v-btn-permission="">查询
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="" class="search-item btn-box">
|
||||||
|
<el-button class="common-button-default" @click="resetSelect" size="mini"
|
||||||
|
v-btn-permission="">清空
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<div class="right">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
class="common-button-primary add-button"
|
class="common-button-primary add-button"
|
||||||
@@ -65,6 +89,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<pagination :page="page" :pageSize="pageSize" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
||||||
</div>
|
</div>
|
||||||
<loading :loading="Loading">加载中...</loading>
|
<loading :loading="Loading">加载中...</loading>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -133,7 +158,13 @@
|
|||||||
name: 'PostManage',
|
name: 'PostManage',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
editId: '',
|
sarPost: {
|
||||||
|
name: "", // 岗位名称
|
||||||
|
},
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
page: 1,
|
||||||
|
total: 0,
|
||||||
|
editId: '',
|
||||||
type: '', // 1为新增 2为编辑
|
type: '', // 1为新增 2为编辑
|
||||||
dialogTitle: '',
|
dialogTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
@@ -160,6 +191,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
searchPostName() {
|
||||||
|
this.page = 1;
|
||||||
|
this.getData();
|
||||||
|
}, // 查询
|
||||||
|
pageChange(page) {
|
||||||
|
this.page = page;
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
pageSizeChange(pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
// 分页查询
|
||||||
|
resetSelect() {
|
||||||
|
this.sarPost.name = "";
|
||||||
|
this.getData();
|
||||||
|
}, // 外层清空条件查询
|
||||||
|
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[1]) {
|
switch (command[1]) {
|
||||||
case '删除':
|
case '删除':
|
||||||
@@ -177,7 +226,10 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$message.success('删除成功')
|
this.$message.success('删除成功')
|
||||||
this.getData()
|
this.getData()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
this.submitLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
editData (row) {
|
editData (row) {
|
||||||
@@ -225,11 +277,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getData () { // 获取岗位数据
|
getData () { // 获取岗位数据
|
||||||
this.$http.get('sarPosition/position', {}, {
|
this.$http.get('sarPosition/position', {
|
||||||
|
current: this.page,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
...this.sarPost,
|
||||||
|
}, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'Loading'
|
loading: 'Loading'
|
||||||
}, res=> {
|
}, res=> {
|
||||||
res.data.forEach((item)=>{
|
res.data.records.forEach((item)=>{
|
||||||
var idList = []
|
var idList = []
|
||||||
var NameList = ''
|
var NameList = ''
|
||||||
item.roles.forEach((items)=>{
|
item.roles.forEach((items)=>{
|
||||||
@@ -242,7 +298,9 @@
|
|||||||
item.idList = idList
|
item.idList = idList
|
||||||
item.NameList = NameList
|
item.NameList = NameList
|
||||||
})
|
})
|
||||||
this.data = res.data
|
// this.data = res.data
|
||||||
|
this.data = res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addModal () { // 点击新增按钮
|
addModal () { // 点击新增按钮
|
||||||
@@ -317,7 +375,7 @@
|
|||||||
#post-manage {
|
#post-manage {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.content {
|
.content {
|
||||||
height: calc(~'100% - 53px')
|
height: calc(~'100% - 105px - 56px')
|
||||||
}
|
}
|
||||||
.filter-tree {
|
.filter-tree {
|
||||||
height: calc(~'100% - 50px')
|
height: calc(~'100% - 50px')
|
||||||
|
|||||||
+1
-1
@@ -433,7 +433,7 @@
|
|||||||
label="企标编号"
|
label="企标编号"
|
||||||
prop="standCode"
|
prop="standCode"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
class="add-form-item form-item-disabled"
|
class="add-form-item"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarBussionessStandEO.standCode"
|
v-model="sarBussionessStandEO.standCode"
|
||||||
|
|||||||
Reference in New Issue
Block a user