|
@@ -20,7 +20,7 @@
|
|
<el-link type="warning" @click="editRowClick(row)">修改</el-link>
|
|
<el-link type="warning" @click="editRowClick(row)">修改</el-link>
|
|
<el-link v-del-com:[delRowClick]="row" type="danger">删除</el-link>
|
|
<el-link v-del-com:[delRowClick]="row" type="danger">删除</el-link>
|
|
<el-link type="primary" @click="clearingTableTemp(row)">清表模板</el-link>
|
|
<el-link type="primary" @click="clearingTableTemp(row)">清表模板</el-link>
|
|
- <el-link type="primary">元素识别</el-link>
|
|
|
|
|
|
+ <el-link type="primary" @click="elementRecognition(row)">元素识别</el-link>
|
|
</template>
|
|
</template>
|
|
</hc-table>
|
|
</hc-table>
|
|
<template #action>
|
|
<template #action>
|
|
@@ -44,7 +44,9 @@
|
|
</template>
|
|
</template>
|
|
</hc-dialog>
|
|
</hc-dialog>
|
|
<!-- 清表模板 -->
|
|
<!-- 清表模板 -->
|
|
- <HcTemplate v-model="isRowTempShow" :data="rowTempInfo" />
|
|
|
|
|
|
+ <HcClearTemplate v-model="isRowTempShow" :data="rowTempInfo" @close="getTableData" />
|
|
|
|
+ <!-- 元素识别 -->
|
|
|
|
+ <HcElementRecognition v-model="isElementShow" :data="rowElementInfo" @close="getTableData" />
|
|
</hc-card>
|
|
</hc-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -53,7 +55,8 @@ import { HcDelMsg } from 'hc-vue3-ui'
|
|
import { onActivated, ref } from 'vue'
|
|
import { onActivated, ref } from 'vue'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { arrToId, deepClone, formValidate, getArrValue, isNullES } from 'js-fast-way'
|
|
import { arrToId, deepClone, formValidate, getArrValue, isNullES } from 'js-fast-way'
|
|
-import HcTemplate from './excel/template.vue'
|
|
|
|
|
|
+import HcClearTemplate from './excel/template.vue'
|
|
|
|
+import HcElementRecognition from './element/index.vue'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
|
|
|
|
//激活
|
|
//激活
|
|
@@ -191,8 +194,16 @@ const delDataApi = async (id) => {
|
|
const isRowTempShow = ref(false)
|
|
const isRowTempShow = ref(false)
|
|
const rowTempInfo = ref({})
|
|
const rowTempInfo = ref({})
|
|
const clearingTableTemp = (row) => {
|
|
const clearingTableTemp = (row) => {
|
|
|
|
+ rowTempInfo.value = row
|
|
isRowTempShow.value = true
|
|
isRowTempShow.value = true
|
|
- rowTempInfo.value = deepClone(row)
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//元素识别
|
|
|
|
+const isElementShow = ref(false)
|
|
|
|
+const rowElementInfo = ref({})
|
|
|
|
+const elementRecognition = (row) => {
|
|
|
|
+ rowElementInfo.value = row
|
|
|
|
+ isElementShow.value = true
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|