guanqb
2024-02-22 0effefd8e3e81090e34e8de313dff487fa8e98a1
src/views/article/discussionManage.vue
@@ -41,8 +41,9 @@
            </template>
            <template slot-scope="{ row, size }" slot="iscomment">
                <el-tag :size="size" :type="showStatus(row.iscomment, 2).type" v-text="showStatus(row.iscomment, 2).text">
                </el-tag>
                <el-switch @change="iscommentInput($event, row)" v-model="row.iscomment" :active-value="'1'"
                    :inactive-value="'0'" active-color="#13ce66" inactive-color="#ccc">
                </el-switch>
            </template>
        </avue-crud>
@@ -130,7 +131,7 @@
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                border: false,
                border: true,
                //stripe:true,
                index: true,
                viewBtn: false,
@@ -158,7 +159,7 @@
                    span: 24,
                    minRows: 2,
                    tags: true,
                    type: "cascader",
                    type: "tree",
                    multiple: true,
                    dicData: [],
                    rules: [{
@@ -486,6 +487,15 @@
        }
    },
    methods: {
        iscommentInput (e, data) {
            upcomment(data.id, e).then(() => {
                this.$message({
                    type: "success",
                    message: "操作成功!",
                })
            })
        },
        openEditPopup (row) {
            this.$refs.DeitDiscussion.initData(row)
        },
@@ -773,4 +783,5 @@
<style>
.avue-upload__icon {
    line-height: 6;
}</style>
}
</style>