|
|
@@ -65,7 +65,7 @@
|
|
|
import { ref, watch } from 'vue'
|
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
|
import { getArrValue, getObjValue } from 'js-fast-way'
|
|
|
-
|
|
|
+import { useAppStore } from '~src/store'
|
|
|
// 接收父组件传入的属性
|
|
|
const props = defineProps({
|
|
|
pKeyId:{
|
|
|
@@ -73,7 +73,13 @@ const props = defineProps({
|
|
|
default: '',
|
|
|
},
|
|
|
})
|
|
|
+
|
|
|
const emit = defineEmits(['close', 'save'])
|
|
|
+
|
|
|
+const useAppState = useAppStore()
|
|
|
+
|
|
|
+//全局变量
|
|
|
+const projectId = ref(useAppState.projectId)
|
|
|
const pKeyId = ref(props.pKeyId)
|
|
|
watch(() => props.pKeyId, (val) => {
|
|
|
pKeyId.value = val
|
|
|
@@ -86,7 +92,7 @@ const linkModal = defineModel('modelValue', {
|
|
|
|
|
|
// 左侧单选框值
|
|
|
const leftRadio = ref('')
|
|
|
-const projectId = ref('')
|
|
|
+
|
|
|
|
|
|
const sourceData = ref([
|
|
|
{ id: '54e8a314de8a493d9f08a9d3cf7c', name: '一工区' },
|