zs преди 1 година
родител
ревизия
debe7adbb7

+ 3 - 2
src/views/order/detail.vue

@@ -141,7 +141,7 @@ const search = async () => {
   }
 };
 // 查询字典表
-const searchDict = async (e, model) => {
+const searchDict = async (e: any, model: any) => {
   let data;
   if (model == 'status') {
     data = statusList.value.find((i: any) => i.value == e);
@@ -304,4 +304,5 @@ const toBack = () => {
   .right {
     text-align: right;
   }
-}</style>
+}
+</style>

+ 7 - 20
src/views/system/role/detail.vue

@@ -17,28 +17,15 @@
     <cDialog :dialog="dialog" @toClose="toClose">
       <template v-slot:info>
         <el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
-          <cForm :span="24" :fields="menuformfields" :form="menuform" :rules="menurules" @save="tomenuSave" label-width="auto">
+          <cForm :span="24" :fields="menuformfields" :form="menuform" :rules="menurules" @save="tomenuSave"
+            label-width="auto">
             <template #iconPath>
-              <cUpload
-                :model="`${'iconPath'}`"
-                :limit="1"
-                listType="picture"
-                url="/files/material/role/upload"
-                accept="*"
-                :list="menuform.iconPath"
-                @change="onUpload"
-              ></cUpload>
+              <cUpload :model="`${'iconPath'}`" :limit="1" listType="picture" url="/files/material/role/upload" accept="*"
+                :list="menuform.iconPath" @change="onUpload"></cUpload>
             </template>
             <template #selectedIconPath>
-              <cUpload
-                :model="`${'selectedIconPath'}`"
-                :limit="1"
-                listType="picture"
-                url="/files/material/role/upload"
-                accept="*"
-                :list="menuform.selectedIconPath"
-                @change="onUpload"
-              ></cUpload>
+              <cUpload :model="`${'selectedIconPath'}`" :limit="1" listType="picture" url="/files/material/role/upload"
+                accept="*" :list="menuform.selectedIconPath" @change="onUpload"></cUpload>
             </template>
           </cForm>
         </el-col>
@@ -126,7 +113,7 @@ const toSave = async (data: any) => {
 // 底部菜单保存
 const tomenuSave = async (data: any) => {
   if (data._id) {
-    let info = form.value.menu.filter((i) => i._id != data._id);
+    let info = form.value.menu.filter((i: any) => i._id != data._id);
     info.push({
       _id: moment().valueOf(),
       text: data.text,

+ 3 - 2
src/views/users/five/index.vue

@@ -6,7 +6,8 @@
           <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
         </el-col>
         <el-col :span="24" class="two">
-          <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @exam="toExam" @edit="toEdit" @del="toDel"> </cTable>
+          <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @exam="toExam"
+            @edit="toEdit" @del="toDel"> </cTable>
         </el-col>
       </el-col>
     </el-row>
@@ -110,7 +111,7 @@ const getDict = (e, model, type) => {
   }
 };
 // 审核
-const toExam = async (data) => {
+const toExam = async (data: any) => {
   let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;

+ 1 - 1
src/views/users/four/index.vue

@@ -111,7 +111,7 @@ const getDict = (e, model, type) => {
   }
 };
 // 审核
-const toExam = async (data) => {
+const toExam = async (data: any) => {
   let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;

+ 1 - 1
src/views/users/one/index.vue

@@ -110,7 +110,7 @@ const getDict = (e, model, type) => {
   }
 };
 // 审核
-const toExam = async (data) => {
+const toExam = async (data: any) => {
   let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;

+ 1 - 1
src/views/users/six/index.vue

@@ -111,7 +111,7 @@ const getDict = (e, model, type) => {
   }
 };
 // 审核
-const toExam = async (data) => {
+const toExam = async (data: any) => {
   let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;

+ 2 - 2
src/views/users/two/index.vue

@@ -90,7 +90,7 @@ const toSearch = (query: any) => {
   searchForm.value = query;
   search({ skip, limit });
 };
-const getDict = (e, model, type) => {
+const getDict = (e: any, model: any, type: any) => {
   if (type == 'dict') {
     let data: any = model.find((i: any) => i.value == e);
     if (data) return data.label;
@@ -106,7 +106,7 @@ const getDict = (e, model, type) => {
   }
 };
 // 审核
-const toExam = async (data) => {
+const toExam = async (data: any) => {
   let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;