|
@@ -109,7 +109,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="22">
|
|
<el-col :span="22">
|
|
<el-form-item label="商品详情" prop="description">
|
|
<el-form-item label="商品详情" prop="description">
|
|
- <TinyEditor v-model="addData.description" />
|
|
|
|
|
|
+ <wang-editor ref="editor" v-model="addData.description" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -125,6 +125,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import Upload from '@/components/DragImageUpload'
|
|
import Upload from '@/components/DragImageUpload'
|
|
|
|
+import WangEditor from '@/components/WangEditor'
|
|
import Spec from './components/spec'
|
|
import Spec from './components/spec'
|
|
import TinyEditor from '@/components/TinyEditor'
|
|
import TinyEditor from '@/components/TinyEditor'
|
|
import { getGoodsDetail, addGoods } from '@/api/business/goods'
|
|
import { getGoodsDetail, addGoods } from '@/api/business/goods'
|
|
@@ -135,6 +136,7 @@ import { accDiv, accMul } from '@/utils/util'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
TinyEditor,
|
|
TinyEditor,
|
|
|
|
+ WangEditor,
|
|
Upload,
|
|
Upload,
|
|
Spec
|
|
Spec
|
|
},
|
|
},
|
|
@@ -199,6 +201,9 @@ export default {
|
|
cost: cost == '' || cost == null ? '' : accDiv(cost, 100),
|
|
cost: cost == '' || cost == null ? '' : accDiv(cost, 100),
|
|
goodsId, title, picUrl, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, tagIds
|
|
goodsId, title, picUrl, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, tagIds
|
|
}
|
|
}
|
|
|
|
+ if(description) {
|
|
|
|
+ this.$refs.editor.setContent(description)
|
|
|
|
+ }
|
|
if (multiSku && skuList instanceof Array && skuList.length > 0) {
|
|
if (multiSku && skuList instanceof Array && skuList.length > 0) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.spec.setSkuList(skuList)
|
|
this.$refs.spec.setSkuList(skuList)
|