zs 1 jaar geleden
bovenliggende
commit
d08cd2304c

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

@@ -71,7 +71,7 @@ const toSearch = (query: any) => {
   searchForm.value = query;
   search({ skip, limit });
 };
-const getDict = (e, model) => {
+const getDict = (e: any, model: any) => {
   if (model == 'is_use') {
     let data: any = is_useList.value.find((i: any) => i.value == e);
     if (data) return data.label;

+ 1 - 1
src/views/updatepd/index.vue

@@ -54,7 +54,7 @@ onMounted(async () => {
 });
 // 提交保存
 const toSave = async (data: any) => {
-  let user = store.state.user;
+  let user: any = store.state.user;
   let res: IQueryResult = await adminAxios.rp({ _id: user._id, password: data.password });
   if (res.errcode == '0') {
     ElMessage({ type: 'success', message: '修改密码成功' });

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

@@ -95,7 +95,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;

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

@@ -95,7 +95,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;

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

@@ -94,7 +94,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;

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

@@ -95,7 +95,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;

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

@@ -94,7 +94,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;