liujq 3 years ago
parent
commit
1abb59c4a4

+ 2 - 2
src/components/Common/BaseForm.vue

@@ -535,10 +535,10 @@ export default {
       this.changeHandle(file)
     },
     uploadBefore(file) {
-      const isJPGPNG = file.type === 'image/jpeg' || file.type === 'image/png'
+      const isJPGPNG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif'
       const isLt2M = file.size / 1024 / 1024 < 2
       if (!isJPGPNG) {
-        this.$message.error('上传图片只能是 JPG PNG 格式!')
+        this.$message.error('上传图片只能是 JPG PNG GIF 格式!')
       }
       if (!isLt2M) {
         this.$message.error('上传图片大小不能超过 2M!')

+ 1 - 0
src/views/base/components/popup/ThemeDtlEdit.vue

@@ -59,6 +59,7 @@ export default {
         params = {...this.$refs.ruleForm.baseForm, ...params}
       }
       if (!params.hide_status) params.hide_status = '1'
+      if (!params.type) params.type = 'top_random_entry'
       this.formData = [
         { label: '分类', key: 'type', class: 'c-2', type: 'select', options: this.$dictData.app_theme_type, rules: 1},
         { label: '排序', key: 'sort', class: 'c-2', rules: 1},

+ 1 - 1
src/views/base/themeDtl.vue

@@ -62,7 +62,7 @@ export default {
       rows: [
         { label: '分类', prop: 'type', type: 'tag', tags: arrToObj(this.$dictData.app_theme_type) }, 
         { label: '标题', prop: 'title' },
-        { label: '链接', prop: 'link' },
+        { label: '链接', prop: 'link', fullShow: true },
         { label: '排序', prop: 'sort' },
         { label: '图片', prop: 'icon', type: 'img' },
         { label: '状态', prop: 'hide_status', type: 'tag', tags: arrToObj(this.$dictData.hide_status), tagTypeObj: {'1': 'success', '2': 'danger'} },