Commit 37612864 authored by obt's avatar obt

接口修复

parent 5109062d
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
onUploadRequest(data) { onUploadRequest(data) {
this.uploading = true; this.uploading = true;
let fileObj = data.file; let fileObj = data.file;
//获取图片详情信息 //获取图片详情信息
let imgInfo = {}; let imgInfo = {};
let temp = URL.createObjectURL(fileObj) let temp = URL.createObjectURL(fileObj)
...@@ -78,8 +77,6 @@ export default { ...@@ -78,8 +77,6 @@ export default {
} }
imgInfo.size = fileObj.size; imgInfo.size = fileObj.size;
imgInfo.type = fileObj.type; imgInfo.type = fileObj.type;
// FormData 对象 // FormData 对象
let form = new FormData(); let form = new FormData();
// 文件对象 // 文件对象
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-02 10:27:53 * @Date: 2020-12-02 10:27:53
* @LastEditTime: 2020-12-08 17:56:34 * @LastEditTime: 2020-12-09 11:24:17
* @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
...@@ -446,10 +446,11 @@ export default { ...@@ -446,10 +446,11 @@ export default {
message: "删除成功!!!", message: "删除成功!!!",
type: 'success' type: 'success'
}); });
let index = this.tableData.findIndex(ele => ele.id == type.id) this.pullListApplicationType()
if(index!=-1){ // let index = this.tableData.findIndex(ele => ele.id == type.id)
this.tableData.splice(index,1) // if(index!=-1){
} // this.tableData.splice(index,1)
// }
}else{ }else{
this.$message.error('操作失败,请稍后重试!!!'); this.$message.error('操作失败,请稍后重试!!!');
} }
...@@ -483,6 +484,7 @@ export default { ...@@ -483,6 +484,7 @@ export default {
message: message, message: message,
type: 'success' type: 'success'
}); });
this.pullAllApplicationType()
}else{ }else{
this.$message.error('操作失败,请稍后重试!!!'); this.$message.error('操作失败,请稍后重试!!!');
} }
...@@ -491,10 +493,12 @@ export default { ...@@ -491,10 +493,12 @@ export default {
changeHandleSize(val) { changeHandleSize(val) {
// console.log(`每页 ${val} 条`); // console.log(`每页 ${val} 条`);
this.typePagination.pageSize = val this.typePagination.pageSize = val
this.pullListApplicationType()
}, },
changeHandleCurrent(val) { changeHandleCurrent(val) {
// console.log(`当前页: ${val}`); // console.log(`当前页: ${val}`);
this.typePagination.currentPage = val this.typePagination.currentPage = val
this.pullListApplicationType()
}, },
onPreview(url){ onPreview(url){
this.form.coverImg = url this.form.coverImg = url
...@@ -648,6 +652,7 @@ export default { ...@@ -648,6 +652,7 @@ export default {
width: 50px; width: 50px;
height: 50px; height: 50px;
object-fit: cover; object-fit: cover;
cursor: pointer;
} }
.operators { .operators {
width: 300px; width: 300px;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-02 10:27:53 * @Date: 2020-12-02 10:27:53
* @LastEditTime: 2020-12-08 14:32:42 * @LastEditTime: 2020-12-09 09:43:51
* @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
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<script> <script>
import appList from './appList/index' import appList from './appList/index'
import addApp from './addApp/index' import addApp from './addUpApp/index'
export default { export default {
name: 'Container', name: 'Container',
components: { components: {
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
data(){ data(){
return { return {
componentName: "appList", componentName: "appList",
info: null,
} }
}, },
mounted() { mounted() {
......
<!-- <!--
* @Author: Jenkins * @Author: Jenkins
* @Date: 2020-12-01 09:54:12 * @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-08 14:24:04 * @LastEditTime: 2020-12-09 11:14:35
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 星云动态 * @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...@@ -1031,6 +1031,7 @@ export default { ...@@ -1031,6 +1031,7 @@ export default {
width: 50px; width: 50px;
height: 50px; height: 50px;
object-fit: cover; object-fit: cover;
cursor: pointer;
} }
.operators { .operators {
width: 300px; width: 300px;
......
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