| | |
| | | |
| | | public List<XhProductModel> getAllTree() { |
| | | List<XhProductModel> productList = baseDao.selectList(new QueryWrapper<XhProductModel>().eq(Constant.TableColumn.IS_DELETE, |
| | | Constant.Bool.NO) .gt("node_type", 1).orderByAsc(Constant.TableColumn.SORT)); |
| | | Constant.Bool.NO) .gt("product_type", 1).orderByAsc(Constant.TableColumn.SORT)); |
| | | return TreeUtils.build(productList); |
| | | } |
| | | |
| | |
| | | '' as statusImg, |
| | | d.dict_code as productType |
| | | FROM product_model a |
| | | left join sys_dict_data d on d.DICT_VALUE = a.node_type and dict_type_id = '1728965873022050306' -- |
| | | left join sys_dict_data d on d.DICT_VALUE = a.product_type and dict_type_id = '1728965873022050306' -- |
| | | WHERE a.is_delete = 0 |
| | | AND a.PID = ${productId} |
| | | |
| | |
| | | // this.getProduct(row.productId) |
| | | this.initDigram(row.productId) |
| | | this.getDiagram(modelId) |
| | | console.log(row,'init(row){') |
| | | console.log(this.dataForm,'init(row){') |
| | | }, |
| | | async getDiagram(modelId) { |
| | | let params = { |
| | | modelId : modelId |
| | | } |
| | | let res = await this.$http.get(`/taskReliability/ModelLine/getDiagram`, {params: params}) |
| | | console.log(res,'async getDiagram( res') |
| | | if (res.data !== null && res.data.content != null) { |
| | | this.dataForm = res.data |
| | | console.log(this.dataForm, 'this.dataForm in getDiagram') |