소스 검색

修改截止日期查询

noob 3 년 전
부모
커밋
6d7d484328
2개의 변경된 파일17개의 추가작업 그리고 11개의 파일을 삭제
  1. 2 2
      src/pages/main/performance/components/sheet.vue
  2. 15 9
      src/pages/main/performance/issue.vue

+ 2 - 2
src/pages/main/performance/components/sheet.vue

@@ -2,14 +2,14 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-26 17:05:12
+ * @LastEditTime : 2021-12-26 17:31:03
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 
 <template>
     <div class="sheet-container">
         <div class="flex-justify-align-end margin-bottom-20">
-            <el-button type="primary" @click="handleVisible"
+            <el-button type="primary" @click="handleVisible" v-if="['template'].includes(attribute)"
                 >权限设置</el-button
             >
             <el-button type="primary" @click="handleDownload">导出</el-button>

+ 15 - 9
src/pages/main/performance/issue.vue

@@ -43,15 +43,16 @@
                 :id="edit_rows.id"
                 attribute="order"
             />
-            <simpleSheet
+            <!-- 目前不支持 下发的编辑 -->
+            <!-- <simpleSheet
                 v-if="template_visible && !isCheck"
                 :id="edit_rows.id"
                 attribute="order"
                 type="edit"
-            />
+            /> -->
             <template v-slot:footer><div></div></template>
         </simple-dialog>
-        <simple-dialog
+        <!-- <simple-dialog
             title="回复详情"
             width="700px"
             @cancel="handleVisible('principalName')"
@@ -64,7 +65,7 @@
                 :loading="receiver_table_loading"
                 @receiver="handleVisible('principalName')"
             ></simple-table>
-        </simple-dialog>
+        </simple-dialog> -->
     </div>
 </template>
 
@@ -114,10 +115,10 @@ export default {
                     label: "查看",
                     props: "detail",
                 },
-                {
-                    label: "修改",
-                    props: "edit",
-                },
+                // {
+                //     label: "修改",
+                //     props: "edit",
+                // },
                 {
                     label: "撤回",
                     props: "withdraw",
@@ -185,7 +186,12 @@ export default {
                 headers: {
                     "Content-Type": "application/json",
                 },
-                data: data,
+                data: {
+                    ...data,
+                    endTime:
+                        data.endTime &&
+                        this.$formatDate(data.endTime, "YYYY-MM-DD"),
+                },
             }).then(({ data: { data, count } }) => {
                 this.total = count;
                 this.table_list = data;