|
|
@@ -43,7 +43,9 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
<div v-else class="box-bottom" :style="{ justifyContent: !isLink ? 'center' : 'flex-end' }">
|
|
|
- <div class="edit-btn" v-if="!isLink" @click="handleEditQuestion">编辑问题</div>
|
|
|
+ <template v-if="!isLink">
|
|
|
+ <div v-has-permission="'农事规划'" class="edit-btn" @click="handleEditQuestion">编辑问题</div>
|
|
|
+ </template>
|
|
|
<template v-else>
|
|
|
<div class="edit-btn" @click="handleAnswerClick(0)">否</div>
|
|
|
<div class="edit-btn primary-btn" @click="handleAnswerClick(1)">是</div>
|
|
|
@@ -110,7 +112,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import customHeader from "@/components/customHeader.vue";
|
|
|
-import { ref, onActivated } from "vue";
|
|
|
+import { ref, onActivated, computed } from "vue";
|
|
|
import { base_img_url2, resize_300 } from "@/api/config";
|
|
|
import FnShareSheet from "@/components/pageComponents/FnShareSheet.vue";
|
|
|
import activeUploadPopup from "@/components/popup/activeUploadPopup.vue";
|
|
|
@@ -442,7 +444,6 @@ const handleEditQuestion = () => {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
gap: 10px;
|
|
|
- margin-top: 10px;
|
|
|
.edit-btn {
|
|
|
padding: 7px 20px;
|
|
|
background: rgba(33, 153, 248, 0.1);
|
|
|
@@ -450,6 +451,7 @@ const handleEditQuestion = () => {
|
|
|
border-radius: 25px;
|
|
|
font-size: 12px;
|
|
|
text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
&.primary-btn {
|
|
|
background: #2199f8;
|
|
|
color: #fff;
|