jinlin
2024-03-12 2d3634a3925d9f4cfc04499ce9f0994c6b12b018
修改
3个文件已修改
9 ■■■■■ 已修改文件
modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/service/XhProductModelService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/taskReliability/RBD-edit-img.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/service/XhProductModelService.java
@@ -46,7 +46,7 @@
    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);
    }
modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml
@@ -53,7 +53,7 @@
               ''                   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}
web/src/views/modules/taskReliability/RBD-edit-img.vue
@@ -307,14 +307,15 @@
        // 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})
          if (res.data !== null && res.data.content != null) {
        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')
            this.diagramJson = JSON.parse(this.dataForm.content)