| | |
| | | </el-form-item> |
| | | <el-form-item v-show="tjproposal == 0"> |
| | | <el-input |
| | | v-model="queryParams1.zyzd" |
| | | v-model="searchAdv" |
| | | style="width: 180px" |
| | | placeholder="请输入搜索内容" |
| | | clearable |
| | |
| | | <el-button type="primary" @click="search" v-show="tjproposal == 0" |
| | | >搜索</el-button |
| | | > |
| | | <el-form-item v-show="tjproposal == 1"> |
| | | <el-input |
| | | v-model="searchCyjy" |
| | | style="width: 180px" |
| | | placeholder="请输入搜索内容" |
| | | clearable |
| | | @clear="search1" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-button type="primary" @click="search1" v-show="tjproposal == 1" |
| | | >搜索</el-button> |
| | | </el-form> |
| | | |
| | | <el-table |
| | |
| | | height="500px" |
| | | > |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column label="编码" width="70" align="center" prop="id" /> |
| | | <!-- <el-table-column label="编码" width="70" align="center" prop="id" /> --> |
| | | <el-table-column label="标题" width="120" align="center" prop="title" /> |
| | | <el-table-column label="建议内容" align="left" prop="advice" /> |
| | | <!-- <el-table-column |
| | |
| | | :total="total" |
| | | :page.sync="queryParams.page" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="radiotjproposalChange" |
| | | @pagination="radiotjproposalChange1" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | tjproposal: "0", |
| | | open: false, |
| | | openone: false, |
| | | prevOpen: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | total: 0, |
| | |
| | | // 遮罩层 |
| | | loading: false, |
| | | searchAdv: "", |
| | | searchCyjy:"", |
| | | queryParams1: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | |
| | | mounted() { |
| | | // this.getList() |
| | | }, |
| | | |
| | | created() { |
| | | // if( this.queryParams){ |
| | | // this.getList() |
| | | // } |
| | | }, |
| | | methods: { |
| | | clearSearchFields() { |
| | | this.searchAdv = '' |
| | | this.searchCyjy = '' |
| | | }, |
| | | setTjProposal(mode) { |
| | | if (this.tjproposal !== mode) { |
| | | this.tjproposal = mode; |
| | |
| | | console.log(this.list); |
| | | }, |
| | | search() { |
| | | // this.queryParams.jybt = this.searchAdv; |
| | | // this.queryParams.page = 1; |
| | | this.queryParams1.zyzd = this.searchAdv; |
| | | this.queryParams.pageNum = 1; |
| | | this.loading = true; |
| | | listAdvicerules(this.queryParams1).then((res) => { |
| | | this.dataList = res.rows; |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | search1() { |
| | | this.queryParams.nr = this.searchCyjy; |
| | | this.queryParams.page = 1; |
| | | this.loading = true; |
| | | getInfo().then((res) => { |
| | | this.queryParams.userId = res.user.userId; |
| | | this.queryParams.isZj = null; |
| | | getCyTjAdviceKjbqBySex(this.queryParams).then((res) => { |
| | | this.dataList = res.data.records; |
| | | this.total = res.data.total; |
| | | |
| | | this.loading = false; |
| | | }); |
| | | }); |
| | | }, |
| | | radiotjproposalChange() { |
| | | if (this.tjproposal == "0") { |
| | | this.searchAdv = ""; |
| | | // this.searchAdv = ""; |
| | | // this.queryParams.isZj = this.fList.isZj; |
| | | // this.queryParams.userId = null; |
| | | this.getList(); |
| | |
| | | }); |
| | | } |
| | | }, |
| | | radiotjproposalChange1() { |
| | | if (this.tjproposal == "0") { |
| | | // this.searchCyjy = ""; |
| | | this.queryParams.isZj = this.fList.isZj; |
| | | this.queryParams.userId = null; |
| | | this.getList(); |
| | | } else { |
| | | this.loading = true; |
| | | getInfo().then((res) => { |
| | | this.queryParams.userId = res.user.userId; |
| | | this.queryParams.isZj = null; |
| | | getCyTjAdviceKjbqBySex(this.queryParams).then((res) => { |
| | | if (res.data) { |
| | | this.dataList = res.data.records; |
| | | this.total = res.data.total; |
| | | } else { |
| | | this.dataList = []; |
| | | this.total = 0; |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | | this.open = false; |
| | | if (this.list.length != 0) { |