更新部分接口传参

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

View File

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

View File

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