feat: There is no way the
This commit is contained in:
+28
-23
@@ -1066,7 +1066,7 @@
|
|||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="getDomesticStandardTableBtn(sarBussionessSearch)">搜索
|
@click="getBussionStandTableBtn(sarBussionessSearch,'','sel')">搜索
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
@@ -3262,11 +3262,11 @@ export default {
|
|||||||
this.exportModelFlag = false
|
this.exportModelFlag = false
|
||||||
},
|
},
|
||||||
// 搜索
|
// 搜索
|
||||||
getBussionStandTableBtn (item, advancedSearch) {
|
getBussionStandTableBtn (item, advancedSearch,type) {
|
||||||
item.page = 1
|
item.page = 1
|
||||||
this.tableFlag = item
|
this.tableFlag = item
|
||||||
item.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
// item.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
||||||
this.getBussionStandTable(item)
|
this.getBussionStandTable(item,'',type)
|
||||||
},
|
},
|
||||||
// 清空搜索框
|
// 清空搜索框
|
||||||
clearAllSearch (flag) {
|
clearAllSearch (flag) {
|
||||||
@@ -3357,7 +3357,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 分页查询企业标准---表格
|
// 分页查询企业标准---表格
|
||||||
getBussionStandTable (item, nodeId) {
|
getBussionStandTable (item, nodeId,type) {
|
||||||
if (item !== '' && item !== null && item !== undefined) {
|
if (item !== '' && item !== null && item !== undefined) {
|
||||||
item.pageSize = this.$store.getters.userInfo.configContent
|
item.pageSize = this.$store.getters.userInfo.configContent
|
||||||
}
|
}
|
||||||
@@ -3390,6 +3390,25 @@ export default {
|
|||||||
this.sarBussionessSearch.collectMenuId = undefined
|
this.sarBussionessSearch.collectMenuId = undefined
|
||||||
}
|
}
|
||||||
this.sarBussionessSearch.userId = this.$store.getters.userInfo.userId
|
this.sarBussionessSearch.userId = this.$store.getters.userInfo.userId
|
||||||
|
if(type === 'sel'){
|
||||||
|
const advanceSearchVOList = [];
|
||||||
|
if(this.formFieldListData !== undefined && this.formFieldListData !== null){
|
||||||
|
const formFieldList = this.formFieldListData
|
||||||
|
formFieldList.forEach((item) => {
|
||||||
|
const value = this.sarBussionessSearch[item.attrField]
|
||||||
|
// 时间格式处理
|
||||||
|
if (value !== undefined && value !== null && value !== '') {
|
||||||
|
advanceSearchVOList.push({
|
||||||
|
connect: advanceSearchVOList.length > 0 ? "and" : "",
|
||||||
|
field: item.attrField || '',
|
||||||
|
type: 'like',
|
||||||
|
value: value
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.sarBussionessSearch.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
|
||||||
|
}
|
||||||
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', !item ? this.sarBussionessSearch : item, {
|
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', !item ? this.sarBussionessSearch : item, {
|
||||||
_this: this, loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -3409,6 +3428,7 @@ export default {
|
|||||||
if ((this.standinfoList.length === 0 || this.standinfoList === []) && this.sarBussionessSearch.page !== 1) {
|
if ((this.standinfoList.length === 0 || this.standinfoList === []) && this.sarBussionessSearch.page !== 1) {
|
||||||
this.pageChange(1)
|
this.pageChange(1)
|
||||||
}
|
}
|
||||||
|
this.isAdvancedSearch = false
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
// this.$refs.selection.selectAll(false)
|
// this.$refs.selection.selectAll(false)
|
||||||
@@ -3685,22 +3705,7 @@ export default {
|
|||||||
const attrSearchMap = {
|
const attrSearchMap = {
|
||||||
applyArctic: formData.applyArctic
|
applyArctic: formData.applyArctic
|
||||||
}
|
}
|
||||||
formData['attrSearchStr'] = JSON.stringify(attrSearchMap)
|
formData['attrSearchStr'] = JSON.stringify(attrSearchMap)
|
||||||
|
|
||||||
const advanceSearchVOList = [];
|
|
||||||
const formFieldList = this.formFieldList
|
|
||||||
formFieldList.forEach((item) => {
|
|
||||||
const value = formData[item.attrField]
|
|
||||||
// 时间格式处理
|
|
||||||
if (value !== null && value !== '') {
|
|
||||||
advanceSearchVOList.push({
|
|
||||||
field: item.attrField || '',
|
|
||||||
type: 'like',
|
|
||||||
value: value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
|
|
||||||
this.SarExportSearchEo = item || this.sarBussionessSearch
|
this.SarExportSearchEo = item || this.sarBussionessSearch
|
||||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
|
||||||
_this: this, loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
@@ -3914,10 +3919,10 @@ export default {
|
|||||||
// this.classifyCodeOptions = res.data.STANDCLASSIFY
|
// this.classifyCodeOptions = res.data.STANDCLASSIFY
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
this.getBussionStandTable(this.tableFlag)
|
|
||||||
// this.getOrgTreeSource()
|
|
||||||
// 加载动态表单数据
|
// 加载动态表单数据
|
||||||
this.getAddFormFieldList()
|
this.getAddFormFieldList()
|
||||||
|
this.getBussionStandTable(this.tableFlag)
|
||||||
|
// this.getOrgTreeSource()
|
||||||
this.tableHeight = $('.content').height() - 44 - 20
|
this.tableHeight = $('.content').height() - 44 - 20
|
||||||
window.onresize = () => {
|
window.onresize = () => {
|
||||||
this.tableHeight = $('.content').height() - 44 - 20
|
this.tableHeight = $('.content').height() - 44 - 20
|
||||||
|
|||||||
Reference in New Issue
Block a user