|
|
@@ -126,7 +126,7 @@
|
|
|
<!--<p class="grey f16">暂无器件信息</p>-->
|
|
|
<p class="grey f16"> 暂无产品信息</p>
|
|
|
<i class="iconfont" v-if="emptyShow === false"></i> <a v-if="emptyShow === false" href="/">返回首页</a>
|
|
|
- <img v-if="emptyShow === true" src="/images/brandList/upload.png"> <a v-if="emptyShow === true" href="/vendor#/vendor_upload?type=company">马上去上传</a>
|
|
|
+ <img v-if="emptyShow === true" src="/images/brandList/upload.png"> <a v-if="emptyShow === true" href="/vendor#/vendor_upload?type=company" target="_blank">马上去上传</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
@@ -266,12 +266,22 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
- this.kinds.forEach((item) => {
|
|
|
- this.KindsNameChange(item)
|
|
|
- })
|
|
|
-// alert(JSON.stringify(this.kinds))
|
|
|
- },
|
|
|
+ watch: {
|
|
|
+ kinds: {
|
|
|
+ handler: function (val) {
|
|
|
+ this.kinds.forEach((item) => {
|
|
|
+ this.KindsNameChange(item)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ immediate: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+// mounted () {
|
|
|
+// this.kinds.forEach((item) => {
|
|
|
+// this.KindsNameChange(item)
|
|
|
+// })
|
|
|
+// // alert(JSON.stringify(this.kinds))
|
|
|
+// },
|
|
|
methods: {
|
|
|
sendprove: function () {
|
|
|
if (this.user.logged) {
|
|
|
@@ -288,8 +298,8 @@
|
|
|
this.baseUtils.goLinkUser(this, this.storeInfo.enUU)
|
|
|
},
|
|
|
KindsNameChange: function (obj) {
|
|
|
-// obj.nameCn += ` (${obj.count})`
|
|
|
-// document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
|
|
|
+ obj.nameCn += ` (${obj.count})`
|
|
|
+ document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
|
|
|
if (obj.children && obj.children.length) {
|
|
|
console.log(obj.children)
|
|
|
obj.children.forEach((item) => {
|
|
|
@@ -597,6 +607,9 @@
|
|
|
#goods-list-fragment .brand-code .code {
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
+ #goods-list-fragment .brand-code .spec {
|
|
|
+ word-break: break-all;
|
|
|
+ }
|
|
|
#goods-list-fragment .brand-code .brand a {
|
|
|
color: #3c7df5;
|
|
|
}
|