zs 1 gadu atpakaļ
vecāks
revīzija
428e561070

+ 9 - 7
src/views/order/detail.vue

@@ -18,8 +18,10 @@
             </el-col>
             <el-col :span="24" class="two_2">
               <el-col :span="6" class="left">
-                <el-image v-if="info.spec_file" class="image" :src="info.spec_file && info.spec_file.length > 0 ? info.spec_file[0].url : ''" />
-                <el-image v-else class="image" :src="info.good_file && info.good_file.length > 0 ? info.good_file[0].url : ''" />
+                <el-image v-if="info.spec_file" class="image"
+                  :src="info.spec_file && info.spec_file.length > 0 ? info.spec_file[0].url : ''" />
+                <el-image v-else class="image"
+                  :src="info.good_file && info.good_file.length > 0 ? info.good_file[0].url : ''" />
               </el-col>
               <el-col :span="18" class="right">
                 <el-col :span="24" class="name">
@@ -142,15 +144,15 @@ const search = async () => {
 const searchDict = async (e, model) => {
   let data;
   if (model == 'status') {
-    data = statusList.value.find((i) => i.value == e);
+    data = statusList.value.find((i: any) => i.value == e);
     if (data) return data.label;
     else return '暂无';
   } else if (model == 'type') {
-    data = typeList.value.find((i) => i.value == e);
+    data = typeList.value.find((i: any) => i.value == e);
     if (data) return data.label;
     else return '暂无';
   } else {
-    data = roleList.value.find((i) => i.code == e);
+    data = roleList.value.find((i: any) => i.code == e);
     if (data) return data.name;
     else return '暂无';
   }
@@ -179,6 +181,7 @@ const toBack = () => {
   flex-direction: column;
   align-items: center;
 }
+
 .two {
   width: 100%;
   display: flex;
@@ -301,5 +304,4 @@ const toBack = () => {
   .right {
     text-align: right;
   }
-}
-</style>
+}</style>

+ 2 - 2
src/views/system/money/index.vue

@@ -164,12 +164,12 @@ const getProps = (data: any, prop: any) => {
   let res;
   if (prop == 'leader') {
     for (const val of data[prop]) {
-      res = ldList.value.find((i) => i._id == val._id);
+      res = ldList.value.find((i: any) => i._id == val._id);
       if (res) list.push(res.name);
     }
   } else {
     for (const val of data[prop]) {
-      res = kjList.value.find((i) => i._id == val._id);
+      res = kjList.value.find((i: any) => i._id == val._id);
       if (res) list.push(res.name);
     }
   }

+ 1 - 1
src/views/system/role/index.vue

@@ -82,7 +82,7 @@ const toAdd = async () => {
   router.push({ path: '/system/role/detail' });
 };
 // 修改
-const toEdit = async (data) => {
+const toEdit = async (data: any) => {
   router.push({ path: '/system/role/detail', query: { id: data._id } });
 };
 // 删除

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

@@ -128,7 +128,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除

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

@@ -129,7 +129,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除

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

@@ -128,7 +128,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除

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

@@ -129,7 +129,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除

+ 3 - 3
src/views/users/thr/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;
@@ -118,7 +118,7 @@ const toExam = async (data) => {
   }
 };
 // 提交保存
-const toSave = async (data) => {
+const toSave = async (data: any) => {
   let res: IQueryResult = await userAxios.update(data);
   if (res.errcode == '0') {
     ElMessage({ message: '信息审核成功', type: 'success' });
@@ -128,7 +128,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除

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

@@ -124,7 +124,7 @@ const toSave = async (data) => {
   }
 };
 // 修改
-const toEdit = (data) => {
+const toEdit = (data: any) => {
   router.push({ path: '/users/detail', query: { id: data._id } });
 };
 // 删除