| | |
| | | multiple: true, |
| | | tags: true, |
| | | hide: true, |
| | | dateType: "string", |
| | | dataType: "string", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | type: "tree", |
| | |
| | | tags: true, |
| | | type: "tree", |
| | | multiple: true, |
| | | dateType: "string", |
| | | // dateType: "string", |
| | | dataType: "string", |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | cascader: ['articleId'], |
| | |
| | | label: "name", |
| | | value: 'id' |
| | | }, |
| | | // hide: true, |
| | | }, |
| | | { |
| | | hide: true, |
| | |
| | | type: 'select', |
| | | dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtId={{rotationRange}}`, |
| | | formslot: true, |
| | | cascader: ['vote'], |
| | | // cascader: ['vote'], |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | |
| | | if (["edit", "view"].includes(type)) { |
| | | getRotation(this.form.id).then((res) => { |
| | | this.form = res.data.data |
| | | if (this.form.rotationRange) { |
| | | this.form.rotationRange = JSON.parse(this.form.rotationRange) |
| | | } |
| | | // if (this.form.rotationRange) { |
| | | // this.form.rotationRange = JSON.parse(this.form.rotationRange) |
| | | // } |
| | | // if (this.form.communityCode) { |
| | | // this.form.communityCode = JSON.parse(this.form.communityCode) |
| | | // } |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | if (item.rotationRange) { |
| | | item.rotationRange = JSON.parse(item.rotationRange) |
| | | } |
| | | // if (item.rotationRange) { |
| | | // item.rotationRange = JSON.parse(item.rotationRange) |
| | | // } |
| | | // if (item.communityCode) { |
| | | // item.communityCode = JSON.parse(item.communityCode) |
| | | // } |