| src/views/article/components/deitDiscussion.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/article/discussionManage.vue | ●●●●● patch | view | raw | blame | history |
src/views/article/components/deitDiscussion.vue
@@ -261,6 +261,7 @@ }, query: {}, newData: {}, articleRange: {}, } }, @@ -274,8 +275,8 @@ }, searchReset() { if (this.newData.articleRange) { this.query.districtId = this.newData.articleRange[0][0] if (this.articleRange) { this.query.districtId = this.newData.articleRange } this.query.articleId = this.articleId this.userPage.currentPage = 1 @@ -283,8 +284,8 @@ }, searchChange(params, done) { if (this.newData.articleRange) { this.query.districtId = this.newData.articleRange[0][0] if (this.articleRange) { this.query.districtId = this.newData.articleRange } this.query = params this.query.articleId = this.articleId @@ -298,6 +299,8 @@ this.articleId = newData.id this.query.level = 1 this.query.articleId = this.articleId this.newData = newData this.query.districtId = newData.articleRange this.onLoad(this.userPage, this.query) }, // initData(newData) { @@ -419,23 +422,18 @@ openUser(row, type = 0) { this.popupTableUserShow = true this.newData = row this.query = {} this.articleId = row.id let districtId if (this.newData.articleRange) { console.log(this.newData) // this.newData.articleRange = JSON.parse(this.newData.articleRange) districtId = this.newData.articleRange[0][0] console.log("********************" + districtId) } console.log(districtId) if (type == 0) { this.newData = row districtId = this.newData.articleRange this.userParams = { articleId: row.id, districtId: districtId } } else { districtId = this.newData.articleRange this.userParams = { topicsId: row.id, districtId: districtId src/views/article/discussionManage.vue
@@ -1,10 +1,9 @@ <template> <basic-container> <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> <template slot="menuLeft"> <el-button size="small" icon="el-icon-delete" plain v-if="permission.article_delete" @click="handleDelete">删 除 @@ -24,13 +23,11 @@ 参与用户 </el-button> <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)"> <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)"> 撤销 </el-button> <el-button v-if="row.publish == '0'" icon="el-icon-check" :size="size" :type="type" @click.stop="updateFb(row)"> <el-button v-if="row.publish == '0'" icon="el-icon-check" :size="size" :type="type" @click.stop="updateFb(row)"> 发布 </el-button> </template> @@ -684,6 +681,7 @@ 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(",")