Explorar el Código

优化

wulanhaote
庞东旭 hace 2 años
padre
commit
4c2db3c9a7
Se han modificado 2 ficheros con 21 adiciones y 11 borrados
  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 Ver fichero

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

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

+ 13
- 11
src/views/sunVillage_info/index_code.vue Ver fichero

@@ -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,


Cargando…
Cancelar
Guardar