gaoshp
2024-09-19 4da22fb07042fba52fb4b7799d23b8b4f579cca0
src/views/mdc/configComp/Status.vue
@@ -1,8 +1,8 @@
<!--
 * @Date: 2024-04-17 18:53:45
 * @LastEditors: Sneed
 * @LastEditTime: 2024-06-18 20:17:23
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Status.vue
 * @LastEditors: gaosp
 * @LastEditTime: 2024-09-19 21:45:01
 * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Status.vue
-->
<template>
    <el-main>
@@ -35,10 +35,10 @@
                </el-table-column>
            </scFormTable>
        </el-row>
        <el-row style="margin-top: 20px;">
        <el-row style="margin-top: 20px;position: relative">
            <!-- dragSort -->
            <scFormTable ref="table1" v-model="Tabledata" stripe @delRow="remove" :addTemplate="addTemplate"
                @rowDrop="rowDrop" dragSort>
            <scFormTable ref=" table1" v-model="Tabledata" stripe @delRow="remove" :addTemplate="addTemplate"
                @rowDrop="rowDrop" dragSort hideDelete>
                <el-table-column label="人工反馈状态" prop="name">
                    <template #default="scope">
                        <el-input v-model="scope.row.name" @change="update(scope.row)"></el-input>
@@ -67,6 +67,11 @@
                </el-table-column>
                <el-table-column label="操作" prop="state">
                    <template #default="scope">
                        <el-popconfirm title="确定删除吗?" @confirm="rowDel(scope.row, scope.$index)">
                            <template #reference>
                                <el-button type="danger" icon="el-icon-delete" size="small" plain circle></el-button>
                            </template>
                        </el-popconfirm>
                        <el-button v-show="scope.row.isNew" @click="add(scope.row)">保存</el-button>
                    </template>
                </el-table-column>
@@ -170,6 +175,11 @@
        this.getList()
    },
    methods: {
        rowDel(row, index) {
            // this.$emit('delRow', row)
            this.remove(row)
            this.data.splice(index, 1)
        },
        getList() {
            this.$HTTP.get('/api/blade-cps/global_wcs/wcs-achievements').then(res => {
                if (res.code === 200) {