|
|
@@ -232,7 +232,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { ref, reactive, watch,onMounted ,h} from "vue";
|
|
|
+// import { ref, reactive, watch,onMounted ,h} from "vue";
|
|
|
import {useRouter} from "vue-router"
|
|
|
import type { ComponentSize, FormInstance, FormRules } from "element-plus";
|
|
|
import { Plus, Search } from "@element-plus/icons-vue";
|
|
|
@@ -507,22 +507,24 @@ const editorInstitution = (item: any) => {
|
|
|
};
|
|
|
const del = (item: any) => {
|
|
|
// ElPopconfirm('是否确认')
|
|
|
- ElMessageBox.confirm("确认要删除当前数据吗?", "提示", {
|
|
|
+ ElMessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '确认要删除当前数据吗?',
|
|
|
confirmButtonText: "确认",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
center:true
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
-
|
|
|
- api.institutionApi
|
|
|
- .institutionDel({
|
|
|
- id: item.id,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- ElMessage.success("操作成功");
|
|
|
- getInstitutionList(); //机构列表
|
|
|
- });
|
|
|
+ }).then((action) => {
|
|
|
+ if(action === 'confirm') {
|
|
|
+ api.institutionApi
|
|
|
+ .institutionDel({
|
|
|
+ id: item.id,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ ElMessage.success("操作成功");
|
|
|
+ getInstitutionList(); //机构列表
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
ElMessage.warning("用户取消操作");
|
|
|
@@ -631,18 +633,15 @@ function delUser(item:any) {
|
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
// transferInfo.value=res.data
|
|
|
-
|
|
|
- ElMessageBox.confirm(
|
|
|
- "账号删除后,该账号将无法使用访问本企业,请确定是否删除 ",
|
|
|
- "确认要删除账号吗?",
|
|
|
- {
|
|
|
- confirmButtonText: "确认删除",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- center:true
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
+ ElMessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '账号删除后,该账号将无法使用访问本企业,请确定是否删除',
|
|
|
+ confirmButtonText: "确认删除",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ center:true
|
|
|
+ }).then((action) => {
|
|
|
+ if(action === 'confirm') {
|
|
|
api.userApi
|
|
|
.userDelete({
|
|
|
ids: [operationForm.value.id],
|
|
|
@@ -654,6 +653,7 @@ function delUser(item:any) {
|
|
|
getUserList()
|
|
|
}
|
|
|
});
|
|
|
+ }
|
|
|
// console.log(123);
|
|
|
})
|
|
|
.catch(() => {
|
|
|
@@ -664,29 +664,27 @@ function delUser(item:any) {
|
|
|
}
|
|
|
//批量删除成员
|
|
|
function delsUser() {
|
|
|
+ ElMessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '账号删除后,该账号将无法使用访问本企业,请确定是否删除',
|
|
|
+ confirmButtonText: "确认删除",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ center:true
|
|
|
+ }).then((action) => {
|
|
|
+ if(action === 'confirm') {
|
|
|
+ api.userApi
|
|
|
+ .userDelete({
|
|
|
+ ids: checkTableIdList.value,
|
|
|
|
|
|
- ElMessageBox.confirm(
|
|
|
- "账号删除后,该账号将无法使用访问本企业,请确定是否删除 ",
|
|
|
- "确认要删除账号吗?",
|
|
|
- {
|
|
|
- confirmButtonText: "确认删除",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- center:true
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- api.userApi
|
|
|
- .userDelete({
|
|
|
- ids: checkTableIdList.value,
|
|
|
-
|
|
|
- })
|
|
|
- .then((res: any) => {
|
|
|
- if(res.code==200){
|
|
|
- ElMessage.success(res.msg)
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
+ })
|
|
|
+ .then((res: any) => {
|
|
|
+ if(res.code==200){
|
|
|
+ ElMessage.success(res.msg)
|
|
|
+ getUserList()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
// console.log(123);
|
|
|
})
|
|
|
.catch(() => {
|
|
|
@@ -731,28 +729,26 @@ function resign(item:any) {
|
|
|
transferInfo.value = res.data;
|
|
|
if (res.data.count < 1) {
|
|
|
// ElMessage.error("当前用户没有可转移的资源");
|
|
|
- ElMessageBox.confirm(
|
|
|
- "离职后,账号将无法访问本企业,请确定是否离职?",
|
|
|
- `确定要将${operationForm.value.name}设置为离职吗?`,
|
|
|
- {
|
|
|
+ ElMessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: `离职后,账号将无法访问本企业,确定要将${operationForm.value.name}设置为离职吗?`,
|
|
|
confirmButtonText: "确认",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
center:true
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- api.userApi
|
|
|
- .userQuitApply({
|
|
|
- userId:operationForm.value.userId,
|
|
|
- })
|
|
|
- .then((res: any) => {
|
|
|
- if(res.code==200){
|
|
|
- ElMessage.success(res.msg)
|
|
|
- getUserList()
|
|
|
- }
|
|
|
- });
|
|
|
- // console.log(123);
|
|
|
+ }).then((action) => {
|
|
|
+ if(action === 'confirm') {
|
|
|
+ api.userApi
|
|
|
+ .userQuitApply({
|
|
|
+ userId:operationForm.value.userId,
|
|
|
+ })
|
|
|
+ .then((res: any) => {
|
|
|
+ if(res.code==200){
|
|
|
+ ElMessage.success(res.msg)
|
|
|
+ getUserList()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
ElMessage.warning("用户取消操作");
|