| | |
| | | getNoticePd, |
| | | upcommentPd |
| | | } from "@/api/discuss/publicDiscuss"; |
| | | |
| | | import { |
| | | getDistrictTree |
| | | } from "@/api/district/index"; |
| | | |
| | | import { |
| | | mapGetters |
| | | } from "vuex"; |
| | |
| | | message: "请输入资讯类型", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, { |
| | | label: "资讯范围", |
| | | prop: "articleList", |
| | | span: 12, |
| | | minRows: 2, |
| | | type: "cascader", |
| | | multiple: true, |
| | | tags: true, |
| | | dicData: [], |
| | | props: { |
| | | label: "name", |
| | | value: 'id' |
| | | }, |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "资讯类型", |
| | |
| | | // }, |
| | | ] |
| | | }, |
| | | districtTree: [], |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | row.videoUrl = ""; |
| | | } |
| | | row.userid = this.userInfo.user_id; |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | add(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | ); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getNotice(this.form.id).then((res) => { |
| | | this.form = res.data.data; |
| | | let data = res.data.data |
| | | this.form = data; |
| | | }); |
| | | } |
| | | // con |
| | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | getDistrictTree(params = {}).then((res) => { |
| | | const data = res.data.data; |
| | | this.districtTree = data; |
| | | const column = this.findObject(this.option.column, "articleList"); |
| | | column.dicData = res.data.data; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | updateFb(row) { |
| | | if (row.publish == "0") { |