|
|
@ -65,7 +65,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="19"> |
|
|
|
<el-form-item> |
|
|
|
<upload_apk ref="uploadMoreImg" v-model="imgList" bucket="map" :fileInfo ="formobj"/> |
|
|
|
<upload_apk ref="uploadMoreImg" v-model="imgList" @change="change" bucket="map" :fileInfo ="formobj"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
@ -146,6 +146,9 @@ export default { |
|
|
|
methods: { |
|
|
|
init() {}, |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.init() |
|
|
|
this.dialogStatus = 'add' |
|
|
|
this.viewTitle = '新增插件' |
|
|
@ -163,12 +166,20 @@ export default { |
|
|
|
}) |
|
|
|
this.formobj.type = bb.key |
|
|
|
this.$refs.uploadMoreImg.submitUpload() |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
change(value) { |
|
|
|
console.log(value, 65656) |
|
|
|
if (value.response.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: value.response.msg }) |
|
|
|
} |
|
|
|
}, |
|
|
|
backIcon(val) { |
|
|
|
if (val.length > 0) { |
|
|
|
this.formobj.iconUrl = val[0].url |
|
|
@ -189,6 +200,7 @@ export default { |
|
|
|
modulePluginName: '', |
|
|
|
sortNo: '' |
|
|
|
} |
|
|
|
this.imgList = [] |
|
|
|
this.list = [] |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|