Эх сурвалжийг харах

员工档案信息编辑返回按钮增加

duy 2 жил өмнө
parent
commit
a83e631580

+ 11 - 3
src/views/attendance/business-trip/index.vue

@@ -45,7 +45,7 @@
               <div class="table_box">
                 <HcTable :column="drafttableColumn" :datas="drafttableData" ui="hc-test-drop-table" isRowDrop isSort @row-drop="rowDropTap" @row-sort="rowSortTap">
                   <template #action="{row, index}">
-                    <el-button hc-btn type="primary" size="small">继续编辑</el-button>
+                    <el-button hc-btn type="primary" size="small" @click="editinfoClick(row)">继续编辑</el-button>
                     <el-button hc-btn type="primary" size="small">删除</el-button>
                   </template>
                 </HcTable>
@@ -74,7 +74,7 @@ const tableColumn = [
     {key: 'key8', name: '审批状态'},
     {key: 'key9', name: '创建人'},
     {key: 'key10', name: '创建时间'},
-    {key: 'action', name: '操作',widths:120},
+    {key: 'action', name: '操作',widths:100},
 
 
 ]
@@ -148,7 +148,6 @@ const toImportTempClick=()=>{
 
 }
 //编辑出差申请
-
 const addinfoClick=()=>{
   router.push({
         name: 'attendance-business-trip-info',
@@ -157,6 +156,15 @@ const addinfoClick=()=>{
         }
     })
 }
+const editinfoClick=(row)=>{
+  importModal.value=false
+  router.push({
+        name: 'attendance-business-trip-info',
+        query: {
+            type: 'edit'
+        }
+    })
+}
 </script>
 <style lang='scss' scoped>
 </style>

+ 0 - 17
src/views/attendance/business-trip/info.vue

@@ -102,23 +102,6 @@
                   </el-form>
               </el-scrollbar>
           </div>
-          <!-- <div class="right-box">
-              <el-scrollbar class="hc--right-15">
-                <div class="right-box-title">流程</div>
-                  <el-timeline class="p-1">
-                      <el-timeline-item v-for="(item, index) in timeLineData" :key="index" :type="item.type">
-                          <div class="hac-time-line-box">
-                              <div class="hac-time-line-title-box">
-                                  <div class="title">{{item.title}}</div>
-                              </div>
-                              <div class="hac-time-line-time">
-                                  <span class="time">{{item.time}}</span>
-                              </div>
-                          </div>
-                      </el-timeline-item>
-                  </el-timeline>
-              </el-scrollbar>
-          </div> -->
           <div class="right-box">
             <div class="record-flow-box">
                 <div class="title">流程</div>

+ 21 - 1
src/views/people/archive/info.vue

@@ -305,7 +305,19 @@
                         </el-form-item>
                     </el-col>
                 </el-row>
-     </el-form>
+    </el-form>
+    <template #action>
+        <div style="text-align: center;">
+            <el-button size="large" type="info" hc-btn @click="goBackClick">
+                <HcIcon name="arrow-go-back"/>
+                <span>取消并返回</span>
+            </el-button>
+            <el-button size="large" type="primary" hc-btn >
+                <HcIcon name="check-double"/>
+                <span>提交保存</span>
+            </el-button>
+        </div>
+    </template>
    </HcCard>
 </template>
 
@@ -313,11 +325,19 @@
 import {ref, watch} from  'vue'
 import {getTokenHeader} from "~src/api/request/header";
 import {getObjValue} from "js-fast-way"
+import {useRouter, useRoute} from 'vue-router'
+
+//初始变量
+const router = useRouter()
 
 const formRef = ref(null)
 const formModel = ref({})
 const formRules = {
     
+}
+//返回
+const goBackClick = () => {
+    router.back()
 }
 //学历
 const educationalOptions=ref([