研发图纸文件管理系统-前端项目
longyvfengyun
2022-10-18 298d3d52ca747a084e430a83eef6333fd1e2c41f
内容提交
2个文件已修改
21 ■■■■ 已修改文件
src/pages/components/diffList.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/product/details/details.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/components/diffList.vue
@@ -44,7 +44,7 @@
        :disabled="!updateList.length"
      >
        <a-table
          :scroll="{ y: 200 }"
          :scroll="{x: 600, y: 200 }"
          bordered
          size="small"
          :columns="updateColumns"
@@ -53,6 +53,9 @@
          :expandRowByClick="true"
          :row-key="(record, index) => index"
        >
          <template slot="notesSlot" slot-scope="record">
            <span v-html="record"></span>
          </template>
        </a-table>
      </a-collapse-panel>
    </a-collapse>
@@ -115,8 +118,10 @@
        },
        {
          title: "变化",
          width: 400,
          dataIndex: "notes",
          align: "center",
          align: "left",
          scopedSlots: { customRender: "notesSlot" },
        }
      ]
    };
@@ -137,6 +142,7 @@
      return this.list.delList || [];
    },
    updateList() {
      return this.list.updateList || [];
    },
    headerAdd() {
@@ -182,4 +188,4 @@
  color: rgba(0, 0, 0, 0.6);
  font-weight: normal;
}
</style>
</style>
src/pages/resourceManage/product/details/details.vue
@@ -734,7 +734,14 @@
          this.diffData = {
            addList: data2.map((v) => v.materialObj),
            delList: data3.map((v) => v.materialObj),
            updateList: data,
            updateList: data.map(item=>{
              item.notes = item.notes.split("&&&&&").map((o, key)=>{
                o = (key+1)+'. '+o+"<br/>";
                return o;
              }).join("");
              return item;
            }),
          };
          this.diffShow = true;