jwyu 2 years ago
parent
commit
de7f593baa
1 changed files with 28 additions and 0 deletions
  1. 28 0
      src/views/report/chapter/components/EditChapterBaseInfo.vue

+ 28 - 0
src/views/report/chapter/components/EditChapterBaseInfo.vue

@@ -84,6 +84,18 @@ function handleConfirmReportTitle(){
     showReportTitlePop.value=false
     showReportTitlePop.value=false
 }
 }
 
 
+//作者
+const showReportAuthorPop=ref(false)
+const temReportAuthorVal=ref('')
+function handleShowReportAuthor(){
+    temReportAuthorVal.value=baseInfo.author
+    showReportAuthorPop.value=true
+}
+function handleConfirmReportAuthor(){
+    baseInfo.author=temReportAuthorVal.value
+    showReportAuthorPop.value=false
+}
+
 
 
 
 
 
 
@@ -145,6 +157,7 @@ function handleSave(){
                 title="创建人" 
                 title="创建人" 
                 is-link 
                 is-link 
                 :value="baseInfo.author"
                 :value="baseInfo.author"
+                @click="handleShowReportAuthor"
             />
             />
             <van-cell 
             <van-cell 
                 value-class="cell-con" 
                 value-class="cell-con" 
@@ -206,6 +219,21 @@ function handleSave(){
         </div>
         </div>
     </van-popup>
     </van-popup>
 
 
+    <!-- 作者 -->
+    <van-popup
+        v-model:show="showReportAuthorPop"
+        position="bottom"
+        :style="{ height: '100%' }"
+    >
+        <div class="input-report-title-pop">
+             <van-field v-model="temReportAuthorVal" placeholder="请输入作者" />
+            <div class="bot-btns">
+                <van-button class="bot-btn" type="default" @click="showReportAuthorPop=false">取消</van-button>
+                <van-button class="bot-btn" type="primary" :disabled="!temReportAuthorVal" @click="handleConfirmReportAuthor">确定</van-button>
+            </div>
+        </div>
+    </van-popup>
+
     <!-- 选择晨报的指标 -->
     <!-- 选择晨报的指标 -->
     <van-popup
     <van-popup
         v-model:show="showTicketPop"
         v-model:show="showTicketPop"