noob 3 лет назад
Родитель
Сommit
7a45125706

+ 8 - 7
src/pages/main/performance/components/sheet.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-26 18:36:26
+ * @LastEditTime : 2021-12-26 19:13:15
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 
@@ -32,8 +32,10 @@
                     type="primary"
                     @click="handleSave"
                     :disabled="handleForbid()"
-                    >{{ id ? "提交" : "新增"
-                    }}{{ handleForbid() ? `(请先设置权限)` : "" }}</el-button
+                    ><span>{{ id ? "提交" : "新增" }}</span
+                    ><span>{{
+                        handleForbid() ? `(请先设置权限)` : ""
+                    }}</span></el-button
                 >
             </template>
         </div>
@@ -163,7 +165,6 @@ export default {
             default: "template", // template 模板 order 工单 file 文件
         },
         id: {
-            type: Number,
             default: null,
         },
     },
@@ -364,13 +365,13 @@ export default {
             let edit_url = "";
             switch (this.attribute) {
                 case "template":
-                    edit_url = ""
+                    edit_url = "";
                     break;
                 case "order":
-                    edit_url = "/market/CMKIssued/CMKIssuedSubmit";
+                    edit_url = "";
                     break;
                 case "file":
-                    edit_url = "";
+                    edit_url = "/market/CMKIssued/CMKIssuedSubmit";
                     break;
             }
             const sheet_name = window.luckysheet.getSheet().name;

+ 1 - 1
src/pages/main/performance/department.vue

@@ -72,7 +72,7 @@
           </div> -->
         </div>
         <!-- 主体部分 -->
-        <simple-sheet :id="edit_form.id" />
+        <simple-sheet v-if="visible" :id="edit_form.id" :type="edit_visible?'edit':'view'" attribute="file" />
         <!-- <analysis
           :edit="edit_form.department_status === '待处理' && edit_visible"
         /> -->