wangting
2024-10-25 2b3a7e06b9fb836b5004273f9a411cf78b4af844
Source/plt-web/plt-web-ui/src/views/systemModel/systemConfig/index.vue
@@ -64,8 +64,8 @@
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="addVisibleClose">取 消</el-button>
        <el-button size="small" type="primary" @click="addSaveClickHandler">确 定</el-button>
        <el-button size="small" @click="addVisibleClose">取 消</el-button>
      </span>
    </el-dialog>
@@ -114,6 +114,7 @@
        addBtn: false,
        editBtn: false,
        delBtn: false,
        calcHeight: -50,
        column: [
          {
            label: '名称',
@@ -306,24 +307,35 @@
        ids: row.id,
        isConfCategorys: this.nodeRow.id === 'firstNode' ? true : false
      }
      getAppConfigCategoryInfo(params).then(res => {
        console.log(res)
        if (res.data.code === 200) {
          this.$message.success('删除成功');
          if (this.nodeRow.id === 'firstNode') {
            this.getTreeList('save');
          } else {
            this.configLoading = true;
            getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => {
              if (res.data.code === 200) {
                const data = res.data.data;
                this.configData = data;
                this.configLoading = false;
              }
            })
      this.$confirm('您确定要删除当前数据吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        getAppConfigCategoryInfo(params).then(res => {
          console.log(res)
          if (res.data.code === 200) {
            this.$message.success('删除成功');
            if (this.nodeRow.id === 'firstNode') {
              this.getTreeList('save');
            } else {
              this.configLoading = true;
              getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => {
                if (res.data.code === 200) {
                  const data = res.data.data;
                  this.configData = data;
                  this.configLoading = false;
                }
              })
            }
          }
        }
      })
        })
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    // 选择框
@@ -352,30 +364,43 @@
        this.$message.error('请至少选择一条数据');
        return;
      }
      const params = {
        ids: this.selectList.map(item => {
          return item.id
        }).join(','),
        isConfCategorys: this.nodeRow.id === 'firstNode' ? true : false
      }
      getAppConfigCategoryInfo(params).then(res => {
        console.log(res)
        if (res.data.code === 200) {
          this.$message.success('删除成功');
          if (this.nodeRow.id === 'firstNode') {
            this.getTreeList('save');
          } else {
            this.configLoading = true;
            getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => {
              if (res.data.code === 200) {
                const data = res.data.data;
                this.configData = data;
                this.configLoading = false;
              }
            })
      this.$confirm('您确定要删除当前数据吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        getAppConfigCategoryInfo(params).then(res => {
          console.log(res)
          if (res.data.code === 200) {
            this.$message.success('删除成功');
            if (this.nodeRow.id === 'firstNode') {
              this.getTreeList('save');
            } else {
              this.configLoading = true;
              getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => {
                if (res.data.code === 200) {
                  const data = res.data.data;
                  this.configData = data;
                  this.configLoading = false;
                }
              })
            }
          }
        }
      })
        })
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    // 导出按钮