|
@@ -55,7 +55,7 @@
|
|
|
<upload-file :imageUrl="addForm.pic"
|
|
|
:showBtnFlag="false"
|
|
|
@getFileUrl="getAddImageUrl"></upload-file>
|
|
|
- <h5 class="picture-size-h5">(最佳尺寸为?*?像素)</h5>
|
|
|
+ <h5 class="picture-size-h5">(最佳尺寸为{{addText}}像素)</h5>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -96,7 +96,7 @@
|
|
|
<upload-file :imageUrl="editorForm.pic"
|
|
|
:showBtnFlag="false"
|
|
|
@getFileUrl="getEditorImageUrl"></upload-file>
|
|
|
- <h5 class="picture-size-h5">(最佳尺寸为?*?像素)</h5>
|
|
|
+ <h5 class="picture-size-h5">(最佳尺寸为{{editorText}}像素)</h5>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -122,22 +122,27 @@
|
|
|
{
|
|
|
id: 1,
|
|
|
name: '首页',
|
|
|
+ size: '1920 * 1920'
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
name: '考试平台',
|
|
|
+ size: '800 * 800'
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
name: '培训平台',
|
|
|
+ size: '600 * 800'
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
name: '课程开发',
|
|
|
+ size: '500 * 800'
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
name: '新闻资讯',
|
|
|
+ size: '400 * 800'
|
|
|
},
|
|
|
];
|
|
|
const CHANGEPAGECODE = {
|
|
@@ -214,6 +219,26 @@
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ addText() {
|
|
|
+ const code = this.addForm.code;
|
|
|
+ console.log(code);
|
|
|
+ if (code) {
|
|
|
+ console.log(menu.filter(item => item.id === code))
|
|
|
+ return menu.filter(item => item.id === code)[0].size;
|
|
|
+ } else {
|
|
|
+ return `? * ?`
|
|
|
+ }
|
|
|
+ },
|
|
|
+ editorText() {
|
|
|
+ const code = this.editorForm.code;
|
|
|
+ console.log(code);
|
|
|
+ if (code) {
|
|
|
+ console.log(menu.filter(item => item.id === code))
|
|
|
+ return menu.filter(item => item.id === code)[0].size;
|
|
|
+ } else {
|
|
|
+ return `? * ?`
|
|
|
+ }
|
|
|
+ },
|
|
|
myMenu() {
|
|
|
return menu;
|
|
|
},
|