Browse Source

dd

shibei_master
13176889840 3 years ago
parent
commit
e36d7e3a8f
  1. 4
      src/views/modules/base/epidemic/natFocus/natFocusList.vue
  2. 7
      src/views/modules/base/epidemic/natFocus/nfNoticeList.vue
  3. 10
      src/views/modules/base/epidemic/natFocus/nfSendNotice.vue
  4. 11
      src/views/modules/base/epidemic/travel.vue

4
src/views/modules/base/epidemic/natFocus/natFocusList.vue

@ -497,7 +497,7 @@ export default {
} }
this.sendNoticeFormShow = true this.sendNoticeFormShow = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_sendnotice.initForm(this.selectionAll) this.$refs.ref_sendnotice.initForm(this.selectionAll, '2')
}) })
}, },
@ -505,7 +505,7 @@ export default {
handleNoticeList (row) { handleNoticeList (row) {
this.noticeListFormShow = true this.noticeListFormShow = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_noticelist.initTable(row.idCard) this.$refs.ref_noticelist.initTable(row.idCard, '2')
}) })
}, },

7
src/views/modules/base/epidemic/natFocus/nfNoticeList.vue

@ -70,7 +70,7 @@ export default {
tableData: [], tableData: [],
pageSize: 20, pageSize: 20,
pageNo: 1, pageNo: 1,
origin: ''
} }
}, },
components: {}, components: {},
@ -80,8 +80,9 @@ export default {
methods: { methods: {
async initTable (idCard) { async initTable (idCard, origin) {
this.idCard = idCard this.idCard = idCard
this.origin = origin
await this.loadTable() await this.loadTable()
}, },
@ -95,7 +96,7 @@ export default {
idCard: this.idCard, idCard: this.idCard,
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
origin: '1' origin: this.origin
} }
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)

10
src/views/modules/base/epidemic/natFocus/nfSendNotice.vue

@ -73,7 +73,7 @@ export default {
btnDisable: false, btnDisable: false,
formData: { formData: {
origin: '1', origin: '',
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: '', content: '',
@ -92,10 +92,11 @@ export default {
methods: { methods: {
async initForm (selectionAll) { async initForm (selectionAll, origin) {
this.$refs['ref_form1'].resetFields(); this.$refs['ref_form1'].resetFields();
this.formData.userList = selectionAll this.formData.userList = selectionAll
this.formData.origin = origin
}, },
@ -119,7 +120,7 @@ export default {
} }
console.log(this.formData) console.log(this.formData)
return false // return false
this.btnDisable = true this.btnDisable = true
setTimeout(() => { setTimeout(() => {
@ -128,8 +129,7 @@ export default {
let url = '' let url = ''
url = '/epmetuser/icNotice/batchnotice' url = '/epmetuser/icNotice/sendNotice'
// url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNotice/batchnotice"
const { data, code, msg } = await requestPost(url, this.formData) const { data, code, msg } = await requestPost(url, this.formData)

11
src/views/modules/base/epidemic/travel.vue

@ -445,7 +445,7 @@ export default {
handleNoticeList (row) { handleNoticeList (row) {
this.noticeListFormShow = true this.noticeListFormShow = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_noticelist.initTable(row.idCard) this.$refs.ref_noticelist.initTable(row.idCard, '0')
}) })
}, },
@ -465,7 +465,14 @@ export default {
} }
this.sendNoticeFormShow = true this.sendNoticeFormShow = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_sendnotice.initForm(this.selectionAll) const arr = this.selectionAll.map(item => {
return {
userId: item.userId,
idCard: item.idCard,
mobile: item.mobile
}
})
this.$refs.ref_sendnotice.initForm(arr, '0')
}) })
}, },

Loading…
Cancel
Save