Commit 515b28f6 by wangql

删除console

1 parent 1f969efe
...@@ -436,7 +436,6 @@ export default { ...@@ -436,7 +436,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.useChannel = this.editForm.useChannel + '' this.editForm.useChannel = this.editForm.useChannel + ''
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -558,7 +557,6 @@ export default { ...@@ -558,7 +557,6 @@ export default {
return return
} }
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
if (this.apear == 'couponAdd' && params.useChannel == 1 && !params.goodsIdList.length) { if (this.apear == 'couponAdd' && params.useChannel == 1 && !params.goodsIdList.length) {
this.$message({ this.$message({
message: '未选择商品', message: '未选择商品',
......
...@@ -205,7 +205,6 @@ export default { ...@@ -205,7 +205,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -278,7 +277,6 @@ export default { ...@@ -278,7 +277,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -184,7 +184,6 @@ export default { ...@@ -184,7 +184,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -257,7 +256,6 @@ export default { ...@@ -257,7 +256,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -235,7 +235,6 @@ export default { ...@@ -235,7 +235,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useType = this.editForm.useType + '' this.editForm.useType = this.editForm.useType + ''
...@@ -338,7 +337,6 @@ export default { ...@@ -338,7 +337,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
// console.log(res)
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name) this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name)
}) })
...@@ -316,7 +315,6 @@ export default { ...@@ -316,7 +315,6 @@ export default {
// this.mainImgUrl = this.editForm.goodsDetailImageList[0].content // this.mainImgUrl = this.editForm.goodsDetailImageList[0].content
// this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0 // this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0
this.selectedProInfo = this.$common.utils.deepClone(res) this.selectedProInfo = this.$common.utils.deepClone(res)
console.log(this.selectedProInfo)
if (this.selectedProInfo.specificationDetailList.length) { if (this.selectedProInfo.specificationDetailList.length) {
this.editFormData[5].isHide = false this.editFormData[5].isHide = false
// this.specificationDetailList = this.$common.utils.deepClone(res.specificationList) // this.specificationDetailList = this.$common.utils.deepClone(res.specificationList)
...@@ -529,7 +527,6 @@ export default { ...@@ -529,7 +527,6 @@ export default {
return false return false
} }
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
this.$apis.seckillActivity.addOrUpdateActivityApi(params).then(res => { this.$apis.seckillActivity.addOrUpdateActivityApi(params).then(res => {
this.$message({ this.$message({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!