zs 2 lat temu
rodzic
commit
dfb8329999

+ 1 - 2
src/components/c-search.vue

@@ -97,8 +97,7 @@ const toSubmit = () => {
 // 重置
 const toReset = () => {
   form.value = {};
-  emit('search');
-  emit('toReset');
+  emit('search', form.value);
 };
 // 文字描述
 const getField = (item, data) => {

+ 3 - 3
src/components/common/demand/info.vue

@@ -48,13 +48,13 @@ let form: Ref<{}> = ref({});
 let fieldsList: Ref<any[]> = ref([]);
 
 // 查询
-const search = async (info) => {
+const search = async (info: any) => {
   let e = _.cloneDeep(info);
   e.fieldsList = getFields(e.fields);
   form.value = e;
 };
 // 获得领域
-const getFields = (e) => {
+const getFields = (e: any) => {
   let field = [];
   for (const val of e) {
     let data = fieldsList.value.find((i) => i.dict_value == val);
@@ -66,7 +66,7 @@ const searchOther = async () => {
   const p1: IQueryResult = await sysdictdata.query({ dict_type: 'studio_field' });
   fieldsList.value = p1.data as [];
 };
-watch(info, async (newVal) => {
+watch(info, async (newVal: any) => {
   if (newVal && newVal._id) {
     await searchOther();
     await search(newVal);

+ 1 - 2
src/components/common/scientist/info.vue

@@ -83,10 +83,9 @@ let form: Ref<{ phone: { phone: string }; email: { email: string }; team_phone:
   email: { email: '' },
   team_phone: { phone: '' },
 });
-
+let user = store.state.user as { _id: string; role_type: string };
 // 查询
 const search = async (e) => {
-  let user = store.state.user;
   if (user && user.role_type != '1') {
     if (e.phone && e.phone.is_show == false) e.phone.phone = '暂未公开';
     if (e.email && e.email.is_show == false) e.email.email = '暂未公开';

+ 2 - 4
src/components/common/studio/info.vue

@@ -9,7 +9,7 @@
             </span>
           </template>
           <template #team>
-            <component style="width: 100%" :is="CTable" :fields="teamfields" :opera="[]" :data="form.team" :usePage="false"> </component>
+            <component :is="CTable" :fields="teamfields" :opera="[]" :data="form.team" :usePage="false" style="width: 100%"> </component>
           </template>
           <template #hz_fields>
             <span v-for="(i, index) in form.hzfieldsList" :key="index" class="direction">
@@ -75,10 +75,9 @@ let teamfields: Ref<any[]> = ref([
   { label: '职称', model: 'zc' },
   { label: '手机号码', model: 'phone' },
 ]);
-
+let user = store.state.user as { _id: string; role_type: string };
 // 查询
 const search = async (e) => {
-  let user = store.state.user as { role_type: String; _id: String };
   if (user && user.role_type != '1') {
     if (e.unit_phone && e.unit_phone.is_show == false) e.unit_phone.phone = '暂未公开';
     if (e.unit_email && e.unit_email.is_show == false) e.unit_email.email = '暂未公开';
@@ -118,7 +117,6 @@ const search = async (e) => {
     }
   }
   field.value = fields.value;
-
   e.zyfieldsList = getFields(e.zy_fields);
   e.hzfieldsList = getFields(e.hz_fields);
   form.value = e;

+ 2 - 3
src/components/common/unit/info.vue

@@ -52,10 +52,9 @@ const { info } = toRefs(props);
 const { type } = toRefs(props);
 let field: Ref<any[]> = ref([]);
 let form: Ref<{ unit_phone: { phone: string }; unit_email: { email: string } }> = ref({ unit_phone: { phone: '' }, unit_email: { email: '' } });
-
+let user = store.state.user as { _id: string; role_type: string };
 // 查询
 const search = async (e) => {
-  let user = store.state.user;
   if (user && user.role_type != '1') {
     if (e.unit_phone && e.unit_phone.is_show == false) e.unit_phone.phone = '暂未公开';
     if (e.unit_email && e.unit_email.is_show == false) e.unit_email.email = '暂未公开';
@@ -85,7 +84,7 @@ const search = async (e) => {
 
   field.value = fields.value;
 };
-watch(info, (newVal, oldVal) => {
+watch(info, (newVal) => {
   if (newVal && newVal._id) {
     search(newVal);
   }

+ 2 - 2
src/views/center/other/contact/index.vue

@@ -47,7 +47,7 @@ let infoFields: Ref<any[]> = ref([
 ]);
 let isuseList: Ref<any[]> = ref([]);
 
-let user = store.state.user;
+let user = store.state.user as { _id: string; role_type: string };
 onMounted(async () => {
   await searchOther();
   await search();
@@ -58,7 +58,7 @@ const search = async () => {
 };
 // 提交
 const toSave = async (data: { _id: string; user_id: string }) => {
-  data.user_id = user.id;
+  data.user_id = user._id;
   let res: IQueryResult;
   if (data._id) res = await contactoffice.update(data);
   else res = await contactoffice.create(data);

+ 6 - 4
src/views/center/other/message/add.vue

@@ -55,7 +55,7 @@ interface userItem {
   company: string;
   _id: string;
 }
-let user = store.state.user;
+let user = store.state.user as { _id: string; role_type: string };
 // 表单
 let form: Ref<{ content: string; file: dataItem[]; user: userItem[]; user_id: String }> = ref({ content: '', file: [], user: [], user_id: '' });
 // 必填项
@@ -104,22 +104,24 @@ const dataChange = (e: { model: string; value: string }) => {
     }
   }
 };
+
 // 查詢用戶
 const searchUser = async () => {
   // 接收人
   let user = [];
   // 企业用户
   let company: IQueryResult = await unitStudioApply.query({ status: '1' });
-
+  let com: any = company.data as [];
   if (company.errcode == '0' && company.total > 0) {
-    for (const val of company.data) {
+    for (const val of com) {
       user.push({ _id: val._id, company: val.company, phone: val.phone });
     }
   }
   // 科学家用户
   let scientist: IQueryResult = await userStudioApply.query({ status: '1' });
+  let sci: any = scientist.data as [];
   if (scientist.errcode == '0' && scientist.total > 0) {
-    for (const val of scientist.data) {
+    for (const val of sci) {
       user.push({ _id: val._id, name: val.name, phone: val.phone.phone });
     }
   }

+ 7 - 3
src/views/center/other/message/index.vue

@@ -33,8 +33,10 @@
     <component :is="CDialog" :dialog="dialog" @handleClose="handleClose">
       <template v-slot:info>
         <el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
-          <el-input placeholder="请输入内容" v-model="search_name" class="input-with-select" size="small">
-            <el-button icon="el-icon-search" @click="toSubmit"></el-button>
+          <el-input placeholder="请输入内容" v-model="search_name" class="input-with-select">
+            <template #append>
+              <el-button :icon="Search" @click="toSubmit" />
+            </template>
           </el-input>
           <el-col :span="24" class="list">
             <span v-for="(item, index) in userList" :key="index" class="direction">
@@ -52,6 +54,7 @@ import partsSearch from '@/components/c-search.vue';
 import CTable from '@/components/c-table.vue';
 import btn from '@/components/btn-1.vue';
 import CDialog from '@/components/c-dialog.vue';
+import { Search } from '@element-plus/icons-vue';
 // #endregion
 import type { Ref } from 'vue';
 import { ref, onMounted, getCurrentInstance } from 'vue';
@@ -129,7 +132,7 @@ const toAdd = () => {
 // 搜索用户
 const toSubmit = () => {
   if (search_name.value) {
-    let info = users.value.filter((f) => f.name.includes(search_name));
+    let info = users.value.filter((f) => f.name.includes(search_name.value));
     userList.value = info;
   } else userList = users;
 };
@@ -154,6 +157,7 @@ const toDel = async (data: { _id: string }) => {
 };
 // 关闭弹窗
 const handleClose = () => {
+  search_name.value = '';
   search({ skip, limit });
   dialog.value = { title: '信息管理', show: false, type: '' };
 };

+ 3 - 3
src/views/center/studio/flair/index.vue

@@ -129,7 +129,7 @@ let infoFields: Ref<any[]> = ref([
 let statusList: Ref<any[]> = ref([]);
 // 工作室列表
 let studioList: Ref<any[]> = ref([]);
-
+let user = store.state.user as { _id: string };
 onMounted(async () => {
   await searchOther();
   await search({ skip, limit });
@@ -171,15 +171,15 @@ const toSave = async (data: { _id: string; status: string }) => {
 
 // 发送系统消息
 const createMess = async (data) => {
-  let user = store.state.user;
   let res = await unitStudioApply.fetch(data.unit_id);
+  let p1: any = res.data as {};
   if (res.errcode == 0) {
     let obj = {
       user_id: user._id,
       title: '审核通知',
       send_time: moment().format('YYYY-MM-DD HH:mm:ss'),
       type: '3',
-      user: [{ id: data.user_id, company: data.company_name, phone: res.data.phone }],
+      user: [{ id: data.user_id, company: data.company_name, phone: p1.phone }],
       content: '您好,您所申请《' + data.studio_name + '》的保留资质,' + `${data.status == '1' ? '已通过审核' : '未通过审核'}` + ',原因:' + data.remark,
     };
     let arr = await message.create(obj);

+ 2 - 2
src/views/center/studio/info/export.vue

@@ -5,7 +5,7 @@
         <el-col :span="24" class="one">
           <component :is="partsSearch" :is_back="true" @toBack="toBack()">
             <template v-slot:custombtn>
-              <el-button type="success" size="small" @click="toExport()">导出</el-button>
+              <el-button type="success" @click="toExport()">导出</el-button>
             </template>
           </component>
         </el-col>
@@ -77,7 +77,7 @@ import type { Ref } from 'vue';
 import { ref, onMounted } from 'vue';
 import { useRoute } from 'vue-router';
 import { ElMessageBox } from 'element-plus';
-import htmlToPdf from '@common/src/util/htmlToPdf.ts';
+import htmlToPdf from '@common/src/util/htmlToPdf';
 // #region 接口
 import { StudioStore } from '@common/src/stores/studio/studios/studio'; // 列表 // 列表
 import { DictDataStore } from '@common/src/stores/users/sysdictdata'; // 字典表

+ 5 - 4
src/views/center/studio/info/index.vue

@@ -109,6 +109,7 @@ let infoFields: Ref<any[]> = ref([
 // 状态
 let statusList: Ref<any[]> = ref([]);
 let fieldList: Ref<any[]> = ref([]);
+let user = store.state.user as { _id: string; role_type: string };
 onMounted(async () => {
   await searchOther();
   await search({ skip, limit });
@@ -147,7 +148,7 @@ const toExport = async (data: { _id: string; company_id: string; scientistinfo_i
 };
 // 审核保存
 const toSave = async (data: { _id: string; status: string }) => {
-  let obj = { id: data._id, status: data.status };
+  let obj = { _id: data._id, status: data.status };
   let res: IQueryResult = await studio.update(obj);
   if (res.errcode == 0) {
     ElMessage({ type: 'success', message: '维护信息成功' });
@@ -156,8 +157,8 @@ const toSave = async (data: { _id: string; status: string }) => {
 };
 // // 发送系统消息
 const createMess = async (data) => {
-  let user = store.state.user;
-  let res = await unitStudioApply.fetch(data.unit_id);
+  let res = await unitStudioApply.fetch(data.user_id);
+  let p1: any = res.data as {};
   let status = statusList.value.find((r) => r.dict_value == data.status);
   if (res.errcode == 0) {
     let obj = {
@@ -165,7 +166,7 @@ const createMess = async (data) => {
       title: '审核通知',
       send_time: moment().format('YYYY-MM-DD HH:mm:ss'),
       type: '3',
-      user: [{ id: data.user_id, company: data.company, phone: res.data.phone }],
+      user: [{ id: data.user_id, company: data.company, phone: p1.phone }],
       content: '您好,您所申报《' + data.name + '》的建设申请,' + status.dict_label + ',原因:' + data.remark,
     };
     let arr = await message.create(obj);

+ 3 - 2
src/views/center/studio/year/index.vue

@@ -124,6 +124,7 @@ let infoFields: Ref<any[]> = ref([
   { label: '审核状态', model: 'status', type: 'select' },
   { label: '审核意见', model: 'remark', type: 'textarea' },
 ]);
+let user = store.state.user as { _id: string; role_type: string };
 // 状态
 let statusList: Ref<any[]> = ref([]);
 let studioList: Ref<any[]> = ref([]);
@@ -161,15 +162,15 @@ const toSave = async (data: { _id: string; status: string }) => {
 };
 // // 发送系统消息
 const createMess = async (data) => {
-  let user = store.state.user;
   let res = await unitStudioApply.fetch(data.unit_id);
+  let p1: any = res.data as {};
   if (res.errcode == 0) {
     let obj = {
       user_id: user._id,
       title: '审核通知',
       send_time: moment().format('YYYY-MM-DD HH:mm:ss'),
       type: '3',
-      user: [{ id: data.user_id, company: data.company_name, phone: res.data.phone }],
+      user: [{ id: data.user_id, company: data.company_name, phone: p1.phone }],
       content: '您好,您所上传《' + data.studio_name + '》的年度报告,' + `${data.status == '1' ? '已通过审核' : '未通过审核'}` + ',原因:' + data.remark,
     };
     let arr = await message.create(obj);

+ 1 - 1
src/views/center/supplydemand/demand/index.vue

@@ -113,6 +113,7 @@ let infoFields: Ref<any[]> = ref([
 ]);
 // 状态
 let statusList: Ref<any[]> = ref([]);
+let user = store.state.user as { _id: string; role_type: string };
 onMounted(async () => {
   await searchOther();
   await search({ skip, limit });
@@ -151,7 +152,6 @@ const toSave = async (data: { _id: string; status: string; user_id: string; comp
 };
 // // 发送系统消息
 const createMess = async (data: { user_id: string; company_name: string; phone: string; title: string; status: string; remark: string }) => {
-  let user = store.state.user;
   let obj = {
     user_id: user._id,
     title: '审核通知',

+ 1 - 149
src/views/center/supplydemand/support/index.vue

@@ -111,6 +111,7 @@ let infoFields: Ref<any[]> = ref([
   { label: '审核状态', model: 'status', type: 'select' },
   { label: '审核意见', model: 'remark', type: 'textarea' },
 ]);
+let user = store.state.user as { _id: string; role_type: string };
 // 状态
 let statusList: Ref<any[]> = ref([]);
 onMounted(async () => {
@@ -151,7 +152,6 @@ const toSave = async (data: { _id: string; status: string; user_id: string; scie
 };
 // // 发送系统消息
 const createMess = async (data: { user_id: string; scientist_name: string; phone: string; title: string; status: string; remark: string }) => {
-  let user = store.state.user;
   let obj = {
     user_id: user._id,
     title: '审核通知',
@@ -182,153 +182,5 @@ const searchOther = async () => {
   statusList.value = p1.data as [];
 };
 </script>
-<!-- <script>
-import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('techolsupport');
-const { mapActions: sysdictdata } = createNamespacedHelpers('sysdictdata');
-const { mapActions: message } = createNamespacedHelpers('message');
-const moment = require('moment');
-export default {
-  name: 'index',
-  props: {},
-  components: {},
-  data: function () {
-    return {
-      // 查询
-      searchInfo: {},
-      list: [],
-      total: 0,
-      fields: [
-        { label: '序号', options: { type: 'index' } },
-        { label: '标题', model: 'title', isSearch: true },
-        { label: '发布时间', model: 'date' },
-        { label: '科学家姓名', model: 'scientist_name', isSearch: true },
-        { label: '联系方式', model: 'phone', isSearch: true },
-        { label: '单位名称', model: 'company_name', isSearch: true },
-        {
-          label: '审核状态',
-          model: 'status',
-          type: 'select',
-          format: (i) => {
-            let data = this.statusList.find((r) => r.dict_value == i);
-            if (data) return data.dict_label;
-          },
-          isSearch: true,
-        },
-      ],
-      opera: [
-        { label: '对接信息', method: 'dock', display: (i) => i.dock_status == '1' || i.dock_status == '2' },
-        { label: '详情', method: 'view' },
-        { label: '审核', method: 'exam', type: 'warning', display: (i) => i.status == '0' },
-      ],
-      // 是否啓用
-      isuseList: [],
-      // 审核状态
-      statusList: [],
-      dialog: { title: '信息审核', show: false, type: '1' },
-      form: {},
-      rules: {
-        status: [{ required: true, message: '请选择审核状态', trigger: 'change' }],
-        remark: [{ required: true, message: '请输入审核意见', trigger: 'blur' }],
-      },
-    };
-  },
-  created() {
-    this.searchOther();
-    this.search();
-  },
-  methods: {
-    ...mapActions(['query', 'update', 'delete']),
-    ...sysdictdata({ dQuery: 'query' }),
-    ...message({ mCreate: 'create' }),
-    async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      info.is_use = 'Y';
-      let res = await this.query({ skip, limit, ...info, ...this.searchInfo });
-      if (this.$checkRes(res)) {
-        this.$set(this, `list`, res.data);
-        this.$set(this, `total`, res.total);
-      }
-    },
-    btSearch(query) {
-      this.$set(this, `searchInfo`, query);
-      this.search();
-    },
-    // 对接信息
-    toDock({ data }) {
-      this.$router.push({ path: '/center/supplydemand/support/dock', query: { id: data.id } });
-    },
-    // 详细信息
-    toView({ data }) {
-      this.$router.push({ path: '/center/supplydemand/support/info', query: { id: data.id } });
-    },
-    // 信息审核
-    toExam({ data }) {
-      this.$set(this, `form`, data);
-      this.dialog = { title: '信息审核', show: true, type: '1' };
-    },
-    // 提交审核
-    toSubmit(formName) {
-      this.$refs[formName].validate(async (valid) => {
-        if (valid) {
-          let data = this.form;
-          let obj = { id: data.id, status: data.status };
-          let res = await this.update(obj);
-          if (this.$checkRes(res, `信息审核成功`, res.errmsg)) this.createMess(data);
-        } else {
-          console.log('error submit!!');
-          return false;
-        }
-      });
-    },
-    // 发送系统消息
-    async createMess(data) {
-      let obj = {
-        user_id: this.user._id,
-        title: '审核通知',
-        send_time: moment().format('YYYY-MM-DD HH:mm:ss'),
-        type: '3',
-        user: [{ id: data.user_id, name: data.scientist_name, phone: data.phone }],
-        content: '您好,您所发布的《' + data.title + '》的申请,' + `${data.status == '1' ? '已通过审核' : '未通过审核'}` + ',原因:' + data.remark,
-      };
-      let arr = await this.mCreate(obj);
-      if (this.$checkRes(arr, `系统信息发送成功`, arr.errmsg)) this.toClose();
-    },
-    // 关闭弹框
-    toClose() {
-      this.form = {};
-      this.dialog = { title: '信息审核', show: false, type: '1' };
-      this.searchOther();
-      this.search();
-    },
-    // 查詢其他信息
-    async searchOther() {
-      let res;
-      // 是否启用
-      res = await this.dQuery({ dict_type: 'sys_yes_no' });
-      if (this.$checkRes(res)) {
-        this.$set(this, `isuseList`, res.data);
-      }
-      // 审核状态
-      res = await this.dQuery({ dict_type: 'studio_status' });
-      if (this.$checkRes(res)) {
-        this.$set(this, `statusList`, res.data);
-      }
-    },
-  },
-  computed: {
-    ...mapState(['user']),
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-  watch: {
-    test: {
-      deep: true,
-      immediate: true,
-      handler(val) {},
-    },
-  },
-};
-</script> -->
 
 <style lang="scss" scoped></style>

+ 18 - 9
src/views/center/users/company/index.vue

@@ -4,7 +4,10 @@
       <el-col :span="24" class="one">
         <component :is="partsSearch" :is_search="true" :fields="fields" @search="partSearch">
           <template #status>
-            <el-option v-for="i in statusList" :key="i.model" :label="i.dict_label" :value="i.dict_value"></el-option>
+            <el-option v-for="i in statusList" :key="i.model" :label="i.dict_label" :value="i.dict_value"> </el-option>
+          </template>
+          <template #unit_phone>
+            <el-input v-model="unit_phone" placeholder="请输入单位联系电话" clearable></el-input>
           </template>
         </component>
       </el-col>
@@ -23,6 +26,9 @@
           @exam="toExam"
           @del="toDel"
         >
+          <template #unit_phone="{ row, item }">
+            {{ row[item.model].phone }}
+          </template>
         </component>
       </el-col>
     </el-col>
@@ -74,7 +80,7 @@ let fields: Ref<any[]> = ref([
   { label: '单位名称', model: 'company', isSearch: true },
   { label: '单位地址', model: 'address', isSearch: true },
   { label: '单位联系人', model: 'unit_contact', isSearch: true },
-  { label: '单位联系电话', model: 'unit_phone.phone', isSearch: true },
+  { label: '单位联系电话', model: 'unit_phone', custom: true, isSearch: true },
   {
     label: '审核状态',
     model: 'status',
@@ -98,6 +104,7 @@ let selected: Ref<any[]> = ref([]);
 let total: Ref<number> = ref(0);
 let skip = 0;
 let limit: number = proxy.$limit;
+let unit_phone: Ref<string> = ref('');
 // 查询数据
 let searchForm: Ref<{}> = ref({});
 // 弹框
@@ -118,7 +125,7 @@ let infoFields: Ref<any[]> = ref([
 let roleInfo: Ref<{ _id: string }> = ref({ _id: '' });
 // 状态
 let statusList: Ref<any[]> = ref([]);
-
+let user = store.state.user as { _id: string; role_type: string };
 onMounted(async () => {
   await searchOther();
   await search({ skip, limit });
@@ -126,7 +133,9 @@ onMounted(async () => {
 // 查询
 const search = async (e: { skip: number; limit: number }) => {
   const { skip, limit } = e;
-  let info = { limit: limit, skip: skip, ...searchForm.value };
+
+  let info = { limit: limit, skip: skip, ...searchForm.value, unit_phone: '' };
+  if (unit_phone.value) info.unit_phone = unit_phone.value;
   const res: IQueryResult = await unitStudioApply.query(info);
   tableData.value = res.data as any[];
   total.value = res.total;
@@ -159,12 +168,13 @@ const toSave = async (data: { _id: string; status: string }) => {
 // // 分配角色
 const updateRole = async (e) => {
   let userInfo = await unit.fetch(e.unit_id);
+  let info: any = userInfo.data as {};
   if (userInfo.errcode == 0) {
     let object = {
-      _id: userInfo.data._id,
-      role: [...userInfo.data.role, roleInfo.value._id],
-      account: userInfo.data.account,
-      unit_name: userInfo.data.unit_name,
+      _id: info._id,
+      role: [...info.role, roleInfo.value._id],
+      account: info.account,
+      unit_name: info.unit_name,
     };
     let res = await unit.update(object);
     if (res.errcode == 0) ElMessage({ type: 'success', message: '分配角色成功' });
@@ -172,7 +182,6 @@ const updateRole = async (e) => {
 };
 // // 发送系统消息
 const createMess = async (data) => {
-  let user = store.state.user;
   let res = await unit.fetch(data.unit_id);
   if (res.errcode == 0) {
     let obj = {

+ 7 - 6
src/views/center/users/scientist/index.vue

@@ -124,7 +124,7 @@ let infoFields: Ref<any[]> = ref([
 let roleInfo: Ref<{ _id: string }> = ref({ _id: '' });
 // 状态
 let statusList: Ref<any[]> = ref([]);
-
+let user = store.state.user as { _id: string };
 onMounted(async () => {
   await searchOther();
   await search({ skip, limit });
@@ -165,10 +165,11 @@ const toSave = async (data: { _id: string; status: string }) => {
 // // 分配角色
 const updateRole = async (e) => {
   let userInfo = await users.fetch(e.user_id);
+  let info: any = userInfo.data as {};
   if (userInfo.errcode == 0) {
     let object = {
-      _id: userInfo.data._id,
-      role: [...userInfo.data.role, roleInfo.value._id],
+      _id: info._id,
+      role: [...info.role, roleInfo.value._id],
     };
     let res = await users.update(object);
     console.log(res.data);
@@ -177,7 +178,6 @@ const updateRole = async (e) => {
 };
 // // 发送系统消息
 const createMess = async (data) => {
-  let user = store.state.user;
   let res = await users.fetch(data.user_id);
   if (res.errcode == 0) {
     let obj = {
@@ -198,11 +198,12 @@ const createMess = async (data) => {
 // 删除
 const toDel = async (data: { _id: string; user_id: string }) => {
   const res: IQueryResult = await users.fetch(data.user_id);
+  let p1: any = res.data as {};
   if (res.errcode == 0) {
-    if (res.data && res.data._id) {
+    if (p1 && p1._id) {
       ElMessage({ type: 'warning', message: '科学家账号暂无删除,无法删除' });
     } else {
-      const p1: IQueryResult = await userStudioApply.delete(data._id);
+      const p1: IQueryResult = await userStudioApply.del(data._id);
       if (p1.errcode == 0) {
         ElMessage({ type: 'success', message: '删除成功' });
         search({ skip, limit });