Commit bcba81e7 authored by rencs's avatar rencs

Merge branch 'dev_ren' into 'dev'

Dev ren

See merge request !29
parents 1eff05ea 099da13d
/*
* @Author: Jenkins
* @Date: 2020-12-15 16:00:02
* @LastEditTime: 2020-12-21 14:26:39
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\api\website\aboutUs\index.js
*/
import fetch from 'utils/fetch'; import fetch from 'utils/fetch';
// 获取详情 // 获取详情
export function getCompanyInfo(params) { export function companyInfo(params) {
return fetch({ return fetch({
url: "/api/website/companyInfo", url: "/api/website/companyInfo",
method: 'get', method: 'get',
...@@ -10,9 +18,9 @@ export function getCompanyInfo(params) { ...@@ -10,9 +18,9 @@ export function getCompanyInfo(params) {
} }
//编辑详情 //编辑详情
export function setCompanyInfo(params){ export function addUpdate(params){
return fetch({ return fetch({
url: "/api/website/companyInfo/addUpdate/", url: "/api/website/companyInfo/addUpdate",
method: 'post', method: 'post',
data: params data: params
}) })
......
...@@ -9,10 +9,11 @@ ...@@ -9,10 +9,11 @@
:http-request="onUploadRequest" :http-request="onUploadRequest"
:show-file-list="false" :show-file-list="false"
:multiple="false" :multiple="false"
:limit="1"> :limit="1"
>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div class="el-upload__text">只能上传1个文件</div> <div class="el-upload__text">只能上传1张图片</div>
</el-upload> </el-upload>
<div class="image-preview" v-show="value"> <div class="image-preview" v-show="value">
<div class="image-preview-wrapper"> <div class="image-preview-wrapper">
...@@ -33,7 +34,7 @@ export default { ...@@ -33,7 +34,7 @@ export default {
props: { props: {
refName: { refName: {
type: String, type: String,
default: 'upload' default: "upload",
}, },
//图片地址 //图片地址
value: { value: {
...@@ -43,19 +44,19 @@ export default { ...@@ -43,19 +44,19 @@ export default {
}, },
data() { data() {
return { return {
uploading: false uploading: false,
}; };
}, },
mounted() { mounted() {
this.$bus.$on('upload-clearFiles', this.clearFiles) this.$bus.$on("upload-clearFiles", this.clearFiles);
}, },
beforeDestroy() { beforeDestroy() {
this.$bus.$off('upload-clearFiles') this.$bus.$off("upload-clearFiles");
}, },
methods: { methods: {
//清空上传过的图片 //清空上传过的图片
clearFiles() { clearFiles() {
this.$refs[this.refName].clearFiles() this.$refs[this.refName].clearFiles();
}, },
//删除图片 //删除图片
rmImage() { rmImage() {
...@@ -68,13 +69,13 @@ export default { ...@@ -68,13 +69,13 @@ export default {
let fileObj = data.file; let fileObj = data.file;
//获取图片详情信息 //获取图片详情信息
let imgInfo = {}; let imgInfo = {};
let temp = URL.createObjectURL(fileObj) let temp = URL.createObjectURL(fileObj);
let img = new Image(); let img = new Image();
img.src = temp; img.src = temp;
img.onload = function () { img.onload = function () {
imgInfo.width = img.width; imgInfo.width = img.width;
imgInfo.height = img.height; imgInfo.height = img.height;
} };
imgInfo.size = fileObj.size; imgInfo.size = fileObj.size;
imgInfo.type = fileObj.type; imgInfo.type = fileObj.type;
// FormData 对象 // FormData 对象
...@@ -82,21 +83,21 @@ export default { ...@@ -82,21 +83,21 @@ export default {
// 文件对象 // 文件对象
form.append("file", fileObj); form.append("file", fileObj);
uploadFile(form).then(res => { uploadFile(form).then((res) => {
this.uploading = false; this.uploading = false;
if (res.status == 200) { if (res.status == 200) {
this.emitFunc(res.data, imgInfo) this.emitFunc(res.data, imgInfo);
} else { } else {
this.emitFunc("", null); this.emitFunc("", null);
this.$message.error(res.message) this.$message.error(res.message);
} }
}) });
}, },
//组件通信 //组件通信
emitFunc(val, info = null) { emitFunc(val, info = null) {
this.$emit('input', val, info) this.$emit("input", val, info);
} },
}, },
}; };
</script> </script>
...@@ -153,4 +154,4 @@ export default { ...@@ -153,4 +154,4 @@ export default {
} }
} }
} }
</style> </style>
\ No newline at end of file
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-01 09:07:41 * @Date: 2020-12-01 09:07:41
* @LastEditTime: 2020-12-18 13:19:25 * @LastEditTime: 2021-01-06 11:26:39
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \rs-cloud\src\views\webSiteManagement\aboutUs.vue * @FilePath: \rs-cloud\src\views\webSiteManagement\aboutUs.vue
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-02 10:27:53 * @Date: 2020-12-02 10:27:53
* @LastEditTime: 2020-12-11 17:15:00 * @LastEditTime: 2021-01-06 11:24:23
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 类别管理 * @Description: 类别管理
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\applicationList\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\applicationList\index.vue
...@@ -529,6 +529,9 @@ export default { ...@@ -529,6 +529,9 @@ export default {
} }
}); });
} }
this.tableData.forEach((obj,index)=> {
obj.index = ((this.typePagination.currentPage-1)*this.typePagination.pageSize)+(++index)
})
} }
}, },
// 删除类型 // 删除类型
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-17 16:06:03 * @Date: 2020-12-17 16:06:03
* @LastEditTime: 2020-12-18 13:15:37 * @LastEditTime: 2020-12-25 13:09:29
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\transactionProtection\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\transactionProtection\index.vue
...@@ -696,7 +696,7 @@ export default { ...@@ -696,7 +696,7 @@ export default {
.pagination { .pagination {
margin: 1% 1% 0 1%; margin: 1% 1% 0 1%;
width: 98%; width: 98%;
height: auto; height: auto;
} }
} }
</style> </style>
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
</div> </div>
</el-dialog> --> </el-dialog> -->
<!-- 使用图片查看器预览当前缩略图 --> <!-- 使用图片查看器预览当前缩略图 -->
<el-image-viewer <el-image-viewer
v-if="currentIcon.showPreview" v-if="currentIcon.showPreview"
:on-close="closePreview" :on-close="closePreview"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment