2213980799@qq.com преди 1 година
родител
ревизия
45e60bfb3b
променени са 3 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 1 1
      src/views/doc/components/browse.vue
  2. 4 1
      src/views/doc/issue_doc/components/edit.vue
  3. 3 0
      src/views/doc/util.js

+ 1 - 1
src/views/doc/components/browse.vue

@@ -57,7 +57,7 @@ export default {
           row.outputNdsFiles;
           row.outputNdsFiles;
       } else {
       } else {
         this.fileUrl =
         this.fileUrl =
-          'http://aiot.zoomwin.com.cn:51001/kkfile/onlinePreview?url=' +
+          '/kkfile/onlinePreview?url=' +
           btoa(url);
           btoa(url);
         // 'http://192.168.1.107:18082/kkfile/onlinePreview?url=' + btoa(url);
         // 'http://192.168.1.107:18082/kkfile/onlinePreview?url=' + btoa(url);
       }
       }

+ 4 - 1
src/views/doc/issue_doc/components/edit.vue

@@ -83,7 +83,7 @@
         </el-col> -->
         </el-col> -->
         <el-col :span="12">
         <el-col :span="12">
           <el-form-item label="创建时间" prop="createTime">
           <el-form-item label="创建时间" prop="createTime">
-            <el-input v-model="form.createTime" disabled style="width: 60%">
+            <el-input v-model="form.createTime" disabled style="width: 46%">
             </el-input>
             </el-input>
             <el-checkbox
             <el-checkbox
               style="margin-left: 5px"
               style="margin-left: 5px"
@@ -473,6 +473,9 @@ export default {
       });
       });
       this.showEditFlag = true;
       this.showEditFlag = true;
     },
     },
+    disabledDate() {
+      return false;
+    },
     save() {
     save() {
       this.$refs.form.validate((valid) => {
       this.$refs.form.validate((valid) => {
         if (!valid) {
         if (!valid) {

+ 3 - 0
src/views/doc/util.js

@@ -10,6 +10,9 @@ export function isPower(data = {}, power, selection = []) {
     if (!data.id && selection.length == 0) {
     if (!data.id && selection.length == 0) {
         return false
         return false
     }
     }
+    if (power == 'add' && data.userAuthority.length == 0) { //文件夹默认开放新增权限
+        return true
+    }
     if (power == 'checkEnter' && data?.checkOutUserId != userId) { //检入特殊处理
     if (power == 'checkEnter' && data?.checkOutUserId != userId) { //检入特殊处理
         return false
         return false
     }
     }