diff --git a/src/assets/scss/buttonstyle.scss b/src/assets/scss/buttonstyle.scss index a5f6b533..92a5b2e3 100644 --- a/src/assets/scss/buttonstyle.scss +++ b/src/assets/scss/buttonstyle.scss @@ -81,7 +81,11 @@ background-color: #3e8ef7 !important; border-color: #3e8ef7 !important; } - +.diy-button--qrcode { + color: #fff !important; + background-color: #4ec591 !important; + border-color: #4ec591 !important; +} //table按钮样式 //查看 @@ -101,3 +105,9 @@ color: #d51010 !important; text-decoration: underline !important; } + +// +.div-table-button--qr { + color: #4ec591 !important; + text-decoration: underline !important; +} \ No newline at end of file diff --git a/src/views/main-content.vue b/src/views/main-content.vue index 569b149f..5d3efcbd 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -134,6 +134,9 @@ export default { this.loopTips() }, + destroyed() { + this.$store.dispatch('clearInter') + }, computed: { msgList() { return this.$store.state.tipsList diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index e14dd753..458f0267 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -33,6 +33,10 @@ class="diy-button--reset" size="small" @click="resetSearch">重置 +
导出 + 社区二维码
@@ -119,6 +127,11 @@ + 进入 --> - 二维码 --> + 查看 @@ -223,6 +241,7 @@ import CommunityForm from './communityForm' import { requestPost } from "@/js/dai/request"; import { mapGetters } from 'vuex' import { Loading } from 'element-ui' // 引入Loading服务 +import axios from 'axios' let loading // 加载动画 export default { @@ -528,7 +547,29 @@ export default { this.$message.error(msg) } }, - + async handleDownQr(row, type) { + // 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 + const params = { + id: _id, + type + } + await axios({ + method: 'POST', + url: window.SITE_CONFIG['apiURL'] + url, + data: params, + 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对象 + } else this.$message.error('下载失败') + // this.download(res.data, '1.png') + }) + }, //导出表格 async handleExport () { let title = this.agencyObj.label diff --git a/src/views/modules/secretaryLog/difficulty/difficultyForm.vue b/src/views/modules/secretaryLog/difficulty/difficultyForm.vue index 240a320a..3041886f 100644 --- a/src/views/modules/secretaryLog/difficulty/difficultyForm.vue +++ b/src/views/modules/secretaryLog/difficulty/difficultyForm.vue @@ -17,7 +17,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable placeholder="请输入内容" v-model="formData.content"> @@ -30,7 +31,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable placeholder="请输入解决方式" v-model="formData.resolveWay"> @@ -44,6 +46,7 @@ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" + clearable placeholder="选择时间"> @@ -56,6 +59,7 @@ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" + clearable :picker-options="pickerOptions" @change="handleTime" placeholder="选择时间"> @@ -70,7 +74,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable placeholder="请输入备注" v-model="formData.remark"> diff --git a/src/views/modules/secretaryLog/humanisticCare/careForm.vue b/src/views/modules/secretaryLog/humanisticCare/careForm.vue index 4c9fba45..27fff5c1 100644 --- a/src/views/modules/secretaryLog/humanisticCare/careForm.vue +++ b/src/views/modules/secretaryLog/humanisticCare/careForm.vue @@ -15,6 +15,7 @@ style="display: block"> @@ -25,6 +26,7 @@ style="display: block"> @@ -35,6 +37,7 @@ style="display: block"> @@ -44,6 +47,7 @@ style="display: block"> @@ -56,7 +60,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable placeholder="请输入关怀事项" v-model="formData.content"> @@ -70,6 +75,7 @@ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" + clearable placeholder="选择时间"> @@ -82,6 +88,7 @@ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" + clearable :picker-options="pickerOptions" @change="handleTime" placeholder="选择时间"> diff --git a/src/views/modules/secretaryLog/workLog/form.vue b/src/views/modules/secretaryLog/workLog/form.vue index b203816a..56a4b6f6 100644 --- a/src/views/modules/secretaryLog/workLog/form.vue +++ b/src/views/modules/secretaryLog/workLog/form.vue @@ -16,7 +16,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable :disabled="disabled" placeholder="请输入内容" v-model="formData.content"> @@ -30,7 +31,8 @@ type="textarea" maxlength="100" show-word-limit - :rows="3" + :rows="4" + clearable :disabled="disabled" placeholder="请输入工作事项" v-model="formData.workType"> @@ -44,6 +46,7 @@ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" + clearable :disabled="disabled" :picker-options="pickerOptions" @change="handleTime" diff --git a/src/views/modules/secretaryLog/workLog/index.vue b/src/views/modules/secretaryLog/workLog/index.vue index e448cb0c..04a33afd 100644 --- a/src/views/modules/secretaryLog/workLog/index.vue +++ b/src/views/modules/secretaryLog/workLog/index.vue @@ -150,7 +150,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" :title="formTitle" - width="70%" + width="50%" top="5vh" class="dialog-h" @closed="diaClose"> @@ -309,7 +309,7 @@ export default { }, async deleteDifficulty (row) { - const url = "/gov/project/memoDifficulty/delete" + const url = "/gov/project/memoWorkDiary/delete" // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoDifficulty/delete" let ids = [row.id] let params = { diff --git a/src/views/tips.vue b/src/views/tips.vue index 5b350bd5..b7b451d9 100644 --- a/src/views/tips.vue +++ b/src/views/tips.vue @@ -70,7 +70,7 @@ export default { } .tips-wr-desc { width: 100%; - height: 33px; + height: 32px; margin-top: 10px; padding-left: 20px; display: -webkit-box;