|
@@ -102,7 +102,7 @@
|
|
label-width="100px"
|
|
label-width="100px"
|
|
label-position="right"
|
|
label-position="right"
|
|
:inline="true"
|
|
:inline="true"
|
|
- ref="zeroForm">
|
|
|
|
|
|
+ ref="maskForm">
|
|
<el-form-item label="标题"
|
|
<el-form-item label="标题"
|
|
prop="title">
|
|
prop="title">
|
|
<el-input v-model="maskForm.title"
|
|
<el-input v-model="maskForm.title"
|
|
@@ -262,19 +262,20 @@ export default {
|
|
this.zeroVisible = true;
|
|
this.zeroVisible = true;
|
|
this.title = '查看收费'
|
|
this.title = '查看收费'
|
|
this.activeRow = row
|
|
this.activeRow = row
|
|
- this.maskForm = {
|
|
|
|
- code: vaildStudentUrl() + `/#/sporadicLogin?id=${this.activeRow.id}`,
|
|
|
|
- type: parseInt(row.chargeType),
|
|
|
|
- desc: row.detail,
|
|
|
|
- title: row.title,
|
|
|
|
- organId: row.organId,
|
|
|
|
- money: row.amount
|
|
|
|
- }
|
|
|
|
- // chargeType: this.maskForm.type,
|
|
|
|
- // detail: this.maskForm.desc,
|
|
|
|
- // title: this.maskForm.title,
|
|
|
|
- // organId: this.maskForm.organId,
|
|
|
|
- // amount: this.maskForm.money
|
|
|
|
|
|
+ this.maskForm.code = vaildStudentUrl() + `/#/sporadicLogin?id=${this.activeRow.id}`
|
|
|
|
+ this.maskForm.type = parseInt(row.chargeType)
|
|
|
|
+ this.maskForm.desc = row.detail
|
|
|
|
+ this.maskForm.title = row.title
|
|
|
|
+ this.maskForm.organId = row.organId
|
|
|
|
+ this.maskForm.money = row.amount
|
|
|
|
+ // this.maskForm = {
|
|
|
|
+ // code: vaildStudentUrl() + `/#/sporadicLogin?id=${this.activeRow.id}`,
|
|
|
|
+ // type: parseInt(row.chargeType),
|
|
|
|
+ // desc: row.detail,
|
|
|
|
+ // title: row.title,
|
|
|
|
+ // organId: row.organId,
|
|
|
|
+ // money: row.amount
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
// look2Code () { },
|
|
// look2Code () { },
|
|
onCreateQRCode () { // 生成报名二维码
|
|
onCreateQRCode () { // 生成报名二维码
|
|
@@ -300,7 +301,7 @@ export default {
|
|
}, 500)
|
|
}, 500)
|
|
},
|
|
},
|
|
addZero () {
|
|
addZero () {
|
|
- this.$refs['zeroForm'].validate(item => {
|
|
|
|
|
|
+ this.$refs['maskForm'].validate(item => {
|
|
if (item) {
|
|
if (item) {
|
|
let obj = {
|
|
let obj = {
|
|
chargeType: this.maskForm.type,
|
|
chargeType: this.maskForm.type,
|
|
@@ -327,7 +328,7 @@ export default {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
removeZero({ id: row.id }).then(res => {
|
|
removeZero({ id: row.id }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.$message.error('删除成功')
|
|
|
|
|
|
+ this.$message.success('删除成功')
|
|
this.zeroVisible = false;
|
|
this.zeroVisible = false;
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
@@ -347,7 +348,7 @@ export default {
|
|
title: '',
|
|
title: '',
|
|
code: ''
|
|
code: ''
|
|
}
|
|
}
|
|
- // this.$refs['zeroForm'].resetFields()
|
|
|
|
|
|
+ // this.$refs['maskForm'].resetFields()
|
|
// console.log(this.$refs['zeroForm'].resetFields)
|
|
// console.log(this.$refs['zeroForm'].resetFields)
|
|
}
|
|
}
|
|
},
|
|
},
|