Commit e5a7d625 by lxyang

feat:提交

parent 727f13eb
......@@ -2,7 +2,14 @@ import request from '@/utils/request'
// 文档差异
export function doctaskFinddifference(data) {
return request({
url: '/api/doc/doctask/finddifference/' + data,
url: '/api/doc/doctask/finddifference/' + data + '&pageindex=1&pagesize=999',
method: 'get'
})
}
\ No newline at end of file
}
// 查询文档差异接口
export function doctaskFinddifferenceSearch({ id, context, pageindex, pagesize }) {
return request({
url: '/api/doc/doctask/finddifference/' + id + '?context=' + context + '&pageindex=' + pageindex + '&pagesize=' + pagesize,
method: 'get'
})
}
\ No newline at end of file
......@@ -43,6 +43,9 @@
<script>
// 接口调用方法
import {
doctaskFinddifferenceSearch
} from "@/api/system/product";
export default {
data() {
return {
......@@ -59,12 +62,17 @@ export default {
},
watch: {},
created() {
console.log(this.$route.params.search)
if (this.$route.params.search) {
this.search = this.$route.params.search
let searchDocument = localStorage.getItem("searchDocument")
let searchs = this.$route.params.search
if (searchs) {
this.search = searchs
localStorage.setItem("searchDocument", searchs)
this.searchDocument()
} else if (searchDocument) {
this.search = searchDocument
this.searchDocument()
} else {
this.clearData()
this.clearData()
}
},
computed: {
......@@ -80,6 +88,7 @@ export default {
})
return
}
localStorage.setItem("searchDocument", this.search.trim())
this.seatchInitLeft()
},
// 搜索左侧
......
......@@ -17,7 +17,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: "./",
publicPath: "/",
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment