|
|
@ -15,7 +15,7 @@ |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { defineComponent, onMounted, PropType, toRefs, watch } from 'vue' |
|
|
|
import { defineComponent, PropType, toRefs, watch } from 'vue' |
|
|
|
import Modal from '@/components/modal' |
|
|
|
import Modal from '@/components/modal' |
|
|
|
import { NDataTable, NPagination } from 'naive-ui' |
|
|
|
import { NDataTable, NPagination } from 'naive-ui' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
@ -48,21 +48,12 @@ const VersionModal = defineComponent({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
|
|
|
variables.taskVersion = props.row?.taskVersion |
|
|
|
|
|
|
|
variables.taskCode = props.row?.taskCode |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createColumns(variables) |
|
|
|
|
|
|
|
requestData() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|
() => props.show, |
|
|
|
() => props.show, |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
variables.taskVersion = props.row?.taskVersion |
|
|
|
|
|
|
|
variables.taskCode = props.row?.taskCode |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (props.show) { |
|
|
|
if (props.show) { |
|
|
|
|
|
|
|
variables.taskVersion = props.row?.taskVersion |
|
|
|
|
|
|
|
variables.taskCode = props.row?.taskCode |
|
|
|
createColumns(variables) |
|
|
|
createColumns(variables) |
|
|
|
requestData() |
|
|
|
requestData() |
|
|
|
} |
|
|
|
} |
|
|
|