diff --git a/src/views/assessSubordinates/edit.vue b/src/views/assessSubordinates/edit.vue
index 3658b9f..cf2ee27 100644
--- a/src/views/assessSubordinates/edit.vue
+++ b/src/views/assessSubordinates/edit.vue
@@ -1,204 +1,68 @@
@@ -219,16 +83,14 @@ defineProps({
type: Object as PropType>,
default: () => ({})
},
- deptList: Array
})
const emit = defineEmits(['success', 'close'])
const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref('add')
-const showDialog = ref(false)
-const showDialog1 = ref(false)
-const showDialog2 = ref(false)
-const personnel = ref(null)
+const useStore = useUserStore().userInfo
+
+
// 弹窗标题
const popupTitle = computed(() => {
@@ -238,39 +100,17 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- project_name: '',
nature: '',
- industry: '',
- build_unit: '',
- build_unit_name: '',
- build_area: '',
- address: '',
- project_level: '',
- total_investment: '',
- engineering_status: '',
- contract_content: '',
- project_overview: '',
- project_requirements: '',
- planned_start_date: '',
- planned_end_date: '',
- actual_start_date: '',
- actual_end_date: '',
- implementation_department: '',
- supervision_department: '',
- project_manager: '',
- project_manager_name: '',
- initiation_date: '',
- project_leader: '',
- project_leader_name: '',
- project_department: '',
- remark: '',
- contract: '',
- contract_name: '',
- part_a_unit: '',
- part_a: '',
- annex: [],
+ name: '',
+ admin: useStore.id,
+ admin_user: useStore.name,
+ detail: []
+
})
+const handleAdd = () => {
+ formData.detail.push({})
+}
// 表单验证
@@ -332,21 +172,6 @@ const handleClose = () => {
}
-
-
-
-let value
-const userclick = async (val) => {
- showDialog.value = true
- value = val
- await nextTick()
- personnel.value.open()
-}
-const submituser = (e: any) => {
- formData[value + '_name'] = e.name
- formData[value] = e.id
- showDialog.value = false
-}
defineExpose({
open,
setFormData,
diff --git a/src/views/jxgl_temp/edit.vue b/src/views/jxgl_temp/edit.vue
index 3658b9f..cf2ee27 100644
--- a/src/views/jxgl_temp/edit.vue
+++ b/src/views/jxgl_temp/edit.vue
@@ -1,204 +1,68 @@
@@ -219,16 +83,14 @@ defineProps({
type: Object as PropType>,
default: () => ({})
},
- deptList: Array
})
const emit = defineEmits(['success', 'close'])
const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref('add')
-const showDialog = ref(false)
-const showDialog1 = ref(false)
-const showDialog2 = ref(false)
-const personnel = ref(null)
+const useStore = useUserStore().userInfo
+
+
// 弹窗标题
const popupTitle = computed(() => {
@@ -238,39 +100,17 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- project_name: '',
nature: '',
- industry: '',
- build_unit: '',
- build_unit_name: '',
- build_area: '',
- address: '',
- project_level: '',
- total_investment: '',
- engineering_status: '',
- contract_content: '',
- project_overview: '',
- project_requirements: '',
- planned_start_date: '',
- planned_end_date: '',
- actual_start_date: '',
- actual_end_date: '',
- implementation_department: '',
- supervision_department: '',
- project_manager: '',
- project_manager_name: '',
- initiation_date: '',
- project_leader: '',
- project_leader_name: '',
- project_department: '',
- remark: '',
- contract: '',
- contract_name: '',
- part_a_unit: '',
- part_a: '',
- annex: [],
+ name: '',
+ admin: useStore.id,
+ admin_user: useStore.name,
+ detail: []
+
})
+const handleAdd = () => {
+ formData.detail.push({})
+}
// 表单验证
@@ -332,21 +172,6 @@ const handleClose = () => {
}
-
-
-
-let value
-const userclick = async (val) => {
- showDialog.value = true
- value = val
- await nextTick()
- personnel.value.open()
-}
-const submituser = (e: any) => {
- formData[value + '_name'] = e.name
- formData[value] = e.id
- showDialog.value = false
-}
defineExpose({
open,
setFormData,
diff --git a/src/views/jxgl_temp/index.vue b/src/views/jxgl_temp/index.vue
index 355d8d6..d135a5f 100644
--- a/src/views/jxgl_temp/index.vue
+++ b/src/views/jxgl_temp/index.vue
@@ -66,7 +66,7 @@
-
@@ -109,7 +109,7 @@ const handleSelectionChange = (val: any[]) => {
}
// 获取字典数据
-const { dictData } = useDictData('supervision_project_nature,industry,const_area,supervision_project_level,engineering_status')
+const { dictData } = useDictData('jxgl_check_type')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
diff --git a/src/views/selfEvaluation/edit.vue b/src/views/selfEvaluation/edit.vue
index 3658b9f..d556c26 100644
--- a/src/views/selfEvaluation/edit.vue
+++ b/src/views/selfEvaluation/edit.vue
@@ -1,204 +1,83 @@
@@ -219,16 +98,14 @@ defineProps({
type: Object as PropType>,
default: () => ({})
},
- deptList: Array
})
const emit = defineEmits(['success', 'close'])
const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref('add')
-const showDialog = ref(false)
-const showDialog1 = ref(false)
-const showDialog2 = ref(false)
-const personnel = ref(null)
+const useStore = useUserStore().userInfo
+
+
// 弹窗标题
const popupTitle = computed(() => {
@@ -238,39 +115,18 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- project_name: '',
nature: '',
- industry: '',
- build_unit: '',
- build_unit_name: '',
- build_area: '',
- address: '',
- project_level: '',
- total_investment: '',
- engineering_status: '',
- contract_content: '',
- project_overview: '',
- project_requirements: '',
- planned_start_date: '',
- planned_end_date: '',
- actual_start_date: '',
- actual_end_date: '',
- implementation_department: '',
- supervision_department: '',
- project_manager: '',
- project_manager_name: '',
- initiation_date: '',
- project_leader: '',
- project_leader_name: '',
- project_department: '',
- remark: '',
- contract: '',
- contract_name: '',
- part_a_unit: '',
- part_a: '',
- annex: [],
+ name: '',
+ admin: useStore.id,
+ admin_user: useStore.name,
+ month: "",
+ detail: []
+
})
+const handleAdd = () => {
+ formData.detail.push({})
+}
// 表单验证
@@ -332,21 +188,6 @@ const handleClose = () => {
}
-
-
-
-let value
-const userclick = async (val) => {
- showDialog.value = true
- value = val
- await nextTick()
- personnel.value.open()
-}
-const submituser = (e: any) => {
- formData[value + '_name'] = e.name
- formData[value] = e.id
- showDialog.value = false
-}
defineExpose({
open,
setFormData,
diff --git a/src/views/selfEvaluation/index.vue b/src/views/selfEvaluation/index.vue
index b476e26..8efa99c 100644
--- a/src/views/selfEvaluation/index.vue
+++ b/src/views/selfEvaluation/index.vue
@@ -71,7 +71,7 @@
-
@@ -114,7 +114,7 @@ const handleSelectionChange = (val: any[]) => {
}
// 获取字典数据
-const { dictData } = useDictData('supervision_project_nature,industry,const_area,supervision_project_level,engineering_status')
+const { dictData } = useDictData('jxgl_check_type')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({