Browse Source

Merge branch 'dev-fangyi' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-fangyi

shibei_master
13176889840 3 years ago
parent
commit
9deffa6230
  1. 7
      src/assets/scss/modules/management/epidemic.scss
  2. 16
      src/views/modules/base/epidemic/natFocus/natFocusAdd.vue
  3. 12
      src/views/modules/base/epidemic/natFocus/nfSendNotice.vue
  4. 20
      src/views/modules/base/epidemic/natInfo/natForm.vue
  5. 16
      src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue
  6. 11
      src/views/modules/base/epidemic/veroFocus/vfSendNotice.vue

7
src/assets/scss/modules/management/epidemic.scss

@ -102,7 +102,14 @@
} }
} }
.div-mult-table { .div-mult-table {
position: relative;
padding: 0 20px; padding: 0 20px;
.div_selcount{
position: absolute;
bottom:10px;
left:30px;
}
} }
.div_dialog_table { .div_dialog_table {

16
src/views/modules/base/epidemic/natFocus/natFocusAdd.vue

@ -201,7 +201,7 @@
<el-table-column prop="natCount" <el-table-column prop="natCount"
header-align="center" header-align="center"
align="center" align="center"
label="疫苗接种次数" label="核酸检测次数"
min-width="100"> min-width="100">
</el-table-column> </el-table-column>
@ -216,8 +216,12 @@
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
<div class="div_selcount">
<span> 已选择人数</span>
<span style="color:red"> {{selectionAll.length}}</span>
</div> </div>
</div>
<div class="div-mult-form"> <div class="div-mult-form">
<!-- <div class="div_person"> <!-- <div class="div_person">
@ -239,11 +243,7 @@
:model="formData2" :model="formData2"
ref="ref_form2" ref="ref_form2"
:label-width="'90px'"> :label-width="'90px'">
<el-form-item label="已选择人数"
label-width="100px"
style="display: block">
<span> {{selectionAll.length}}</span>
</el-form-item>
<el-form-item label="关注原因" <el-form-item label="关注原因"
prop="reason" prop="reason"
label-width="100px" label-width="100px"
@ -696,6 +696,10 @@ export default {
this.formDataSearch = { this.formDataSearch = {
gridId: '', gridId: '',
natCount: undefined, natCount: undefined,
startDate: '',
endDate: '',
attentionType: 2
} }
this.timeRange = [] this.timeRange = []
}, },

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

@ -74,7 +74,7 @@ export default {
btnDisable: false, btnDisable: false,
formData: { formData: {
origin: '', origin: '2',
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: '', content: '',
@ -93,11 +93,11 @@ export default {
methods: { methods: {
async initForm (selectionAll, origin) { async initForm (selectionAll) {
this.$refs['ref_form1'].resetFields(); this.$refs['ref_form1'].resetFields();
this.formData.userList = selectionAll this.formData.userList = selectionAll
this.formData.origin = origin
}, },
@ -160,13 +160,11 @@ export default {
this.formData = { this.formData = {
name: '', origin: '2',
idCard: '',
phone: '',
remark: '',
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: '', content: '',
userList: [],
} }
}, },

20
src/views/modules/base/epidemic/natInfo/natForm.vue

@ -160,7 +160,7 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<div v-if=" formType!=='detail'">
<el-form-item label="通知渠道" <el-form-item label="通知渠道"
prop="isSelChannel" prop="isSelChannel"
label-width="150px" label-width="150px"
@ -193,7 +193,7 @@
placeholder="请输入通知内容" placeholder="请输入通知内容"
v-model="formData.content"></el-input> v-model="formData.content"></el-input>
</el-form-item> </el-form-item>
</div>
</el-form> </el-form>
</div> </div>
@ -378,15 +378,17 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.formData = data this.formData = data
if (data.channel && data.channel.length > 0) {
this.$set(this.formData, 'isSelChannel', true)
// this.formData.isSelChannel = true
} else {
this.$set(this.formData, 'isSelChannel', false)
// this.formData.isSelChannel = false
this.formData.channel = [] this.formData.channel = []
this.formData.content = '' this.formData.content = ''
} // if (data.channel && data.channel.length > 0) {
// this.$set(this.formData, 'isSelChannel', true)
// // this.formData.isSelChannel = true
// } else {
// this.$set(this.formData, 'isSelChannel', false)
// // this.formData.isSelChannel = false
// this.formData.channel = []
// this.formData.content = ''
// }
console.log(this.formData.isSelChannel) console.log(this.formData.isSelChannel)
this.formData.icNatId = this.icNatId this.formData.icNatId = this.icNatId

16
src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue

@ -84,7 +84,7 @@
style="display: block"> style="display: block">
<el-input class="item_width_1" <el-input class="item_width_1"
type="textarea" type="textarea"
maxlength="1000" maxlength="500"
show-word-limit show-word-limit
:autosize="{ minRows: 4, maxRows: 10 }" :autosize="{ minRows: 4, maxRows: 10 }"
clearable clearable
@ -191,6 +191,12 @@
</el-pagination> </el-pagination>
</div> </div>
<div class="div_selcount">
<span> 已选择人数</span>
<span style="color:red"> {{selectionAll.length}}</span>
</div>
</div> </div>
<div class="div-mult-form"> <div class="div-mult-form">
@ -213,11 +219,7 @@
:model="formData2" :model="formData2"
ref="ref_form2" ref="ref_form2"
:label-width="'90px'"> :label-width="'90px'">
<el-form-item label="已选择人数"
label-width="100px"
style="display: block">
<span> {{selectionAll.length}}</span>
</el-form-item>
<el-form-item label="备注" <el-form-item label="备注"
prop="remark" prop="remark"
label-width="100px" label-width="100px"
@ -256,7 +258,7 @@
style="display: block"> style="display: block">
<el-input class="item_width_1" <el-input class="item_width_1"
type="textarea" type="textarea"
maxlength="1000" maxlength="500"
show-word-limit show-word-limit
:autosize="{ minRows: 4, maxRows: 10 }" :autosize="{ minRows: 4, maxRows: 10 }"
clearable clearable

11
src/views/modules/base/epidemic/veroFocus/vfSendNotice.vue

@ -74,7 +74,7 @@ export default {
btnDisable: false, btnDisable: false,
formData: { formData: {
origin: '2', origin: '1',
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: '', content: '',
@ -120,8 +120,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)
@ -155,13 +154,11 @@ export default {
this.formData = { this.formData = {
name: '', origin: '1',
idCard: '',
phone: '',
remark: '',
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: '', content: '',
userList: [],
} }
}, },

Loading…
Cancel
Save