Commit e6c7ea5f by 袁晓帅

修改图片不能上传的问题

parent 28a1f353
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleadd" :on-success="handleadd"
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleedit" :on-success="handleedit"
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<el-upload <el-upload
v-loading="loading" v-loading="loading"
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handlevideoSuccess" :on-success="handlevideoSuccess"
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<el-upload <el-upload
v-loading="loading" v-loading="loading"
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handlevideoedit" :on-success="handlevideoedit"
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleAvataredit" :on-success="handleAvataredit"
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<div> <div>
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:headers="headers" :headers="headers"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:headers="headers" :headers="headers"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:headers="headers" :headers="headers"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvataredit" :on-success="handleAvataredit"
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://39.97.169.207:9200/baseInfo/uploadPhoto" :action="this.baseURL + '/baseInfo/uploadPhoto'"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-success="handleAvataredit" :on-success="handleAvataredit"
......
...@@ -47,7 +47,14 @@ ...@@ -47,7 +47,14 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-if="showpage" @pageSize="currentSize" @pageNum="currentPage" :totalNum="totalNum"></pagination> <div class="block text-right mt10" v-if="showpage">
<el-pagination
@size-change="currentSize"
@current-change="currentPage"
layout="total, prev, pager, next, jumper"
:total="totalNum">
</el-pagination>
</div>
</div> </div>
</div> </div>
<el-dialog :title="title" :visible.sync="editdialogVisible" width="40%"> <el-dialog :title="title" :visible.sync="editdialogVisible" width="40%">
...@@ -68,9 +75,9 @@ ...@@ -68,9 +75,9 @@
</div> </div>
</template> </template>
<script> <script>
import pagination from '../../BasePagination.vue'; // import pagination from '../../BasePagination.vue';
export default { export default {
components: { pagination }, // components: { pagination },
data: () => ({ data: () => ({
loading: false, loading: false,
showpage: true, showpage: true,
......
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 sign in to comment