|
@@ -66,6 +66,11 @@ export default {
|
|
|
addEditProduct,
|
|
|
marketing
|
|
|
},
|
|
|
+ props:{
|
|
|
+ patentNo:{
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 显示指定的子组件
|
|
@@ -345,6 +350,10 @@ export default {
|
|
|
// 获取产品类别数据
|
|
|
getList(){
|
|
|
var str = this.$commonJS.objectToString(this.searchOption)
|
|
|
+ //todo
|
|
|
+ if(this.patentNo){
|
|
|
+
|
|
|
+ }
|
|
|
let params = {
|
|
|
...this.queryParams,//分页信息
|
|
|
searchQuery:str,//检索条件
|
|
@@ -354,6 +363,11 @@ export default {
|
|
|
this.$api.queryProductCategory(params).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
this.tableData = response.data.data
|
|
|
+ // var data = {}
|
|
|
+ // for(var i = 0;i<this.tableData.length;i++){
|
|
|
+ // data[this.tableData[i].id] = this.tableData[i]
|
|
|
+ // }
|
|
|
+ // this.$s.setSession('productCategory',data)
|
|
|
this.total = response.data.total
|
|
|
this.loading = false
|
|
|
}
|