| | |
| | | <el-table-column prop="columnName" label="全部" min-width="5" align="center"> |
| | | <!-- <template slot-scope="scope">{{ scope.row.id }}</template> --> |
| | | </el-table-column> |
| | | <el-table-column prop="isReceive" label="启用" min-width="5"> |
| | | <el-table-column label="启用" min-width="5"> |
| | | <template slot-scope="scope"> |
| | | <!-- @change="handleChangeStatus(scope.row)" --> |
| | | <el-switch class="switchStyle" |
| | | v-model="scope.row.isReceive" |
| | | active-color="#3fef9a" |
| | | inactive-color="#000212" |
| | | active-value="1" |
| | | inactive-value="0"> |
| | | </el-switch> |
| | | {{ scope.row.isReceive}} |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | | @change="handleSelectionChange(scope.row)"> |
| | | |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <el-button type="button" @click="channelSetting">取消</el-button> |
| | | <el-button type="button" @click="cancelChannel">取消</el-button> |
| | | </el-dialog> |
| | | |
| | | <el-dialog :visible.sync="updatePasswordDialog" width="40%" title="修改密码" v-if="updatePasswordDialog" |
| | |
| | | this.setLoginInfo(); |
| | | }, |
| | | methods: { |
| | | cancelChannel(){ |
| | | this.channelSettingVisible=false |
| | | }, |
| | | handleSelectionChange(val) { |
| | | const userInfo = JSON.parse(sessionStorage.getItem('user')); |
| | | console.log(val[0]) |
| | | this.messageColumnSet.userId = userInfo.user.id |
| | | this.messageColumnSet.messageColumnId = val[0].id |
| | | if (val[0].isReceive == null) { |
| | | this.messageColumnSet.messageColumnId = val.id |
| | | if (val.isReceive == null) { |
| | | this.messageColumnSet.isReceive = 1 |
| | | } |
| | | if (val[0].isReceive == 1) { |
| | | if (val.isReceive == 1) { |
| | | this.messageColumnSet.isReceive = 1 |
| | | } |
| | | else if (val.isReceive == 0) { |
| | | this.messageColumnSet.isReceive = 0 |
| | | } |
| | | if (val[0].isReceive == 0) { |
| | | this.messageColumnSet.isReceive = 1 |
| | | } |
| | | this.$axios({ |
| | | method: 'post', |