Przeglądaj źródła

信息沟通权限、首页功能排序、附件上传微信控制单选

cyy 1 rok temu
rodzic
commit
b8ec384a2b

+ 8 - 3
src/business/platform/file/uploader/index.vue

@@ -54,7 +54,7 @@
           <van-tab :title="$t('components.uploader.uploadingTitle')">
             <div class="ibps-p-15">
               <van-uploader :after-read="onAfterRead" :before-read="onBeforeRead" :accept="accept" :max-size="maxSize"
-                :multiple="multiple">
+                :multiple="isWX()?false:multiple">
                 <van-button plain block type="info" icon="add-o">请上传文件</van-button>
               </van-uploader>
             </div>
@@ -256,7 +256,7 @@
         previewFileList: {},
 
         selectorValue: [], // 选中的附件
-        showDetailPopup: false
+        showDetailPopup: false,
       }
     },
 
@@ -564,7 +564,12 @@
         this.$emit('before-read', file)
         return true
       },
-
+      isGoogleChrome() {
+        return /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) && !/MicroMessenger/.test(navigator.userAgent);
+      },
+      isWX() {
+        return /MicroMessenger/.test(navigator.userAgent);
+      },
       onAfterRead(file) {
         if (file.length > 0) {
           for (let i = 0; i < file.length; i++) {

+ 3 - 3
src/views/platform/bpmn/communication/communication.vue

@@ -88,7 +88,7 @@
                     label-width="6em"
                     :value="form.gouTongLeiXing"
                     :readonly="typeValue != 3 && typeValue != 4 ? true : false"
-                    @click="sheetShow = true"
+                    @click="typeValue == 3 || typeValue == 4 ? sheetShow = true:''"
                 />
                 <van-popup v-model="sheetShow" position="bottom">
                     <van-picker
@@ -115,7 +115,7 @@
                     label-width="6em"
                     :value="form.gouTongRiQi"
                     :readonly="typeValue != 3 && typeValue != 4 ? true : false"
-                    @click="gouTongRiQiClick(form.gouTongRiQi)"
+                    @click="typeValue == 3 || typeValue == 4 ?gouTongRiQiClick(form.gouTongRiQi):''"
                 />
                 <van-popup v-model="timeShow" position="bottom">
                     <van-datetime-picker
@@ -169,7 +169,7 @@
                 label="用户确认"
                 class="yonghu"
                 placeholder=" "
-                :readonly="typeValue == 3 && typeValue == 4 ? true : false"
+                :readonly="typeValue != 3 && typeValue != 4 ? true : false"
             />
             <van-cell-group v-if="typeValue != 3 && typeValue != 4">
                 <div class="verticalLine" style="width:8em;padding: 1em 0;">

+ 1 - 0
src/views/system/dashboard/index.vue

@@ -264,6 +264,7 @@ export default {
             const listData = data.filter(d => {
               return d.id !== '0'
             })
+            listData.sort((a, b) => a.id*1 - b.id*1);
             this.dashboards = TreeUtils.transformToTreeFormat(listData, {
               idKey: this.idKey,
               parentIdKey: this.parentIdKey,