Merge branch 'develop' into 'FOTON'

Develop

See merge request LAWS/laws-system-front-FOTON!321
This commit is contained in:
王夏晖
2022-02-21 16:18:23 +08:00
7 changed files with 43 additions and 19 deletions
@@ -2072,7 +2072,7 @@ export default {
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.treeCheckedKeys = this.form.treeListId.split(',') this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') { if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') {
this.form.country = this.form.country.split(","); this.form.country = this.form.country.split(",");
} }
@@ -2211,7 +2211,7 @@ export default {
this.key2++ this.key2++
this.key3++ this.key3++
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : '' this.form.standYear = bringData.standYear ? bringData.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = bringData.id this.form['id'] = bringData.id
@@ -1091,7 +1091,7 @@ export default {
this.defaultCheckedKeys2 = [this.form.kccvppsbm] this.defaultCheckedKeys2 = [this.form.kccvppsbm]
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){ if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){
@@ -2540,11 +2540,14 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
console.log(processForm);
console.log(this.form);
// this.commentText = processForm.commentText // this.commentText = processForm.commentText
if (processForm.form === undefined) { if (processForm.form === undefined) {
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
} else { } else {
//表单文件处理 //表单文件处理
console.log(2);
this.getFormFieldList(processForm.form) this.getFormFieldList(processForm.form)
} }
} }
@@ -2565,7 +2568,7 @@ export default {
this.defaultCheckedKeys3 = [this.form.dybxh]; this.defaultCheckedKeys3 = [this.form.dybxh];
this.treeCheckedKeys = this.form.treeListId.split(',') this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = item.id this.form['id'] = item.id
@@ -640,7 +640,11 @@ export default {
}, },
//查询项目下的标准 //查询项目下的标准
getStandData() { getStandData() {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, { this.$http.get("sarStandProjectLibrary/queryStandInfo", {
id: this.projectId,
current: this.pageNo,
PageSize: this.pageSizeNo
}, {
_this: this _this: this
}, res => { }, res => {
res.data.records.forEach(item => { res.data.records.forEach(item => {
@@ -649,6 +653,7 @@ export default {
} }
}) })
this.standData = res.data.records; this.standData = res.data.records;
this.totalNo = res.data.total
let ids = []; let ids = [];
this.standData.forEach(item => { this.standData.forEach(item => {
ids.push(item.standId); ids.push(item.standId);
@@ -769,6 +769,10 @@ export default {
if(index > -1){ if(index > -1){
dataListChildren.splice(index, 1) dataListChildren.splice(index, 1)
} }
dataListChildren.forEach(item => {
item.workPeople = this.$store.getters.userInfo.userName
item.workPeopleId = this.$store.getters.userInfo.userId
})
this.dataList = dataListChildren; this.dataList = dataListChildren;
this.total = this.dataList.length; this.total = this.dataList.length;
} else { } else {
@@ -465,13 +465,13 @@ export default {
dataListChildren = dataListChildren.concat(item); dataListChildren = dataListChildren.concat(item);
}); });
dataListChildren = this.dataList.concat(dataListChildren); dataListChildren = this.dataList.concat(dataListChildren);
let index = dataListChildren.findIndex(item => { let newDataListChildren = []
return item.people dataListChildren.forEach(item => {
if(!item.people){
newDataListChildren.push(item)
}
}) })
if(index > -1){ this.dataList = newDataListChildren;
dataListChildren.splice(index, 1)
}
this.dataList = dataListChildren;
this.total = this.dataList.length; this.total = this.dataList.length;
}); });
}, },
@@ -3677,6 +3677,8 @@ export default {
this.selectSarMenu = treeNode this.selectSarMenu = treeNode
this.standCommonlySearch.menuId = treeNode.id this.standCommonlySearch.menuId = treeNode.id
this.sarStandardsSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询 this.sarStandardsSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询
this.standCommonlySearch.treeType = treeNode.treeType
this.sarStandardsSearch.treeType = treeNode.treeType
this.sarStandardsSearch.page = 1 this.sarStandardsSearch.page = 1
this.standCommonlySearch.page = 1 this.standCommonlySearch.page = 1
//搜索后点击属性菜单依然显示搜索条件的数据 //搜索后点击属性菜单依然显示搜索条件的数据
@@ -3797,7 +3799,7 @@ export default {
async getTreeAsync(){ async getTreeAsync(){
let tsResource = await this.selectMenu1() let tsResource = await this.selectMenu1()
let sarMenuStandard = await this.selectMenu2() // let sarMenuStandard = await this.selectMenu2()
let list1 = [] let list1 = []
let list2 = [] let list2 = []
@@ -3805,13 +3807,14 @@ export default {
list1 = tsResource.data list1 = tsResource.data
} }
if(sarMenuStandard && sarMenuStandard.ok && sarMenuStandard.data){ // 国内技术系列 逻辑 注释掉
list2 = sarMenuStandard.data // if(sarMenuStandard && sarMenuStandard.ok && sarMenuStandard.data){
} // list2 = sarMenuStandard.data
// }
if(list2.length > 0){ // if(list2.length > 0){
list1 = list1.concat(list2) // list1 = list1.concat(list2)
} // }
if(list1.length > 0){ if(list1.length > 0){
this.treeList = this.sortByKey(list1,"displaySeq") this.treeList = this.sortByKey(list1,"displaySeq")
@@ -4480,8 +4483,10 @@ export default {
const formData = {...data} const formData = {...data}
if (!item) { if (!item) {
formData.menuId = this.sarStandardsSearch.menuId formData.menuId = this.sarStandardsSearch.menuId
formData.treeType = this.sarStandardsSearch.treeType
} else { } else {
formData.menuId = this.selectSarMenu.id formData.menuId = this.selectSarMenu.id
formData.treeType = this.selectSarMenu.treeType
} }
// 排序 // 排序
@@ -5114,7 +5119,14 @@ export default {
}) })
} else { } else {
this.configStandFlag = true this.configStandFlag = true
this.sarConfigStandSearch.menuId = 'nomenu' if(this.selectSarMenu.treeType === 'sarMs'){
this.sarConfigStandSearch.menuId = 'nomenu'
this.sarConfigStandSearch.sarMsMenuId = menuId
this.sarConfigStandSearch.sarMsType = 'filterSarMsMenu'
}else {
this.sarConfigStandSearch.menuId = 'nomenu'
this.sarConfigStandSearch.sarMsType = ''
}
this.sarConfigStandSearch.page = 1 this.sarConfigStandSearch.page = 1
this.sarConfigStandSearch.country = '' this.sarConfigStandSearch.country = ''
this.sarConfigStandSearch.standNumber = '' this.sarConfigStandSearch.standNumber = ''