From a62a16bd75310d50d0231f5ad724e59d77198e28 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 2 Apr 2020 11:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=89=8B=E8=AE=B0=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E7=BB=84=E7=BB=87=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/workRecord/dailyrecordinfo.vue | 46 ++++++++++++++++--- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/src/views/modules/workRecord/dailyrecordinfo.vue b/src/views/modules/workRecord/dailyrecordinfo.vue index 868c27e8..71cbb407 100644 --- a/src/views/modules/workRecord/dailyrecordinfo.vue +++ b/src/views/modules/workRecord/dailyrecordinfo.vue @@ -15,14 +15,24 @@ + - - +
+ + + + + - + {{ $t('deleteBatch') }} - {{ $t('export') }} - + {{ $t('export') }} + +
@@ -130,7 +141,9 @@ export default { id: '' }, meetTypeArr: [], - dailyTypeArr: [] + dailyTypeArr: [], + ids: [], + options: [] } }, components: { @@ -139,8 +152,29 @@ export default { created: function () { this.getDailyTypeArrInfo('0') this.getDataList() + this.getOptions() + }, + watch: { + ids: function (val) { + if (val.length === 0) { + this.dataForm.deptId = '' + } else { + this.dataForm.deptId = this.ids[val.length - 1] + } + } }, methods: { + getOptions () { + this.$http + .get(`/sys/user/deptOptions/getByLoginUser`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.options = res.data.options + }) + .catch(() => {}) + }, getDataListOverWrite () { this.page = 1 this.getDataList()