位置信息加标签

pull/167/head
lihui_ocr 1 year ago
parent 303a8b0f90
commit ff103fe611

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { ref, watch } from "vue";
import * as XLSX from 'xlsx';
import * as XLSX from "xlsx";
defineProps({
data: {
@ -12,13 +12,13 @@ defineProps({
default: () => [[]],
},
});
const emit = defineEmits(["showModal","getrowValue"]);
const emit = defineEmits(["showModal", "getrowValue"]);
function showActionsModal() {
emit("showModal");
}
function getrowvalue(row){
emit("getrowValue",row);
function getrowvalue(row) {
emit("getrowValue", row);
}
</script>
@ -37,13 +37,27 @@ function getrowvalue(row){
<th v-if="item && item[0]">
{{ item[0].label }}
</th>
<td v-if="item && item[0]" :class="item[0].blue ? 'blue' : ''" @click="getrowvalue(item[0])">
<td
v-if="item && item[0]"
:class="item[0].blue ? 'blue' : ''"
@click="getrowvalue(item[0])"
>
<span v-show="item[0].label == '定位信息'">
<SvgIcon class="icon" size="16" name="lctname"
/></span>
{{ item[0].value }}
</td>
<th v-if="item && item.length > 1">
{{ item[1].label }}
</th>
<td v-if="item && item.length > 1" :class="item[1].blue ? 'blue' : ''" @click="getrowvalue(item[1])">
<td
v-if="item && item.length > 1"
:class="item[1].blue ? 'blue' : ''"
@click="getrowvalue(item[1])"
>
<span v-show="item[1].label == '定位信息'">
<SvgIcon class="icon" size="16" name="lctname" />
</span>
{{ item[1].value }}
</td>
</tr>

Loading…
Cancel
Save