| | |
| | | |
| | | export default { |
| | | name: "Discharge", |
| | | dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"], |
| | | // 页面只用到 sys_suggest,去掉未使用的字典可少发 3 个请求 |
| | | dicts: ["sys_suggest"], |
| | | components: { Treeselect, StatisticsCards }, |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 首次挂载时 created 已经查过,跳过紧接着触发的 activated,避免重复请求 |
| | | activatedOnce: false, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | |
| | | this.taskQueryReady = true; |
| | | }, |
| | | activated() { |
| | | // 首次挂载时 created 已经请求过,避免重复请求 |
| | | if (!this.activatedOnce) { |
| | | this.activatedOnce = true; |
| | | return; |
| | | } |
| | | // 从别的标签页切回来时,以表单条件为准,丢弃卡片带来的一次性筛选 |
| | | this.cardFilter = null; |
| | | this.errtype = this.$route.query.errtype; |
| | |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | | } |
| | | console.log(item, "3"); |
| | | |
| | | if (item.preachform) { |
| | | item.preachformson = item.preachform; |
| | | idArray = item.preachform.split(","); |
| | | console.log(this.checkboxlist); |
| | | console.log(idArray); |
| | | |
| | | item.preachform = idArray.map((value) => { |
| | | const item = this.checkboxlist.find( |