|
@@ -81,8 +81,7 @@ const emit = defineEmits(['close', 'finish'])
|
|
|
const useAppState = useAppStore()
|
|
|
const contractInfo = ref(useAppState.getContractInfo)
|
|
|
const projectId = ref(useAppState.getProjectId || '')
|
|
|
-const { contractType } = contractInfo.value
|
|
|
-const classifyType = ref(contractType === 2 ? '2' : '1')
|
|
|
+const classifyType = ref('1')
|
|
|
const qualityMoadal = ref(props.qualityMoadal)
|
|
|
const cid = ref(props.cid)
|
|
|
const periodId = ref(props.periodId)
|
|
@@ -117,17 +116,18 @@ const uuid = getRandom(4)
|
|
|
watch(qualityMoadal, (val) => {
|
|
|
if (val) {
|
|
|
nextTick(() => {
|
|
|
+ const { contractType } = getObjValue(contractInfo.value)
|
|
|
+ classifyType.value = contractType === 2 ? '2' : '1'
|
|
|
setSplitRef()
|
|
|
tableData.value = []
|
|
|
oriCheckRows.value = getStoreValue('checkRows') || []
|
|
|
if (!isRemianOldCheck.value) {
|
|
|
oriCheckRows.value = []
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
+
|
|
|
//初始化设置拖动分割线
|
|
|
const setSplitRef = () => {
|
|
|
//配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|