| | |
| | | span: 12, |
| | | minRows: 2, |
| | | type: "tree", |
| | | dataType: "string", |
| | | multiple: true, |
| | | tags: true, |
| | | // search: true, |
| | |
| | | :deep(.avue-form__menu--center .el-button) { |
| | | margin: 0 5px 0 0; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | minRows: 2, |
| | | tags: true, |
| | | type: "tree", |
| | | dataType: "string", |
| | | multiple: true, |
| | | dicData: [], |
| | | rules: [{ |
| | |
| | | row.videoUrl = "" |
| | | } |
| | | row.userid = this.userInfo.user_id |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | ) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | // }) |
| | | this.form = { |
| | | ...data, |
| | | articleList: JSON.parse(data.articleRange) |
| | | articleList: data.articleRange |
| | | } |
| | | }) |
| | | } |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | item.articleList = JSON.parse(item.articleRange) |
| | | item.articleList = item.articleRange |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | minRows: 2, |
| | | type: "tree", |
| | | multiple: true, |
| | | dataType: "string", |
| | | tags: true, |
| | | dicData: [], |
| | | rules: [{ |
| | |
| | | // row.videoUrl = ""; |
| | | // } |
| | | row.userid = this.userInfo.user_id |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | ) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | }) |
| | | data.url = urls.join(",") |
| | | } |
| | | data.articleList = JSON.parse(data.articleRange) |
| | | data.articleList = data.articleRange |
| | | this.form = data |
| | | }) |
| | | } |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | item.articleList = JSON.parse(item.articleRange) |
| | | item.articleList = item.articleRange |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | |
| | | 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) |
| | | // } |