Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-04 14:33:48 +08:00
7 changed files with 81 additions and 9 deletions
@@ -124,7 +124,7 @@
width="130"> width="130">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standStateShow" prop="standStatusShow"
label="文本状态" label="文本状态"
width="130"> width="130">
</el-table-column> </el-table-column>
@@ -112,9 +112,14 @@
width="130"> width="130">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standStateShow" prop="textStatus"
label="标准状态" label="文本状态"
width="130"> width="130">
<template slot-scope="scope">
<span>
{{ textStatusMap[scope.row.textStatus] }}
</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading> <loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -178,6 +183,8 @@ export default {
}, },
data() { data() {
return { return {
textStatus:'',//文本状态
textStatusMap: {}, // 文本状态id与name对应
replaceLawsNumModel: false, replaceLawsNumModel: false,
sarBussionessLawsEO: { sarBussionessLawsEO: {
replaceLawsNum: '' replaceLawsNum: ''
@@ -213,6 +220,12 @@ export default {
} }
}, },
methods: { methods: {
// 将文本状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
},
handleChange (event) { handleChange (event) {
// const value = event.target.value // const value = event.target.value
const value = event const value = event
@@ -336,6 +349,17 @@ export default {
this.getReplaceLawsNumRow() 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: { watch: {
dataSourceFrom: { dataSourceFrom: {
handler (val) { handler (val) {
@@ -27,6 +27,32 @@
</div> </div>
<div class="tree-right"> <div class="tree-right">
<div class="content"> <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 <el-table
ref="multipleTable" ref="multipleTable"
:data="data" :data="data"
@@ -140,6 +166,10 @@ export default {
name: 'MechanismManage', name: 'MechanismManage',
data () { data () {
return { return {
searchForm: {
uname:"",
email:""
},
userId: '', userId: '',
postList: [], postList: [],
props: { props: {
@@ -165,6 +195,13 @@ export default {
} }
}, },
methods: { methods: {
clearAllSearch() {
this.searchForm = {
uname: "",
email: ""
}
this.getData()
},
resetFormPost () { resetFormPost () {
this.modalPost= false this.modalPost= false
}, },
@@ -247,12 +284,15 @@ export default {
}) })
}, },
getData () { getData () {
this.$http.get('SarInstitution/institution/user', { this.$http.post('SarInstitution/institution/user', {
institutionId: this.id institutionId: this.id,
uname: this.searchForm.uname,
email: this.searchForm.email
}, { }, {
_this: this, _this: this,
loading: 'Loading' loading: 'Loading'
}, res => { }, res => {
console.log(res.data)
res.data.forEach((item) => { res.data.forEach((item) => {
var NameList = '' var NameList = ''
item.positions.forEach((items) => { item.positions.forEach((items) => {
@@ -731,10 +731,12 @@ export default {
} }
}); });
} else { } else {
this.isSubmit = false
return this.$message.warning("请完善人员信息"); return this.$message.warning("请完善人员信息");
} }
}); });
} else { } else {
this.isSubmit = false
return this.$message.warning("请完善基础信息"); return this.$message.warning("请完善基础信息");
} }
}); });
@@ -705,10 +705,12 @@ export default {
} }
}); });
} else { } else {
this.isSubmit = false;
return this.$message.warning("请完善人员信息"); return this.$message.warning("请完善人员信息");
} }
}); });
} else { } else {
this.isSubmit = false;
return this.$message.warning("请完善基础信息"); return this.$message.warning("请完善基础信息");
} }
}); });
@@ -354,9 +354,13 @@ export default {
this.qdform.prcNum = this.prcNum; this.qdform.prcNum = this.prcNum;
this.qdform.prcName = this.prcName; this.qdform.prcName = this.prcName;
this.qdform["id"] = item.id; this.qdform["id"] = item.id;
this.projectId = item.projectId
this.getStandData();
}else{ }else{
this.qdform = item.form this.qdform = item.form
this.dataList =item.form.dataList this.dataList =item.form.dataList
this.projectId = item.form.projectId
this.getStandData();
} }
}); });
}, },
@@ -1935,9 +1935,9 @@ export default {
{type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'} {type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'}
// {validator: this.verify.valiateEnName, trigger: 'blur'} // {validator: this.verify.valiateEnName, trigger: 'blur'}
], ],
// standState: [ standState: [
// {required: true, message: '标准状态不能为空', trigger: 'change'} {required: true, message: '文本状态不能为空', trigger: 'change'}
// ], ],
replaceStandNum: [ replaceStandNum: [
{type: 'string', max: 100, message: '代替标准编号不能超过100个字符', trigger: 'change'} {type: 'string', max: 100, message: '代替标准编号不能超过100个字符', trigger: 'change'}
], ],
@@ -2196,7 +2196,7 @@ export default {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
}) })
console.log(this.textStatusMap, '文本状态的值') console.log(this.textStatusMap, '外面的文本状态的值')
}, },
busVsFunc(){ busVsFunc(){
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {