Browse Source

no message

master
王金鹏 6 years ago
parent
commit
0b8a45a6dd
  1. 6
      src/views/modules/user/partymembers-add-or-update.vue
  2. 9
      src/views/modules/user/partymembers.vue

6
src/views/modules/user/partymembers-add-or-update.vue

@ -52,7 +52,7 @@
</el-form-item>
<el-form-item label="用户角色" prop="tagIds">
<el-checkbox-group v-model="dataForm.tagIds">
<el-checkbox v-for="item in tagOptions" :key="item.id" :label="item.id">{{item.tagName}}</el-checkbox>
<el-checkbox v-for="item in tagOptions" :key="item.tagName" :label="item.id">{{item.tagName}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form>
@ -144,11 +144,10 @@ export default {
return this.$message.error(res.msg)
}
this.tagOptions = res.data
console.log(this.tagOptions)
}).catch(() => {})
},
getStreetList () {
this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => {
this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@ -192,6 +191,7 @@ export default {
...this.dataForm,
...res.data
}
this.dataForm.tagIds = res.data.tagIdsNew
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)

9
src/views/modules/user/partymembers.vue

@ -174,7 +174,7 @@ export default {
this.dataForm.endTime = this.timeRange[1]
},
getStreetList () {
this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => {
this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@ -220,12 +220,17 @@ export default {
return row.cadreFlag === '1' ? '是' : row.cadreFlag === '0' ? '否' : '未知'
},
formatRegist: function (row, column) {
console.log(row.registFlag)
return row.registFlag === '1' ? '是' : row.registFlag === '0' ? '否' : '未知'
},
importData () {
},
exportData () {
this.$http.get(`/app-user/partymembers/export`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
console.log(res)
}).catch(() => {})
}
}
}

Loading…
Cancel
Save