mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-20 09:55:53 +08:00
修改OSS资源回显
This commit is contained in:
@@ -431,7 +431,11 @@ export default {
|
||||
choose: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
initialize: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -858,9 +862,15 @@ export default {
|
||||
if (val) this.selectImage = val
|
||||
},
|
||||
selectedOss(val) {
|
||||
if (val) {
|
||||
if (val && val.length) {
|
||||
this.$emit("callback", {url: val[val.length-1].split(',')[1]});
|
||||
}
|
||||
},
|
||||
// 初始化监听 是否清空所选图片
|
||||
initialize(val) {
|
||||
if (val && this.isComponent) {
|
||||
this.selectedOss = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
</div>
|
||||
</Form>
|
||||
<Modal width="1200px" v-model="picModelFlag">
|
||||
<ossManage @callback="callbackSelected" :isComponent="true" ref="ossManage" />
|
||||
<ossManage @callback="callbackSelected" :isComponent="true" :initialize="picModelFlag" ref="ossManage" />
|
||||
</Modal>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user