diff --git a/src/views/modules/points/activepointlog.vue b/src/views/modules/points/activepointlog.vue
index 1109edb9..a90ff53e 100644
--- a/src/views/modules/points/activepointlog.vue
+++ b/src/views/modules/points/activepointlog.vue
@@ -11,6 +11,15 @@
+
+
+
+
{{ $t('query') }}
@@ -29,6 +38,8 @@
+
+
@@ -74,18 +85,44 @@ export default {
dataForm: {
id: '',
operationType: '',
- userName: ''
+ userName: '',
+ deptId: ''
},
operationTypeArr: [
{ dictValue: '1', dictName: '加积分' },
{ dictValue: '0', dictName: '减积分' }
- ]
+ ],
+ ids: [],
+ options: []
}
},
components: {
AddOrUpdate
},
+ created: function () {
+ 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(() => {})
+ },
btKeyUpuserName (e) {
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '')
this.dataForm.userName = e.target.value