标准清单 高级检索

This commit is contained in:
宋伟佳
2021-06-25 17:57:33 +08:00
parent a2acbe7ae6
commit b843b0d975
60 changed files with 572 additions and 698 deletions
@@ -150,13 +150,7 @@ export default {
}
},
created () {
console.log('Object.keys(searchOption): ', Object.keys(this.searchOption))
this.getOptionData()
// setTimeout(() => {
// this.searchOption[6].data = Array(45).fill('test')
// this.searchOption[6].data = Array(45).fill('test')
// this.ifHaveEnoughData()
// }, 5000)
},
methods: {
/*
@@ -167,7 +161,6 @@ export default {
*/
getOptionData () {
this.$http.get('sys/org/getTree', {}, {_this: this}, res => {
console.log('res: ', res)
this.searchOption[7].data = res.data.map(item => {
return {
label: item.orgName,
@@ -177,7 +170,6 @@ export default {
this.searchOption[7].data.unshift(all)
})
this.$http.get('sys/dictype/getDicTypeListCode', {}, {_this: this}, res => {
console.log('res: ', res)
Object.keys(res.data).forEach(item => {
switch (item) {
case 'REGION' :
@@ -253,7 +245,6 @@ export default {
*@date: 2020-09-27 13:50:21
*/
handleOptionClick (value, index) {
console.log('value: ', value)
// 区域
if (index === 0 || index === 5 || index === 7 || index === 8) {
this.loading = true
@@ -271,7 +262,6 @@ export default {
// 全部
if (value[0] === 'all') {
this.$http.get('sys/dictype/getDicTypeListCode', {}, {_this: this}, res => {
console.log('res: ', res)
this.searchOption[index + 1].data = index === 0 ? res.data['COUNTRY'] : res.data['SUBAREA']
this.searchOption[index + 1].data.unshift(all)
this.ifHaveEnoughData()
@@ -301,7 +291,6 @@ export default {
*/
reloadTable () {
let searchdata = this.searchOption.map(item => item.selectValue)
console.log('searchdata: ', searchdata)
let data = {}
const keys = ['regionList', 'countryList', 'sourceTypeList', 'carTypeList', 'carCategoryList', 'areaList', 'subAreaList', 'departmentList']
keys.forEach((key, index) => {
@@ -310,10 +299,8 @@ export default {
}
})
data['allSubjects'] = this.subject ? this.subject : null
console.log('this.startDate: ', this.startDate)
data['effectiveDate1'] = this.startDate[0] ? this.startDate[0] : null
data['effectiveDate2'] = this.startDate[1] ? this.startDate[1] : null
console.log('data: ', data)
this.$emit('searchData', data)
},
/*