yangys
2024-01-14 8b3b36310ee2166d21bcf69f35914421e27fe5f0
调整删除功能
已修改2个文件
13 ■■■■ 文件已修改
src/container/deviceType/Manage-add-update.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/deviceType/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/deviceType/Manage-add-update.vue
@@ -3,13 +3,13 @@
    <el-dialog
      :title="!dataForm.id ? '新建' : '编辑'"
      :close-on-click-modal="false"
      width="80%"
      width="20%"
      :visible.sync="addVisible">
      <!-- 添加内容-->
      <el-form  :model="dataForm" label-width="100px" ref="dataForm">
          <el-row :gutter="20">
          <el-row :gutter="24">
          
          <el-col :xs="24":sm="6":md="6":lg="6":xl="6">
          <el-col :xs="24":sm="24":md="24":lg="24":xl="24">
            <el-form-item label="名称" prop="name">
              <el-input v-model="dataForm.name" placeholder="名称" clearable></el-input>
            </el-form-item>
@@ -52,7 +52,7 @@
      }
    },
    created () {
        console.log('add create');
        //console.log('add create');
      this.init(this.row)
    },
    methods: {
src/container/deviceType/index.vue
@@ -109,7 +109,7 @@
                 
                    ids.push(row.id)
                  
                  ids = ids.join(',')
                  //ids = ids.join(',')
                  this.$confirm('确定要永久删除此项?', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
@@ -121,7 +121,8 @@
                        type: 'success',
                        message: '删除成功!'
                      })
                      this.submitForm()
                      this.query ();
                      //this.submitForm()
                    })
                  }).catch(() => {
                    this.$message({