diff --git a/.env.development b/.env.development
index 82f07d9..b2cda0a 100644
--- a/.env.development
+++ b/.env.development
@@ -5,8 +5,8 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
-# VUE_APP_BASE_API = 'http://192.168.0.105:9040'
-VUE_APP_BASE_API = 'http://39.101.188.84:9040'
+VUE_APP_BASE_API = 'http://192.168.0.118:9040'
+# VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'
# 路由懒加载
diff --git a/package.json b/package.json
index 2288109..cd03932 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ruoyi",
- "version": "1.0.202406210919",
+ "version": "1.0.202406211358",
"description": "金鸡湖现代服务业品牌管理系统",
"author": "若依",
"license": "MIT",
diff --git a/src/api/jin_ji_hu/project/index.js b/src/api/jin_ji_hu/project/index.js
index 46aca72..91ef48e 100644
--- a/src/api/jin_ji_hu/project/index.js
+++ b/src/api/jin_ji_hu/project/index.js
@@ -24,6 +24,15 @@ export function jProjectDel(params) {
})
}
+// 根据信用代码查询企业id
+export function getUserId(params) {
+ return request({
+ url: "/system/enterpriseBasicInfo/getCreditCode",
+ method: "get",
+ params
+ })
+}
+
/**
* 备忘录
diff --git a/src/assets/styles/font.css b/src/assets/styles/font.css
new file mode 100644
index 0000000..a2b8e83
--- /dev/null
+++ b/src/assets/styles/font.css
@@ -0,0 +1,4 @@
+@font-face {
+ font-family: "PingFang-SC";
+ src: url("./font/PingFang_Heavy.ttf");
+}
\ No newline at end of file
diff --git a/src/assets/styles/font/PingFang_Heavy.ttf b/src/assets/styles/font/PingFang_Heavy.ttf
new file mode 100644
index 0000000..f4cf788
Binary files /dev/null and b/src/assets/styles/font/PingFang_Heavy.ttf differ
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index 38e8015..dc17d7e 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -6,6 +6,7 @@
@import "./btn.scss";
@import "./buttonType.scss";
@import "./public.scss";
+@import './font.css';
body {
height: 100%;
diff --git a/src/assets/styles/public.scss b/src/assets/styles/public.scss
index 222b347..f527965 100644
--- a/src/assets/styles/public.scss
+++ b/src/assets/styles/public.scss
@@ -180,6 +180,9 @@
height: 100%;
}
}
+ .L_row {
+ height: calc(100% - 40px);
+ }
.left-info{
height: calc(25% - 5px);
background-color: white;
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 00733bc..e0a1cc2 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -14,13 +14,13 @@
- 返回
+ >返回 -->
diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue
index 3337591..7ea4322 100644
--- a/src/components/Editor/index.vue
+++ b/src/components/Editor/index.vue
@@ -60,7 +60,7 @@ export default {
},
data() {
return {
- uploadUrl: location.origin + '/api' + "/common/upload", // 上传的图片服务器地址
+ uploadUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
headers: {
Authorization: "Bearer " + getToken()
},
@@ -194,7 +194,7 @@ export default {
// 获取光标所在位置
let length = quill.getSelection().index;
// 插入图片 res.url为服务器返回的图片地址
- quill.insertEmbed(length, "image", location.origin + '/api' + res.fileName);
+ quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
// 调整光标到最后
quill.setSelection(length + 1);
} else {
diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue
index f2c9e52..c7f6b0a 100644
--- a/src/components/FileUpload/index.vue
+++ b/src/components/FileUpload/index.vue
@@ -72,8 +72,8 @@ export default {
return {
number: 0,
uploadList: [],
- baseUrl: location.origin + '/api' ,
- uploadFileUrl: location.origin + '/api' + "/common/upload", // 上传文件服务器地址
+ baseUrl: process.env.VUE_APP_BASE_API,
+ uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传文件服务器地址
headers: {
Authorization: "Bearer " + getToken(),
},
diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue
index fd59e3b..3c770c7 100644
--- a/src/components/ImagePreview/index.vue
+++ b/src/components/ImagePreview/index.vue
@@ -39,7 +39,7 @@ export default {
if (isExternal(real_src)) {
return real_src;
}
- return location.origin + '/api' + real_src;
+ return process.env.VUE_APP_BASE_API + real_src;
},
realSrcList() {
if (!this.src) {
@@ -51,7 +51,7 @@ export default {
if (isExternal(item)) {
return srcList.push(item);
}
- return srcList.push(location.origin + '/api' + item);
+ return srcList.push(process.env.VUE_APP_BASE_API + item);
});
return srcList;
},
diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue
index 11c1622..2e64c9b 100644
--- a/src/components/ImageUpload/index.vue
+++ b/src/components/ImageUpload/index.vue
@@ -76,8 +76,8 @@ export default {
dialogImageUrl: "",
dialogVisible: false,
hideUpload: false,
- baseUrl: location.origin + '/api' ,
- uploadImgUrl: location.origin + '/api' + "/common/upload", // 上传的图片服务器地址
+ baseUrl: process.env.VUE_APP_BASE_API,
+ uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
headers: {
Authorization: "Bearer " + getToken(),
},
diff --git a/src/layout/components/FixedHeader/index.vue b/src/layout/components/FixedHeader/index.vue
index 68193a9..055bed5 100644
--- a/src/layout/components/FixedHeader/index.vue
+++ b/src/layout/components/FixedHeader/index.vue
@@ -90,7 +90,7 @@ export default {
// location.href = "/index";
// console.log("this.$store.state.user.userType",this.$store.state.user.userType);
// if(this.$store.state.user.userType == "01") {
- // location.href = location.origin + '/api' + "/system/singlelogin/login"
+ // location.href = process.env.VUE_APP_BASE_API + "/system/singlelogin/login"
// } else {
// this.$router.replace("/login");
// }
diff --git a/src/permission.js b/src/permission.js
index b0b7139..9f524e6 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => {
}).catch((err) => {
store.dispatch("LogOut").then(() => {
Message.error(err);
- location.href = location.origin + '/api' + "/system/singlelogin/login"
+ location.href = process.env.VUE_APP_BASE_API + "/system/singlelogin/login"
});
});
} else {
@@ -158,7 +158,7 @@ router.beforeEach((to, from, next) => {
}
// store.dispatch("LogOut").then(() => {
// Message.error(err);
- // location.href = location.origin + '/api' + "/system/singlelogin/login"
+ // location.href = process.env.VUE_APP_BASE_API + "/system/singlelogin/login"
// });
}
});
diff --git a/src/plugins/download.js b/src/plugins/download.js
index ab27122..42acd00 100644
--- a/src/plugins/download.js
+++ b/src/plugins/download.js
@@ -5,7 +5,7 @@ import { getToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'
import { blobValidate } from "@/utils/ruoyi";
-const baseURL = location.origin + '/api'
+const baseURL = process.env.VUE_APP_BASE_API
let downloadLoadingInstance;
export default {
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 4f94f0a..36a8fb5 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -134,7 +134,7 @@ const user = {
getInfo().then(res => {
// console.log(res);
const user = res.user
- const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : location.origin + '/api' + user.avatar;
+ const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
commit('SET_ROLES', res.roles)
commit('SET_PERMISSIONS', res.permissions)
diff --git a/src/utils/request.js b/src/utils/request.js
index 6471c8d..d273357 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -16,7 +16,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
- baseURL: location.origin + '/api' ,
+ baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 10000
})
diff --git a/src/views/enterpriselibrary/enterInfo/components/tabOne/index.vue b/src/views/enterpriselibrary/enterInfo/components/tabOne/index.vue
index 4fd0cfc..2f6b864 100644
--- a/src/views/enterpriselibrary/enterInfo/components/tabOne/index.vue
+++ b/src/views/enterpriselibrary/enterInfo/components/tabOne/index.vue
@@ -96,7 +96,7 @@ export default {
info:[],
fileInfo:[],
loading:false,
- VUE_APP_BASE_API:location.origin + '/api' ,
+ VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
}
},
mounted() {
diff --git a/src/views/enterpriselibrary/enterInfo/index.vue b/src/views/enterpriselibrary/enterInfo/index.vue
index 22bbbc0..721b59c 100644
--- a/src/views/enterpriselibrary/enterInfo/index.vue
+++ b/src/views/enterpriselibrary/enterInfo/index.vue
@@ -24,7 +24,7 @@
diff --git a/src/views/onlineDeclaration/declareDetailContent/index.vue b/src/views/onlineDeclaration/declareDetailContent/index.vue
index ee583e7..3a64091 100644
--- a/src/views/onlineDeclaration/declareDetailContent/index.vue
+++ b/src/views/onlineDeclaration/declareDetailContent/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -1834,12 +1834,12 @@
-
-
+
+
-
+
@@ -1847,9 +1847,9 @@
-
+
@@ -1868,8 +1868,10 @@
附件
@@ -1914,7 +1916,7 @@
返回
- 暂存
+
提交
导出申报信息
@@ -1945,7 +1947,7 @@ export default {
dicts: ['bms_responsibility_unit', 'bms_level', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type', 'template_industry', 'new_template_type'],
data() {
return {
- VUE_APP_BASE_API:location.origin + '/api' ,
+ VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
size: '',
templateInfo: {},
baseInfo: {},
@@ -3205,27 +3207,33 @@ export default {
printOutpdf() {
let name = ''
name = `${this.templateInfo.templateName}_${this.baseInfo.enterpriseName}`
- html2canvas(this.$refs.pdf).then(function(canvas) {
- let contentWidth = canvas.width;
- let contentHeight = canvas.height;
- //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
- let imgWidth = 595.28;
- let imgHeight = 595.28/contentWidth * contentHeight;
-
- // 第一个参数: l:横向 p:纵向
- // 第二个参数:测量单位("pt","mm", "cm", "m", "in" or "px")
- let pdf = new JsPDF("p", "pt");
-
- pdf.addImage(
- canvas.toDataURL("image/jpeg", 1.0),
- "JPEG",
- 0,
- 0,
- imgWidth,
- imgHeight
- );
- pdf.save(name + ".pdf");
- })
+ document.getElementById("left_content").style.overflow = 'visible';
+ let _this = this
+ setTimeout(()=>{
+ html2canvas(this.$refs.pdf).then(function(canvas) {
+ // let contentWidth = canvas.width;
+ // let contentHeight = canvas.height;
+ let contentWidth = _this.$refs.pdf.offsetWidth;
+ let contentHeight = _this.$refs.pdf.offsetHeight;
+ //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
+ let imgWidth = 595.28;
+ let imgHeight = (595.28 / contentWidth) * contentHeight;
+ console.log(canvas.toDataURL("image/jpeg", 1.0));
+ // 第一个参数: l:横向 p:纵向
+ // 第二个参数:测量单位("pt","mm", "cm", "m", "in" or "px")
+ let pdf = new JsPDF("p", "pt", "a4");
+ pdf.addImage(
+ canvas.toDataURL("image/jpeg", 1.0),
+ "JPEG",
+ 0,
+ 0,
+ imgWidth,
+ imgHeight
+ );
+ pdf.save(name + ".pdf");
+ document.getElementById("left_content").style.overflow = 'auto';
+ })
+ },200)
}
},
}
@@ -3461,15 +3469,20 @@ list-style: none; /* 清除列表项前的标记 */
// justify-content: space-between;
padding: 0 80px 0 50px;
.attach_item{
- // width: 55%;
+ width: 85%;
display: flex;
- justify-content: space-between;
+ // justify-content: space-between;
align-items: center;
padding: 0 5px;
color: inherit;
border: 1px solid #e4e7ed;
border-radius: 2px;
margin: 10px 20px 10px 0;
+ a {
+ display: flex;
+ // justify-content: space-between;
+ align-items: center;
+ }
.li_img {
width: 25px;
height: 30px;
diff --git a/src/views/onlineDeclaration/enterpriseDirectory/index.vue b/src/views/onlineDeclaration/enterpriseDirectory/index.vue
index 7192ef5..3637132 100644
--- a/src/views/onlineDeclaration/enterpriseDirectory/index.vue
+++ b/src/views/onlineDeclaration/enterpriseDirectory/index.vue
@@ -128,7 +128,7 @@
@pagination="getList"
/>
-
+
@@ -271,7 +271,7 @@
-
+
{
if (valid) {
+ this.diaLoading = true;
if(this.title == "申报补录") {
if(this.form.isFrame == 0) {
delete this.form['enterpriseDirectoryList'];
@@ -547,6 +549,7 @@ export default {
delete this.form['fileList'];
}
supplementation(this.form).then(res=>{
+ this.diaLoading = false;
this.$modal.msgSuccess("补录成功");
this.open = false;
this.isReplace = false;
@@ -554,6 +557,7 @@ export default {
})
} else if (this.form.id != undefined) {
putTemplateRecord(this.form).then(response => {
+ this.diaLoading = false;
this.$modal.msgSuccess("修改成功");
this.open = false;
this.isReplace = false;
@@ -561,6 +565,7 @@ export default {
});
} else {
addTemplateRecord(this.form).then(response => {
+ this.diaLoading = false;
this.$modal.msgSuccess("新增成功");
this.open = false;
this.isReplace = false;
diff --git a/src/views/onlineDeclaration/records/components/index.vue b/src/views/onlineDeclaration/records/components/index.vue
index 1f8643c..845e121 100644
--- a/src/views/onlineDeclaration/records/components/index.vue
+++ b/src/views/onlineDeclaration/records/components/index.vue
@@ -714,7 +714,7 @@ export default {
name:"updataChange",
data() {
return {
- VUE_APP_BASE_API:location.origin + '/api' ,
+ VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
openCity: false,
enterpriseInfo: {},
form:{
diff --git a/src/views/onlineDeclaration/supplementary/index.vue b/src/views/onlineDeclaration/supplementary/index.vue
index 75074bc..f7bbe45 100644
--- a/src/views/onlineDeclaration/supplementary/index.vue
+++ b/src/views/onlineDeclaration/supplementary/index.vue
@@ -1152,11 +1152,11 @@
-
-
+
+
-
+
diff --git a/src/views/project/index.vue b/src/views/project/index.vue
index bb12369..e02487b 100644
--- a/src/views/project/index.vue
+++ b/src/views/project/index.vue
@@ -282,8 +282,8 @@ export default {
// 设置上传的请求头部
headers: { Authorization: "Bearer " + getToken() },
// 上传的地址
- // url: location.origin + '/api' + "/jjh/jProject/export"
- url: location.origin + '/api' + "/jjh/jProject/importTemplateProject"
+ // url: process.env.VUE_APP_BASE_API + "/jjh/jProject/export"
+ url: process.env.VUE_APP_BASE_API + "/jjh/jProject/importTemplateProject"
},
tabHeader: undefined,
};
diff --git a/src/views/project/projectInfo/components/projectProgress/index.vue b/src/views/project/projectInfo/components/projectProgress/index.vue
index dbf4947..46fe7f8 100644
--- a/src/views/project/projectInfo/components/projectProgress/index.vue
+++ b/src/views/project/projectInfo/components/projectProgress/index.vue
@@ -51,7 +51,7 @@
附件
@@ -87,7 +87,8 @@ export default {
flow:[],
Mystyle:{
height:"",
- }
+ },
+ VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
}
},
mounted() {
diff --git a/src/views/project/projectInfo/components/tabOne/index.vue b/src/views/project/projectInfo/components/tabOne/index.vue
index 807449e..9b987de 100644
--- a/src/views/project/projectInfo/components/tabOne/index.vue
+++ b/src/views/project/projectInfo/components/tabOne/index.vue
@@ -71,6 +71,10 @@ export default {
obj["value"] = newInfo[key] == 1 ? '两业融合示范企业' : newInfo[key] == 2 ? '制造业企业设立财务独立核算的制造服务业职能部门' : newInfo[key] == 3 ? "制造业企业剥离服务业务成立独立的法人制造业企业剥离服务业务成立独立的法人" : "";
} else if(key == "所属类型"){
obj["value"] = newInfo[key] == 0 ? '市场服务类' : newInfo[key] == 1 ? '公共服务类' : "";
+ } else if(key == "所属行业"){
+ obj["value"] = newInfo[key] == 1 ? '轻工' : newInfo[key] == 2 ? '纺织' : newInfo[key] == 3 ? '冶金' : newInfo[key] == 4 ? '化工' : newInfo[key] == 5 ? '建材' : newInfo[key] == 6 ? '机械加工' : "";
+ } else if(key == "类别"){
+ obj["value"] = newInfo[key] == 1 ? '淘汰落后生产工艺装备' : newInfo[key] == 2 ? '退出低端低效生产工艺装备' : "";
} else {
obj["value"] = newInfo[key] ? newInfo[key] : '暂无'
}
@@ -161,7 +165,7 @@ export default {
info:[],
fileInfo:[],
loading:false,
- VUE_APP_BASE_API:location.origin + '/api' ,
+ VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
}
},
mounted() {
diff --git a/src/views/project/projectInfo/index.vue b/src/views/project/projectInfo/index.vue
index 3b65b53..bbb0713 100644
--- a/src/views/project/projectInfo/index.vue
+++ b/src/views/project/projectInfo/index.vue
@@ -1,13 +1,13 @@
-
+
@@ -27,11 +27,15 @@
+