yangys
2025-08-28 cd3c5e597ad75051941dab65119b510fb16485e1
src/views/wel/gongkong.vue
@@ -59,6 +59,12 @@
     
    </avue-crud>
    </el-dialog>
    <el-drawer title="文件对比" append-to-body v-model="diffBox" size="100%" class="code-box">
        <div>
            <code-diff :old-string="this.content1" :new-string="this.content2" output-format="side-by-side" :hideStat="true" :filename="codeDiffFileName1" :newFilename="codeDiffFileName2"/>
        </div>
    </el-drawer>
</template>
<script>
import {
@@ -133,7 +139,11 @@
        currentPage: 1,
        total: 0,
      },
      diffBox: false,
      content1: "",
      content2: "",
      codeDiffFileName1: "",
      codeDiffFileName2: "",
    }
  },
  computed: {},
@@ -198,8 +208,23 @@
    refreshChangeHis() {
      this.onLoadHis();
    },
    hisCompare(){
    hisCompare(row){
        //文件比对
        this.loading = true;
      axios({
        url: '/blade-mdm/gkw/node/his-compare',
        method: 'get',
        params: {id: row.id},
      }).then(
        res => {
          this.loading = false;
          this.content1 = res.data.data.content1;
          this.content2 = res.data.data.content2;
          this.codeDiffFileName1 = "修改前";
          this.codeDiffFileName2 = "修改后";
          this.diffBox = true;
        }
      );
    },
    getFileContent(row) {
      this.loading = true;