fuliqi
2024-12-26 5b5a3ec32e479b6c43822fd0192cde6e2f3b31e5
src/views/projectEngineering/projectLibrary/component/BasicInfo.vue
@@ -304,6 +304,7 @@
import {approvalList} from "@/api/system/dept";
export default {
  name: 'BasicInfo',
  dicts: ['sys_funding_type', 'sys_investment_type', 'sys_project_type', 'sys_project_status', 'sys_competent_department'
    , 'sys_administrative_divisions', 'sys_centralized_management', 'sys_approval_type', 'sys_key_categories', 'sys_annual_plan'],
  components: {
@@ -421,6 +422,7 @@
      getProject(id).then(res => {
        this.projectForm = res.data;
        this.$emit('updateIsShow', true);
      });
    },
    getApprovalList() {
@@ -428,9 +430,10 @@
        this.approvalList = res.data;
      });
    },
    submit() {
    submit(usedStatus) {
      this.$refs["projectForm"].validate(valid => {
        if (valid) {
          this.projectForm.usedStatus = usedStatus;
          if (this.projectForm.id) {
            updateProject(this.projectForm).then(response => {
              this.$modal.msgSuccess("修改成功");
@@ -508,7 +511,7 @@
        this.$message.success('获取地址成功');
        this.dialogMap = false;
      } else {
        this.$message.error('获取坐标失败');
        this.$message.error('请先点击地图选择地址');
      }
    },
@@ -530,6 +533,7 @@
            this.largeCategory = labels.join(',');
          }
        }, 1000);
        this.$emit('basicInfoForm', newVal)
      },
      deep: true
    }