Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapActions, mapState} from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "integralAdd",
|
name: "integralAdd",
|
||||||
appName: '积分申请',
|
appName: '积分申请',
|
||||||
@@ -60,13 +61,18 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
if(o.id) {
|
if(o.id) {
|
||||||
this.id = o.id
|
this.id = o.id
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
this.$dict.load(['clapEventStatus'])
|
this.$dict.load(['clapEventStatus'])
|
||||||
this.getType()
|
this.getAuth()
|
||||||
|
this.form.girdId = this.user.girdId
|
||||||
|
this.form.girdName = this.user.girdName
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'form.applyItemId'(v) {
|
'form.applyItemId'(v) {
|
||||||
@@ -77,6 +83,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['getUserInfo']),
|
||||||
submit() {
|
submit() {
|
||||||
if(this.flag) return
|
if(this.flag) return
|
||||||
|
|
||||||
@@ -113,7 +120,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 事件类型
|
// 事件类型
|
||||||
getType() {
|
getType() {
|
||||||
this.$instance.post(`/app/appintegralrule/listByFdNew`).then(res=> {
|
this.$instance.post(`/app/appintegralrule/listByFdAndGirdInfo`).then(res=> {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
this.dictList = res.data.map(v => {
|
this.dictList = res.data.map(v => {
|
||||||
@@ -139,6 +146,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getAuth() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.getUserInfo('qujing')
|
||||||
|
this.getType()
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user