|
|
@@ -28,10 +28,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { changeBook , listByDeptId , treeselectByUser } from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
import { getInfo } from "@/api/login/index"; |
|
|
|
import {changeDept} from "../../api/onlineHome/done"; |
|
|
|
import {bookListByDeptId} from "../../api/homestead"; |
|
|
|
import { bookInfo } from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
import Cookies from "js-cookie"; |
|
|
|
export default { |
|
|
|
name: "certificateList", |
|
|
@@ -64,13 +61,18 @@ |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.deptName = this.$route.query.deptName; |
|
|
|
this.bookName = this.$route.query.bookName; |
|
|
|
Cookies.set("bookName", this.$route.query.bookName, { |
|
|
|
expires: 30, |
|
|
|
}); |
|
|
|
Cookies.set("deptName", this.$route.query.deptName, { |
|
|
|
expires: 30, |
|
|
|
|
|
|
|
bookInfo(this.$route.query.bookId).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
Cookies.set("bookName", res.data.bookName, { |
|
|
|
expires: 30, |
|
|
|
}); |
|
|
|
Cookies.set("deptName", res.data.deptName, { |
|
|
|
expires: 30, |
|
|
|
}); |
|
|
|
this.deptName = res.data.deptName; |
|
|
|
this.bookName = res.data.bookName; |
|
|
|
} |
|
|
|
}); |
|
|
|
Cookies.set("bookId", this.$route.query.bookId, { |
|
|
|
expires: 30, |
|
|
|