Selaa lähdekoodia

1.综合智慧云app退出优化 2.通知公告详情文件类型图片标签调整

wangtao 1 kuukausi sitten
vanhempi
commit
23242305b6

+ 0 - 1
src/pages/business/oa/approval/index.vue

@@ -137,7 +137,6 @@
       state.formList = res.data;
       for(let i=0;i<state.formList.length;i++){
         state.formList[i].icon = prefix + `images/oa/${state.formList[i].formImage}.png`
-        console.log(state.formList[i].icon)
       }
       state.appContent[0].array = state.formList
     })

+ 2 - 2
src/pages/common/appMessage/index.vue

@@ -136,7 +136,7 @@ function noticeDelete(e) {
         noticeList.value.splice(i,1);
       }
     }
-    proxy.$modal.msgSuccess("删除成功");
+    proxy.$modal.msg("删除成功");
   })
 }
 
@@ -265,7 +265,7 @@ onNavigationBarButtonTap((e) => {
       color: #666666;
     }
     .sign{
-      width:16%;
+      width:18%;
       margin-right:4%;
       text-align: right;
       .badge {

+ 11 - 9
src/pages/common/appMessage/nociteDetails.vue

@@ -24,14 +24,14 @@
       <view class="view-wrap" v-if="data.fileUrl">
           <view v-for="(item, index) in JSON.parse(data.fileUrl)" :key="index" class="fileImg">
             <a :href="item.url" style="color: #333;">
-              <img src="@/static/images/system/doc.svg" alt="" v-if="item.name.split('.').pop() == 'doc'">
-              <img src="@/static/images/system/docx.svg" alt="" v-if="item.name.split('.').pop() == 'docx'">
-              <img src="@/static/images/system/pdf.svg" alt="" v-if="item.name.split('.').pop() == 'pdf'">
-              <img src="@/static/images/system/ppt.svg" alt="" v-if="item.name.split('.').pop() == 'ppt'">
-              <img src="@/static/images/system/pptx.svg" alt="" v-if="item.name.split('.').pop() == 'pptx'">
-              <img src="@/static/images/system/xls.svg" alt="" v-if="item.name.split('.').pop() == 'xls'">
-              <img src="@/static/images/system/xlsx.svg" alt="" v-if="item.name.split('.').pop() == 'xlsx'">
-              <img src="@/static/images/system/zip.svg" alt="" v-if="item.name.split('.').pop() == 'zip'">
+              <image src="/static/images/system/doc.svg" alt="" v-if="item.name.split('.').pop() == 'doc'" />
+              <image src="/static/images/system/docx.svg" alt="" v-if="item.name.split('.').pop() == 'docx'" />
+              <image src="/static/images/system/pdf.svg" alt="" v-if="item.name.split('.').pop() == 'pdf'" />
+              <image src="/static/images/system/ppt.svg" alt="" v-if="item.name.split('.').pop() == 'ppt'" />
+              <image src="/static/images/system/pptx.svg" alt="" v-if="item.name.split('.').pop() == 'pptx'" />
+              <image src="/static/images/system/xls.svg" alt="" v-if="item.name.split('.').pop() == 'xls'" />
+              <image src="/static/images/system/xlsx.svg" alt="" v-if="item.name.split('.').pop() == 'xlsx'" />
+              <image src="/static/images/system/zip.svg" alt="" v-if="item.name.split('.').pop() == 'zip'" />
               <span>{{ item.name }}</span>
             </a>
           </view>
@@ -100,8 +100,10 @@ onShow(() => {
     font-weight: 600;
   }
   .fileImg{
-    img{
+    height:auto;
+    image{
       width:20px;
+      height:20px;
       vertical-align: middle;
     }
     span{

+ 4 - 13
src/store/modules/setting.js

@@ -394,19 +394,10 @@ const settingStores = defineStore("storage-setting", {
                     }
                 });
             } else {
-                modal.confirmInput("确定注销并退出系统吗?", "请输入密码").then((res) => {
-                    if (res.confirm) {
-                        if (!res.content) {
-                            modal.msg("请输入密码")
-                        } else if (res.content == "sh628628") {
-                            useStore.LogOut().then(() => {
-                                modal.msgSuccess("退出成功")
-                                tab.reLaunch("/pages/index");
-                            });
-                        } else {
-                            modal.msg("密码错误")
-                        }
-                    }
+                modal.confirm("确定注销并退出系统吗?").then(() => {
+                    useStore.LogOut().then(() => {
+                        tab.reLaunch("/pages/index");
+                    });
                 });
             }
             //#endif