lin
2024-03-22 4636161d56a4a14a8bdb190edd5ded79db0dea3d
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() {