|
|
|
@ -465,6 +465,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
|
|
import MaterialList from '@/components/material' |
|
|
|
|
import singlePic from '@/components/singlematerial' |
|
|
|
|
import UeditorWrap from "vue-ueditor-wrap"; |
|
|
|
|
import Utils from '@/assets/js/util.js'; |
|
|
|
|
export default { |
|
|
|
|
components: { editor, picUpload, mulpicUpload, Treeselect, MaterialList, UeditorWrap, singlePic }, |
|
|
|
|
data() { |
|
|
|
@ -671,16 +672,18 @@ export default {
|
|
|
|
|
deep: true |
|
|
|
|
}, |
|
|
|
|
$route(to,form){ |
|
|
|
|
console.log(to.fullPath) |
|
|
|
|
if(to.fullPath=='/bxg/shop/goodsAdd'){ |
|
|
|
|
this.resetForm() |
|
|
|
|
}else{ |
|
|
|
|
if(to.fullPath!=='/bxg/shop/goodsAdd'){ |
|
|
|
|
this.getInfo(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
this.getInfo(); |
|
|
|
|
var that = this |
|
|
|
|
Utils.$on('test', function (param) { |
|
|
|
|
setTimeout(that.resetForm(),100) |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
blur(index,row) { |
|
|
|
|