lin
2024-04-13 8fc1b2257485875a49e419d75976502648b16763
范围优化
4 files modified
43 ■■■■ changed files
src/views/article/article.vue 3 ●●●● patch | view | raw | blame | history
src/views/article/discussionManage.vue 11 ●●●● patch | view | raw | blame | history
src/views/article/publicSignUp.vue 9 ●●●●● patch | view | raw | blame | history
src/views/article/rotation.vue 20 ●●●● patch | view | raw | blame | history
src/views/article/article.vue
@@ -186,6 +186,7 @@
              span: 12,
              minRows: 2,
              type: "tree",
              dataType: "string",
              multiple: true,
              tags: true,
              // search: true,
@@ -816,4 +817,4 @@
  :deep(.avue-form__menu--center .el-button) {
    margin: 0 5px 0 0;
  }
</style>
</style>
src/views/article/discussionManage.vue
@@ -178,6 +178,7 @@
              minRows: 2,
              tags: true,
              type: "tree",
              dataType: "string",
              multiple: true,
              dicData: [],
              rules: [{
@@ -573,7 +574,7 @@
          row.videoUrl = ""
        }
        row.userid = this.userInfo.user_id
        row.articleRange = JSON.stringify(row.articleList)
        row.articleRange = row.articleList
        if (row.url.length > 0) {
          var urls = []
          var split = row.url.split(",")
@@ -603,7 +604,7 @@
        )
      },
      rowUpdate(row, index, done, loading) {
        row.articleRange = JSON.stringify(row.articleList)
        row.articleRange = row.articleList
        if (row.url.length > 0) {
          var urls = []
          var split = row.url.split(",")
@@ -701,7 +702,7 @@
            // })
            this.form = {
              ...data,
              articleList: JSON.parse(data.articleRange)
              articleList: data.articleRange
            }
          })
        }
@@ -741,7 +742,7 @@
          this.page.total = data.total
          this.data = data.records
          this.data.forEach(item => {
            item.articleList = JSON.parse(item.articleRange)
            item.articleList = item.articleRange
            if (item.url.length > 0) {
              var urls = []
              var names = item.url.split(",")
@@ -844,4 +845,4 @@
  .avue-upload__icon {
    line-height: 6;
  }
</style>
</style>
src/views/article/publicSignUp.vue
@@ -152,6 +152,7 @@
              minRows: 2,
              type: "tree",
              multiple: true,
              dataType: "string",
              tags: true,
              dicData: [],
              rules: [{
@@ -486,7 +487,7 @@
        //   row.videoUrl = "";
        // }
        row.userid = this.userInfo.user_id
        row.articleRange = JSON.stringify(row.articleList)
        row.articleRange = row.articleList
        if (row.url.length > 0) {
          var urls = []
          var split = row.url.split(",")
@@ -512,7 +513,7 @@
        )
      },
      rowUpdate(row, index, done, loading) {
        row.articleRange = JSON.stringify(row.articleList)
        row.articleRange = row.articleList
        if (row.url.length > 0) {
          var urls = []
          var split = row.url.split(",")
@@ -606,7 +607,7 @@
              })
              data.url = urls.join(",")
            }
            data.articleList = JSON.parse(data.articleRange)
            data.articleList = data.articleRange
            this.form = data
          })
        }
@@ -645,7 +646,7 @@
          this.page.total = data.total
          this.data = data.records
          this.data.forEach(item => {
            item.articleList = JSON.parse(item.articleRange)
            item.articleList = item.articleRange
            if (item.url.length > 0) {
              var urls = []
              var names = item.url.split(",")
src/views/article/rotation.vue
@@ -129,7 +129,7 @@
              multiple: true,
              tags: true,
              hide: true,
              dateType: "string",
              dataType: "string",
              addDisplay: false,
              editDisplay: false,
              type: "tree",
@@ -152,7 +152,8 @@
              tags: true,
              type: "tree",
              multiple: true,
              dateType: "string",
              // dateType: "string",
              dataType: "string",
              editDisplay: false,
              addDisplay: false,
              cascader: ['articleId'],
@@ -166,7 +167,6 @@
                label: "name",
                value: 'id'
              },
              // hide: true,
            },
            {
              hide: true,
@@ -180,7 +180,7 @@
              type: 'select',
              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtId={{rotationRange}}`,
              formslot: true,
              cascader: ['vote'],
              // cascader: ['vote'],
              props: {
                label: "title",
                value: "id"
@@ -423,9 +423,9 @@
        if (["edit", "view"].includes(type)) {
          getRotation(this.form.id).then((res) => {
            this.form = res.data.data
            if (this.form.rotationRange) {
              this.form.rotationRange = JSON.parse(this.form.rotationRange)
            }
            // if (this.form.rotationRange) {
            //   this.form.rotationRange = JSON.parse(this.form.rotationRange)
            // }
            // if (this.form.communityCode) {
            //   this.form.communityCode = JSON.parse(this.form.communityCode)
            // }
@@ -482,9 +482,9 @@
          this.page.total = data.total
          this.data = data.records
          this.data.forEach(item => {
            if (item.rotationRange) {
              item.rotationRange = JSON.parse(item.rotationRange)
            }
            // if (item.rotationRange) {
            //   item.rotationRange = JSON.parse(item.rotationRange)
            // }
            // if (item.communityCode) {
            //   item.communityCode = JSON.parse(item.communityCode)
            // }