Commit 54815e36 authored by zhanglw's avatar zhanglw

产品查看

parent 8b70f765
...@@ -150,6 +150,16 @@ export const HttpReq = { ...@@ -150,6 +150,16 @@ export const HttpReq = {
method: 'get' method: 'get'
}) })
}, },
// 客户信息审核
reviewProduct: function(data) {
return request({
url: '/api/bsw/users/reviewCustomer',
method: 'put',
data: data
}).then((res) => {
return res
})
},
xxx: null xxx: null
} }
} }
......
...@@ -255,6 +255,7 @@ export default { ...@@ -255,6 +255,7 @@ export default {
cancelView() { cancelView() {
this.cancelReview() this.cancelReview()
this.hideView() this.hideView()
this.stampImgSrc = ''
}, },
cancelReview() { cancelReview() {
if (this.$refs.formReviewRef) { if (this.$refs.formReviewRef) {
...@@ -373,6 +374,7 @@ export default { ...@@ -373,6 +374,7 @@ export default {
font-size: 14px; font-size: 14px;
text-decoration: underline; //下划线 text-decoration: underline; //下划线
text-underline-offset: 5px; //下划线和文字间距 text-underline-offset: 5px; //下划线和文字间距
text-decoration-color: rgba(100, 100, 100, 0.4);
} }
>>>.el-input__inner { >>>.el-input__inner {
border: 1px solid rgba(100, 100, 100, 0.1); border: 1px solid rgba(100, 100, 100, 0.1);
......
...@@ -469,27 +469,26 @@ export default { ...@@ -469,27 +469,26 @@ export default {
}, },
loadData(productId) { loadData(productId) {
this.showView() this.showView()
if (this.editor) {
return
}
this.$nextTick(() => { this.$nextTick(() => {
const _this = this if (!this.editor) {
const editor = new E(this.$refs.editor) const _this = this
editor.config.zIndex = 5 const editor = new E(this.$refs.editor)
editor.config.customUploadImg = function(files, insert) { editor.config.zIndex = 5
files.forEach(image => { editor.config.customUploadImg = function(files, insert) {
upload(_this.imagesUploadApi, image).then(res => { files.forEach(image => {
const data = res.data upload(_this.imagesUploadApi, image).then(res => {
const url = _this.baseApi + '/file/' + data.type + '/' + data.realName const data = res.data
insert(url) const url = _this.baseApi + '/file/' + data.type + '/' + data.realName
insert(url)
})
}) })
}) }
} editor.config.onchange = (html) => {
editor.config.onchange = (html) => { this.formData.productDescribe = html
this.formData.productDescribe = html }
editor.create()
this.editor = editor
} }
editor.create()
this.editor = editor
// 初始化数据 // 初始化数据
HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => { HttpReq.backstageApi.queryProductDetail({ productId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
...@@ -503,7 +502,7 @@ export default { ...@@ -503,7 +502,7 @@ export default {
if (this.formData.productFeature) { if (this.formData.productFeature) {
this.productFeature = this.formData.productFeature.split(';') this.productFeature = this.formData.productFeature.split(';')
} }
editor.txt.html(this.formData.productDescribe) this.editor.txt.html(this.formData.productDescribe)
} else { } else {
this.$message({ this.$message({
message: res.msg, message: res.msg,
......
...@@ -119,17 +119,6 @@ export default { ...@@ -119,17 +119,6 @@ export default {
console.log('启用', this.multipleSelection) console.log('启用', this.multipleSelection)
} }
}, },
changeEnabled(data, val) {
this.$confirm('此操作将 "' + this.dict.label.user_status[val] + '" ' + data.username + ', 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).catch(() => {
data.enabled = !data.enabled
})
},
toAdd() { toAdd() {
this.$refs.addPage.loadData() this.$refs.addPage.loadData()
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment