Pārlūkot izejas kodu

修改文件上传类型,大小

zhuxinbo 5 gadi atpakaļ
vecāks
revīzija
646b25d9ee

+ 2 - 2
src/utils/request.js

@@ -13,8 +13,8 @@ if (process.env.NODE_ENV == 'development') {
 else if (process.env.NODE_ENV == 'debug') { 
 } 
 else if (process.env.NODE_ENV == 'production') { 
-    axios.defaults.baseURL = 'http://192.168.1.251/jeecg-boot';
-// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
+    // axios.defaults.baseURL = 'http://192.168.1.251/jeecg-boot';
+axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
 }
 const service = axios.create({
 //   baseURL: '/jeecg-boot', // api base_url

+ 1 - 1
src/views/modules/kuaishouapp/account/advertisingGroup.vue

@@ -227,7 +227,7 @@
           <a-radio-group buttonStyle="solid" v-decorator="[
           'createType',
            {
-            initialValue:'1' } ]" @change="createUnitName">l
+            initialValue:'1' } ]" @change="createUnitName">
             <a-radio-button value="1">系统生成</a-radio-button>
             <a-radio-button value="2">自定义</a-radio-button>
           </a-radio-group>

+ 1 - 1
src/views/modules/kuaishouapp/account/editGroup.vue

@@ -29,7 +29,7 @@
     <a-form @submit="handleSubmit" :form="form">
       <a-form-item label="目标应用" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" v-if="campaignType == '2'">
-        <a-select disabled v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch
+        <a-select :disabled="typeCopy=='edit'" v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch
           allowClear placeholder="选择应用目标" optionFilterProp="children" style="width: 500px" @focus="handleFocus"
           @blur="handleBlur" @change="handleChange" :filterOption="filterOption">
           <a-select-option value="0">请选择目标应用</a-select-option>

+ 1 - 1
src/views/modules/kuaishouapp/account/editGroupNew.vue

@@ -29,7 +29,7 @@
     <a-form @submit="handleSubmit" :form="form">
       <a-form-item label="目标应用" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" v-if="campaignType == '2'">
-        <a-select disabled v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch
+        <a-select v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch
           allowClear placeholder="选择应用目标" optionFilterProp="children" style="width: 500px" @focus="handleFocus"
           @blur="handleBlur" @change="handleChange" :filterOption="filterOption">
           <a-select-option value="0">请选择目标应用</a-select-option>

+ 2 - 5
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -235,7 +235,7 @@
       </template>
       <a-form-item label="" class="add-image-material">
         <upload-to-ali style="width:100%" v-model="urlListImage.url" :customDomain="customDomain" :multiple="true"
-          preview :region="region" :bucket="bucket" :accept="acceptImage" :max="15" :size="1024000"
+          preview :region="region" :bucket="bucket" :accept="acceptImage" :max="15" :size="2048"
           :accessKeyId="accessKeyId" :accessKeySecret="accessKeySecret" :before-upload="fileWater" :dir="dirImg"
           @delete='deleteImage' @loaded="overUploadImage"></upload-to-ali>
         <span v-if="material.filter(item => item == false).length > 0 && urlListImage.url.length > 0"
@@ -503,16 +503,13 @@
         region: 'oss-cn-beijing',
         bucket: 'ctop-media',
         acceptVideo: 'video/mpeg,video/mp4',
-        acceptImage: 'image/jpeg,image/jpg,image/png',
+        acceptImage: 'image/jpeg,image/jpg',
         accessKeyId: 'LTAIbNbqWzSOklQV',
         accessKeySecret: '1rkPz7JNoXk8sJevPaeYHWqfkQXBGh',
         messageTip: null
       }
     },
     methods: {
-      a() {
-        alert(1)
-      },
       showTitle(index, bestIndex) {
         nowIndex = index
         bestIndex = bestIndex

+ 6 - 6
src/views/modules/material/videoMaterial.vue

@@ -545,7 +545,7 @@ a {
                           :bucket="bucket"
                           :accept="acceptImage"
                           :max="10"
-                          :size="1024000"
+                          :size="2048"
                           :accessKeyId="accessKeyId"
                           :accessKeySecret="accessKeySecret"
                           :dir="dirImg"
@@ -650,7 +650,7 @@ a {
           :bucket="bucket"
           :accept="acceptImage"
           :max="10"
-          :size="1024000"
+          :size="2048"
           :accessKeyId="accessKeyId"
           :accessKeySecret="accessKeySecret"
           :before-upload="fileWater"
@@ -766,7 +766,7 @@ a {
             :bucket="bucket"
             :accept="acceptImage"
             :max="10"
-            :size="1024000"
+            :size="2048"
             :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret"
             :before-upload="fileWater"
@@ -1054,7 +1054,7 @@ a {
                   :bucket="bucket"
                   :accept="acceptImage"
                   :max="10"
-                  :size="1024000"
+                  :size="2048"
                   :accessKeyId="accessKeyId"
                   :accessKeySecret="accessKeySecret"
                   :dir="dirImg"
@@ -1114,7 +1114,7 @@ a {
                         :bucket="bucket"
                         :accept="acceptImage"
                         :max="10"
-                        :size="1024000"
+                        :size="2048"
                         :accessKeyId="accessKeyId"
                         :accessKeySecret="accessKeySecret"
                         :dir="dirImg"
@@ -1365,7 +1365,7 @@ export default {
       region: 'oss-cn-beijing',
       bucket: 'ctop-media',
       acceptVideo: 'video/mpeg,video/mp4',
-      acceptImage: 'image/jpeg,image/jpg,image/png',
+      acceptImage: 'image/jpeg,image/jpg',
       accessKeyId: 'LTAIbNbqWzSOklQV',
       accessKeySecret: '1rkPz7JNoXk8sJevPaeYHWqfkQXBGh',
       checkArr: [],

+ 5 - 5
vue.config.js

@@ -71,9 +71,9 @@ module.exports = {
        
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震
-        target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
+        target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.251:8088', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
@@ -82,9 +82,9 @@ module.exports = {
 
         ws: false,
         changeOrigin: true,
-        // pathRewrite: {
-        //     '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
-        // }
+        pathRewrite: {
+            '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
+        }
       },
     },
     // before(app) {