|
|
@@ -47,48 +47,48 @@ const selectData = reactive({
|
|
|
const api = ref("");
|
|
|
|
|
|
// 获取账户列表
|
|
|
-const getList = async () => {
|
|
|
- loading.value = true;
|
|
|
- let data = {
|
|
|
- currentPage: currentPage.value, // 当前页
|
|
|
- pageCount: pageSize.value, // 一页数据条数
|
|
|
- projectName: searchInput.name,
|
|
|
- pageType: 1,
|
|
|
- permitNum: searchInput.LicenseCode, // 施工许可证编码
|
|
|
- projectUnit: searchInput.unit, // 建设单位
|
|
|
- projectPurpose: searchInput.purpose, // 项目用途
|
|
|
- structureType: searchInput.structureType, // 结构类型
|
|
|
- projectType: searchInput.projectType, // 项目类型
|
|
|
- };
|
|
|
+// const getList = async () => {
|
|
|
+// loading.value = true;
|
|
|
+// let data = {
|
|
|
+// currentPage: currentPage.value, // 当前页
|
|
|
+// pageCount: pageSize.value, // 一页数据条数
|
|
|
+// projectName: searchInput.name,
|
|
|
+// pageType: 1,
|
|
|
+// permitNum: searchInput.LicenseCode, // 施工许可证编码
|
|
|
+// projectUnit: searchInput.unit, // 建设单位
|
|
|
+// projectPurpose: searchInput.purpose, // 项目用途
|
|
|
+// structureType: searchInput.structureType, // 结构类型
|
|
|
+// projectType: searchInput.projectType, // 项目类型
|
|
|
+// };
|
|
|
|
|
|
- if (searchInput.createTime) {
|
|
|
- data.startDate = searchInput.createTime[0];
|
|
|
- data.endDate = searchInput.createTime[1];
|
|
|
- }
|
|
|
- let res = await axios({
|
|
|
- method: "get",
|
|
|
- url: api.value + "/jgcloudProject/queryPageJgcloudProject",
|
|
|
- headers: {
|
|
|
- tokenP: sessionStorage.getItem("tokenP"),
|
|
|
- user_head: sessionStorage.getItem("userhead"),
|
|
|
- },
|
|
|
- params: data,
|
|
|
- });
|
|
|
- console.log(res, "项目分页数据");
|
|
|
- if (res.data.code == 200) {
|
|
|
- tableData.list = res.data.data.list;
|
|
|
- total.value = res.data.data.totalCount;
|
|
|
- loading.value = false;
|
|
|
- } else {
|
|
|
- loading.value = false;
|
|
|
- ElMessage({
|
|
|
- type: "error",
|
|
|
- showClose: true,
|
|
|
- message: res.data.message,
|
|
|
- center: true,
|
|
|
- });
|
|
|
- }
|
|
|
-};
|
|
|
+// if (searchInput.createTime) {
|
|
|
+// data.startDate = searchInput.createTime[0];
|
|
|
+// data.endDate = searchInput.createTime[1];
|
|
|
+// }
|
|
|
+// let res = await axios({
|
|
|
+// method: "get",
|
|
|
+// url: api.value + "/jgcloudProject/queryPageJgcloudProject",
|
|
|
+// headers: {
|
|
|
+// tokenP: sessionStorage.getItem("tokenP"),
|
|
|
+// user_head: sessionStorage.getItem("userhead"),
|
|
|
+// },
|
|
|
+// params: data,
|
|
|
+// });
|
|
|
+// console.log(res, "项目分页数据");
|
|
|
+// if (res.data.code == 200) {
|
|
|
+// tableData.list = res.data.data.list;
|
|
|
+// total.value = res.data.data.totalCount;
|
|
|
+// loading.value = false;
|
|
|
+// } else {
|
|
|
+// loading.value = false;
|
|
|
+// ElMessage({
|
|
|
+// type: "error",
|
|
|
+// showClose: true,
|
|
|
+// message: res.data.message,
|
|
|
+// center: true,
|
|
|
+// });
|
|
|
+// }
|
|
|
+// };
|
|
|
|
|
|
onBeforeMount(() => {
|
|
|
api.value = store.state.user.api;
|