lin
2024-03-22 4636161d56a4a14a8bdb190edd5ded79db0dea3d
轮播图片
2 files modified
46 ■■■■ changed files
src/views/article/components/deitDiscussion.vue 8 ●●●●● patch | view | raw | blame | history
src/views/article/rotation.vue 38 ●●●●● patch | view | raw | blame | history
src/views/article/components/deitDiscussion.vue
@@ -151,9 +151,11 @@
                message: '请选项范围',
                trigger: 'blur'
              }],
            }, {
            },
            {
              label: '最多选择数',
              prop: 'optionNumber',
              display: false,
              min: 1,
              type: 'number',
              step: 1,
@@ -286,9 +288,9 @@
    },
    watch: {
      'froms.optionRange': {
      'disCussFrom.optionRange': {
        handler(newData) {
          console.log('** ** ** ** ** ** **', newData)
          // console.log('** ** ** ** ** ** **', newData)
          const column = this.findObject(this.optionDiscuss.column, "optionNumber")
          if (newData == 1) {
            column.display = true
src/views/article/rotation.vue
@@ -33,7 +33,9 @@
  export default {
    data() {
      return {
        form: {},
        form: {
          publicFlag: 1
        },
        query: {},
        loading: true,
        page: {
@@ -93,6 +95,25 @@
                  value: 2
                }
              ]
            }, {
              width: 110,
              labelWidth: 100,
              label: "是否公开",
              prop: "publicFlag",
              span: 12,
              searchSpan: 4,
              search: true,
              // cascader: ["communityCode"],
              type: "select",
              dicData: [{
                  label: "不公开",
                  value: 1
                },
                {
                  label: "公开",
                  value: 2
                }
              ]
            },
            // {
            //   width: 156,
@@ -125,6 +146,7 @@
              tags: true,
              type: "tree",
              multiple: true,
              editDisplay: false,
              cascader: ['articleId'],
              dicUrl: "/api/blade-district/district/getDistrictTree?filterFlag=1",
              rules: [{
@@ -207,7 +229,19 @@
        data: [],
      }
    },
    watch: {},
    watch: {
      'form.publicFlag': {
        handler(newData) {
          // console.log('** ** ** ** ** ** **', newData)
          const column = this.findObject(this.option.column, "rotationRange")
          if (newData == 1) {
            column.editDisplay = true
          } else {
            column.editDisplay = false
          }
        },
      },
    },
    computed: {
      ...mapGetters(["permission", "userInfo"]),
      permissionList() {