Jelajahi Sumber

notion发课

wjj 5 hari lalu
induk
melakukan
79e98099d7

+ 2 - 1
src/views/qw/sopLogs/sopLogsList.vue

@@ -184,6 +184,7 @@
                 <span v-if="item.contentType == 16">素材分享</span>
                 <span v-if="item.contentType == 16">素材分享</span>
                 <span v-if="item.contentType == 17">手机授权</span>
                 <span v-if="item.contentType == 17">手机授权</span>
                 <span v-if="item.contentType == 18">飞书看课</span>
                 <span v-if="item.contentType == 18">飞书看课</span>
+                <span v-if="item.contentType == 19">文档2</span>
                 <span v-if="item.contentType == 21">发看课短信</span>
                 <span v-if="item.contentType == 21">发看课短信</span>
               </div>
               </div>
               <div v-if="item.sendStatus">
               <div v-if="item.sendStatus">
@@ -201,7 +202,7 @@
                 fit="contain"
                 fit="contain"
                 @click.prevent="openImageViewer(item.imgUrl)" />
                 @click.prevent="openImageViewer(item.imgUrl)" />
             </div>
             </div>
-            <div v-if="item.contentType == 3 || item.contentType == 9 || item.contentType == 18" class="message-style">
+            <div v-if="item.contentType == 3 || item.contentType == 9 || item.contentType == 18 || item.contentType == 19" class="message-style">
               <div
               <div
                 style="background-color: white; padding: 10px; width: 100%"
                 style="background-color: white; padding: 10px; width: 100%"
                 @click="openLink(item.linkUrl)">
                 @click="openLink(item.linkUrl)">

+ 10 - 10
src/views/qw/sopTemp/updateSopTemp.vue

@@ -312,7 +312,7 @@
                                               <el-radio
                                               <el-radio
                                                 :key="item.dictValue"
                                                 :key="item.dictValue"
                                                 :label="item.dictValue"
                                                 :label="item.dictValue"
-                                                :disabled="(content.type!=2 && (item.dictValue === '9' || item.dictValue == 18)) || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue))"
+                                                :disabled="(content.type!=2 && (item.dictValue === '9' || item.dictValue == 18 || item.dictValue === '19')) || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue))"
                                                 v-for="item in sysQwSopAiContentType"
                                                 v-for="item in sysQwSopAiContentType"
                                                 v-if="courseTypeList.includes(item.dictValue)">{{ item.dictLabel }}
                                                 v-if="courseTypeList.includes(item.dictValue)">{{ item.dictLabel }}
                                               </el-radio>
                                               </el-radio>
@@ -350,7 +350,7 @@
                                                        v-model="setList.imgUrl"
                                                        v-model="setList.imgUrl"
                                                        type="image" :num="1" :width="150" :height="150"/>
                                                        type="image" :num="1" :width="150" :height="150"/>
 
 
-                                          <div v-if="setList.contentType == 3 || setList.contentType == 18 || (setList.contentType == 9 && content.type==2 )">
+                                          <div v-if="setList.contentType == 3 || setList.contentType == 18 || setList.contentType == 19 || (setList.contentType == 9 && content.type==2 )">
                                             <el-card class="box-card">
                                             <el-card class="box-card">
                                               <el-form-item label="链接标题:" label-width="100px" required>
                                               <el-form-item label="链接标题:" label-width="100px" required>
                                                 <el-input :disabled="formType == 3 || (form.sendType == 11 && contentIndex != 0 && setIndex == 0)" v-model="setList.linkTitle"
                                                 <el-input :disabled="formType == 3 || (form.sendType == 11 && contentIndex != 0 && setIndex == 0)" v-model="setList.linkTitle"
@@ -846,7 +846,7 @@ export default {
       ruleList: [],
       ruleList: [],
       ids: [],
       ids: [],
       startTimeRange: [],
       startTimeRange: [],
-      courseTypeList: ['1','2', '4','5','6', '7','8','9','10','18'],
+      courseTypeList: ['1','2', '4','5','6', '7','8','9','10','18','19'],
       sysFsSopWatchStatus: [],
       sysFsSopWatchStatus: [],
       //消息内容类型 企微版
       //消息内容类型 企微版
       sysQwSopContentType: [],
       sysQwSopContentType: [],
@@ -1343,22 +1343,22 @@ export default {
                 this.$message.error("图片不能为空")
                 this.$message.error("图片不能为空")
                 return false;
                 return false;
               }
               }
-              if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
+              if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
                 && (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
                 && (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
                 this.$message.error("链接标题不能为空")
                 this.$message.error("链接标题不能为空")
                 return false;
                 return false;
               }
               }
-              if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
+              if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
                 && (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
                 && (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
                 this.$message.error("链接描述不能为空")
                 this.$message.error("链接描述不能为空")
                 return false;
                 return false;
               }
               }
-              if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
+              if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
                 && (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
                 && (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
                 this.$message.error("链接图片不能为空")
                 this.$message.error("链接图片不能为空")
                 return false;
                 return false;
               }
               }
-              if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == '18')
+              if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == '18' || data.content[j].setting[k].contentType == '19')
                 && data.content[j].setting[k].type == 1
                 && data.content[j].setting[k].type == 1
                 && (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
                 && (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
                 this.$message.error("链接地址不能为空")
                 this.$message.error("链接地址不能为空")
@@ -1665,7 +1665,7 @@ export default {
         if (selectedCourse && content.type == 2 && content.courseId != null) {
         if (selectedCourse && content.type == 2 && content.courseId != null) {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
 
 
-          if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
+          if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
             this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
             this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
             this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
           }
           }
@@ -1809,7 +1809,7 @@ export default {
         for (let i = 0; i < content.setting.length; i++) {
         for (let i = 0; i < content.setting.length; i++) {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
           if (selectedCourse && content.type == 2 && content.courseId != null) {
           if (selectedCourse && content.type == 2 && content.courseId != null) {
-            if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
+            if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
               this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
               this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
             }
@@ -1830,7 +1830,7 @@ export default {
           //响应式直接给链接的描述上值
           //响应式直接给链接的描述上值
           if (selectedVideo && content.type == 2 && content.videoId != null) {
           if (selectedVideo && content.type == 2 && content.videoId != null) {
 
 
-            if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
+            if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
               this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
               this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
             }
             }
             if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {
             if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {

+ 9 - 9
src/views/qw/sopUserLogsInfo/sendMsgOpenTool.vue

@@ -63,7 +63,7 @@
                     <ImageUpload v-if="item.contentType == 2" v-model="item.imgUrl" type="image" :num="1" :width="150"
                     <ImageUpload v-if="item.contentType == 2" v-model="item.imgUrl" type="image" :num="1" :width="150"
                       :height="150" />
                       :height="150" />
 
 
-                    <div v-if="item.contentType == 3 || item.contentType == 9 || item.contentType == 18">
+                    <div v-if="item.contentType == 3 || item.contentType == 9 || item.contentType == 18 || item.contentType == 19">
                       <el-card class="box-card">
                       <el-card class="box-card">
                         <el-form-item label="链接标题:" label-width="100px">
                         <el-form-item label="链接标题:" label-width="100px">
                           <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;" />
                           <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;" />
@@ -531,7 +531,7 @@ export default {
         for (let i = 0; i < this.setting.length; i++) {
         for (let i = 0; i < this.setting.length; i++) {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
           if (selectedCourse && this.msgForm.courseId != null) {
           if (selectedCourse && this.msgForm.courseId != null) {
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18) {
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 || this.setting[i].contentType == 19) {
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
             }
@@ -557,7 +557,7 @@ export default {
         for (let i = 0; i < this.setting.length; i++) {
         for (let i = 0; i < this.setting.length; i++) {
           //响应式直接给链接的描述上值
           //响应式直接给链接的描述上值
           if (selectedVideo && this.msgForm.videoId != null) {
           if (selectedVideo && this.msgForm.videoId != null) {
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18) {
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) {
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
             }
             }
 
 
@@ -778,7 +778,7 @@ export default {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
           if (selectedCourse && this.msgForm.courseId != null) {
           if (selectedCourse && this.msgForm.courseId != null) {
 
 
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18) {
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 || this.setting[i].contentType == 19) {
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
             }
@@ -800,7 +800,7 @@ export default {
           //响应式直接给链接的描述上值
           //响应式直接给链接的描述上值
           if (selectedVideo && this.msgForm.videoId != null) {
           if (selectedVideo && this.msgForm.videoId != null) {
 
 
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18) {
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 || this.setting[i].contentType == 19) {
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
             }
             }
             if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10) {
             if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10) {
@@ -863,16 +863,16 @@ export default {
               if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
               if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
                 return this.$message.error("图片不能为空")
                 return this.$message.error("图片不能为空")
               }
               }
-              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
+              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
                 return this.$message.error("链接标题不能为空")
                 return this.$message.error("链接标题不能为空")
               }
               }
-              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
+              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
                 return this.$message.error("链接描述不能为空")
                 return this.$message.error("链接描述不能为空")
               }
               }
-              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
+              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
                 return this.$message.error("链接图片不能为空")
                 return this.$message.error("链接图片不能为空")
               }
               }
-              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18) && this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
+              if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
                 return this.$message.error("链接地址不能为空")
                 return this.$message.error("链接地址不能为空")
               }
               }
 
 

+ 9 - 9
src/views/qw/sopUserLogsInfo/sopUserLogsInfoDetails.vue

@@ -309,7 +309,7 @@
 
 
                     <ImageUpload v-if="item.contentType == 2 " v-model="item.imgUrl" type="image" :num="1"  :width="150" :height="150" />
                     <ImageUpload v-if="item.contentType == 2 " v-model="item.imgUrl" type="image" :num="1"  :width="150" :height="150" />
 
 
-                    <div v-if="item.contentType == 3 || item.contentType ==9 || item.contentType ==18">
+                    <div v-if="item.contentType == 3 || item.contentType ==9 || item.contentType ==18 || item.contentType == 19">
                       <el-card class="box-card">
                       <el-card class="box-card">
                         <el-form-item label="链接标题:"  label-width="100px">
                         <el-form-item label="链接标题:"  label-width="100px">
                           <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;"/>
                           <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;"/>
@@ -1031,7 +1031,7 @@ export default {
         for (let i = 0; i < this.setting.length; i++) {
         for (let i = 0; i < this.setting.length; i++) {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
           if (selectedCourse && this.msgForm.courseId != null) {
           if (selectedCourse && this.msgForm.courseId != null) {
-            if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ){
+            if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19){
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
             }
@@ -1057,7 +1057,7 @@ export default {
         for (let i = 0; i < this.setting.length; i++) {
         for (let i = 0; i < this.setting.length; i++) {
           //响应式直接给链接的描述上值
           //响应式直接给链接的描述上值
           if (selectedVideo && this.msgForm.videoId != null) {
           if (selectedVideo && this.msgForm.videoId != null) {
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType ==18 ){
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType ==18 || this.setting[i].contentType == 19){
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
             }
             }
 
 
@@ -1272,7 +1272,7 @@ export default {
           //响应式直接给链接的标题/封面上值
           //响应式直接给链接的标题/封面上值
           if (selectedCourse  && this.msgForm.courseId != null) {
           if (selectedCourse  && this.msgForm.courseId != null) {
 
 
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18){
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19){
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
             }
@@ -1294,7 +1294,7 @@ export default {
           //响应式直接给链接的描述上值
           //响应式直接给链接的描述上值
           if (selectedVideo  && this.msgForm.videoId != null) {
           if (selectedVideo  && this.msgForm.videoId != null) {
 
 
-            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18){
+            if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19){
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
               this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
             }
             }
             if (this.setting[i].contentType == 4){
             if (this.setting[i].contentType == 4){
@@ -1443,16 +1443,16 @@ export default {
             if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
             if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
               return this.$message.error("图片不能为空")
               return this.$message.error("图片不能为空")
             }
             }
-            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18  ) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
+            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
               return this.$message.error("链接标题不能为空")
               return this.$message.error("链接标题不能为空")
             }
             }
-            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
+            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
               return this.$message.error("链接描述不能为空")
               return this.$message.error("链接描述不能为空")
             }
             }
-            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
+            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
               return this.$message.error("链接图片不能为空")
               return this.$message.error("链接图片不能为空")
             }
             }
-            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 )&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
+            if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 || this.setting[i].contentType == 19)&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
               return this.$message.error("链接地址不能为空")
               return this.$message.error("链接地址不能为空")
             }
             }