This commit is contained in:
宋伟佳
2021-09-04 14:20:58 +08:00
4 changed files with 70 additions and 6 deletions
@@ -124,7 +124,7 @@
width="130">
</el-table-column>
<el-table-column
prop="standStateShow"
prop="standStatusShow"
label="文本状态"
width="130">
</el-table-column>
@@ -112,9 +112,14 @@
width="130">
</el-table-column>
<el-table-column
prop="standStateShow"
label="标准状态"
prop="textStatus"
label="文本状态"
width="130">
<template slot-scope="scope">
<span>
{{ textStatusMap[scope.row.textStatus] }}
</span>
</template>
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -178,6 +183,8 @@ export default {
},
data() {
return {
textStatus:'',//文本状态
textStatusMap: {}, // 文本状态id与name对应
replaceLawsNumModel: false,
sarBussionessLawsEO: {
replaceLawsNum: ''
@@ -213,6 +220,12 @@ export default {
}
},
methods: {
// 将文本状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
},
handleChange (event) {
// const value = event.target.value
const value = event
@@ -336,6 +349,17 @@ export default {
this.getReplaceLawsNumRow()
}
},
async mounted () {
// 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.standStateOptions = res.data.WBZTCLASS // 文本状态
this.setMap(this.standStateOptions)
}, e => {
console.log("error");
})
},
watch: {
dataSourceFrom: {
handler (val) {
@@ -27,6 +27,32 @@
</div>
<div class="tree-right">
<div class="content">
<!--搜索区域-->
<div class="search-area">
<el-form inline class="label-input-form" v-model="searchForm">
<el-form-item label="姓名" class="search-item">
<el-input placeholder="根据姓名查询" clearable v-model="searchForm.uname">
</el-input>
</el-form-item>
<el-form-item label="邮箱" class="search-item">
<el-input placeholder="根据邮箱查询" clearable v-model="searchForm.email">
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" size="mini"
class="common-button-primary" @click="getData">
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button size="mini" class="common-button-default" @click="clearAllSearch">
清空
</el-button>
</el-form-item>
</el-form>
</div>
<el-table
ref="multipleTable"
:data="data"
@@ -140,6 +166,10 @@ export default {
name: 'MechanismManage',
data () {
return {
searchForm: {
uname:"",
email:""
},
userId: '',
postList: [],
props: {
@@ -165,6 +195,13 @@ export default {
}
},
methods: {
clearAllSearch() {
this.searchForm = {
uname: "",
email: ""
}
this.getData()
},
resetFormPost () {
this.modalPost= false
},
@@ -247,12 +284,15 @@ export default {
})
},
getData () {
this.$http.get('SarInstitution/institution/user', {
institutionId: this.id
this.$http.post('SarInstitution/institution/user', {
institutionId: this.id,
uname: this.searchForm.uname,
email: this.searchForm.email
}, {
_this: this,
loading: 'Loading'
}, res => {
console.log(res.data)
res.data.forEach((item) => {
var NameList = ''
item.positions.forEach((items) => {
@@ -2196,7 +2196,7 @@ export default {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
console.log(this.textStatusMap, '文本状态的值')
console.log(this.textStatusMap, '外面的文本状态的值')
},
busVsFunc(){
this.$http.get('sarVppsTree/list', '', {