更新部分接口传参

This commit is contained in:
YeMingfei666 2025-07-29 15:49:11 +08:00
parent b82eb59b1d
commit 943ef313cf
3 changed files with 27 additions and 23 deletions

View File

@ -37,7 +37,7 @@
</el-button>
<el-button :disabled="!isAuth('coupon:update')" size="mini"
type="primary" icon="document" @click="shengCoupon(scope.row)" style="margin: 3px;">生成卡密</el-button>
</template>
</el-table-column>
</el-table>
@ -104,7 +104,7 @@
</el-button>
</div>
</div>
<el-table v-loading="tableDataLoadingKm" :data="tableDataKm.records" @selection-change="changeFunP" >
<el-table-column type="selection">
</el-table-column>
@ -115,7 +115,7 @@
<el-table-column prop="sdkContent" label="卡密">
</el-table-column>
<el-table-column prop="sysUserName" label="渠道商名称">
</el-table-column>
<el-table-column prop="giveNum" label="赠送会员天数">
</el-table-column>
@ -169,7 +169,7 @@
<el-button type="primary" @click="amendNoticeTo()"> </el-button>
</div>
</el-dialog>
<!-- 生成卡密 -->
<el-dialog title="生成卡密" :visible.sync="dialogFormVisible3" center width="70%">
<div style="margin-bottom: 10px;">
@ -235,7 +235,7 @@
<el-table-column prop="sdkContent" label="卡密">
</el-table-column>
<el-table-column prop="sysUserName" label="渠道商名称">
</el-table-column>
<el-table-column prop="giveNum" label="赠送会员天数" width="80">
</el-table-column>
@ -284,7 +284,7 @@
</el-table-column>
<el-table-column prop="qdRate" header-align="center" align="center" label="渠道佣金">
<!-- <template slot-scope="scope">
<span v-for="(item,index) in scope.row.roleEntityList" :key="index">{{item.roleName}} </span>
<span v-for="(item,index) in scope.row.roleEntityList" :key="index">{{item.roleName}} </span>
</template> -->
</el-table-column>
<el-table-column prop="qdCode" header-align="center" align="center" label="渠道码">
@ -443,7 +443,7 @@
this.page = val;
this.dataSelectKm()
},
handleSizeChangeY(val) {
this.size1 = val;
this.dataSelectYhq()
@ -525,9 +525,9 @@
});
return
}
if (this.titles == '添加') {
var url = 'couponCard/insertCouponCardType'
} else {
@ -566,7 +566,7 @@
}
})
}
})
},
//
@ -628,7 +628,7 @@
dataSelect() {
this.tableDataLoading = true
this.$http({
url: this.$http.adornUrl('admin/sdkType/getSdkTypeList'),
url: this.$http.adornUrl('sdkType/getSdkTypeList'),
method: 'get',
params: this.$http.adornParams({
'page': this.page,
@ -746,7 +746,7 @@
'typeId': this.couponCardTypeId,
'num':this.num,
'sysUserId':this.sysUserId,
})
}).then(({
data
@ -771,7 +771,7 @@
}
})
}
})
},
//
@ -784,7 +784,7 @@
// this.startTime = this.info2.stockDate2
// }
this.$http({
url: this.$http.adornUrl('admin/sdkInfo/getSdkList'),
url: this.$http.adornUrl('/admin/sdkInfo/getSdkList'),
method: 'get',
params: this.$http.adornParams({
'page': this.page,
@ -804,7 +804,7 @@
this.tableDataLoadingKm = false
let returnData = data.data;
this.tableDataKm = returnData
})
},
//
@ -827,7 +827,7 @@
this.dataSelectKm()
this.dialogFormVisibleKm = true
},
//
excelStair(){
// var endTime = this.endTime
@ -847,7 +847,7 @@
'endTime': this.endTime,
'startTime': this.startTime,
'sysUserName':this.sysUserNameT
})
}).then(({
data
@ -906,7 +906,7 @@
}
})
}
})
}).catch(() => {})
},
@ -949,7 +949,7 @@
qudaoBtn(){
this.getDataList()
this.dialogFormVisibleQd = true
},
getDataList() {
this.dataListLoading = true
@ -979,7 +979,7 @@
this.sysUserName = row.username
this.dialogFormVisibleQd = false
},
},
mounted() {
this.dataSelect()

View File

@ -148,7 +148,9 @@
this.$http({
url: this.$http.adornUrl(`/sys/menu/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
params: this.$http.adornParams({
menuId: this.dataForm.id
})
}).then(({data}) => {
this.dataForm.id = data.menu.menuId
this.dataForm.type = data.menu.type

View File

@ -130,7 +130,9 @@
this.$http({
url: this.$http.adornUrl(`/sys/menu/delete/${id}`),
method: 'post',
data: this.$http.adornData()
data: this.$http.adornData({
menuId: id
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({