|
|
@@ -45,7 +45,6 @@
|
|
|
</div>
|
|
|
</popup>
|
|
|
|
|
|
- <tipPopup v-model:show="showTipPopupValue" type="success" text="您已成功上传照片" hideBtn />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -56,7 +55,6 @@ import { getFileExt } from "@/utils/util";
|
|
|
import UploadFile from "@/utils/upliadFile";
|
|
|
import { useStore } from "vuex";
|
|
|
import { useRouter } from "vue-router";
|
|
|
-import tipPopup from "@/components/popup/tipPopup.vue";
|
|
|
|
|
|
const store = useStore();
|
|
|
const miniUserId = store.state.home.miniUserId;
|
|
|
@@ -71,7 +69,6 @@ const props = defineProps({
|
|
|
|
|
|
const showValue = ref(false);
|
|
|
const failImgs = ref(false);
|
|
|
-const showTipPopupValue = ref(false);
|
|
|
const fileList = ref([]);
|
|
|
const fileArr = ref([]);
|
|
|
const executeTime = ref("");
|
|
|
@@ -119,19 +116,11 @@ function closeTask() {
|
|
|
}
|
|
|
VE_API.report.addExecuteImgAndComplete(params).then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
- if (isShare.value) {
|
|
|
- showValue.value = false;
|
|
|
- showTipPopupValue.value = true;
|
|
|
- setTimeout(() => {
|
|
|
- emit('executeSuccess');
|
|
|
- }, 800)
|
|
|
- } else {
|
|
|
- ElMessage.success('上传成功')
|
|
|
- setTimeout(() => {
|
|
|
- showValue.value = false;
|
|
|
- router.replace('/agri_record')
|
|
|
- }, 800)
|
|
|
- }
|
|
|
+ ElMessage.success('上传成功')
|
|
|
+ showValue.value = false;
|
|
|
+ setTimeout(() => {
|
|
|
+ emit('executeSuccess');
|
|
|
+ }, 800)
|
|
|
} else {
|
|
|
ElMessage.error(res.msg)
|
|
|
}
|
|
|
@@ -162,11 +151,9 @@ function handleRemind() {
|
|
|
}
|
|
|
|
|
|
const recordId = ref(null);
|
|
|
-const isShare = ref(false);
|
|
|
-function openPopup(id, isHideDraw) {
|
|
|
+function openPopup(id) {
|
|
|
showValue.value = true;
|
|
|
recordId.value = id;
|
|
|
- isShare.value = isHideDraw;
|
|
|
}
|
|
|
|
|
|
defineExpose({
|