diff --git a/.env.production b/.env.production index d0986ca..97cacc7 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ VUE_APP_TITLE = 苏州工业园区工业上楼管理系统 ENV = 'production' # 苏州工业园区工业上楼管理系统/生产环境 -# VUE_APP_BASE_API = 'http://39.101.188.84:7071' +VUE_APP_BASE_API = 'http://39.101.188.84:7071' diff --git a/package.json b/package.json index 0dfa3e6..1db0bee 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "clipboard": "2.0.8", "core-js": "3.37.1", "echarts": "^5.4.0", - "element-ui": "2.15.14", + "element-ui": "^2.15.13", "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index 3bcd570..6a131a0 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -8,13 +8,20 @@ export function getBasicInformationPage(params) { params }) } -// 通过主键查询单条所有数据 +// 通过主键查询单条所有数据(企业端) export function getBasicInformationById(id) { return request({ url: `/gysl/basicInformation/stagingInfo/${id}`, method: 'get' }); } +// 通过主键查询单条所有数据(政务端) +export function getzwBasicInformationById(id) { + return request({ + url: `/gysl/basicInformation/${id}`, + method: 'get' + }); +} // 企业端提交填报 export function fillBasicInformation(data) { @@ -169,15 +176,17 @@ export function addElement(data) { }); } + // 查询所有要素 -export function getAllElements() { +export function getAllElements(params) { return request({ url: '/gysl/mx/page', method: 'get', + params }); } -// 编辑要素或者指标 +// 编辑指标 export function editElemention(data) { return request({ url: '/gysl/mx/edit', @@ -186,7 +195,17 @@ export function editElemention(data) { }); } -// 删除指标或要素 +//编辑要素 +export function updateYsElement(data){ + return request({ + url:'/gysl/mx/updateYs', + method:'post', + data + }) +} + + +// 删除指标 export function deleteElemention(idList) { return request({ url: `/gysl/mx/delete`, @@ -195,6 +214,15 @@ export function deleteElemention(idList) { }); } +//删除要素 +export function deleteYsElement(params) { + return request({ + url: '/gysl/mx/deleteYs', + method: 'delete', + params + }) +} + // 目录管理 // 新增目录 export function addCatalog(data) { diff --git a/src/components/bearicon/index.vue b/src/components/bearicon/index.vue index 6bf4bc2..ffd58bb 100644 --- a/src/components/bearicon/index.vue +++ b/src/components/bearicon/index.vue @@ -3,24 +3,15 @@ - - - - - - 消息数量: {{ counts }} - - - diff --git a/src/views/components/ProjectDetails/Companyenter.vue b/src/views/components/ProjectDetails/Companyenter.vue index e40a9c7..1075cf3 100644 --- a/src/views/components/ProjectDetails/Companyenter.vue +++ b/src/views/components/ProjectDetails/Companyenter.vue @@ -253,7 +253,7 @@ export default { //模板下载 importTemplate() { download( - "/api/enterprise/template", // 替换为实际模板下载接口 + "/gysl/enterprise/importTemplate", {}, `企业入驻模板_${new Date().getTime()}.xlsx` ); diff --git a/src/views/components/ProjectDetails/Models.vue b/src/views/components/ProjectDetails/Models.vue index 4a5c74f..14e684c 100644 --- a/src/views/components/ProjectDetails/Models.vue +++ b/src/views/components/ProjectDetails/Models.vue @@ -24,11 +24,22 @@ {{ row.ysmc }}
- {{ item.zdname }}: - + {{ item.zdname || '暂无指标' }}: + + + + + + +
- {{ item.zdname }}: {{ item.zdinfor || '无' }} + {{ item.zdname || '暂无指标' }}: {{ item.zdinfor || + '无' }}
@@ -55,7 +66,27 @@ export default { data() { return { isEditingAll: false, - form: [] + form: [], + optionsMap: { + '0-0': [ + { value: '一级', label: '一级' }, + { value: '二级', label: '二级' }, + { value: '三级', label: '三级' }, + { value: '四级', label: '四级' }, + ], + '0-1': [ + { value: '甲', label: '甲' }, + { value: '乙', label: '乙' }, + { value: '丙', label: '丙' }, + { value: '丁', label: '丁' }, + { value: '戊', label: '戊' }, + ], + '0-2': [ + { value: '有', label: '有' }, + { value: '无', label: '无' }, + ], + // 添加更多选项数据 + } }; }, watch: { @@ -68,8 +99,8 @@ export default { xmId: item.xmId, ysmc: item.ysmc, list: item.list.map(subItem => ({ - zdname: subItem.zdname, - zdinfor: subItem.zdinfor, + zdname: subItem.zdname || '暂无指标', + zdinfor: subItem.zdinfor || '', isEditing: false })) })); @@ -99,6 +130,10 @@ export default { }); } this.isEditingAll = !this.isEditingAll; + }, + getOptionsForItem(rowIndex, itemIndex) { + // 根据 rowIndex 和 itemIndex 获取对应的选项数据 + return this.optionsMap[`${rowIndex}-${itemIndex}`] || []; } }, created() { diff --git a/src/views/components/ProjectDetails/Others.vue b/src/views/components/ProjectDetails/Others.vue index 3509523..3090607 100644 --- a/src/views/components/ProjectDetails/Others.vue +++ b/src/views/components/ProjectDetails/Others.vue @@ -41,8 +41,8 @@ - 删除 + 删除 diff --git a/src/views/components/analysis/message.vue b/src/views/components/analysis/message.vue index fb9ff5a..3a4fe15 100644 --- a/src/views/components/analysis/message.vue +++ b/src/views/components/analysis/message.vue @@ -1,6 +1,6 @@ diff --git a/src/views/orientedtwo/content/index.vue b/src/views/orientedtwo/content/index.vue index 77ddc64..d1a7b5c 100644 --- a/src/views/orientedtwo/content/index.vue +++ b/src/views/orientedtwo/content/index.vue @@ -26,7 +26,7 @@ - @@ -169,7 +169,7 @@ export default { pageSize: 10, gydl: undefined, slmllb: undefined, - updateTime: undefined + startTime: undefined }, // 表单参数 form: { @@ -211,8 +211,7 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - // url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import" - url: location.origin + "/gysl/ml/importMl", + url: process.env.VUE_APP_BASE_API + "/gysl/ml/importMl", }, }; }, @@ -352,7 +351,7 @@ export default { /** 下载模板操作 */ importTemplate() { this.download( - "/tc/assetCurrent/importTemplate", + "/gysl/ml/importTemplate", {}, `目录导入模板${new Date().getTime()}.xlsx` ); diff --git a/src/views/orientedtwo/subdivide/index.vue b/src/views/orientedtwo/subdivide/index.vue index 5ff39a1..0ec51c8 100644 --- a/src/views/orientedtwo/subdivide/index.vue +++ b/src/views/orientedtwo/subdivide/index.vue @@ -240,8 +240,7 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - // url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import" - url: location.origin + "/gysl/xfcygl/imporXfcy", + url: process.env.VUE_APP_BASE_API + "/gysl/xfcygl/imporXfcy", }, }; }, @@ -381,9 +380,9 @@ export default { /** 下载模板操作 */ importTemplate() { this.download( - "/tc/assetCurrent/importTemplate", + "/gysl/xfcygl/importTemplate", {}, - `目录导入模板${new Date().getTime()}.xlsx` + `细分产业模板${new Date().getTime()}.xlsx` ); }, // 文件上传中处理 diff --git a/vue.config.js b/vue.config.js index 06c69c2..4a3e116 100644 --- a/vue.config.js +++ b/vue.config.js @@ -31,14 +31,14 @@ module.exports = { // webpack-dev-server 相关配置 devServer: { host: '0.0.0.0', - public:'192.168.0.119', + // 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.112:7071/`, - // target: `http://39.101.188.84:7071/`, + // target: `http://192.168.0.110:7071/`, + target: `http://39.101.188.84:7071/`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''