@@ -173,8 +173,10 @@ export default {
methods: {
addOrUpdateHandle(){
this.addOrUpdateVisible = true
+ let id = '448'
+ let actId = '110'
this.$nextTick(() => {
- this.$refs.addOrUpdate.init()
+ this.$refs.addOrUpdate.init(id,actId)
})
},
getDataList(){
@@ -75,16 +75,24 @@ export default {
}
- init(val) {
- this.optionsUsers = []
- this.visible = true
- this.addCharge()
- },
- addCharge() {
- let data = {
- id: 448,
- actId: 110
+ init(id,actId) {
+ if (id && actId){
+ let data = {
+ id:id,
+ actId:actId
+ }
+ this.optionsUsers = []
+ this.visible = true
+ this.addCharge(data)
+ }else {
+ if(!id){
+ this.$message.error('主表ID为空');
+ this.$message.error('活动ID为空');
+ },
+ addCharge(data) {
listCharge(data).then(data => {
console.log(data)
this.auditList = data.data