富文本上传视频loading等

dev_202304
yujialong 2 years ago
parent c99bf551ec
commit 8c048f6ba1
  1. 2
      src/views/parner/staff.vue
  2. 7
      src/views/parnerOperation/editor.js

@ -127,7 +127,7 @@
<el-table-column prop="lastLoginTime" label="上次登录时间" align="center" width="120"></el-table-column> <el-table-column prop="lastLoginTime" label="上次登录时间" align="center" width="120"></el-table-column>
<el-table-column label="操作" align="center" width="300"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.isTeam == 1" type="text" v-auth="'/parner:账号管理:重置密码'" @click="edit(scope.row)">编辑</el-button> <el-button v-if="!type" type="text" v-auth="'/parner:账号管理:重置密码'" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" v-auth="'/parner:账号管理:重置密码'" @click="resetPassword(scope.row)">重置密码</el-button> <el-button type="text" v-auth="'/parner:账号管理:重置密码'" @click="resetPassword(scope.row)">重置密码</el-button>
<el-button v-if="type" type="text" v-auth="'/parner:账号管理:删除合伙人'" @click="del(scope.row)">删除</el-button> <el-button v-if="type" type="text" v-auth="'/parner:账号管理:删除合伙人'" @click="del(scope.row)">删除</el-button>
<el-button v-else-if="scope.row.isTeam == 1" type="text" v-auth="'/parner:账号管理:转让超管'" @click="transfer(scope.row)">转让超管</el-button> <el-button v-else-if="scope.row.isTeam == 1" type="text" v-auth="'/parner:账号管理:转让超管'" @click="transfer(scope.row)">转让超管</el-button>

@ -2,6 +2,7 @@ import Axios from 'axios'
import Api from '@/utils/api' import Api from '@/utils/api'
import Setting from '@/setting' import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import { Loading } from 'element-ui'
export default { export default {
//skin:'oxide-dark', //skin:'oxide-dark',
language:'zh_CN', language:'zh_CN',
@ -347,6 +348,7 @@ export default {
let file = this.files[0]; let file = this.files[0];
let fd = new FormData(); let fd = new FormData();
fd.append("file", file); fd.append("file", file);
const load = Loading.service()
Axios({ Axios({
method: 'post', method: 'post',
url: Api.fileUploadNakadai, url: Api.fileUploadNakadai,
@ -356,8 +358,11 @@ export default {
token: Util.local.get(Setting.tokenKey) token: Util.local.get(Setting.tokenKey)
}, },
}).then(({ data }) => { }).then(({ data }) => {
load.close()
callback(data.filesResult.fileUrl) callback(data.filesResult.fileUrl)
}).catch(res => {}) }).catch(res => {
load.close()
})
} }
//触发点击 //触发点击
input.click(); input.click();

Loading…
Cancel
Save