2 Commits 6daf58d38d ... 150017768d

Auteur SHA1 Message Date
  YY 150017768d Merge branch 'master' of http://git.cc-lotus.info/zkzx/zkzx_user il y a 1 an
  YY f9b416bf76 信息发布 il y a 1 an

+ 14 - 5
src/router/module/user.ts

@@ -8,31 +8,40 @@ export default [
     path: '/message',
     meta: { title: '基本信息' },
     component: () => import('@/views/message/index.vue')
-  }, 
+  },
   {
     path: '/product',
     meta: { title: '信息发布' },
     component: () => import('@/views/product/index.vue')
   },
+  {
+    path: '/product/detail',
+    meta: { title: '信息发布' },
+    component: () => import('@/views/product/detail.vue')
+  },
   {
     path: '/dock/next',
     meta: { title: '下期直播' },
     component: () => import('@/views/dock/next/index.vue')
   },
+  {
+    path: '/dock/next/detail',
+    meta: { title: '信息管理' },
+    component: () => import('@/views/dock/next/detail.vue')
+  },
   {
     path: '/dock/pass',
     meta: { title: '已往直播' },
     component: () => import('@/views/dock/pass/index.vue')
-  }, 
+  },
   {
     path: '/matter',
     meta: { title: '事项管理' },
     component: () => import('@/views/matter/index.vue')
-  }, 
+  },
   {
     path: '/passupdate',
     meta: { title: '修改密码' },
     component: () => import('@/views/passupdate/index.vue')
-  },
-  
+  }
 ];

+ 18 - 0
src/views/dock/next/detail.vue

@@ -0,0 +1,18 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="main animate__animated animate__backInRight " v-loading="loading"> test </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script setup lang="ts">
+import type { Ref } from 'vue';
+import { ref, toRefs,onMounted } from 'vue';
+const loading = ref(false);
+onMounted(async () => {
+loading.value = true;
+ loading.value = false;
+});
+</script>
+<style scoped lang="scss"></style>

+ 5 - 25
src/views/dock/next/index.vue

@@ -1,38 +1,18 @@
 <template>
   <div id="index">
     <el-row>
-      <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <el-col :span="24" class="one">系统首页</el-col>
-      </el-col>
+      <el-col :span="24" class="main animate__animated animate__backInRight " v-loading="loading"> test </el-col>
     </el-row>
   </div>
 </template>
 
 <script setup lang="ts">
-// 基础
 import type { Ref } from 'vue';
-// reactive,
-import { onMounted, ref, getCurrentInstance } from 'vue';
-// 接口
-//import { TestStore } from '@common/src/stores/test';
-//import type { IQueryResult } from '@/util/types.util';
-//const testAxios = TestStore();
-const { proxy } = getCurrentInstance() as any;
-// 加载中
-const loading: Ref<any> = ref(false);
-// 分页数据
-//  const skip = 0;
-//  const limit = proxy.limit;;
-// 请求
+import { ref, toRefs,onMounted } from 'vue';
+const loading = ref(false);
 onMounted(async () => {
-  loading.value = true;
-  //  await search({ skip, limit });
-  loading.value = false;
+loading.value = true;
+ loading.value = false;
 });
-//const search = async (e: { skip: number; limit: number }) => {
-//  const info = { skip: e.skip, limit: e.limit, ...searchInfo.value  };
-//  const res: IQueryResult = await testAxios.query(info);
-//  console.log(res);
-//};
 </script>
 <style scoped lang="scss"></style>

+ 5 - 25
src/views/message/index.vue

@@ -1,38 +1,18 @@
 <template>
   <div id="index">
     <el-row>
-      <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <el-col :span="24" class="one">系统首页</el-col>
-      </el-col>
+      <el-col :span="24" class="main animate__animated animate__backInRight " v-loading="loading"> test </el-col>
     </el-row>
   </div>
 </template>
 
 <script setup lang="ts">
-// 基础
 import type { Ref } from 'vue';
-// reactive,
-import { onMounted, ref, getCurrentInstance } from 'vue';
-// 接口
-//import { TestStore } from '@common/src/stores/test';
-//import type { IQueryResult } from '@/util/types.util';
-//const testAxios = TestStore();
-const { proxy } = getCurrentInstance() as any;
-// 加载中
-const loading: Ref<any> = ref(false);
-// 分页数据
-//  const skip = 0;
-//  const limit = proxy.limit;;
-// 请求
+import { ref, toRefs,onMounted } from 'vue';
+const loading = ref(false);
 onMounted(async () => {
-  loading.value = true;
-  //  await search({ skip, limit });
-  loading.value = false;
+loading.value = true;
+ loading.value = false;
 });
-//const search = async (e: { skip: number; limit: number }) => {
-//  const info = { skip: e.skip, limit: e.limit, ...searchInfo.value  };
-//  const res: IQueryResult = await testAxios.query(info);
-//  console.log(res);
-//};
 </script>
 <style scoped lang="scss"></style>

+ 285 - 0
src/views/product/detail.vue

@@ -0,0 +1,285 @@
+<template>
+  <div id="detail">
+    <el-row>
+      <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
+        <el-col :span="24" class="one">
+          <cSearch :is_back="true" @toBack="toBack"></cSearch>
+        </el-col>
+        <el-col :span="24" class="two">
+          <cForm :span="24" :fields="formFields" :form="form" :rules="rules" @save="onSubmit" @dataChange="dataChange" :disabled="disabled" :isSave="!disabled">
+            <template #messattribute>
+              <el-option v-for="(i, index) in product_messattributeList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #achievesource>
+              <el-option v-for="(i, index) in product_achievesourceList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #achievestatus>
+              <el-option v-for="(i, index) in product_achievestatusList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #cooperation>
+              <el-option v-for="(i, index) in product_cooperationList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #field>
+              <el-option v-for="(i, index) in product_fieldList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #demand>
+              <el-option v-for="(i, index) in product_demandList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #type>
+              <el-option v-for="(i, index) in product_typeList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #status>
+              <el-option v-for="(i, index) in statusList" :key="index" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #roadshow="{ item }">
+              <cUpload :model="item.model" :limit="1" url="/files/zkzx/product/upload" :list="form[item.model]" @change="onUpload"></cUpload>
+            </template>
+            <template #file="{ item }">
+              <cUpload
+                :model="item.model"
+                :limit="6"
+                url="/files/zkzx/product/upload"
+                :list="form[item.model]"
+                listType="picture-card"
+                @change="onUpload"
+              ></cUpload>
+            </template>
+            <template #patent>
+              <el-col :span="24" class="logs">
+                <el-col :span="24" class="logs_1">
+                  <el-button type="primary" size="small" @click="add()">添加</el-button>
+                </el-col>
+                <el-col :span="24">
+                  <el-table :data="form.patent" style="width: 100%" border>
+                    <el-table-column type="index" label="序号" width="100" align="center"> </el-table-column>
+                    <el-table-column label="名称" align="center">
+                      <template #default="scope">
+                        <el-input v-model="scope.row.name" placeholder="请输入名称" clearable />
+                      </template>
+                    </el-table-column>
+                    <el-table-column label="状态" align="center">
+                      <template #default="scope">
+                        <el-select v-model="scope.row.status" placeholder="请选择">
+                          <el-option v-for="item in product_patent_statusList" :key="item.value" :label="item.label" :value="item.value" />
+                        </el-select>
+                      </template>
+                    </el-table-column>
+                    <el-table-column label="操作" align="center" width="100">
+                      <template v-slot="scope">
+                        <el-button size="mini" type="danger" @click="del(scope.row)">删除</el-button>
+                      </template>
+                    </el-table-column>
+                  </el-table>
+                </el-col>
+              </el-col>
+            </template>
+          </cForm>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script setup lang="ts">
+import moment from 'moment';
+import type { Ref } from 'vue';
+import { ref, reactive, onMounted } from 'vue';
+import { useRoute } from 'vue-router';
+import { ElMessage } from 'element-plus';
+import type { FormRules } from 'element-plus';
+import store from '@/stores/counter';
+// 接口
+import { DictDataStore } from '@common/src/stores/system/dictData'; // 字典表
+import { ProductStore } from '@common/src/stores/allAdmin/product';
+
+import type { IQueryResult } from '@/util/types.util';
+const product = ProductStore();
+const dictData = DictDataStore();
+
+// 路由
+const route = useRoute();
+
+// 加载中
+const loading = ref(false);
+let user: Ref<any> = ref({});
+// 表单
+let disabled: Ref<any> = ref(false);
+let form: Ref<any> = ref({});
+let formFields: Ref<any[]> = ref([
+  // 公共
+  { label: '类型', model: 'type', type: 'select' },
+  { label: '企业名称', model: 'company' },
+  { label: '联系人', model: 'contact' },
+  { label: '手机号', model: 'phone' },
+  { label: '电子邮箱', model: 'email' },
+  { label: 'qq&微信', model: 'qqwx' },
+  { label: '状态', model: 'status', type: 'select' }
+]);
+const rules = reactive<FormRules>({
+  type: [{ required: true, message: '请选择类型' }]
+});
+// 字典表
+let statusList: Ref<any> = ref([]); // 状态
+let product_messattributeList: Ref<any> = ref([]); // 信息属性
+let product_achievesourceList: Ref<any> = ref([]); // 成果来源
+let product_achievestatusList: Ref<any> = ref([]); // 成果状态
+let product_cooperationList: Ref<any> = ref([]); // 合作方式
+let product_fieldList: Ref<any> = ref([]); // 所属领域
+let product_demandList: Ref<any> = ref([]); // 需求紧急程度/需求程度
+let product_typeList: Ref<any> = ref([]); // 类型
+let product_patent_statusList: Ref<any> = ref([]); // 专利信息状态
+onMounted(async () => {
+  loading.value = true;
+  if (route.query.isdisabled) disabled.value = route.query.isdisabled;
+  user.value = store.state.user;
+  await searchOther();
+  await search();
+  loading.value = false;
+});
+const search = async () => {
+  if (route.query.id) {
+    let res: IQueryResult = await product.fetch(route.query.id);
+    if (res.errcode == 0) {
+      form.value = res.data as {};
+      if (form.value.type == '0') valueOne(); // 科技需求
+      else if (form.value.type == '1') valueTwo(); // 技术成果
+      else if (form.value.type == '2') valueThr(); // 商务服务
+    }
+  } else form.value = { status: '0', user_id: user.value._id };
+};
+const dataChange = (e: { model: string; value: any }) => {
+  const { model, value } = e;
+  if (model == 'type') {
+    if (value == '0') valueOne(); // 科技需求
+    else if (value == '1') valueTwo(); // 科技成果
+    else if (value == '2') valueThr(); // 商务服务
+  }
+};
+// 任职记录
+const add = () => {
+  form.value.patent.push({ id: moment().valueOf(), name: '', status: '' });
+};
+// 任职记录删除
+const del = (e) => {
+  form.value.patent = form.value.patent.filter((i) => i.id != e.id);
+};
+// 科技需求
+const valueOne = () => {
+  formFields.value = [
+    { label: '类型', model: 'type', type: 'select' },
+    { label: '企业名称', model: 'company' },
+    { label: '联系人', model: 'contact' },
+    { label: '手机号', model: 'phone' },
+    { label: '电子邮箱', model: 'email' },
+    { label: 'qq&微信', model: 'qqwx' },
+    { label: '需求名称', model: 'name' },
+    { label: '需求紧急程度', model: 'demand', type: 'select' },
+    { label: '所属领域', model: 'field', type: 'select' },
+    { label: '投资预算', model: 'budget' },
+    { label: '合作方式', model: 'cooperation', type: 'select' },
+    { label: '技术说明', model: 'requirementdesc' },
+    { label: '预期目标', model: 'expect' },
+    { label: '需求现状', model: 'present' },
+    { label: '合作条件及要求', model: 'condition' },
+    { label: '产品图片(6)', model: 'file', custom: true },
+    { label: '状态', model: 'status', type: 'select' }
+  ];
+};
+// 技术成果
+const valueTwo = () => {
+  formFields.value = [
+    { label: '类型', model: 'type', type: 'select' },
+    { label: '企业名称', model: 'company' },
+    { label: '联系人', model: 'contact' },
+    { label: '手机号', model: 'phone' },
+    { label: '电子邮箱', model: 'email' },
+    { label: 'qq&微信', model: 'qqwx' },
+    { label: '成果名称', model: 'name' },
+    { label: '所属领域', model: 'field', type: 'select' },
+    { label: '合作方式', model: 'cooperation', type: 'select' },
+    { label: '成果状态', model: 'achievestatus', type: 'select' },
+    { label: '成果权属', model: 'achieveown' },
+    { label: '成果来源', model: 'achievesource', type: 'select' },
+    { label: '意向价格', model: 'intentionprice' },
+    { label: '专利信息', model: 'patent', custom: true }, //Array
+    { label: '项目路演', model: 'roadshow', custom: true }, //Array
+    { label: '成果简介', model: 'achievebrief', type: 'textarea' },
+    { label: '技术特点', model: 'features' },
+    { label: '技术团队', model: 'team' },
+    { label: '商业预期', model: 'expect' },
+    { label: '合作条件及要求', model: 'condition' },
+    { label: '产品图片(6)', model: 'file', custom: true },
+    { label: '状态', model: 'status', type: 'select' }
+  ];
+};
+// 商务服务
+const valueThr = () => {
+  formFields.value = [
+    { label: '类型', model: 'type', type: 'select' },
+    { label: '企业名称', model: 'company' },
+    { label: '联系人', model: 'contact' },
+    { label: '手机号', model: 'phone' },
+    { label: '电子邮箱', model: 'email' },
+    { label: 'qq&微信', model: 'qqwx' },
+    { label: '信息名称', model: 'name' },
+    { label: '信息属性', model: 'messattribute', type: 'select' },
+    { label: '需求程度', model: 'demand', type: 'select' },
+    { label: '信息描述', model: 'informationdesc', type: 'textarea' },
+    { label: '核心要素', model: 'coreelements' },
+    { label: '价格信息', model: 'priceinfo' },
+    { label: '商业预期', model: 'expect' },
+    { label: '状态', model: 'status', type: 'select' }
+  ];
+};
+const onUpload = (e: { model: string; value: Array<[]> }) => {
+  const { model, value } = e;
+  form.value[model] = value;
+};
+// 提交
+const onSubmit = async (data) => {
+  let res: IQueryResult;
+  if (data._id) res = await product.update(data);
+  else res = await product.create(data);
+  if (res.errcode == 0) {
+    ElMessage({ type: `success`, message: `维护信息成功` });
+    toBack();
+  }
+};
+
+// 返回上一页
+const toBack = () => {
+  window.history.go(-1);
+};
+
+const searchOther = async () => {
+  let res: IQueryResult;
+  // 类型
+  res = await dictData.query({ type: 'product_type' });
+  if (res.errcode == 0) product_typeList.value = res.data;
+  // 状态
+  res = await dictData.query({ type: 'product_status' });
+  if (res.errcode == 0) statusList.value = res.data;
+  // 信息属性
+  res = await dictData.query({ type: 'product_messattribute' });
+  if (res.errcode == 0) product_messattributeList.value = res.data;
+  // 成果来源
+  res = await dictData.query({ type: 'product_achievesource' });
+  if (res.errcode == 0) product_achievesourceList.value = res.data;
+  // 成果状态
+  res = await dictData.query({ type: 'product_achievestatus' });
+  if (res.errcode == 0) product_achievestatusList.value = res.data;
+  // 合作方式
+  res = await dictData.query({ type: 'product_cooperation' });
+  if (res.errcode == 0) product_cooperationList.value = res.data;
+  // 所属领域
+  res = await dictData.query({ type: 'product_field' });
+  if (res.errcode == 0) product_fieldList.value = res.data;
+  // 需求紧急程度/需求程度
+  res = await dictData.query({ type: 'product_demand' });
+  if (res.errcode == 0) product_demandList.value = res.data;
+  // 专利信息状态
+  res = await dictData.query({ type: 'product_patent_status' });
+  if (res.errcode == 0) product_patent_statusList.value = res.data;
+};
+</script>
+<style scoped lang="scss"></style>

+ 165 - 21
src/views/product/index.vue

@@ -2,37 +2,181 @@
   <div id="index">
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
-        <el-col :span="24" class="one">系统首页</el-col>
+        <el-col :span="24" class="one">
+          <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch">
+            <template #status>
+              <el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
+            </template>
+            <template #type>
+              <el-option v-for="i in product_typeList" :key="i.value" :label="i.label" :value="i.value"></el-option>
+            </template>
+          </cSearch>
+        </el-col>
+        <el-col :span="24" class="two">
+          <cButton @toAdd="toAdd()"> </cButton>
+        </el-col>
+        <el-col :span="24" class="thr">
+          <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @view="toView" @exam="toExam" @edit="toEdit" @del="toDel">
+          </cTable>
+        </el-col>
       </el-col>
     </el-row>
+    <cDialog :dialog="dialog" @handleClose="toClose">
+      <template v-slot:info>
+        <cForm v-if="dialog.type == '1'" :span="24" :fields="formFields" :form="form" :rules="{}" @save="onSubmit">
+          <template #status>
+            <el-option v-for="(i, index) in statusList" :key="index" :label="i.label" :value="i.value"></el-option>
+          </template>
+        </cForm>
+      </template>
+    </cDialog>
   </div>
 </template>
-
-<script setup lang="ts">
-// 基础
+<script lang="ts" setup>
+import _ from 'lodash';
 import type { Ref } from 'vue';
-// reactive,
-import { onMounted, ref, getCurrentInstance } from 'vue';
+import { ref, onMounted, getCurrentInstance } from 'vue';
+import { useRouter } from 'vue-router';
+import { ElMessage } from 'element-plus';
+
 // 接口
-//import { TestStore } from '@common/src/stores/test';
-//import type { IQueryResult } from '@/util/types.util';
-//const testAxios = TestStore();
+import { ProductStore } from '@common/src/stores/allAdmin/product';
+import { DictDataStore } from '@common/src/stores/system/dictData'; // 字典表
+import type { IQueryResult } from '@/util/types.util';
+const product = ProductStore();
+const dictData = DictDataStore();
+
 const { proxy } = getCurrentInstance() as any;
+
+// 路由
+const router = useRouter();
+
 // 加载中
-const loading: Ref<any> = ref(false);
-// 分页数据
-//  const skip = 0;
-//  const limit = proxy.limit;;
-// 请求
+const loading = ref(false);
+// 列表数据
+let list: Ref<any> = ref([]);
+// 总数
+let total: Ref<number> = ref(0);
+let skip = 0;
+let limit: number = proxy.$limit;
+// 列表
+let fields: Ref<any[]> = ref([
+  { label: '类型', model: 'type', format: (i) => getDict(i, 'type'), isSearch: true, type: 'select' },
+  { label: '企业名称', model: 'company', isSearch: true },
+  { label: '联系人', model: 'contact', isSearch: true },
+  { label: '手机号', model: 'phone', isSearch: true },
+  { label: '电子邮箱', model: 'email' },
+  { label: 'qq&微信', model: 'qqwx' },
+  { label: '状态', model: 'status', format: (i) => getDict(i, 'status'), isSearch: true, type: 'select' }
+]);
+// 操作
+let opera: Ref<any[]> = ref([
+  { label: '查看', method: 'view', type: 'success' },
+  { label: '状态', method: 'exam' },
+  { label: '修改', method: 'edit' },
+  { label: '删除', method: 'del', confirm: true, type: 'danger' }
+]);
+const dialog: Ref<{ type: string; show: boolean; title: string }> = ref({ type: '1', show: false, title: '信息管理' });
+let form: Ref<any> = ref({});
+// 表单
+let formFields: Ref<any[]> = ref([{ label: '状态', model: 'status', type: 'select' }]);
+// 查询数据
+let searchForm: Ref<any> = ref({});
+// 字典表
+let statusList: Ref<any> = ref([]);
+let product_typeList: Ref<any> = ref([]);
 onMounted(async () => {
   loading.value = true;
-  //  await search({ skip, limit });
+  await searchOther();
+  await search({ skip, limit });
   loading.value = false;
 });
-//const search = async (e: { skip: number; limit: number }) => {
-//  const info = { skip: e.skip, limit: e.limit, ...searchInfo.value  };
-//  const res: IQueryResult = await testAxios.query(info);
-//  console.log(res);
-//};
+// 查询
+const search = async (e: { skip: number; limit: number }) => {
+  const { skip, limit } = e;
+  const condition = _.cloneDeep(searchForm.value);
+  let info = { limit: limit, skip: skip, ...condition };
+  let res: IQueryResult = await product.query(info);
+  if (res.errcode == 0) {
+    list.value = res.data;
+    total.value = res.total;
+  }
+};
+const toSearch = (query) => {
+  searchForm.value = query;
+  search({ skip, limit });
+};
+const getDict = (e, model) => {
+  if (model == 'status') {
+    let data: any = statusList.value.find((i: any) => i.value == e);
+    if (data) return data.label;
+    else return '暂无';
+  } else if (model == 'type') {
+    let data: any = product_typeList.value.find((i: any) => i.value == e);
+    if (data) return data.label;
+    else return '暂无';
+  }
+};
+// 新增
+const toAdd = () => {
+  router.push({ path: '/product/detail' });
+};
+// 修改
+const toEdit = async (data) => {
+  router.push({ path: '/product/detail', query: { id: data._id } });
+};
+const toView = (data) => {
+  router.push({ path: '/product/detail', query: { id: data._id, isdisabled: `${true}` } });
+};
+const toExam = async (data) => {
+  let res: IQueryResult = await product.fetch(data._id);
+  if (res.errcode == 0) {
+    form.value = res.data;
+    dialog.value = { title: '信息管理', show: true, type: '1' };
+  }
+};
+// 提交
+const onSubmit = async (data) => {
+  let res: IQueryResult = await product.update(data);
+  if (res.errcode == 0) {
+    ElMessage({ type: `success`, message: `审核成功` });
+    toClose();
+  } else {
+    ElMessage({ type: `error`, message: `${res.errmsg}` });
+  }
+};
+// 弹框关闭
+const toClose = () => {
+  form.value = {};
+  searchForm.value = {};
+  dialog.value = { title: '信息管理', show: false, type: '1' };
+  search({ skip, limit });
+};
+// 删除
+const toDel = async (data) => {
+  let res: IQueryResult = await product.del(data._id);
+  if (res.errcode == 0) {
+    ElMessage({ type: `success`, message: `刪除信息成功` });
+    search({ skip, limit });
+  }
+};
+const searchOther = async () => {
+  let res: IQueryResult;
+  // 状态
+  res = await dictData.query({ type: 'product_status' });
+  if (res.errcode == 0) statusList.value = res.data;
+  // 类型
+  res = await dictData.query({ type: 'product_type' });
+  if (res.errcode == 0) product_typeList.value = res.data;
+};
 </script>
-<style scoped lang="scss"></style>
+<style lang="scss" scoped>
+.main {
+  .one {
+    margin: 0 0 10px 0;
+  }
+  .two {
+    margin: 0 0 10px 0;
+  }
+}
+</style>

+ 3 - 12
tsconfig.json

@@ -20,23 +20,14 @@
     "moduleResolution": "node",
     "baseUrl": ".",
     "paths": {
-      "@/*": [
-        "./src/*"
-      ],
-      "@common/*": [
-        "../common/*"
-      ]
+      "@/*": ["./src/*"],
+      "@common/*": ["../common/*"]
     },
     "isolatedModules": false,
     "sourceMap": true,
     "resolveJsonModule": true,
     "esModuleInterop": true,
-    "lib": [
-      "es5",
-      "es6",
-      "dom",
-      "dom.iterable"
-    ],
+    "lib": ["es5", "es6", "dom", "dom.iterable"],
     "allowSyntheticDefaultImports": true
   },
   "references": [

+ 2 - 9
tsconfig.node.json

@@ -1,16 +1,9 @@
 {
   "extends": "@vue/tsconfig/tsconfig.node.json",
-  "include": [
-    "vite.config.*",
-    "vitest.config.*",
-    "cypress.config.*",
-    "playwright.config.*"
-  ],
+  "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"],
   "compilerOptions": {
     "ignoreDeprecations": "5.0",
     "composite": true,
-    "types": [
-      "node"
-    ]
+    "types": ["node"]
   }
 }