| | |
| | | class="advancedSeaTrue1" |
| | | > |
| | | <h3>高级搜索</h3> |
| | | <MyForm @submit="onSubmit" @reset="resetForm" :from="from" /> |
| | | <MyForm |
| | | @submit=" |
| | | (data) => { |
| | | CurrentPage = 1; |
| | | onSubmit(data); |
| | | } |
| | | " |
| | | @reset="resetForm" |
| | | :from="from" |
| | | /> |
| | | </view> |
| | | </view> |
| | | <uni-row |
| | |
| | | label: "时期", |
| | | name: "dynasty", |
| | | value: "" |
| | | }, |
| | | } |
| | | // { |
| | | // type: "select", |
| | | // label: "机构", |
| | |
| | | // 表格的数组 |
| | | tableData: [], |
| | | // 分页的总数 |
| | | total: 100, |
| | | total: 0, |
| | | // 当前页 |
| | | CurrentPage: 1, |
| | | // 一页显示多少条数据 |
| | |
| | | tagId: "", |
| | | official: "", |
| | | genderType: "" |
| | | } |
| | | }, |
| | | aSearchData: "" |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | document.querySelector(".fbox1").style.height = box1Height + "px"; |
| | | } |
| | | }); |
| | | if (this.isAdvancedSearch) { |
| | | this.keywords = ""; |
| | | this.CurrentPage = 1; |
| | | } |
| | | }, |
| | | // 高级搜索 |
| | | async onSubmit(val) { |
| | | this.keywords = ""; |
| | | this.hotAciveIndex = ""; |
| | | this.aSearchData = val; |
| | | this.profession.index = Number(val.tagId); |
| | | this.profession.id = Number(val.tagId); |
| | | const currentDynasty = this.dynasty.list.find( |
| | |
| | | this.dynasty.id = currentDynasty.dynastyId; |
| | | } |
| | | this.submitData = val; |
| | | this.CurrentPage = 1; |
| | | |
| | | let Obj = { |
| | | keywords: "", //搜索框检索 |
| | | name: val.name, //姓名 |
| | |
| | | dynasty: val.dynasty, //朝代id |
| | | dynastyId: this.dynasty.id, //朝代id |
| | | institution: val.institution, //机构 |
| | | bookId: null, //来源id |
| | | page: this.CurrentPage, |
| | | pageSize: this.pageSize |
| | | }; |
| | |
| | | // 基础搜索 |
| | | async onSearch(val, index) { |
| | | this.keywords = val.text; |
| | | this.aSearchData = ""; |
| | | if (index !== undefined) { |
| | | this.keywords = ""; |
| | | this.hotAciveIndex = index; |
| | |
| | | CurrentChange(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | if (this.isAdvancedSearch) { |
| | | this.onSubmit(this.aSearchData); |
| | | } else { |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | } |
| | | }, |
| | | // 上一页 |
| | | PrevClick(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | if (this.isAdvancedSearch) { |
| | | this.onSubmit(this.aSearchData); |
| | | } else { |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | } |
| | | }, |
| | | // 下一页 |
| | | NextClick(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | if (this.isAdvancedSearch) { |
| | | this.onSubmit(this.aSearchData); |
| | | } else { |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .lightBo { |
| | | font-size: 0.14rem !important; |
| | | |
| | | .is-leaf { |
| | | background-color: #c1d3ea !important; |
| | | color: #2c2c2c !important; |
| | | font-weight: 400; |
| | | |
| | | .cell { |
| | | height: 0.3rem !important; |
| | | line-height: 0.3rem !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .el-table__body-wrapper { |
| | | .el-table__row { |
| | | height: 0.46rem !important; |
| | | line-height: 0.46rem !important; |
| | | .lightBo .is-leaf { |
| | | background-color: #c1d3ea !important; |
| | | color: #2c2c2c !important; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .cell { |
| | | height: 0.3rem !important; |
| | | line-height: 0.3rem !important; |
| | | } |
| | | } |
| | | .lightBo .is-leaf .cell { |
| | | height: 0.3rem !important; |
| | | line-height: 0.3rem !important; |
| | | } |
| | | |
| | | .el-table__body-wrapper .el-table__row { |
| | | height: 0.46rem !important; |
| | | line-height: 0.46rem !important; |
| | | } |
| | | .el-table__body-wrapper .el-table__row .cell { |
| | | height: 0.3rem !important; |
| | | line-height: 0.3rem !important; |
| | | } |
| | | } |
| | | |