|
@@ -6,10 +6,10 @@
|
|
|
<el-form :model="dataForm" ref="dataForm" label-width="0px">
|
|
|
<el-form-item label="">
|
|
|
<el-checkbox-group v-model="checkTypes">
|
|
|
- <el-checkbox :disabled="item.value == 'system'" :label="item.value" :key="item.value" v-for="item in types">{{item.name}}</el-checkbox>
|
|
|
+ <el-checkbox :disabled="item.value === 'system'" :label="item.value" :key="item.value" v-for="item in types">{{item.name}}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
</el-form>
|
|
|
<span slot="footer">
|
|
|
<el-button @click="visible = false">取消</el-button>
|
|
@@ -20,25 +20,25 @@
|
|
|
|
|
|
<script>
|
|
|
import { getMyInfo } from '@/api/my'
|
|
|
- import { clearLoginInfo } from '@/utils'
|
|
|
+
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
visible: false,
|
|
|
dataForm: {},
|
|
|
- userInfo:{},
|
|
|
+ userInfo: {},
|
|
|
types: [{
|
|
|
- value: 'system',
|
|
|
- name: '系统消息',
|
|
|
- disabled: true
|
|
|
- }, {
|
|
|
- value: 'message',
|
|
|
- name: '短信消息'
|
|
|
- }, {
|
|
|
- value: 'weChat',
|
|
|
- name: '微信消息'
|
|
|
- }],
|
|
|
- checkTypes:['system']
|
|
|
+ value: 'system',
|
|
|
+ name: '系统消息',
|
|
|
+ disabled: true
|
|
|
+ }, {
|
|
|
+ value: 'message',
|
|
|
+ name: '短信消息'
|
|
|
+ }, {
|
|
|
+ value: 'weChat',
|
|
|
+ name: '微信消息'
|
|
|
+ }],
|
|
|
+ checkTypes: ['system']
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -51,8 +51,8 @@
|
|
|
getMyInfo().then(({data}) => {
|
|
|
if (data && data.code === '200' && data.data) {
|
|
|
this.userInfo = data.data
|
|
|
- if(this.userInfo.userEntity.notifyType){
|
|
|
- this.checkTypes = this.userInfo.userEntity.notifyType.split(",")
|
|
|
+ if (this.userInfo.userEntity.notifyType) {
|
|
|
+ this.checkTypes = this.userInfo.userEntity.notifyType.split(',')
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -65,7 +65,7 @@
|
|
|
url: this.$http.adornUrl('/biz-service/personal/notifyType/save'),
|
|
|
method: 'post',
|
|
|
data: this.$http.adornData({
|
|
|
- 'notifyType': this.checkTypes.join(","),
|
|
|
+ 'notifyType': this.checkTypes.join(','),
|
|
|
'userId': ''
|
|
|
})
|
|
|
}).then(({data}) => {
|