13937891274
2022-08-08 25a7e88099b329ec2081d1d4e1f0bd73d1c25a11
页面修改
已修改2个文件
79 ■■■■■ 文件已修改
src/components/equipmentDailog/DailogS.vue 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/facilityManagement/keyEquipment/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/equipmentDailog/DailogS.vue
@@ -40,7 +40,7 @@
                </el-col>
                <el-col :span="11" :offset="2">
                    <el-form-item label="联系人" size="default">
                        <el-input v-model="form.connectPersonId" placeholder="请选择">
                        <el-input v-model="form.connectPersonName" placeholder="请选择">
                            <template #append>
                                <el-button :icon="Search" @click="openUser(0)"></el-button>
                            </template>
@@ -51,7 +51,7 @@
            <el-row>
                <el-col :span="11">
                    <el-form-item label="录入人" size="default">
                        <el-input v-model="form.inputPersonId" placeholder="请选择">
                        <el-input v-model="form.inputPersonName" placeholder="请选择">
                            <template #append>
                                <el-button :icon="Search" @click="openUser(1)"></el-button>
                            </template>
@@ -60,7 +60,7 @@
                </el-col>
                <el-col :span="11" :offset="2">
                    <el-form-item label="责任人" size="default">
                        <el-input v-model="form.responsibilityPersonId" placeholder="请选择">
                        <el-input v-model="form.responsibilityPersonName" placeholder="请选择">
                            <template #append>
                                <el-button :icon="Search" @click="openUser(2)"></el-button>
                            </template>
@@ -191,8 +191,7 @@
                    </el-table-column>
                </el-table>
            </el-tab-pane>
            <el-tab-pane label="检查标准设置" name="fourth"
                >
            <el-tab-pane label="检查标准设置" name="fourth">
                <el-button type="primary" size="default" @click="openStandard('新增', '')">新增</el-button>
                <el-table :data="form.checkStandardeDetailList" style="width: 100%">
                    <el-table-column align="center" type="indexNum" label="序号" width="75" />
@@ -249,7 +248,9 @@
    </el-dialog>
    <categoryDailog ref="categoryShow"></categoryDailog>
    <RegionsDialog ref="planShow" @SearchUser="onUser"></RegionsDialog>
    <DailogSearchUser ref="UserShow" @SearchUser="userId"></DailogSearchUser>
    <DailogSearchUser ref="UserOneShow" @SearchUser="userId"></DailogSearchUser>
<!--    <DailogSearchUser ref="UserTwoShow" @SearchUser="userId"></DailogSearchUser>-->
<!--    <DailogSearchUser ref="UserThreeShow" @SearchUser="userId"></DailogSearchUser>-->
    <maintenanceDailog ref="maintenanceShow" @onMain="main"></maintenanceDailog>
    <detectDailog ref="detectShow" @onDelect="delect"></detectDailog>
    <repairDailog ref="repairShow" @onRepair="Repair"></repairDailog>
@@ -258,7 +259,7 @@
<script lang="ts">
import { defineComponent, ref } from 'vue';
import { Search, Plus, FullScreen } from '@element-plus/icons-vue';
import {timeDate} from '/@/assets/index.ts'
import { timeDate } from '/@/assets/index.ts';
import categoryDailog from './categoryDailog.vue';
import RegionsDialog from '../../views/contingencyManagement/emergencyDrill/releaseOfDrillPlan/component/regionsDialog.vue';
import maintenanceDailog from './maintenanceDailog.vue';
@@ -269,7 +270,7 @@
import { ElMessage, ElMessageBox } from 'element-plus';
import type { UploadProps, UploadUserFile } from 'element-plus';
import { facilityManagementApi } from '/@/api/facilityManagement';
import {goalManagementApi} from "/@/api/goalManagement";
import { goalManagementApi } from '/@/api/goalManagement';
export default defineComponent({
    components: { categoryDailog, RegionsDialog, DailogSearchUser, maintenanceDailog, detectDailog, repairDailog, standardDailog },
    setup(props, { emit }) {
@@ -280,7 +281,7 @@
            treatment: '',
            inputPersonId: '',
      inputPersonName:'',
            departmentId: '',
            delRepaireDetailList: [],
@@ -291,10 +292,11 @@
      checkDetailList: [],
      responsibilityPersonId: '',
      responsibilityPersonName:'',
      delTakecareStardardeDetailList: [],
      connectPersonId: '',
      connectPersonName:'',
      scenePic: '',
@@ -368,10 +370,10 @@
        };
    // 提交
    const submitForm = () => {
      form.value.delTakecareDetails =deleteAId.value.toString()
      form.value.delTestDetails =deleteBId.value.toString()
      form.value.delRepaireDetails =deleteCId.value.toString()
      form.value.delCheckStandardeDetails =deleteDId.value.toString()
            form.value.delTakecareDetails = deleteAId.value.toString();
            form.value.delTestDetails = deleteBId.value.toString();
            form.value.delRepaireDetails = deleteCId.value.toString();
            form.value.delCheckStandardeDetails = deleteDId.value.toString();
      dialogVisible.value = false;
      facilityManagementApi()
          .getkeypointEquipmentInfoAddOrUpdate(form.value)
@@ -405,12 +407,33 @@
            planShow.value.openDailog();
        };
    const onUser = (e:any) => {
      form.value.emergencePlanId=e.id
            form.value.emergencePlanId = e.id;
    };
        const UserShow = ref();
        const openUser = (type: any) => {
            UserShow.value.openDailog(type);
        const UserOneShow = ref();
        // const UserTwoShow = ref();
        // const UserThreeShow = ref();
        const openUser = (type: number) => {
            // if (type == 0) {
            //     UserOneShow.value.openDailog();
            // } else if (type == 1) {
            //     UserTwoShow.value.openDailog();
            // } else if (type == 2) {
            //     UserThreeShow.value.openDailog();
            // }
      UserOneShow.value.openDailog();
        };
        const userId = ( type: number,val: any) => {
            if (type == 0) {
        form.value.connectPersonId = val.uid;
        form.value.connectPersonName = val.realName;
            } else if (type == 1) {
        form.value.inputPersonId = val.uid;
        form.value.inputPersonName = val.username;
            } else if (type == 2) {
        form.value.responsibilityPersonId = val.id;
        form.value.responsibilityPersonName = val.username;
            }
        };
        const maintenanceShow = ref();
        const openMaintenance = (title: string, data: any) => {
@@ -504,14 +527,14 @@
      } else {
        form.value.repaireDetailList[index.value] = val;
      }
    }
        };
    const Stand=(val:any)=>{
      if (index.value == -1) {
        form.value.checkStandardeDetailList.push(val);
      } else {
        form.value.checkStandardeDetailList[index.value] = val;
      }
    }
        };
        //图片提交
        const imageUrl = ref('');
@@ -531,16 +554,6 @@
            return true;
        };
    const userId = (val: any, type: number) => {
      console.log(val, type);
      if (type == 0) {
        form.value.connectPersonId = val.uid;
      } else if (type == 1) {
        form.value.inputPersonId = val.uid;
      } else if (type == 2){
        form.value.responsibilityPersonId = val.uid;
      }
    };
    //部门树
    const department = () => {
      goalManagementApi()
@@ -588,7 +601,9 @@
            planShow,
      onUser,
            openPlan,
            UserShow,
            UserOneShow,
            // UserTwoShow,
            // UserThreeShow,
            openUser,
            maintenanceShow,
            openMaintenance,
src/views/facilityManagement/keyEquipment/index.vue
@@ -26,7 +26,7 @@
            <el-col :span="20">
                <div class="btns">
                    <div>
                        <el-button size="default" type="primary" :icon="Plus" @click="openD">新建</el-button>
                        <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button>
                        <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen">修改</el-button>
                        <el-button size="default" :disabled="danger" type="danger" :icon="Delete" @click="onDeleteAll" plain>删除</el-button>
                    </div>