pull/1/head
Dragon 1 year ago
parent 29781a80ed
commit febface968

1
components.d.ts vendored

@ -17,6 +17,7 @@ declare module 'vue' {
NCollapse: typeof import('naive-ui')['NCollapse']
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDataTable: typeof import('naive-ui')['NDataTable']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider']

@ -1,11 +1,13 @@
<script lang="ts" setup>
import { computed, onBeforeMount, reactive, ref, toRefs, unref } from 'vue'
import { useDialog, useMessage } from 'naive-ui'
import { useDictionary } from '@/store/modules/dictonary'
import { audit } from '@/api/task/task'
const emit = defineEmits<{
(e: 'commit', rejectId: any, backId: any, isOther: boolean)
}>()
const message = useMessage()
const dictonaryStore = useDictionary()
const state: any = reactive({
@ -20,6 +22,7 @@ const cardStyle = {
}
function showModal(value) {
console.log(value)
state.detail = value
show.value = true
}
@ -48,23 +51,24 @@ const comomitValue = computed(() => {
async function handleSumbit(e: MouseEvent) {
e.preventDefault()
closeModal()
// selectRejectId.value === 'other'
// emit('commit', unref(comomitValue), unref(selectBackId), showOther.value)
console.log(state.detail)
// const param = {
// formid: formIds,
// taskId: taskIds,
// approvd: false,
// taskComment: idOrDesc,
// taskname: isOther ? tasknames : [''],
// }
// audit(param).then((res) => {
// const { code } = res
// if (code === 'OK')
// reload()
// else message.error(res.message)
// })
console.log(comomitValue)
const param = {
formid: [state.detail.id],
taskId: ['66b06dda-e673-11ee-a934-0242bc74e4f3'],
approvd: false,
taskComment: comomitValue.value,
taskname: showOther.value ? state.detail.detail.tasks : ['其他'],
}
audit(param).then((res) => {
const { code } = res
if (code === 'OK')
closeModal()
else message.error(res.message)
})
}
onBeforeMount(async () => {

@ -305,7 +305,7 @@ async function formatColumns() {
return h(SvgIcon, { name: 'sort-3' })
},
render(row: any) {
return row.similarityscore ? `<span></span>${row.similarityscore}%` : ''
return row.similarityscore ? `${row.similarityscore}%` : ''
},
}
}

@ -68,7 +68,10 @@ async function reject() {
}
async function viewRepeat(e: MouseEvent) {
emit('notPass', state.detail)
emit('notPass', {
id: state.taskId,
detail: state.detail,
})
e.preventDefault()
closeModal()
}

Loading…
Cancel
Save