13937891274
2022-08-05 28ce8c61cf0dd368fdd4114d86e1942811b71329
src/views/contingencyManagement/panManagement/component/initiateApproval.vue
@@ -53,7 +53,7 @@
               </el-col>
               <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
                  <el-form-item label="编写人" prop="authorId">
                     <el-input v-model="ruleForm.authorUid" placeholder="请选择" class="input-with-select">
                     <el-input v-model="ruleForm.authorName" placeholder="请选择" class="input-with-select">
                        <template #append>
                           <el-button :icon="Search" @click="openUser" />
                        </template>
@@ -124,7 +124,7 @@
               <!--          </el-col>-->
               <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
                  <el-form-item label="审批人" prop="authorId">
                     <el-input v-model="ruleForm.authorUid" placeholder="请选择" class="input-with-select">
                     <el-input v-model="ruleForm.authorName" placeholder="请选择" class="input-with-select">
                        <template #append>
                           <el-button :icon="Search" @click="openUser" />
                        </template>
@@ -141,7 +141,7 @@
         </template>
      </el-dialog>
      <CheckTemplate ref="Shows" />
      <DailogSearchUser ref="userRef" @SearchUser="onUser" />
      <DailogSearchUserManger ref="userRef" @SearchUser="onUser" />
      <RegionsDialog ref="openRef" />
   </div>
</template>
@@ -152,7 +152,7 @@
import type { UploadUserFile, FormInstance } from 'element-plus';
import { ElMessage } from 'element-plus';
import { Search, FullScreen } from '@element-plus/icons-vue';
import DailogSearchUser from '/@/components/DailogSearchUser/index.vue';
import DailogSearchUserManger from '/@/components/DailogSearchUserManger/index.vue';
import CheckTemplate from '/@/components/checkTemplate/index.vue';
import RegionsDialog from '/@/components/regionsDialog/index.vue';
import { emergencyPlanApi } from '/@/api/emergencyPlan';
@@ -162,7 +162,7 @@
   name: 'openAdd',
   components: {
      CheckTemplate,
      DailogSearchUser,
    DailogSearchUserManger,
      RegionsDialog,
   },
   setup(prop, { emit }) {
@@ -174,6 +174,7 @@
         associatedDanger: '', // 危险源关联
         level: '', // 预案级别
         authorUid: '', // 编写人
      authorName: '',
         authorDeptId: '', // 编写部门
         releaseDate: '', // 发布实施日期
         fileList: [
@@ -302,6 +303,7 @@
               associatedDanger: '', // 危险源关联
               level: '', // 预案级别
               authorUid: '', // 编写人
          authorName: '',
               authorDeptId: '', // 编写部门
               releaseDate: '', // 发布实施日期
               fileList: [
@@ -340,7 +342,8 @@
      };
      //回显
      const onUser = (e: any) => {
         ruleForm.value.authorUid = e.uid;
      ruleForm.value.authorUid = e[0].uid;
      ruleForm.value.authorName = e[0].realName;
      };
      //全屏
      const full = ref(false);