Bladeren bron

文案编辑

xiuli.gao 1 jaar geleden
bovenliggende
commit
ecdc3d6d83
33 gewijzigde bestanden met toevoegingen van 50 en 32 verwijderingen
  1. 1 1
      dist/assets/index.24ce776b.js
  2. 1 1
      dist/assets/index.c4405661.css
  3. 1 1
      dist/index.html
  4. 1 1
      dist/js/_dialog/_dialog.68d6aa1d.js
  5. 1 1
      dist/js/_input/_input.a405a160.js
  6. 1 1
      dist/js/_select/_select.14599430.js
  7. 1 1
      dist/js/adTask/index.ac075d09.js
  8. 1 0
      dist/js/api/api.69bcb9ab.js
  9. 0 1
      dist/js/api/api.7fd7f440.js
  10. 1 1
      dist/js/basisMoudle/accountManage.ad67665d.js
  11. 1 1
      dist/js/basisMoudle/error.ee2dbaaa.js
  12. 1 1
      dist/js/basisMoudle/home.efa4618e.js
  13. 1 0
      dist/js/basisMoudle/login.3d5776d1.js
  14. 0 1
      dist/js/basisMoudle/login.a138fdaa.js
  15. 1 1
      dist/js/businessMoudle/adqManage.6e0d4982.js
  16. 1 1
      dist/js/collectClip/index.3f9b75c2.js
  17. 1 1
      dist/js/configArea/index.f0807fdb.js
  18. 1 1
      dist/js/gdtList/index.fedf927c.js
  19. 0 1
      dist/js/index/index.0a09510c.js
  20. 1 0
      dist/js/index/index.7f461cfe.js
  21. 1 1
      dist/js/index/index.2aa1b3a3.js
  22. 1 1
      dist/js/layout/index.17e25564.js
  23. 1 1
      dist/js/layout/index_head.eae345c5.js
  24. 1 1
      dist/js/materialBlock/materialBlock.6e2814d7.js
  25. 1 1
      dist/js/materialLibrary/index.4b604357.js
  26. 1 1
      dist/js/menuPermission/menuList.42e3984c.js
  27. 1 1
      dist/js/miniprogram/index.79e62f40.js
  28. 1 1
      dist/js/noData/noData.83d53e07.js
  29. 1 1
      dist/js/tableInfo/tableInfo.62a0d081.js
  30. 1 1
      dist/js/taskList/index.143455f6.js
  31. 1 1
      dist/js/timeScreen/timeScreen.f669b627.js
  32. 1 1
      dist/js/weekTime/weekTime.0c66fd37.js
  33. 21 3
      src/components/businessMoudle/textLibrary/dialog/addEditText.vue

File diff suppressed because it is too large
+ 1 - 1
dist/assets/index.24ce776b.js


File diff suppressed because it is too large
+ 1 - 1
dist/assets/index.c4405661.css


+ 1 - 1
dist/index.html

@@ -6,7 +6,7 @@
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
7 7
     <title>广告系统</title>
8 8
       <script src="//open.thunderurl.com/thunder-link.js"></script>
9
-    <script type="module" crossorigin src="./assets/index.24ce776b.js"></script>
9
+    <script type="module" crossorigin src="./assets/index.ca1bab90.js"></script>
10 10
     <link rel="modulepreload" href="./js/@vue/@vue.e7eafc10.js">
11 11
     <link rel="modulepreload" href="./js/vue-router/vue-router.647267ed.js">
12 12
     <link rel="modulepreload" href="./js/axios/axios.27022086.js">

File diff suppressed because it is too large
+ 1 - 1
dist/js/_dialog/_dialog.68d6aa1d.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/_input/_input.a405a160.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/_select/_select.14599430.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/adTask/index.ac075d09.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/api/api.69bcb9ab.js


File diff suppressed because it is too large
+ 0 - 1
dist/js/api/api.7fd7f440.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/basisMoudle/accountManage.ad67665d.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/basisMoudle/error.ee2dbaaa.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/basisMoudle/home.efa4618e.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/basisMoudle/login.3d5776d1.js


File diff suppressed because it is too large
+ 0 - 1
dist/js/basisMoudle/login.a138fdaa.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/businessMoudle/adqManage.6e0d4982.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/collectClip/index.3f9b75c2.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/configArea/index.f0807fdb.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/gdtList/index.fedf927c.js


File diff suppressed because it is too large
+ 0 - 1
dist/js/index/index.0a09510c.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index/index.7f461cfe.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/index/index.2aa1b3a3.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/layout/index.17e25564.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/layout/index_head.eae345c5.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/materialBlock/materialBlock.6e2814d7.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/materialLibrary/index.4b604357.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/menuPermission/menuList.42e3984c.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/miniprogram/index.79e62f40.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/noData/noData.83d53e07.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/tableInfo/tableInfo.62a0d081.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/taskList/index.143455f6.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/timeScreen/timeScreen.f669b627.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/weekTime/weekTime.0c66fd37.js


+ 21 - 3
src/components/businessMoudle/textLibrary/dialog/addEditText.vue

@@ -4,7 +4,8 @@
4 4
           @confirm="confirmEvent"
5 5
           @close="closeEvent"
6 6
           width="800px"
7
-          minheight="360px"
7
+          height="420px"
8
+          minheight="400px"
8 9
           :dialog-title="title">
9 10
     <template v-slot:content>
10 11
       <div class="dialogBox" v-loading="loading">
@@ -27,8 +28,9 @@
27 28
             </div>
28 29
           </div>
29 30
           <div class="tips">系统会根据您填写的文案长度,自动设配不同要求的创意形式,添加多个文案请换行</div>
30
-          <el-input  id="emojiInput" v-model="text_textarea" resize="none" :rows="12" type="textarea" style="width: 100%;"/>
31
+          <el-input  id="emojiInput" v-model="text_textarea" resize="none" :rows="12" type="textarea" :class="[errFlag?'errInput':'']" style="width: 100%;"/>
31 32
         </div>
33
+        <p class="errHint" v-if="errFlag">仅支持编辑单条文案</p>
32 34
       </div>
33 35
     </template>
34 36
   </Dialog>
@@ -83,6 +85,7 @@ const appendText = (val:any) => {
83 85
 //添加文案-确定
84 86
 const loading = ref<boolean>(false)
85 87
 const text_textarea = ref<string>('')
88
+const errFlag = ref(false)
86 89
 // 提交前判断是否为空
87 90
 //关闭
88 91
 const closeEvent = () => {
@@ -96,7 +99,9 @@ const confirmEvent = async ()=>{
96 99
   } else if(text_textarea.value == ''){
97 100
     ElMessage.error('请输入文案')
98 101
     return
99
-  } else {
102
+  } else if(errFlag.value){
103
+    return
104
+  }else{
100 105
     if(typeof typeRef.value!.textVal == 'number'){}else{
101 106
       await typeRef.value!.add_type()
102 107
     }
@@ -130,6 +135,11 @@ const getRows = ()=>{
130 135
       count++
131 136
     }
132 137
   })
138
+  if(count>1 && props.title == '编辑文案'){
139
+    errFlag.value = true
140
+  }else{
141
+    errFlag.value = false
142
+  }
133 143
   return count
134 144
 }
135 145
 
@@ -208,4 +218,12 @@ onMounted(()=>{
208 218
     font-size: 12px;
209 219
   }
210 220
 }
221
+.errInput{
222
+  border: 1px solid red;
223
+}
224
+.errHint{
225
+  color: red;
226
+  font-size: 12px;
227
+  line-height: 20px;
228
+}
211 229
 </style>