css
shj
2022-07-19 e7c7776d56e681583aa3d140eda278d4fc512e7e
src/views/accidentManagementSystem/accidentExpress/component/openAdd.vue
@@ -5,7 +5,9 @@
        v-model="isShowDialog"
        width="769px"
        draggable
        :fullscreen="full"
    >
      <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
      <el-form
          ref="ruleFormRef"
          :model="ruleForm"
@@ -51,12 +53,19 @@
          </el-col>
          <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
            <el-form-item label="是否有伤亡">
              <el-radio-group v-model="ruleForm.resource">
              <el-radio-group v-model="ruleForm.resource" @change="typeChang">
                <el-radio label="是" />
                <el-radio label="否" />
              </el-radio-group>
            </el-form-item>
            <el-form-item v-if="ruleForm.resource" prop="delivery">
<!--              <el-input v-model="ruleForm.delivery" placeholder="">-->
<!--                <template #append> <el-button :icon="Search" @click="openDai" /> </template-->
<!--                ></el-input>-->
              <el-button :icon="Search" @click="openDai" />
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
            <el-form-item label="事故简要经过">
              <el-input v-model="ruleForm.describe" type="textarea" placeholder="请填写事故简要经过" maxlength="150"></el-input>
@@ -86,6 +95,7 @@
            </span>
      </template>
    </el-dialog>
    <NumberOfCasualties ref="ShowUser"></NumberOfCasualties>
    <CheckTemplate ref="Shows"/>
    <userSelections ref="userRef"/>
    <RegionsDialog ref="openRef"/>
@@ -106,8 +116,10 @@
} from 'element-plus'
import {
  Search
  Search,
  FullScreen
} from '@element-plus/icons-vue'
import NumberOfCasualties from '/@/views/accidentManagementSystem/accidentExpress/component/numberOfCasualties.vue'
import UserSelections from "/@/components/userSelections/index.vue"
import CheckTemplate from '/@/components/checkTemplate/index.vue'
import RegionsDialog from '/@/components/regionsDialog/index.vue'
@@ -118,6 +130,7 @@
    CheckTemplate,
    UserSelections,
    RegionsDialog,
    NumberOfCasualties,
  },
  setup() {
    const isShowDialog = ref(false)
@@ -323,6 +336,14 @@
        }
      })
    }
    // 是否有伤亡弹窗
    const typeChang=()=>{
      console.log('tag',ruleForm)
    }
    const ShowUser = ref();
    const openDai =()=>{
      ShowUser.value.openDialog()
    }
    // 应急队伍弹窗
    const Shows=ref()
    const daiInpt=()=>{
@@ -338,7 +359,18 @@
    const openUser = () => {
      userRef.value.openDialog();
    };
    //全屏
    const full = ref(false);
    const toggleFullscreen = () => {
      if (full.value == false) {
        full.value = true;
      } else {
        full.value = false;
      }
    };
    return {
      ShowUser,
      typeChang,
      openDialog,
      closeDialog,
      isShowDialog,
@@ -359,7 +391,11 @@
      openUser,
      userRef,
      regionsDialog,
      openDai,
      openRef,
      toggleFullscreen,
      FullScreen,
      full,
    };
  },
});