| | |
| | | |
| | | </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 { |
| | |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | |
| | | diffBox: false, |
| | | content1: "", |
| | | content2: "", |
| | | codeDiffFileName1: "", |
| | | codeDiffFileName2: "", |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | 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; |