|  | @@ -51,7 +51,7 @@
 | 
											
												
													
														|  |            prop="linkUrl"
 |  |            prop="linkUrl"
 | 
											
												
													
														|  |            v-if="outUrlRadio == 1"
 |  |            v-if="outUrlRadio == 1"
 | 
											
												
													
														|  |            :rules="[
 |  |            :rules="[
 | 
											
												
													
														|  | -            { required: true, message: '请输入外链地址', trigger: 'blur' },
 |  | 
 | 
											
												
													
														|  | 
 |  | +            { required: true, message: '请输入外链地址', trigger: 'blur' }
 | 
											
												
													
														|  |            ]"
 |  |            ]"
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  |            <el-input
 |  |            <el-input
 | 
											
										
											
												
													
														|  | @@ -126,8 +126,8 @@
 | 
											
												
													
														|  |              {
 |  |              {
 | 
											
												
													
														|  |                required: uploadType == 2 ? true : false,
 |  |                required: uploadType == 2 ? true : false,
 | 
											
												
													
														|  |                message: '请上传封面图',
 |  |                message: '请上传封面图',
 | 
											
												
													
														|  | -              trigger: 'blur',
 |  | 
 | 
											
												
													
														|  | -            },
 |  | 
 | 
											
												
													
														|  | 
 |  | +              trigger: 'blur'
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |            ]"
 |  |            ]"
 | 
											
												
													
														|  |            label-width="120px"
 |  |            label-width="120px"
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
										
											
												
													
														|  | @@ -260,7 +260,7 @@ const toolbarOptions = [
 | 
											
												
													
														|  |    [{ font: [] }], // 字体种类
 |  |    [{ font: [] }], // 字体种类
 | 
											
												
													
														|  |    [{ align: [] }], // 对齐方式
 |  |    [{ align: [] }], // 对齐方式
 | 
											
												
													
														|  |    ["clean"], // 清除文本格式
 |  |    ["clean"], // 清除文本格式
 | 
											
												
													
														|  | -  ["image", "video"], // 链接、图片、视频
 |  | 
 | 
											
												
													
														|  | 
 |  | +  ["image", "video"] // 链接、图片、视频
 | 
											
												
													
														|  |    // ["link", "image", "video"] // 链接、图片、视频
 |  |    // ["link", "image", "video"] // 链接、图片、视频
 | 
											
												
													
														|  |  ];
 |  |  ];
 | 
											
												
													
														|  |  // 标题
 |  |  // 标题
 | 
											
										
											
												
													
														|  | @@ -287,7 +287,7 @@ const titleConfig = {
 | 
											
												
													
														|  |    "ql-image": "图片",
 |  |    "ql-image": "图片",
 | 
											
												
													
														|  |    "ql-video": "视频",
 |  |    "ql-video": "视频",
 | 
											
												
													
														|  |    "ql-clean": "清除字体样式",
 |  |    "ql-clean": "清除字体样式",
 | 
											
												
													
														|  | -  "ql-upload": "文件",
 |  | 
 | 
											
												
													
														|  | 
 |  | +  "ql-upload": "文件"
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // 这里引入修改过的video模块并注册
 |  |  // 这里引入修改过的video模块并注册
 | 
											
										
											
												
													
														|  | @@ -298,7 +298,7 @@ export default {
 | 
											
												
													
														|  |    props: ["options"],
 |  |    props: ["options"],
 | 
											
												
													
														|  |    name: "contentOperation",
 |  |    name: "contentOperation",
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
												
													
														|  | -    quillEditor,
 |  | 
 | 
											
												
													
														|  | 
 |  | +    quillEditor
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  |      let that = this;
 |  |      let that = this;
 | 
											
										
											
												
													
														|  | @@ -320,7 +320,7 @@ export default {
 | 
											
												
													
														|  |          title: "",
 |  |          title: "",
 | 
											
												
													
														|  |          type: query.type,
 |  |          type: query.type,
 | 
											
												
													
														|  |          updateTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
 |  |          updateTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
 | 
											
												
													
														|  | -        content: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        content: null
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        editorIndex: 0, // 光标位置
 |  |        editorIndex: 0, // 光标位置
 | 
											
												
													
														|  |        editorOption: {
 |  |        editorOption: {
 | 
											
										
											
												
													
														|  | @@ -329,7 +329,7 @@ export default {
 | 
											
												
													
														|  |            toolbar: {
 |  |            toolbar: {
 | 
											
												
													
														|  |              container: toolbarOptions,
 |  |              container: toolbarOptions,
 | 
											
												
													
														|  |              handlers: {
 |  |              handlers: {
 | 
											
												
													
														|  | -              image: function (value) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +              image: function(value) {
 | 
											
												
													
														|  |                  if (value) {
 |  |                  if (value) {
 | 
											
												
													
														|  |                    // 调用iview图片上传
 |  |                    // 调用iview图片上传
 | 
											
												
													
														|  |                    document.querySelector(".ivu-upload .el-upload").click();
 |  |                    document.querySelector(".ivu-upload .el-upload").click();
 | 
											
										
											
												
													
														|  | @@ -337,7 +337,7 @@ export default {
 | 
											
												
													
														|  |                    this.quill.format("image", false);
 |  |                    this.quill.format("image", false);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                },
 |  |                },
 | 
											
												
													
														|  | -              video: function (value) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +              video: function(value) {
 | 
											
												
													
														|  |                  if (value) {
 |  |                  if (value) {
 | 
											
												
													
														|  |                    that.dialogFormVisible = true;
 |  |                    that.dialogFormVisible = true;
 | 
											
												
													
														|  |                    let editor = that.$refs.myQuillEditor.quill;
 |  |                    let editor = that.$refs.myQuillEditor.quill;
 | 
											
										
											
												
													
														|  | @@ -346,22 +346,22 @@ export default {
 | 
											
												
													
														|  |                  } else {
 |  |                  } else {
 | 
											
												
													
														|  |                    this.quill.format("image", false);
 |  |                    this.quill.format("image", false);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  | -              },
 |  | 
 | 
											
												
													
														|  | -            },
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -        },
 |  | 
 | 
											
												
													
														|  | 
 |  | +              }
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        dialogForm: {
 |  |        dialogForm: {
 | 
											
												
													
														|  |          poster: null,
 |  |          poster: null,
 | 
											
												
													
														|  |          url: null,
 |  |          url: null,
 | 
											
												
													
														|  | -        videoUrl: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        videoUrl: null
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        uploadLoading: false,
 |  |        uploadLoading: false,
 | 
											
												
													
														|  |        uploadImgLoading: false,
 |  |        uploadImgLoading: false,
 | 
											
												
													
														|  |        fileList: [],
 |  |        fileList: [],
 | 
											
												
													
														|  |        dialogFormRules: {
 |  |        dialogFormRules: {
 | 
											
												
													
														|  |          url: [{ required: true, message: "请输入视频地址", trigger: "blur" }],
 |  |          url: [{ required: true, message: "请输入视频地址", trigger: "blur" }],
 | 
											
												
													
														|  | -        videoUrl: [{ required: true, message: "请上传视频", trigger: "blur" }],
 |  | 
 | 
											
												
													
														|  | 
 |  | +        videoUrl: [{ required: true, message: "请上传视频", trigger: "blur" }]
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        outUrlRadio: 0, // 是否使用外部连接,默认不使用
 |  |        outUrlRadio: 0, // 是否使用外部连接,默认不使用
 | 
											
												
													
														|  |        form: {
 |  |        form: {
 | 
											
										
											
												
													
														|  | @@ -371,7 +371,7 @@ export default {
 | 
											
												
													
														|  |          type: query.type,
 |  |          type: query.type,
 | 
											
												
													
														|  |          status: 0,
 |  |          status: 0,
 | 
											
												
													
														|  |          content: null,
 |  |          content: null,
 | 
											
												
													
														|  | -        organIdList: [],
 |  | 
 | 
											
												
													
														|  | 
 |  | +        organIdList: []
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        rules: {
 |  |        rules: {
 | 
											
												
													
														|  |          title: [
 |  |          title: [
 | 
											
										
											
												
													
														|  | @@ -380,12 +380,12 @@ export default {
 | 
											
												
													
														|  |              min: 2,
 |  |              min: 2,
 | 
											
												
													
														|  |              max: 30,
 |  |              max: 30,
 | 
											
												
													
														|  |              message: "长度在 2 到 30 个字符",
 |  |              message: "长度在 2 到 30 个字符",
 | 
											
												
													
														|  | -            trigger: "blur",
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | 
 |  | +            trigger: "blur"
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |          ],
 |  |          ],
 | 
											
												
													
														|  |          organIdList: [
 |  |          organIdList: [
 | 
											
												
													
														|  | -          { required: true, message: "请选择分部", trigger: "change" },
 |  | 
 | 
											
												
													
														|  | -        ],
 |  | 
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "请选择分部", trigger: "change" }
 | 
											
												
													
														|  | 
 |  | +        ]
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        imageSize: null,
 |  |        imageSize: null,
 | 
											
												
													
														|  |        dataObj: {
 |  |        dataObj: {
 | 
											
										
											
												
													
														|  | @@ -395,11 +395,12 @@ export default {
 | 
											
												
													
														|  |          KSSAccessKeyId: "",
 |  |          KSSAccessKeyId: "",
 | 
											
												
													
														|  |          // dir: "",
 |  |          // dir: "",
 | 
											
												
													
														|  |          acl: "public-read",
 |  |          acl: "public-read",
 | 
											
												
													
														|  | -        name: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        name: ""
 | 
											
												
													
														|  |          // bucket_name: props.bucket_name
 |  |          // bucket_name: props.bucket_name
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  | -      ossUploadUrl: "https://ks3-cn-beijing.ksyuncs.com/" + "news-info",
 |  | 
 | 
											
												
													
														|  | -      bucket_name: "news-info",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      // ossUploadUrl: "https://ks3-cn-beijing.ksyuncs.com/" + "news-info",
 | 
											
												
													
														|  | 
 |  | +      ossUploadUrl: `https://news-info.ks3-cn-beijing.ksyuncs.com`,
 | 
											
												
													
														|  | 
 |  | +      bucket_name: "news-info"
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    mounted() {
 |  |    mounted() {
 | 
											
										
											
												
													
														|  | @@ -420,14 +421,14 @@ export default {
 | 
											
												
													
														|  |          5: "图片不能超过 2M;",
 |  |          5: "图片不能超过 2M;",
 | 
											
												
													
														|  |          6: "图片不能超过 2M;",
 |  |          6: "图片不能超过 2M;",
 | 
											
												
													
														|  |          7: "图片不能超过 2M;",
 |  |          7: "图片不能超过 2M;",
 | 
											
												
													
														|  | -        8: "1242px * 2208px; 图片不能超过 2M;",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        8: "1242px * 2208px; 图片不能超过 2M;"
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        this.imageSize = tempTitle[this.form.type];
 |  |        this.imageSize = tempTitle[this.form.type];
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        this.$refs["form"].clearValidate();
 |  |        this.$refs["form"].clearValidate();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      onVideoComfirm(formName) {
 |  |      onVideoComfirm(formName) {
 | 
											
												
													
														|  | -      this.$refs[formName].validate((valid) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs[formName].validate(valid => {
 | 
											
												
													
														|  |          if (valid) {
 |  |          if (valid) {
 | 
											
												
													
														|  |            let dialogForm = this.dialogForm;
 |  |            let dialogForm = this.dialogForm;
 | 
											
												
													
														|  |            // 编辑器输入视频
 |  |            // 编辑器输入视频
 | 
											
										
											
												
													
														|  | @@ -436,7 +437,7 @@ export default {
 | 
											
												
													
														|  |            // 插入图片,res为服务器返回的图片链接地址
 |  |            // 插入图片,res为服务器返回的图片链接地址
 | 
											
												
													
														|  |            const params = {
 |  |            const params = {
 | 
											
												
													
														|  |              poster: dialogForm.poster,
 |  |              poster: dialogForm.poster,
 | 
											
												
													
														|  | -            url: this.formRadio == 1 ? dialogForm.url : dialogForm.videoUrl,
 |  | 
 | 
											
												
													
														|  | 
 |  | +            url: this.formRadio == 1 ? dialogForm.url : dialogForm.videoUrl
 | 
											
												
													
														|  |            };
 |  |            };
 | 
											
												
													
														|  |            quill.insertEmbed(this.editorIndex, "video", params);
 |  |            quill.insertEmbed(this.editorIndex, "video", params);
 | 
											
												
													
														|  |            // 调整光标到最后
 |  |            // 调整光标到最后
 | 
											
										
											
												
													
														|  | @@ -446,7 +447,7 @@ export default {
 | 
											
												
													
														|  |            this.dialogForm = {
 |  |            this.dialogForm = {
 | 
											
												
													
														|  |              poster: null,
 |  |              poster: null,
 | 
											
												
													
														|  |              url: null,
 |  |              url: null,
 | 
											
												
													
														|  | -            videoUrl: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +            videoUrl: null
 | 
											
												
													
														|  |            };
 |  |            };
 | 
											
												
													
														|  |          } else {
 |  |          } else {
 | 
											
												
													
														|  |            return false;
 |  |            return false;
 | 
											
										
											
												
													
														|  | @@ -457,7 +458,7 @@ export default {
 | 
											
												
													
														|  |        this.dialogForm = {
 |  |        this.dialogForm = {
 | 
											
												
													
														|  |          poster: null,
 |  |          poster: null,
 | 
											
												
													
														|  |          url: null,
 |  |          url: null,
 | 
											
												
													
														|  | -        videoUrl: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        videoUrl: null
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        this.$refs[diologForm].resetFields();
 |  |        this.$refs[diologForm].resetFields();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
										
											
												
													
														|  | @@ -465,7 +466,7 @@ export default {
 | 
											
												
													
														|  |        const oToolBar = document.querySelector(".ql-toolbar"),
 |  |        const oToolBar = document.querySelector(".ql-toolbar"),
 | 
											
												
													
														|  |          aButton = oToolBar.querySelectorAll("button"),
 |  |          aButton = oToolBar.querySelectorAll("button"),
 | 
											
												
													
														|  |          aSelect = oToolBar.querySelectorAll("select");
 |  |          aSelect = oToolBar.querySelectorAll("select");
 | 
											
												
													
														|  | -      aButton.forEach(function (item) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      aButton.forEach(function(item) {
 | 
											
												
													
														|  |          if (item.className === "ql-script") {
 |  |          if (item.className === "ql-script") {
 | 
											
												
													
														|  |            item.value === "sub" ? (item.title = "下标") : (item.title = "上标");
 |  |            item.value === "sub" ? (item.title = "下标") : (item.title = "上标");
 | 
											
												
													
														|  |          } else if (item.className === "ql-indent") {
 |  |          } else if (item.className === "ql-indent") {
 | 
											
										
											
												
													
														|  | @@ -476,12 +477,12 @@ export default {
 | 
											
												
													
														|  |            item.title = titleConfig[item.classList[0]];
 |  |            item.title = titleConfig[item.classList[0]];
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  | -      aSelect.forEach(function (item) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      aSelect.forEach(function(item) {
 | 
											
												
													
														|  |          item.parentNode.title = titleConfig[item.classList[0]];
 |  |          item.parentNode.title = titleConfig[item.classList[0]];
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      onSubmit(formName) {
 |  |      onSubmit(formName) {
 | 
											
												
													
														|  | -      this.$refs[formName].validate(async (valid) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs[formName].validate(async valid => {
 | 
											
												
													
														|  |          if (valid) {
 |  |          if (valid) {
 | 
											
												
													
														|  |            let { organIdList, linkUrl, content, ...rest } = this.form;
 |  |            let { organIdList, linkUrl, content, ...rest } = this.form;
 | 
											
												
													
														|  |            if (this.outUrlRadio == 1) {
 |  |            if (this.outUrlRadio == 1) {
 | 
											
										
											
												
													
														|  | @@ -493,7 +494,7 @@ export default {
 | 
											
												
													
														|  |              ...rest,
 |  |              ...rest,
 | 
											
												
													
														|  |              linkUrl,
 |  |              linkUrl,
 | 
											
												
													
														|  |              content,
 |  |              content,
 | 
											
												
													
														|  | -            organIdList: organIdList ? organIdList.join(",") : null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +            organIdList: organIdList ? organIdList.join(",") : null
 | 
											
												
													
														|  |            };
 |  |            };
 | 
											
												
													
														|  |            if (this.pageType == "create") {
 |  |            if (this.pageType == "create") {
 | 
											
												
													
														|  |              if (form.id) {
 |  |              if (form.id) {
 | 
											
										
											
												
													
														|  | @@ -501,11 +502,11 @@ export default {
 | 
											
												
													
														|  |                delete form.id;
 |  |                delete form.id;
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              // return false
 |  |              // return false
 | 
											
												
													
														|  | -            await newsAdd(form).then((res) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +            await newsAdd(form).then(res => {
 | 
											
												
													
														|  |                this.messageTips("添加", res);
 |  |                this.messageTips("添加", res);
 | 
											
												
													
														|  |              });
 |  |              });
 | 
											
												
													
														|  |            } else if (this.pageType == "update") {
 |  |            } else if (this.pageType == "update") {
 | 
											
												
													
														|  | -            await newsUpdate(form).then((res) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +            await newsUpdate(form).then(res => {
 | 
											
												
													
														|  |                this.messageTips("修改", res);
 |  |                this.messageTips("修改", res);
 | 
											
												
													
														|  |              });
 |  |              });
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
										
											
												
													
														|  | @@ -514,7 +515,7 @@ export default {
 | 
											
												
													
														|  |              let isError = document.getElementsByClassName("is-error");
 |  |              let isError = document.getElementsByClassName("is-error");
 | 
											
												
													
														|  |              isError[0].scrollIntoView({
 |  |              isError[0].scrollIntoView({
 | 
											
												
													
														|  |                block: "center",
 |  |                block: "center",
 | 
											
												
													
														|  | -              behavior: "smooth",
 |  | 
 | 
											
												
													
														|  | 
 |  | +              behavior: "smooth"
 | 
											
												
													
														|  |              });
 |  |              });
 | 
											
												
													
														|  |            });
 |  |            });
 | 
											
												
													
														|  |            return false;
 |  |            return false;
 | 
											
										
											
												
													
														|  | @@ -532,7 +533,7 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      handleSuccess(res) {
 |  |      handleSuccess(res) {
 | 
											
												
													
														|  |        // 获取富文本组件实例
 |  |        // 获取富文本组件实例
 | 
											
												
													
														|  | -        this.uploadImgLoading = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.uploadImgLoading = false;
 | 
											
												
													
														|  |        let quill = this.editor;
 |  |        let quill = this.editor;
 | 
											
												
													
														|  |        // 如果上传成功
 |  |        // 如果上传成功
 | 
											
												
													
														|  |        let url = this.ossUploadUrl + "/" + this.dataObj.key;
 |  |        let url = this.ossUploadUrl + "/" + this.dataObj.key;
 | 
											
										
											
												
													
														|  | @@ -557,7 +558,7 @@ export default {
 | 
											
												
													
														|  |          type: this.type,
 |  |          type: this.type,
 | 
											
												
													
														|  |          status: 1,
 |  |          status: 1,
 | 
											
												
													
														|  |          content: null,
 |  |          content: null,
 | 
											
												
													
														|  | -        organIdList: [],
 |  | 
 | 
											
												
													
														|  | 
 |  | +        organIdList: []
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        this.$refs[formName].resetFields();
 |  |        this.$refs[formName].resetFields();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
										
											
												
													
														|  | @@ -570,14 +571,14 @@ export default {
 | 
											
												
													
														|  |        setTimeout(() => {
 |  |        setTimeout(() => {
 | 
											
												
													
														|  |          let imgNode = document.querySelectorAll(".msgWrap img");
 |  |          let imgNode = document.querySelectorAll(".msgWrap img");
 | 
											
												
													
														|  |          if (imgNode.length > 0) {
 |  |          if (imgNode.length > 0) {
 | 
											
												
													
														|  | -          imgNode.forEach((item) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +          imgNode.forEach(item => {
 | 
											
												
													
														|  |              item.style.width = "100%";
 |  |              item.style.width = "100%";
 | 
											
												
													
														|  |            });
 |  |            });
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          let videoNode = document.querySelectorAll(".msgWrap .ql-video");
 |  |          let videoNode = document.querySelectorAll(".msgWrap .ql-video");
 | 
											
												
													
														|  |          if (videoNode.length > 0) {
 |  |          if (videoNode.length > 0) {
 | 
											
												
													
														|  | -          videoNode.forEach((item) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +          videoNode.forEach(item => {
 | 
											
												
													
														|  |              item.style.width = "100%";
 |  |              item.style.width = "100%";
 | 
											
												
													
														|  |              item.style.height = "195px";
 |  |              item.style.height = "195px";
 | 
											
												
													
														|  |            });
 |  |            });
 | 
											
										
											
												
													
														|  | @@ -589,7 +590,7 @@ export default {
 | 
											
												
													
														|  |        if (this.pageType == "create") {
 |  |        if (this.pageType == "create") {
 | 
											
												
													
														|  |          return;
 |  |          return;
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  | -        await newsQueryId({ id: this.options.id }).then((res) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +        await newsQueryId({ id: this.options.id }).then(res => {
 | 
											
												
													
														|  |            if (res.code == 200) {
 |  |            if (res.code == 200) {
 | 
											
												
													
														|  |              let result = res.data;
 |  |              let result = res.data;
 | 
											
												
													
														|  |              let organ = result.organIdList ? result.organIdList.split(",") : [];
 |  |              let organ = result.organIdList ? result.organIdList.split(",") : [];
 | 
											
										
											
												
													
														|  | @@ -606,10 +607,10 @@ export default {
 | 
											
												
													
														|  |                linkUrl: result.linkUrl,
 |  |                linkUrl: result.linkUrl,
 | 
											
												
													
														|  |                type: result.type,
 |  |                type: result.type,
 | 
											
												
													
														|  |                status: result.status,
 |  |                status: result.status,
 | 
											
												
													
														|  | -              organIdList: organ.map((item) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +              organIdList: organ.map(item => {
 | 
											
												
													
														|  |                  return +item;
 |  |                  return +item;
 | 
											
												
													
														|  |                }),
 |  |                }),
 | 
											
												
													
														|  | -              content: result.content,
 |  | 
 | 
											
												
													
														|  | 
 |  | +              content: result.content
 | 
											
												
													
														|  |              };
 |  |              };
 | 
											
												
													
														|  |              this.dataInfo.updateTime = result.updateTime;
 |  |              this.dataInfo.updateTime = result.updateTime;
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
										
											
												
													
														|  | @@ -632,7 +633,7 @@ export default {
 | 
											
												
													
														|  |      async beforeImgUpload(file) {
 |  |      async beforeImgUpload(file) {
 | 
											
												
													
														|  |        const imageType = {
 |  |        const imageType = {
 | 
											
												
													
														|  |          "image/png": true,
 |  |          "image/png": true,
 | 
											
												
													
														|  | -        "image/jpeg": true,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        "image/jpeg": true
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        const isImage = imageType[file.type];
 |  |        const isImage = imageType[file.type];
 | 
											
												
													
														|  |        const isLt2M = file.size / 1024 / 1024 < 2;
 |  |        const isLt2M = file.size / 1024 / 1024 < 2;
 | 
											
										
											
												
													
														|  | @@ -657,8 +658,8 @@ export default {
 | 
											
												
													
														|  |              filename: fileName,
 |  |              filename: fileName,
 | 
											
												
													
														|  |              acl: "public-read",
 |  |              acl: "public-read",
 | 
											
												
													
														|  |              key: key,
 |  |              key: key,
 | 
											
												
													
														|  | -            unknowValueField: [],
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | 
 |  | +            unknowValueField: []
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |          };
 |  |          };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          const res = await policy(obj);
 |  |          const res = await policy(obj);
 | 
											
										
											
												
													
														|  | @@ -669,7 +670,7 @@ export default {
 | 
											
												
													
														|  |            KSSAccessKeyId: res.data.kssAccessKeyId,
 |  |            KSSAccessKeyId: res.data.kssAccessKeyId,
 | 
											
												
													
														|  |            // dir: "",
 |  |            // dir: "",
 | 
											
												
													
														|  |            acl: "public-read",
 |  |            acl: "public-read",
 | 
											
												
													
														|  | -          name: fileName,
 |  | 
 | 
											
												
													
														|  | 
 |  | +          name: fileName
 | 
											
												
													
														|  |            // bucket_name: props.bucket_name
 |  |            // bucket_name: props.bucket_name
 | 
											
												
													
														|  |          };
 |  |          };
 | 
											
												
													
														|  |        } catch (e) {
 |  |        } catch (e) {
 | 
											
										
											
												
													
														|  | @@ -684,7 +685,7 @@ export default {
 | 
											
												
													
														|  |          2: "热门资讯",
 |  |          2: "热门资讯",
 | 
											
												
													
														|  |          4: "专项训练",
 |  |          4: "专项训练",
 | 
											
												
													
														|  |          7: "知识库",
 |  |          7: "知识库",
 | 
											
												
													
														|  | -        19: "系统通知",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        19: "系统通知"
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        return params[type] ? params[type] : "管乐迷";
 |  |        return params[type] ? params[type] : "管乐迷";
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
										
											
												
													
														|  | @@ -698,7 +699,7 @@ export default {
 | 
											
												
													
														|  |          6: 5,
 |  |          6: 5,
 | 
											
												
													
														|  |          7: 6,
 |  |          7: 6,
 | 
											
												
													
														|  |          8: 7,
 |  |          8: 7,
 | 
											
												
													
														|  | -        19: 8,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        19: 8
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        return tempTitle[type];
 |  |        return tempTitle[type];
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
										
											
												
													
														|  | @@ -726,8 +727,8 @@ export default {
 | 
											
												
													
														|  |              filename: fileName,
 |  |              filename: fileName,
 | 
											
												
													
														|  |              acl: "public-read",
 |  |              acl: "public-read",
 | 
											
												
													
														|  |              key: key,
 |  |              key: key,
 | 
											
												
													
														|  | -            unknowValueField: [],
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | 
 |  | +            unknowValueField: []
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |          };
 |  |          };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          const res = await policy(obj);
 |  |          const res = await policy(obj);
 | 
											
										
											
												
													
														|  | @@ -738,7 +739,7 @@ export default {
 | 
											
												
													
														|  |            KSSAccessKeyId: res.data.kssAccessKeyId,
 |  |            KSSAccessKeyId: res.data.kssAccessKeyId,
 | 
											
												
													
														|  |            // dir: "",
 |  |            // dir: "",
 | 
											
												
													
														|  |            acl: "public-read",
 |  |            acl: "public-read",
 | 
											
												
													
														|  | -          name: fileName,
 |  | 
 | 
											
												
													
														|  | 
 |  | +          name: fileName
 | 
											
												
													
														|  |            // bucket_name: props.bucket_name
 |  |            // bucket_name: props.bucket_name
 | 
											
												
													
														|  |          };
 |  |          };
 | 
											
												
													
														|  |        } catch (e) {
 |  |        } catch (e) {
 | 
											
										
											
												
													
														|  | @@ -763,13 +764,13 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      handleExceed(files, fileList) {
 |  |      handleExceed(files, fileList) {
 | 
											
												
													
														|  |        this.$message.error("您已上传过视频");
 |  |        this.$message.error("您已上传过视频");
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    computed: {
 |  |    computed: {
 | 
											
												
													
														|  |      editor() {
 |  |      editor() {
 | 
											
												
													
														|  |        return this.$refs.myQuillEditor.quill;
 |  |        return this.$refs.myQuillEditor.quill;
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | -  },
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 | 
											
												
													
														|  |  <style lang="scss" scoped>
 |  |  <style lang="scss" scoped>
 |