|
@@ -31,19 +31,18 @@
|
|
|
<el-button type="text"
|
|
|
icon="el-icon-video-play"
|
|
|
size="small"
|
|
|
- v-if="userInfo.role_name.includes('admin')"
|
|
|
@click="handleDebug(scope.row)">调试
|
|
|
</el-button>
|
|
|
<el-button type="text"
|
|
|
icon="el-icon-circle-check"
|
|
|
size="small"
|
|
|
- v-if="permission.oss_enable"
|
|
|
@click.stop="handleEnable(scope.row)">启用
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template slot-scope="{row}"
|
|
|
slot="status">
|
|
|
- <el-tag>{{row.statusName}}</el-tag>
|
|
|
+ <el-tag type="danger" v-if="row.status == 1" >{{row.statusName}}</el-tag>
|
|
|
+ <el-tag v-else>{{row.statusName}}</el-tag>
|
|
|
</template>
|
|
|
<template slot-scope="{row}"
|
|
|
slot="category">
|
|
@@ -84,7 +83,6 @@
|
|
|
searchShow: true,
|
|
|
searchMenuSpan: 6,
|
|
|
border: true,
|
|
|
- index: true,
|
|
|
viewBtn: true,
|
|
|
selection: true,
|
|
|
menuWidth: 300,
|
|
@@ -151,8 +149,8 @@
|
|
|
{
|
|
|
label: "accessKey",
|
|
|
prop: "accessKey",
|
|
|
+ hide: true,
|
|
|
span: 24,
|
|
|
- search: true,
|
|
|
width: 200,
|
|
|
overHidden: true,
|
|
|
rules: [{
|
|
@@ -164,6 +162,7 @@
|
|
|
{
|
|
|
label: "secretKey",
|
|
|
prop: "secretKey",
|
|
|
+ hide: true,
|
|
|
span: 24,
|
|
|
width: 200,
|
|
|
overHidden: true,
|
|
@@ -225,7 +224,7 @@
|
|
|
type: 'upload',
|
|
|
listType: 'picture-img',
|
|
|
dataType: 'string',
|
|
|
- action: '/api/blade-resource/oss/endpoint/put-file',
|
|
|
+ action: '/api/blade-resource/oss/endpoint/put-file-attach',
|
|
|
propsHttp: {
|
|
|
res: 'data',
|
|
|
url: 'link',
|
|
@@ -250,7 +249,7 @@
|
|
|
},
|
|
|
'debugForm.code'() {
|
|
|
const column = this.findObject(this.debugOption.column, "backgroundUrl");
|
|
|
- column.action = `/api/blade-resource/oss/endpoint/put-file?code=${this.debugForm.code}`;
|
|
|
+ column.action = `/api/blade-resource/oss/endpoint/put-file-attach?code=${this.debugForm.code}`;
|
|
|
}
|
|
|
},
|
|
|
computed: {
|