|
|
@ -44,8 +44,12 @@ |
|
|
|
<el-form-item> |
|
|
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="danger" @click="closeHandle()">{{ $t('close') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
|
|
|
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> |
|
|
|
<el-table-column label="序号" type="index" show-overflow-tooltip align="center" width="50"></el-table-column> |
|
|
|
<el-table-column prop="nickname" label="发言人" header-align="center" align="center" min-width="150" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="createdTime" label="时间" header-align="center" align="center" width="160"></el-table-column> |
|
|
@ -165,9 +169,26 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
close (id) { |
|
|
|
let array = [] |
|
|
|
array[0] = id |
|
|
|
this.closeVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.close.dataForm.ids = array |
|
|
|
this.$refs.close.init() |
|
|
|
}) |
|
|
|
}, |
|
|
|
closeHandle (e) { |
|
|
|
let t = this |
|
|
|
let a = t.dataListSelections.map(function (e) { |
|
|
|
return e[t.mixinViewModuleOptions.deleteIsBatchKey] |
|
|
|
}) |
|
|
|
if (a.length === 0) { |
|
|
|
this.$message.info('请先选择关闭的话题') |
|
|
|
return |
|
|
|
} |
|
|
|
this.closeVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.close.dataForm.id = id |
|
|
|
this.$refs.close.dataForm.ids = a |
|
|
|
this.$refs.close.init() |
|
|
|
}) |
|
|
|
}, |
|
|
|