diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index 24d6d15..aa9e2dc 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -1,6 +1,42 @@ // src/api/ManageApi/index.js import request from '@/utils/request'; +import { getToken } from '@/utils/auth'; + +// 企业--基本信息==下载模板(基本信息模板) +export function exportBasicInformationTemplate() { + return request({ + url: '/gysl/basicInformation/importTemplate', + method: 'post', + responseType: 'blob', + headers: { + 'Authorization': `Bearer ${getToken()}` + } + }); +} +// 分页查询所有数据 +export function getBasicInformationPage(params) { + return request({ + url:'/gysl/basicInformation/page', + method: 'get', + params + }) +} +// 企业基本信息--的导入功能 +export function importBasicInformation(data) { + const formData = new FormData(); + formData.append('file', data.file); + + return request({ + url: '/gysl/basicInformation/import', + method: 'post', + data: formData, + headers: { + 'Content-Type': 'multipart/form-data', + 'Authorization': `Bearer ${getToken()}`, + }, + }); +} // 企业--基本信息==展示 export function getBasicInformationById(id) { return request({ @@ -26,14 +62,6 @@ export function exportBasicInformation(params) { responseType: 'blob' }); } -// 分页查询所有数据 -export function getBasicInformationPage(params) { - return request({ - url:'/gysl/basicInformation/page', - method: 'get', - params - }) -} // 项目详情 规划信息 // 修改规划信息 export function updateProgrammeInformation(data) { @@ -488,4 +516,14 @@ export function getxmmmbById(id) { method:'get', params:{id} }) +} + +//单片材料管理 +//新增数据 +export function getclglPage(data) { + return request({ + url:'/gysl/dpclgl/add', + method:'post', + data + }) } \ No newline at end of file diff --git a/src/assets/images/icon-关闭-项目备忘录@2x.png b/src/assets/images/icon-关闭-项目备忘录@2x.png new file mode 100644 index 0000000..4e5141e Binary files /dev/null and b/src/assets/images/icon-关闭-项目备忘录@2x.png differ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 411cd70..c0c3de8 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -25,13 +25,7 @@ - - - + 退出登录 @@ -228,7 +222,7 @@ export default { cursor: pointer; position: absolute; right: -20px; - top: 25px; + top: 15px; font-size: 12px; } } diff --git a/src/views/compilation/knowledge/index.vue b/src/views/compilation/knowledge/index.vue index 3a8241b..2425153 100644 --- a/src/views/compilation/knowledge/index.vue +++ b/src/views/compilation/knowledge/index.vue @@ -49,9 +49,9 @@ @@ -71,6 +71,10 @@ :value="dict.value"> + + + + @@ -100,6 +104,9 @@ :value="dict.value"> + + + diff --git a/src/views/compilation/onecailiao/index.vue b/src/views/compilation/onecailiao/index.vue index c491df5..22ec3f7 100644 --- a/src/views/compilation/onecailiao/index.vue +++ b/src/views/compilation/onecailiao/index.vue @@ -65,8 +65,7 @@ - - +
- +
\ No newline at end of file diff --git a/src/views/components/ProjectDetails/Liver.vue b/src/views/components/ProjectDetails/Liver.vue index de1b943..39c9e05 100644 --- a/src/views/components/ProjectDetails/Liver.vue +++ b/src/views/components/ProjectDetails/Liver.vue @@ -43,7 +43,6 @@ export default { { src: 'https://picsum.photos/300/200?random=1', isOnline: true }, { src: 'https://picsum.photos/300/200?random=2', isOnline: false }, { src: 'https://picsum.photos/300/200?random=3', isOnline: true }, - // 添加更多图片 ] }; }, diff --git a/src/views/components/ProjectDetails/Memo.vue b/src/views/components/ProjectDetails/Memo.vue index dd3185d..2ee59dc 100644 --- a/src/views/components/ProjectDetails/Memo.vue +++ b/src/views/components/ProjectDetails/Memo.vue @@ -7,13 +7,6 @@ 项目备忘录
- - 编辑 - 编辑 - 新增
{{ memo.createTime }}
{{ memo.remark }}
-
{{ memo.createBy }}
-
- 编辑 - 删除 -
+
记录人:{{ memo.createBy }}
+
+
@@ -50,7 +41,14 @@ - + + + + + + + @@ -81,14 +79,16 @@ export default { dialogTitle: '新增备忘录', newMemo: { id: null, - remark: '', // 只需要发送 remark - xmId: this.xmId, // 使用传入的 xmId + remark: '', + xmId: this.xmId, + createTime: '', + createBy: '', }, - memos: [], // 备忘录列表 + memos: [], }; }, created() { - this.fetchMemos(); // 页面加载时获取数据 + this.fetchMemos(); }, methods: { onSubmit() { @@ -98,7 +98,7 @@ export default { // 获取备忘录数据 fetchMemos() { const params = { - xmId: this.xmId, // 使用传入的 xmId + xmId: this.xmId, }; getxmmmbPage(params) .then(response => { @@ -120,6 +120,8 @@ export default { id: null, remark: '', // 只需要发送 remark xmId: this.xmId, // 使用传入的 xmId + createTime: new Date().toISOString().slice(0, 10), // 设置当前时间 + createBy: this.getCurrentUserName(), // 获取当前账号的名称 }; }, // 打开编辑弹窗 @@ -131,6 +133,8 @@ export default { id: memo.id, remark: memo.remark, // 只需要发送 remark xmId: memo.xmId, + createTime: memo.createTime, // 使用现有时间 + createBy: memo.createBy, // 使用现有姓名 }; } }, @@ -193,6 +197,11 @@ export default { }); } }, + // 获取当前账号的名称 + getCurrentUserName() { + // 假设当前账号的名称存储在 Vuex store 中 + return this.$store.state.user.name; // 根据实际情况调整 + }, }, }; @@ -292,6 +301,7 @@ export default { border: 0.06rem solid #E6E6E6; padding: .5rem; position: relative; + gap: 1rem; } .itemone { @@ -316,6 +326,7 @@ export default { line-height: 0.88rem; font-style: normal; text-transform: none; + margin-top: .5rem; } .itemthree { @@ -342,4 +353,30 @@ export default { resize: none; /* 禁止调整大小 */ } + +.iconguanbi { + position: absolute; + top: 0; + right: 0; +} +.iconguanbi2 { + position: absolute; + top: 1rem; + right: 1rem; + width: 2rem; + height: 2rem; + background-color: rgba(43,98,241,0.1); + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} +.iconguanbi2 img{ + width: 1.2rem; + height: 1.2rem; +} +.iconguanbi img{ + width: 1.4rem; + height: 1.4rem; +} \ No newline at end of file diff --git a/src/views/components/ProjectDetails/Others.vue b/src/views/components/ProjectDetails/Others.vue index 56237a2..31f5280 100644 --- a/src/views/components/ProjectDetails/Others.vue +++ b/src/views/components/ProjectDetails/Others.vue @@ -38,11 +38,8 @@
- - {{ otherInfo.zdname }} - - - {{ otherInfo.zdinfor }} + + {{ item.zdinfor }}
@@ -51,11 +48,11 @@ - - + + - - + + @@ -78,10 +75,7 @@ export default { }, data() { return { - otherInfo: { // 其他信息 - zdname: '', // 键 - zdinfor: '' // 值 - }, + otherInfo: [], // 其他信息,初始化为空数组 dialogVisible: false, // 控制弹窗显示 dialogTitle: '', // 弹窗标题 form: { // 表单数据 @@ -100,7 +94,7 @@ export default { getOtherInfoByxmid({ xmId: this.xmId }) // 确保参数名和接口定义一致 .then(response => { if (response.code === 200 && response.data) { - this.otherInfo = response.data; // 填充数据 + this.otherInfo = response.data; // 填充数据,假设 response.data 是一个数组 } else { console.error("获取其他信息失败:数据为空"); } diff --git a/src/views/components/ProjectDetails/Projectgift.vue b/src/views/components/ProjectDetails/Projectgift.vue index c3c4336..c80bdd4 100644 --- a/src/views/components/ProjectDetails/Projectgift.vue +++ b/src/views/components/ProjectDetails/Projectgift.vue @@ -23,6 +23,10 @@
+
+
新科大厦项目正在施工
+
2025-02-11
+
@@ -31,7 +35,7 @@ - + @@ -41,10 +45,11 @@ - + - + - + - + - + 取 消 - 确 定 + 确 定
@@ -257,4 +292,36 @@ export default { height: 100%; object-fit: cover; } + +.bottombox { + display: flex; + justify-content: space-between; + align-items: center; + position: absolute; + bottom: .5rem; + padding: .2rem; + width: 97%; +} + +.bottomtext { + font-family: AlibabaPuHuiTi, AlibabaPuHuiTi; + font-weight: 500; + font-size: 1.13rem; + color: #FFFFFF; + line-height: 1.56rem; + text-align: left; + font-style: normal; + text-transform: none; +} + +.bottomtime { + font-family: AlibabaPuHuiTi, AlibabaPuHuiTi; + font-weight: 400; + font-size: 0.75rem; + color: rgba(255, 255, 255, 0.8); + line-height: 1rem; + text-align: left; + font-style: normal; + text-transform: none; +} \ No newline at end of file diff --git a/src/views/components/ProjectDetails/Title.vue b/src/views/components/ProjectDetails/Title.vue index dea9ba9..3e0b8a3 100644 --- a/src/views/components/ProjectDetails/Title.vue +++ b/src/views/components/ProjectDetails/Title.vue @@ -2,7 +2,7 @@
-

{{ name }}

+

THI SIP高端装备工业港

diff --git a/src/views/components/ProjectDetails/companyenter(备份).vue b/src/views/components/ProjectDetails/companyenter(备份).vue index cc3a860..2a97dc0 100644 --- a/src/views/components/ProjectDetails/companyenter(备份).vue +++ b/src/views/components/ProjectDetails/companyenter(备份).vue @@ -7,20 +7,16 @@ 企业入驻信息
+ + style="border: none;background-color: rgba(43,98,241,0.1);color: #2B62F1;" @click="toggleEdit"> 编辑 - 编辑 - - - 编辑 - 导出 + {{ editMode ? '保存' : '编辑' }}
+
@@ -29,147 +25,120 @@ - 18100000000 + + {{ currentCompany.rzqys }} - 苏州市 + + {{ currentCompany.rzqyhylx }} - kooriookami + + {{ currentCompany.rysl }} - 18100000000 + + {{ currentCompany.rzl }} - 苏州市 + + {{ currentCompany.yczmj }} - kooriookami + + {{ currentCompany.kzczmj }} - 18100000000 + + {{ currentCompany.gycfpjzj }} - 苏州市 + + {{ currentCompany.gycfpjwyf }}
- -
-
- 新增企业入驻 - - - - - - - - - - - - - - - -
-
- - - -
-
-
+ \ No newline at end of file diff --git a/src/views/components/analysis/daiban.vue b/src/views/components/analysis/daiban.vue new file mode 100644 index 0000000..ddace04 --- /dev/null +++ b/src/views/components/analysis/daiban.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/views/components/moxintianxie/index.vue b/src/views/components/moxintianxie/index.vue new file mode 100644 index 0000000..6f61137 --- /dev/null +++ b/src/views/components/moxintianxie/index.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/src/views/manage-info/index.vue b/src/views/manage-info/index.vue index 1e04658..98f4bb6 100644 --- a/src/views/manage-info/index.vue +++ b/src/views/manage-info/index.vue @@ -8,7 +8,9 @@ 返回 -
+
+ 已提交
+
- +
@@ -51,10 +53,6 @@
- -
- -
@@ -72,7 +70,9 @@
@@ -84,8 +84,7 @@ import Title from '../components/ProjectDetails/Title.vue'; import Basic from '../components/ProjectDetails/Basic.vue'; import Buildings from '../components/ProjectDetails/Buildings.vue'; -import Projectpicturetwo22 from '../components/ProjectDetails/Projectpicturetwo22.vue'; -// import Companyenter from '../components/ProjectDetails/companyenter.vue'; +import Companyenter from '../components/ProjectDetails/companyenter.vue'; import Liver from '../components/ProjectDetails/Liver.vue'; import Memo from '../components/ProjectDetails/Memo.vue'; import Models from '../components/ProjectDetails/Models.vue'; @@ -95,14 +94,14 @@ import Projectgift from '../components/ProjectDetails/Projectgift.vue'; import Projectpicture from '../components/ProjectDetails/Projectpicture.vue'; import Projectpicturetwo from '../components/ProjectDetails/Projectpicturetwo.vue'; import Others from '../components/ProjectDetails/Others.vue'; +import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数 export default { components: { Title, Basic, Buildings, - Projectpicturetwo22, - // Companyenter, + Companyenter, Liver, Memo, Models, @@ -130,7 +129,9 @@ export default { { id: 'memo', label: '项目备忘录' }, { id: 'others', label: '其他信息' } ], - projectId: null + projectId: null, + isContainerVisible: true, // 控制 containerbody 的显示状态 + isSubmitted: false // 控制提交审核按钮的状态和文本内容 }; }, created() { @@ -139,6 +140,8 @@ export default { this.loadData(); }, methods: { + checkPermi, + checkRole, loadData() { // 根据 projectId 加载数据的逻辑 console.log('Loading data for project ID:', this.projectId); @@ -163,6 +166,31 @@ export default { goBack() { this.$router.go(-1); // 返回上一个页面 }, + submitReview() { + this.$confirm('确定要提交审核吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + // 提交审核的逻辑 + console.log('提交审核'); + // 隐藏 containerbody + this.isContainerVisible = false; + // 设置按钮为已提交状态 + this.isSubmitted = true; + // 可以在这里调用提交审核的 API + // submitReviewApi(this.projectId).then(response => { + // console.log('审核提交成功', response); + // }).catch(error => { + // console.error('审核提交失败', error); + // }); + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消提交' + }); + }); + } } }; diff --git a/src/views/manage/index.vue b/src/views/manage/index.vue index 5c18256..91ad6e4 100644 --- a/src/views/manage/index.vue +++ b/src/views/manage/index.vue @@ -47,10 +47,26 @@
项目清单
- 下载模板 - 批量导入 + 下载模板 + 导入
+ + + + +
将文件拖到此处,或点击上传
+
+ 仅允许导入xls、xlsx格式文件。 +
+
+ + 取消 + 确定 + +
@@ -77,7 +93,7 @@ - + @@ -103,15 +119,16 @@ diff --git a/src/views/models/manages/index.vue b/src/views/models/manages/index.vue index 90564bd..4c5e52c 100644 --- a/src/views/models/manages/index.vue +++ b/src/views/models/manages/index.vue @@ -1,106 +1,146 @@ - - \ No newline at end of file +
+ +
+ 我的待办 +
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 619d314..5389993 100644 --- a/vue.config.js +++ b/vue.config.js @@ -31,12 +31,13 @@ module.exports = { // webpack-dev-server 相关配置 devServer: { host: '0.0.0.0', + public:'192.168.0.119', port: port, open: true, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.0.111:7071`, + target: `http://192.168.0.111:7071/`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''