소스 검색

优化

wulanhaote
庞东旭 2 년 전
부모
커밋
4c2db3c9a7
2개의 변경된 파일21개의 추가작업 그리고 11개의 파일을 삭제
  1. +8
    -0
      src/api/sunVillage_info/fixedAssets.js
  2. +13
    -11
      src/views/sunVillage_info/index_code.vue

+ 8
- 0
src/api/sunVillage_info/fixedAssets.js 파일 보기

@@ -344,3 +344,11 @@ export function updateUserPwd(oldPassword, newPassword) {
params: data params: data
}) })
} }

// 查询账套基本信息
export function bookInfo(bookId) {
return request({
url: `/villageAffairs/public/bookInfo/${bookId}`,
method: 'get',
})
}

+ 13
- 11
src/views/sunVillage_info/index_code.vue 파일 보기

@@ -28,10 +28,7 @@
</div> </div>
</template> </template>
<script> <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"; import Cookies from "js-cookie";
export default { export default {
name: "certificateList", name: "certificateList",
@@ -64,13 +61,18 @@
}; };
}, },
created() { 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, { Cookies.set("bookId", this.$route.query.bookId, {
expires: 30, expires: 30,


불러오는 중...
취소
저장