loulijun2021
2023-06-28 76a3c7dcf11171f515a395f9961f7d080e6dce27
src/views/basicSettings/organizationList.vue
@@ -168,7 +168,7 @@
                  />
                </el-tooltip>
                <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">
                  <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row.id)" />
                  <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" />
                </el-tooltip>
                <!--                <el-button type="primary" size="mini" />-->
                <!--                <el-button type="danger" size="mini">删除</el-button>-->
@@ -220,7 +220,7 @@
        <el-form-item label="组织名称" prop="OrgName">
          <el-input v-model="dialogForm.OrgName" style="width: 200px" />
        </el-form-item>
        <el-form-item v-if="dialogForm.OrgType!=='部门'" prop="SupUnit" label="上级单位">
        <el-form-item v-if="dialogForm.OrgType!=='部门'&&$store.state.settings.orgType===''" prop="SupUnit" label="上级单位">
          <el-select
            v-model="dialogForm.SupUnit"
            style="width: 200px"
@@ -533,11 +533,11 @@
      // this.numvalue = res.numvalue
    },
    // 修改按钮
    edit(operation, row) {
    async  edit(operation, row) {
      if (this.$store.state.settings.orgType === 'W') {
        return this.$message.info('当前用户无修改权限!')
      }
      await this.getPrentOrganization()
      this.operation = operation
      this.dialogVisible = true
      // if (row.description === 'F') {
@@ -560,7 +560,7 @@
      })
    },
    // 删除按钮
    async del(id) {
    async del(row) {
      if (this.$store.state.settings.orgType === 'W') {
        return this.$message.info('当前用户无删除权限!')
      }
@@ -570,7 +570,7 @@
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        DeleteOrganization({ orgid: id }).then(res => {
        DeleteOrganization({ orgid: row.id, orgcode: row.org_code }).then(res => {
          if (res.code === '200') {
            this.$message.success('删除成功!')
            if (this.form.page > 1 && this.tableData.length === 1) {