Commit 49aa0f0d authored by zhengke's avatar zhengke

修改

parent 7c4e1244
...@@ -79,8 +79,12 @@ ...@@ -79,8 +79,12 @@
<q-btn-group push> <q-btn-group push>
<q-btn-dropdown push label="图片"> <q-btn-dropdown push label="图片">
<q-list> <q-list>
<q-item clickable v-close-popup @click="onItemClick"> <q-item clickable v-close-popup>
本地上传 <el-upload :action="importFileUrl2"
:multiple="false" :on-success="successUpload" :show-file-list="false"
accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp">
本地上传
</el-upload>
</q-item> </q-item>
<q-item clickable v-close-popup @click="onItemClick"> <q-item clickable v-close-popup @click="onItemClick">
从图片库选择 从图片库选择
...@@ -93,8 +97,8 @@ ...@@ -93,8 +97,8 @@
<q-btn push label="小程序" /> <q-btn push label="小程序" />
</q-btn-group> </q-btn-group>
</div> </div>
<q-input clearable standout="bg-primary text-white" v-model="Name" label="标题" maxlength="64" style="margin-top: 20px;"/> <q-input clearable filled v-model="Name" label="标题" maxlength="64" style="margin-top: 20px;"/>
<q-input clearable standout="bg-primary text-white" v-model="author" label="作者" maxlength="8" <q-input clearable filled v-model="author" label="作者" maxlength="8"
style="margin-top: 20px;" /> style="margin-top: 20px;" />
<div style="margin-top: 20px;"> <div style="margin-top: 20px;">
...@@ -109,7 +113,6 @@ ...@@ -109,7 +113,6 @@
<script> <script>
import contributionUE from './ue/contributionUE' import contributionUE from './ue/contributionUE'
export default { export default {
meta: { meta: {
title: "新增/修改图文" title: "新增/修改图文"
...@@ -127,8 +130,8 @@ ...@@ -127,8 +130,8 @@
config: { config: {
initialFrameWidth: null, initialFrameWidth: null,
initialFrameHeight: 300, initialFrameHeight: 300,
}, },
importFileUrl2: this.domainManager().UploadFileUrl2,
} }
}, },
...@@ -137,6 +140,12 @@ ...@@ -137,6 +140,12 @@
}, },
methods: { methods: {
successUpload(file) {
console.log(file,'file');
if (file.Code == 1) {
}
},
onItemClick() { onItemClick() {
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment