Browse Source

tif回显

tags/v1.0.0
吴迪 2 years ago
parent
commit
2138c052e3
4 changed files with 7 additions and 11 deletions
  1. +1
    -1
      .env.development
  2. +4
    -7
      src/components/UploadOss/fileOss.vue
  3. +2
    -2
      src/components/UploadOss/fileUploadOss.vue
  4. +0
    -1
      src/views/task-manage/components/DrawComp.vue

+ 1
- 1
.env.development View File

@@ -10,7 +10,7 @@ VITE_PROXY = [["","http://192.168.11.11:7011"]]
# base api
VITE_APP_GLOB_BASE_API = ''

VITE_AUTHORITY = 'http://oidc.dev.t-aaron.com'
VITE_AUTHORITY = 'http://192.168.11.11:8090'
VITE_CLIENT_ID = 'tuoheng-pilot-admin'
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA=='
VITE_REDIRECT_URI = 'http://192.168.11.11:7011/login'

+ 4
- 7
src/components/UploadOss/fileOss.vue View File

@@ -56,6 +56,7 @@ const props = defineProps({

const emit = defineEmits(['uploadStatus'])

const client = ref(null) // 上传实例
const data = reactive({
...props,
client: null,
@@ -67,13 +68,11 @@ onMounted(() => {
if (props.defaultList) {
const list = props.defaultList.split(',')
data.fileList = list.map((item) => {
// const objectName = item.split('/').slice(3).join('/')
const objectName = item
console.log('objectName-mounted', objectName)
const objectName = item.split('/').slice(3).join('/')
const obj = {
name: objectName,
id: objectName,
type: 'image/png',
// type: 'image/png',
url: item,
objectName: objectName,
status: 'finished'
@@ -95,9 +94,7 @@ watch(() => props.defaultList, (value) => {
if (value.length) {
const list = value.split(',')
const fileList = list.map((item) => {
// const objectName = item.split('/').slice(3).join('/')
const objectName = item
console.log('objectName-watch', objectName)
const objectName = item.split('/').slice(3).join('/')
const obj = {
name: objectName,
id: objectName,

+ 2
- 2
src/components/UploadOss/fileUploadOss.vue View File

@@ -87,7 +87,7 @@ onMounted(() => {
if (props.defaultList) {
const list = props.defaultList.split(',')
data.fileList = list.map((item) => {
const objectName = item.split('/').slice(3).join('/')
const objectName = '/' + item.split('/').slice(3).join('/')
const obj = {
name: objectName,
id: objectName,
@@ -113,7 +113,7 @@ watch(() => props.defaultList, (value) => {
if (value.length) {
const list = value.split(',')
const fileList = list.map((item) => {
const objectName = item.split('/').slice(3).join('/')
const objectName = '/' + item.split('/').slice(3).join('/')
const obj = {
name: objectName,
id: objectName,

+ 0
- 1
src/views/task-manage/components/DrawComp.vue View File

@@ -327,7 +327,6 @@ const vodStatusVideo = async({ status, list, videoIds }) => {

// 只文件上传
const statusfile = async(status, list) => {
console.log('list是啥', list)
if (status === 'success') {
const params = {
id: data.id,

Loading…
Cancel
Save