朱鑫波 il y a 4 ans
Parent
commit
1d65e3d1f7

+ 1 - 1
src/views/modules/advertiser/modules/projectListModal.vue

@@ -72,7 +72,7 @@
             optionFilterProp="children"
             showSearch
             :filterOption="filterOption"
-            v-decorator="['productId', validatorRules.productId]"
+            v-decorator="['productId']"
             placeholder="请选择产品"
             disabled
           >

+ 11 - 10
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -436,7 +436,7 @@ li.chouzhen.first:before {
           <a-form-item label="创意分类" :labelCol="labelCol" :wrapperCol="wrapperCol">
             <a-cascader
               :options="createOptions"
-              v-decorator="['creativeCategory', { rules: [{ required: true, message: '创意分类' }] }]"
+              v-decorator="['creativeCategory']"
               :fieldNames="fieldNames"
               placeholder="请选择创意分类"
             />
@@ -447,7 +447,7 @@ li.chouzhen.first:before {
               mode="tags"
               style="width: 100%"
               placeholder="按回车生成标签"
-              v-decorator="['creativeTag', { rules: [{ required: true, message: '创意标签必填' }] }]"
+              v-decorator="['creativeTag']"
               dropdownClassName="display-none-selset"
               :token-separators="[',',' ',',']"
             >
@@ -1529,14 +1529,15 @@ export default {
               stickerTitle: item.stickerTitle,
             }
           })
-          var params = {
-            dataJson: allJson.concat(dataAd),
-            ...values,
-            creativeCategory:values.creativeCategory.pop(),
-            unitId: this.pansKey,
-            accountId: localStorage.getItem('accountId'),
-            content: this.content,
-          }
+          var params = Object.assign({}, values)
+          // var params = {
+            params.dataJson= allJson.concat(dataAd)
+            // ...values,
+            params.creativeCategory = params.creativeCategory?params.creativeCategory.pop():null
+            params.unitId= this.pansKey
+            params.accountId= localStorage.getItem('accountId')
+            params.content= this.content
+          // }
           postAction('/kuaishou/batch/createCreative', params).then((res) => {
             if (res.success) {
               this.visible = true

+ 6 - 3
src/views/modules/kuaishouapp/account/stepForm/Step4.vue

@@ -60,6 +60,9 @@
 .sticker-styles .ant-checkbox-wrapper + .ant-checkbox-wrapper {
   margin-left: 0;
 }
+.display-none-selset{
+  display: none!important;
+}
 </style>
 <style scoped lang="scss">
 .actor-photo-list {
@@ -381,7 +384,7 @@ li.chouzhen.first:before {
           <a-form-item label="创意分类" :labelCol="labelCol" :wrapperCol="wrapperCol">
             <a-cascader
               :options="createOptions"
-              v-decorator="['creativeCategory', { rules: [{ required: true, message: '创意分类' }] }]"
+              v-decorator="['creativeCategory']"
               :fieldNames="fieldNames"
               placeholder="请选择创意分类"
             />
@@ -392,7 +395,7 @@ li.chouzhen.first:before {
               mode="tags"
               style="width: 100%"
               placeholder="按回车生成标签"
-              v-decorator="['creativeTag', { rules: [{ required: true, message: '创意标签必填' }] }]"
+              v-decorator="['creativeTag']"
               dropdownClassName="display-none-selset"
               :token-separators="[',',' ',',']"
             >
@@ -1514,7 +1517,7 @@ export default {
           var params = {
             // dataJson: allJson,
             ...values,
-            creativeCategory:values.creativeCategory.pop(),
+            creativeCategory:values.creativeCategory?values.creativeCategory.pop():null,
             unitId: this.pansKey,
             accountId: localStorage.getItem('accountId'),
             content: this.content,

+ 1 - 1
vue.config.js

@@ -70,7 +70,7 @@ module.exports = {
       '/jeecg-boot': {
         //  target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.1.72:8080', //请求本地 需要jeecg-boot后台项目  英豪
+        // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
 
         // target: 'http://192.168.1.74:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉