Kaynağa Gözat

基础信息修改

duy 1 ay önce
ebeveyn
işleme
6b1c7b51d1
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      src/views/tentative/basic/rule.vue

+ 7 - 1
src/views/tentative/basic/rule.vue

@@ -11,7 +11,7 @@
         </template>
         <hc-card>
             <template #header>
-                {{ headerTitle }}
+                <el-link type="primary" @click="goBack"> <HcIcon v-if="isShowFile" name="arrow-left-s" class="mr-2" />{{ headerTitle }}</el-link>
             </template>
             <div v-if="!isShowFile" v-loading="ruleLoading" class="rule-box">
                 <div v-for="(item, index) in ruleItemOptions" :key="index" class="rule-box-item" @click="ruleDetailClick(item)">
@@ -160,6 +160,12 @@ const getFileDetail1 = async (id) => {
        pdfList.value = []
     }
 }
+const goBack = ()=>{
+    if (!isShowFile.value) return
+
+    isShowFile.value = !isShowFile.value
+     headerTitle.value = '规范文件夹'
+}
 </script>
 
 <style lang="scss" scoped>