| | |
| | | </template> |
| | | |
| | | <template slot-scope="{ row, size }" slot="iscomment"> |
| | | <el-tag :size="size" :type="showStatus(row.iscomment, 2).type" v-text="showStatus(row.iscomment, 2).text"> |
| | | </el-tag> |
| | | <el-switch @change="iscommentInput($event, row)" v-model="row.iscomment" :active-value="'1'" |
| | | :inactive-value="'0'" active-color="#13ce66" inactive-color="#ccc"> |
| | | </el-switch> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | border: false, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | | viewBtn: false, |
| | |
| | | span: 24, |
| | | minRows: 2, |
| | | tags: true, |
| | | type: "cascader", |
| | | type: "tree", |
| | | multiple: true, |
| | | dicData: [], |
| | | rules: [{ |
| | |
| | | }, |
| | | { |
| | | width: 110, |
| | | label: "文章类型", |
| | | label: "议事类型", |
| | | prop: "articleType", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | |
| | | type: "tree", |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择文章类型", |
| | | message: "请选择议事类型", |
| | | trigger: "blur", |
| | | },], |
| | | }, |
| | | { |
| | | label: "发布时间", |
| | | prop: "dateTime", |
| | | type: "daterange", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | searchSpan: 6, |
| | | searchRange: true, |
| | | hide: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择发布时间", |
| | | trigger: "blur", |
| | | },], |
| | | }, |
| | | // { |
| | | // label: "发布时间", |
| | | // prop: "dateTime", |
| | | // type: "daterange", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // searchSpan: 6, |
| | | // searchRange: true, |
| | | // hide: true, |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // viewDisplay: false, |
| | | // search: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择发布时间", |
| | | // trigger: "blur", |
| | | // }, ], |
| | | // }, |
| | | { |
| | | width: 100, |
| | | label: "发布时间", |
| | |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | search: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | width: 100, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | iscommentInput (e, data) { |
| | | upcomment(data.id, e).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | openEditPopup (row) { |
| | | this.$refs.DeitDiscussion.initData(row) |
| | | getListPd(1, 10, { |
| | | eventType: 1, |
| | | articleId: row.id |
| | | }).then(res => { |
| | | if (res.data.data.records.length == 0) { |
| | | this.$message.warning('请先设置议事规则!') |
| | | setTimeout(() => { |
| | | this.openDilog(row, 1) |
| | | }, 200) |
| | | } else { |
| | | this.$refs.DeitDiscussion.initData(row) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | openUserPopup (row) { |
| | |
| | | } |
| | | // 类型 0:文章 1经营性收支,2:物业招标 3:公益报名 4:选举调查 |
| | | row.type = 4 |
| | | row.publish = 1 |
| | | // row.publish = 1 |
| | | |
| | | add(row).then( |
| | | () => { |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | // item.articleRange = JSON.parse(item.articleRange) |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | |
| | | <style> |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | }</style> |
| | | } |
| | | </style> |