lin
2024-03-22 ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511
轮播图片
2 files modified
42 ■■■■ changed files
src/views/article/components/deitDiscussion.vue 38 ●●●● patch | view | raw | blame | history
src/views/article/rotation.vue 4 ●●●● patch | view | raw | blame | history
src/views/article/components/deitDiscussion.vue
@@ -22,8 +22,7 @@
                    </template>
                    <template #menu="{ row, size }">
                        <el-button v-if="row.level === 1" :size="size" text type="primary" @click="edit(row)">编辑</el-button>
                        <el-button v-if="row.level === 1" :size="size" text type="danger"
                            @click="deletes(row)">删除</el-button>
            <el-button v-if="row.level === 1" :size="size" text type="danger" @click="deletes(row)">删除</el-button>
                        <el-button v-if="row.level === 2" :size="size" text type="primary" @click="openUser(row, 1)">
                            选择此项人数:{{ row.number }} 详情</el-button>
                    </template>
@@ -152,6 +151,13 @@
                        message: '请选项范围',
                        trigger: 'blur'
                    }],
            }, {
              label: '最多选择数',
              prop: 'optionNumber',
              min: 1,
              type: 'number',
              step: 1,
              value: 1
                },
                {
                    label: '选项内容',
@@ -179,7 +185,9 @@
            },
            // 表单数据
            form: {},
        form: {
          optionRange: 0,
        },
            data: [],
            optionList: {
                headerAlign: 'center',
@@ -277,7 +285,19 @@
        }
    },
    watch: {},
    watch: {
      'froms.optionRange': {
        handler(newData) {
          console.log('** ** ** ** ** ** **', newData)
          const column = this.findObject(this.optionDiscuss.column, "optionNumber")
          if (newData == 1) {
            column.display = true
          } else {
            column.display = false
          }
        },
      },
    },
    methods: {
@@ -476,13 +496,11 @@
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning"
            })
                .then(() => {
        }).then(() => {
                    return remove(row.id)
                })
                .then(() => {
                    this.onLoad()
        }).then(() => {
          let param = {}
          this.onLoad(this.userPage, param)
                    this.$message({
                        type: "success",
                        message: "操作成功!"
src/views/article/rotation.vue
@@ -119,7 +119,7 @@
            // },
            {
              label: "范围",
              prop: "districtIds",
              prop: "rotationRange",
              width: 156,
              labelWidth: 100,
              tags: true,
@@ -146,7 +146,7 @@
              search: false,
              viewDisabled: false,
              type: 'select',
              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtId={{districtIds}}`,
              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtId={{rotationRange}}`,
              formslot: true,
              cascader: ['vote'],
              props: {