Browse Source

111

dev-新版ui
jiangyy 3 years ago
parent
commit
8c455bc8eb
  1. 9
      src/views/modules/base/community/communityTable.vue
  2. 12
      src/views/modules/base/epidemic/natFocus/natFocusAdd.vue
  3. 10
      src/views/modules/base/epidemic/natFocus/natFocusEdit.vue
  4. 11
      src/views/modules/base/epidemic/natFocus/natFocusList.vue
  5. 10
      src/views/modules/base/epidemic/natFocus/natFocusListHistory.vue

9
src/views/modules/base/community/communityTable.vue

@ -647,6 +647,7 @@ export default {
}
},
async handleDownQr (row, type) {
let title = row.label + '二维码.png'
// const url = window.SITE_CONFIG['apiURL'] + `/gov/org/icneighborhood/createQrCode/${row.neighborHoodId}`
const url = '/gov/org/agency/create-qrcode'
const _id = type == 'community' ? row.id : row.neighborHoodId
@ -661,10 +662,10 @@ export default {
responseType: 'blob'
}).then(res => {
console.log('res----1r', res)
if (res.headers["content-disposition"]) {
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
console.log('filename', fileName)
this.download(res.data, fileName) //blob
if (res.data) {
// let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
// console.log('filename', fileName)
this.download(res.data, title) //blob
} else this.$message.error('下载失败')
// this.download(res.data, '1.png')
})

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

@ -43,12 +43,12 @@
v-model="formData1.idCard">
</el-input>
</el-form-item>
<el-form-item label="关注原因"
<el-form-item :label="reasonTitle"
prop="reason"
label-width="220px"
style="display: block">
<el-input class="item_width_1"
placeholder="请输入关注原因"
:placeholder="'请输入'+reasonTitle"
clearable
v-model="formData1.reason">
</el-input>
@ -475,12 +475,12 @@
ref="ref_form2"
label-width="90px"
:rules="dataRule1">
<el-form-item label="关注原因"
<el-form-item :label="reasonTitle"
prop="reason"
label-width="220px"
style="display: block">
<el-input class="item_width_1"
placeholder="请输入关注原因"
:placeholder="'请输入'+reasonTitle"
clearable
v-model="formData2.reason">
</el-input>
@ -1378,6 +1378,10 @@ export default {
type: Boolean,
default: false
},
reasonTitle: {
type: String,
default: '关注原因'
},
},
};
</script>

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

@ -49,12 +49,12 @@
v-model="formData.idCard">
</el-input> -->
</el-form-item>
<el-form-item label="关注原因"
<el-form-item :label="reasonTitle"
prop="reason"
label-width="220px"
style="display: block">
<el-input class="item_width_4"
placeholder="请输入关注原因"
:placeholder="'请输入'+reasonTitle"
clearable
v-model="formData.reason">
</el-input>
@ -272,7 +272,7 @@
</div>
<div class="info-prop">
<span class="info-title-6">关注原因</span>
<span class="info-title-6">{{reasonTitle}}</span>
<span>{{ formData.reason||'--' }}</span>
</div>
<div class="info-prop">
@ -574,6 +574,10 @@ export default {
type: Boolean,
default: false
},
reasonTitle: {
type: String,
default: '关注原因'
},
},
};
</script>

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

@ -34,13 +34,13 @@
placeholder="请输入身份证号或护照号">
</el-input>
</el-form-item>
<el-form-item label="关注原因"
<el-form-item :label="reasonTitle"
prop="mobile">
<el-input v-model="formData.reason"
size="small"
class="list_item_width_1"
clearable
placeholder="请输入关注原因">
:placeholder="'请输入'+reasonTitle">
</el-input>
</el-form-item>
<el-form-item label="隔离状态"
@ -245,7 +245,7 @@
<el-table-column prop="reason"
header-align="center"
align="center"
label="关注原因"
:label="reasonTitle"
width="180">
</el-table-column>
<el-table-column prop="isolatedState"
@ -392,6 +392,7 @@
@closed="diaClose">
<nat-focus-add ref="ref_form_add"
:isPanshi="isPanshi"
:reasonTitle="reasonTitle"
@dialogCancle="diaClose"
@dialogOk="addFormOk"></nat-focus-add>
</el-dialog>
@ -408,6 +409,7 @@
:fromSource="'focusGroupSpecialAttentionQuarantine'"
:view_real_data="btnAuths.focus_groups_view_real_data"
:isPanshi="isPanshi"
:reasonTitle="reasonTitle"
@dialogCancle="diaClose"
@dialogOk="addFormOk"></nat-focus-edit>
</el-dialog>
@ -480,6 +482,7 @@ export default {
tableLoading: false,
customerId: '',
isPanshi: false,
reasonTitle: '关注原因',
selection: [],
@ -557,8 +560,10 @@ export default {
//1580460084738760705
this.customerId = localStorage.getItem("customerId");
this.isPanshi = true
this.reasonTitle = '关注原因'
if (this.customerId === '1580460084738760705') {
this.isPanshi = true
this.reasonTitle = '隔离原因'
}
console.log('customerId', this.customerId)
this.updateBtnAuths();

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

@ -34,13 +34,13 @@
placeholder="请输入身份证号或护照号">
</el-input>
</el-form-item>
<el-form-item label="关注原因"
<el-form-item :label="reasonTitle"
prop="mobile">
<el-input v-model="formData.reason"
size="small"
class="list_item_width_1"
clearable
placeholder="请输入关注原因">
:placeholder="'请输入'+reasonTitle">
</el-input>
</el-form-item>
<el-form-item label="隔离状态"
@ -201,7 +201,7 @@
<el-table-column prop="reason"
header-align="center"
align="center"
label="关注原因"
:label="reasonTitle"
width="180">
</el-table-column>
<el-table-column prop="isolatedState"
@ -354,6 +354,7 @@
:fromSource="'focusGroupSpecialAttentionHistory'"
:view_real_data="btnAuths.focus_groups_his_view_real_data"
:isPanshi="isPanshi"
:reasonTitle="reasonTitle"
@dialogCancle="diaClose"
@dialogOk="addFormOk"></nat-focus-edit>
</el-dialog>
@ -426,6 +427,7 @@ export default {
tableLoading: false,
customerId: '',
isPanshi: false,
reasonTitle: '关注原因',
selection: [],
@ -500,8 +502,10 @@ export default {
//1580460084738760705
this.customerId = localStorage.getItem("customerId");
this.isPanshi = true
this.reasonTitle = '关注原因'
if (this.customerId === '1580460084738760705') {
this.isPanshi = true
this.reasonTitle = '隔离原因'
}
this.updateBtnAuths();

Loading…
Cancel
Save