From de5aafe340b63021d457cc9e3b55554a86213de7 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期六, 07 十二月 2024 23:08:19 +0800 Subject: [PATCH] 修改bug --- ruoyi-ui/src/views/healthy/healthYear.vue | 3286 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 2,794 insertions(+), 492 deletions(-) diff --git a/ruoyi-ui/src/views/healthy/healthYear.vue b/ruoyi-ui/src/views/healthy/healthYear.vue index 2b07be1..9f855ff 100644 --- a/ruoyi-ui/src/views/healthy/healthYear.vue +++ b/ruoyi-ui/src/views/healthy/healthYear.vue @@ -1,327 +1,1268 @@ <template> - <div class="app-container" style="opacity: 1;"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> + <div class="app-container" id="printable-content"> + <!-- 鍥炲埌椤堕儴--> + <el-backtop :bottom="150" :right="30"> + <el-button type="primary" circle + class="el-icon-top" + ></el-button> + </el-backtop> + <h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;"> + <span>鐜扮姸鍋ュ悍鎯呭喌</span> +<!-- <div style="display: flex; align-items: center;">--> +<!-- <el-button size="mini" type="text" @click="toYearhealthy" v-hasPermi="['person:healthy:healthYear']">--> +<!-- <div class="form" ><el-icon style="padding-right:110px;"></el-icon>--> +<!-- <span class="text" style="width: 69px;height: 26px;font-size: 16px; padding-left: 10px;--> +<!-- font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">浣撴/鐪嬬梾</span></div>--> +<!-- </el-button>--> +<!-- </div>--> + </h1> - <el-form-item label="浣撴鏃堕棿" prop="checkTime"> - <el-date-picker - v-model="dateRange" - style="width: 240px;" - value-format="yyyy-MM-dd" - type="daterange" - range-separator="-" - start-placeholder="寮�濮嬫棩鏈�" - end-placeholder="缁撴潫鏃ユ湡" - ></el-date-picker> - </el-form-item> - <el-form-item label="鏁戠梾鍖婚櫌" prop="hospital" > - <el-input - v-model="queryParams.hospital" - placeholder="璇疯緭鍏ュ氨鐥呭尰闄�" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery" - /> - </el-form-item> - <el-form-item label="绫诲埆" prop="type"> - <el-input - v-model="queryParams.type" - placeholder="璇疯緭鍏ョ被鍒�" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery" - /> - </el-form-item> + <el-divider /> - <el-form-item label="棰樺悕" prop="title"> - <el-input - v-model="queryParams.title" - placeholder="璇疯緭鍏ラ鍚�" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery" - /> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;border-radius:6px 6px 6px 6px;opacity:1;">鎼滅储</el-button> - <el-button size="mini" @click="resetQuery" style=" width: 65px;height: 32px; background: #FFDDE3; border-radius:6px 6px 6px 6px;opacity: 1;">閲嶇疆</el-button> - </el-form-item> - </el-form> - - <el-row :gutter="10" class="mb8"> - <el-col :span="1.5"> - <el-button - type="primary" - plain - icon="el-icon-plus" - size="mini" - @click="handleAdd" - v-hasPermi="['system:role:add']" - >鏂板</el-button> - </el-col> - - <el-col :span="1.5"> - <el-button - type="danger" - plain - icon="el-icon-delete" - size="mini" - :disabled="multiple" - @click="handleDelete" - v-hasPermi="['system:role:remove']" - >鍒犻櫎</el-button> - </el-col> - <el-col :span="1.5"> - <el-button - type="warning" - plain - icon="el-icon-download" - size="mini" - @click="handleExport" - v-hasPermi="['family:note:export']" - >瀵煎嚭</el-button> - </el-col> - <el-col :span="1.5"> - <el-button - type="warning" - plain - icon="el-icon-download" - size="mini" - @click="handleExportTemplate" - v-hasPermi="['family:note:export']" - >瀵煎叆妯℃澘涓嬭浇</el-button> - </el-col> - <el-col :span="1.2"> - <el-upload - action="" - class="upload-demo" - :show-file-list="false" - :http-request="handleEnport" - > - <el-button size="mini" type="primary" - plain - icon="el-icon-plus" >瀵煎叆</el-button> - - </el-upload> - </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> - </el-row> - - <el-table v-loading="loading" :data="healthList" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> - <el-table-column type="selection" width="55" align="center" /> - <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> - - <el-table-column label="浣撴鏃堕棿" prop="checkTime" sortable width="150" align="center"> - <template slot-scope="scope">{{scope.row.checkTime? scope.row.checkTime: '鈥斺�斺�斺��'}}</template> - </el-table-column> - <el-table-column label="绫诲埆" prop="type" sortable width="120" /> - <el-table-column label="灏辩梾鍖婚櫌" prop="hospital" sortable width="120" > - - </el-table-column> - <el-table-column label="棰樺悕" prop="title" sortable width="150" /> - <el-table-column label="娉ㄦ剰浜嬮」" prop="notice" sortable width="150" /> - <el-table-column label="浣撴鎶ュ憡(鐢靛瓙鏂囦欢)" prop="url" align="center" sortable width="200" > - <template slot-scope="scope" > - <div @click="handleCheck(scope.row)"> - <img - class="el-upload-list__item-thumbnail" - src="../../assets/images/deviceLis.png" - alt="" - style="width: 35px; height: 35px;" - fit="cover" - v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" - > - <img - v-else - class="el-upload-list__item-thumbnail" - src="../../assets/images/deviceA.png" - alt="" - style="width: 35px; height: 35px;" - fit="cover" - - ></div> - </template> - </el-table-column> +<el-row :gutter="2"> + <el-col :border="1" :span="4" v-for="(item, index) in allBasicInfo" :key="o" :offset="1"> + <div> + <el-card :body-style="{ padding: '1px' }"> + <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image"> + <div style=""> + <span>{{item}}</span> + <div class="bottom clearfix"> + + <el-button type="text" class="button" @click="handleEditInfo(index)">鏌ョ湅璇︽儏</el-button> + </div> + </div> + </el-card> + </div> + </el-col> +</el-row> - <el-table-column label="澶囨敞" prop="remark" sortable width="120" > - <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> - </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> - <template slot-scope="scope" v-if="scope.row.roleId !== 1"> - <el-button - size="mini" - type="text" - icon="el-icon-edit" - @click="handleUpdate(scope.row)" - v-hasPermi="['familymodel:economy:info']" - >淇敼</el-button> - <el-button - size="mini" - type="text" - icon="el-icon-delete" - @click="handleDelete(scope.row)" - v-hasPermi="['system:role:remove']" - >鍒犻櫎</el-button> - <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['familymodel:bignote:list']"> - <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button> - - </el-dropdown> - </template> - </el-table-column> - </el-table> - - <pagination - v-show="total>0" - :total="total" - :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" - @pagination="getList" - style="background: #FEF7FC;" - /> - - <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> - <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> + <el-dialog :visible.sync="open" width="800px" append-to-body @close=""> - <el-form-item label="浣撴鏃堕棿" prop="checkTime"> - <el-input - v-model='formDat.checkTime' - type='date' - placeholder='閫夋嫨鏃ユ湡' - ></el-input> - </el-form-item> + <h2 style="font-size:21px">鍩烘湰鎯呭喌</h2> + <el-container> + <div style="padding-left:0px" > + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthyBaseList" > + <el-row :span="16"> + <el-form-item label="濮撳悕" prop="name" label-width="40px"> + <el-input v-model="HealthyBaseList.name " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鑱屼笟" prop="work" label-width="40px"> + <el-input v-model="HealthyBaseList.work" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="浣忓潃" prop="address" label-width="40px"> + <el-input v-model="HealthyBaseList.address" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> - <el-form-item label="绫诲埆" prop="type"> - <el-input v-model="formDat.type" placeholder="璇疯緭鍏ョ被鍒�" clearable :style="{width: '100%'}" > - </el-input> - </el-form-item> - <el-form-item label="灏辩梾鍖婚櫌" prop="hospital"> - <el-input v-model="formDat.hospital" placeholder="璇疯緭鍏ュ氨鐥呭尰闄�" clearable :style="{width: '100%'}" > - </el-input> - </el-form-item> - <el-form-item label="棰樺悕" prop="title"> - <el-input v-model="formDat.title" placeholder="璇疯緭鍏ラ鍚�" clearable :style="{width: '100%'}" > - </el-input> - </el-form-item> - <el-form-item label="娉ㄦ剰浜嬮」" prop="notice"> - <el-input v-model="formDat.notice" placeholder="璇疯緭鍏ユ敞鎰忎簨椤�" clearable :style="{width: '100%'}" > - </el-input> - </el-form-item> + </el-form> + </el-col> + </el-container> + </div> + <div style="padding-left:150px"> + <el-container> + <el-col v-loading="loading" :data="HealthyBaseList" > + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16"> + + <el-form-item label="鎬у埆" prop="sex" label-width="40px"> + <template v-if="!isEditing"> + <el-input v-model="HealthyBaseList.sex === '鐢�' ? sinds='鐢�':sinds='濂�'" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> + </template> + <template v-else> + <el-select v-model="sinds" placeholder="璇烽�夋嫨鎬у埆" clearable :style="{width: '100%'}" :disabled="dsb"> + <el-option label="鐢�" value='鐢�'></el-option> + <el-option label="濂�" value='濂�'></el-option> + </el-select> + </template> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鐢佃瘽" prop="phone" label-width="40px"> + <el-input v-model="HealthyBaseList.phone " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + + </el-form> + + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthyBaseList" > + + <el-row :span="16"> + <el-form-item label="琛�鍨�" prop="bloodClass" label-width="40px"> + <!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A鍨嬭</el-radio> + <el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B鍨嬭</el-radio> + <el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O鍨嬭</el-radio> + <el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB鍨嬭</el-radio> + <el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH鍨嬭</el-radio> + <el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鍏朵粬</el-radio> + <el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鏈煡琛�鍨�</el-radio> + --> <el-select :disabled="dsb" v-model="selectedBloodType" @change="handlebloodChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in Bloodoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + + + </el-form-item> + </el-row> + + </el-form> + </el-col> + </el-container> + </div> + + <div style="padding-left:150px"> + <el-container> + <el-col v-loading="loading" :data="HealthyBaseList" > + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16"> + <el-form-item label="鏂囧寲绋嬪害" prop="educationLevel" label-width="70px"> + <el-input v-model="HealthyBaseList.educationLevel " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鐢靛瓙閭欢" prop="email" label-width="70px"> + <el-input v-model="HealthyBaseList.email" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> - <el-form-item label="澶囨敞" prop="remark"> - <el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input> - </el-form-item> + <!-- </el-dialog> self:user:export--> + </el-container> + <div> + + </div> + <el-container> + <div > + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthyBaseList" > + <el-row :span="16"> - <h4 class="form-header">鐩稿叧鍥剧墖 </h4> - <el-upload - action="#" - list-type="picture-card" - multiple - :http-request="requestUpload" - :file-list="fileList" - > - <i slot="default" class="el-icon-plus"></i> - <div slot="file" slot-scope="{file}"> - <img - class="el-upload-list__item-thumbnail" - :src="file.url" + <el-form-item label="杩囨晱鍙�" prop="allergyClass" label-width="60px"> + <!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A鍨嬭</el-radio> + <el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B鍨嬭</el-radio> + <el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O鍨嬭</el-radio> + <el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB鍨嬭</el-radio> + <el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH鍨嬭</el-radio> + <el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鍏朵粬</el-radio> + <el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鏈煡琛�鍨�</el-radio> + --> <el-select :disabled="dsb" v-model="selectedallergyType" @change="handleAllergyChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in gmoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + + + </el-form-item> + + + </el-row> + <el-dialog title="濉啓鍏朵粬杩囨晱鍙�" :visible="showOtherDialog" @close="closeOtherDialog"> + <el-input v-model="otherText" placeholder="璇疯緭鍏ュ叾浠栬繃鏁忓彶"></el-input> + </el-dialog> + <el-row :span="16"> + <el-form-item label="甯哥敤鑽墿" prop="medicine" label-width="70px"> + <el-input v-model="HealthyBaseList.medicine" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> - alt="" - style="width: 126px; height: 126px" - fit="cover" - :preview-src-list="[file.url]" - > - <span class="el-upload-list__item-actions"> - <span - class="el-upload-list__item-preview" - @click="handlePictureCardPreview(file)" - > - <i class="el-icon-zoom-in"></i> - </span> + <div style="padding-left: 130px;"> + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthyBaseList" > + <el-row :span="20"> + <!-- <el-form-item label="閬椾紶鐥呭彶" prop="geneticDiseaseClass" label-width="80px"> + <el-radio label="hypertension" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">楂樿鍘�</el-radio> + <el-radio label="diabetes" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">绯栧翱鐥�</el-radio> + <el-radio label="tumor" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">鑲跨槫</el-radio> + <el-radio label="other" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">鍏朵粬</el-radio> - <span - v-if="!disabled" - class="el-upload-list__item-delete" - @click="handleRemove(file)" - > - <i class="el-icon-delete"></i> - </span> - </span> + </el-form-item> + --> + <el-form-item label="閬椾紶鐥呭彶" prop="geneticDiseaseClass" label-width="80px"> + <!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A鍨嬭</el-radio> + <el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B鍨嬭</el-radio> + <el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O鍨嬭</el-radio> + <el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB鍨嬭</el-radio> + <el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH鍨嬭</el-radio> + <el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鍏朵粬</el-radio> + <el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鏈煡琛�鍨�</el-radio> + --> <el-select :disabled="dsb" v-model="selectedgeneticDiseaseType" @change="handlegeneticDiseaseChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in ycoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + + + </el-form-item> + </el-row> + <el-row :span="20"> + <el-form-item label="鐩墠鍩虹鐥�" prop="baseDisease" label-width="90px"> + <el-input v-model="HealthyBaseList.baseDisease" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> + </el-container> + + <div style="padding-top:30px" > + <el-container > + + + <el-row :gutter="10" class="mb8"> + <el-col > + <el-button + plain + @click="handleEdit()" + style="width: 80px;height: 32px;background: #E0EEFE;" + v-if="isShow" + v-hasPermi="['system:role:edit']" + >缂栬緫</el-button> + <el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">瀹屾垚</el-button> + <br> + + </el-col> + + <!-- <el-col style="padding-top: 10px;">--> + <!-- <el-button--> + <!-- plain--> + <!-- style="width: 80px;height: 32px;background: #D2F3E0;"--> + <!-- @click="handleExport"--> + <!-- v-hasPermi="['family:note:export']"--> + <!-- >瀵煎嚭</el-button></el-col>--> + + <!-- <el-col style="padding-top: 10px;"> + <el-button + plain + style="width: 80px;height: 32px;background: #FFDDE3;" + v-print="'#printable-content'" + v-hasPermi="['family:note:export']" + >鎵撳嵃</el-button></el-col> --> + + + </el-row> + + </el-container> + </div> +</el-dialog> - </div> - </el-upload> - <h4 class="form-header">鍏朵粬闄勪欢 </h4> - <el-upload - action="" - :file-list="fileListOther" - class="upload-demo" - multiple +<el-dialog :visible.sync="open1" width="800px" append-to-body @close=""> + <h2 style="font-size:21px">鐢熸椿涔犳儻</h2> + <el-container> + <div style="padding-left:0px" > + <el-container > + <el-col > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="LiveHabbitList" > + <el-row :span="16"> + <el-form-item label="楗(鍠�)" prop="eatGood" label-width="70px"> + <el-input v-model="LiveHabbitList.eatGood " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鐖卞ソ" prop="hobby" label-width="40px"> + <el-input v-model="LiveHabbitList.hobby" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> - :on-remove="handleRemoveFile" - :http-request="requestUpload" - :show-file-list="true" - > - <el-button type="primary">鐐瑰嚮涓婁紶</el-button> - <template #tip> - <div class="el-upload__tip"> + + </el-form> + </el-col> + </el-container> + </div> + <div style="padding-left:150px"> + <el-container> + <el-col v-loading="loading" :data="LiveHabbitList" > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16"> + + <el-form-item label="楗(蹇�)" prop="eatBad" label-width="70px"> + <el-input v-model="LiveHabbitList.eatBad " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鍡滃ソ" prop="addition" label-width="40px"> + <el-input v-model="LiveHabbitList.addition " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + + </el-form> + </el-col> + </el-container> + </div> + </el-container> + <div> + <el-container > + <el-col > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="LiveHabbitList" > + <el-row :span="16"> + <!-- <el-form-item label="鐫$湢:" prop="sleepClass" label-width="80px"> + <el-radio label="good" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">鑹ソ</el-radio> + <el-radio label="general" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">涓�鑸�</el-radio> + <el-radio label="easyWake" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange"> 鏄撻啋</el-radio> + <el-radio label="dreaminess" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange" >澶氭ⅵ</el-radio> + <el-radio label="sleepless" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">澶辩湢</el-radio> + <el-radio label="snore" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">鎵撻季</el-radio> + <el-radio label="wakefulness" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">鐫′笉鐔�</el-radio> + </el-form-item> --> + <el-form-item label="鐫$湢:" prop="sleepClass" label-width="80px"> + <!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A鍨嬭</el-radio> + <el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B鍨嬭</el-radio> + <el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O鍨嬭</el-radio> + <el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB鍨嬭</el-radio> + <el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH鍨嬭</el-radio> + <el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鍏朵粬</el-radio> + <el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">鏈煡琛�鍨�</el-radio> + --> <el-select :disabled="dsb" v-model="selectedsleepType" @change="handlesleepChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in spoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + + + </el-form-item> + + + </el-row> + </el-form> + </el-col> + </el-container> + </div> + <el-container> + <div style="padding-left:0px" > + <el-container > + <el-col > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="LiveHabbitList" > + <el-row :span="16"> + <el-form-item label="澶т究" prop="stool" label-width="40px"> + <el-input v-model="LiveHabbitList.stool" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="灏忎究" prop="urine" label-width="40px"> + <el-input v-model="LiveHabbitList.urine" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> + <div style="padding-left:170px"> + <el-container> + <el-col v-loading="loading" :data="LiveHabbitList" > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16" > + + <el-form-item label="澶т究瑙勫緥" prop="stoolStatusClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedstoolStatusType" @change="handlestoolStatusChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in dboptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + + + </el-form-item> + + + + </el-row> + <el-row :span="16"> + + + <el-form-item label="灏忎究瑙勫緥" prop="urineStatusClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedurineStatusType" @change="handleurineStatusChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in xboptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + + </el-row> + </el-form> + </el-col> + </el-container> + </div> + </el-container> + <el-container> + <div> + <el-container > + <el-col > + <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="LiveHabbitList" > + + <el-row :span="16"> + + + + <el-form-item label="楗涔犳儻" prop="eatingHabitsClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedeatingHabitsType" @change="handleeatingHabitsChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in ysoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + + <el-form-item label="鐢熸椿浜嬩欢" prop="lifeEventClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedlifeEventType" @change="handlelifeEventChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in shoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> + </el-container> + + + <div style="padding-top:30px" > + <el-container > + + + <el-row :gutter="10" class="mb8"> + <el-col > + <el-button + plain + @click="handleEdit()" + style="width: 80px;height: 32px;background: #E0EEFE;" + v-if="isShow" + v-hasPermi="['system:role:edit']" + >缂栬緫</el-button> + <el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">瀹屾垚</el-button> + <br> + + </el-col> + + <!-- <el-col style="padding-top: 10px;">--> + <!-- <el-button--> + <!-- plain--> + <!-- style="width: 80px;height: 32px;background: #D2F3E0;"--> + <!-- @click="handleExport"--> + <!-- v-hasPermi="['family:note:export']"--> + <!-- >瀵煎嚭</el-button></el-col>--> + + <!-- <el-col style="padding-top: 10px;"> + <el-button + plain + style="width: 80px;height: 32px;background: #FFDDE3;" + v-print="'#printable-content'" + v-hasPermi="['family:note:export']" + >鎵撳嵃</el-button></el-col> --> + + + </el-row> + + </el-container> + </div> +</el-dialog> +<el-dialog :visible.sync="open2" width="800px" append-to-body @close=""> + <h2 style="font-size:21px">鎶ょ悊鏌ヤ綋</h2> + <el-container> + <div style="padding-left:0px" > + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthHuliList" > + <el-row :span="16"> + <el-form-item label="浣撴俯" prop="temperature" label-width="40px"> + <el-input v-model="HealthHuliList.temperature " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="琛�鍘�" prop="bloodPressure" label-width="40px"> + <el-input v-model="HealthHuliList.bloodPressure" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + + + </el-form> + </el-col> + </el-container> + </div> + <div style="padding-left:150px"> + <el-container> + <el-col v-loading="loading" :data="HealthHuliList" > + <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16"> + + <el-form-item label="鑴夋悘" prop="pulse" label-width="40px"> + <el-input v-model="HealthHuliList.pulse " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="浣撻噸" prop="weight" label-width="40px"> + <el-input v-model="HealthHuliList.weight " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + + </el-form> + </el-col> + </el-container> + </div> + <div style="padding-left:150px"> + <el-container> + <el-col v-loading="loading" :data="HealthHuliList" > + <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left"> + <el-row :span="16"> + + <el-form-item label="鍛煎惛" prop="breathe" label-width="40px"> + <el-input v-model="HealthHuliList.breathe " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + <el-row :span="16"> + <el-form-item label="鍥涜偄娲诲姩" prop="movement" label-width="70px"> + <el-input v-model="HealthHuliList.movement " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> + </el-input> + </el-form-item> + </el-row> + + </el-form> + </el-col> + </el-container> + </div> + </el-container> + <el-container> + <div> + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthHuliList" > + + <el-row :span="16"> + + <el-form-item label="鐨偆绮樿啘" prop="skinTypeClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedskinType" @change="handleskinTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in pfoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="蹇冪悊鐘舵��" prop="psychologyTypeClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedpsychologyType" @change="handlepsychologyTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in xloptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + + <el-form-item label="鐥呯悊鎬佸害" prop="attitudeClass" label-width="70px"> + <el-select :disabled="dsb" v-model="selectedpattitudeType" @change="handlepattitudeTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in bloptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="鍏ㄨ韩钀ュ吇鎯呭喌" prop="nutritionClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectednutritionType" @change="handlenutritionTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in qsoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> + </el-container> + <div style="padding-top:30px" > + <el-container > + + + <el-row :gutter="10" class="mb8"> + <el-col > + <el-button + plain + @click="handleEdit()" + style="width: 80px;height: 32px;background: #E0EEFE;" + v-if="isShow" + v-hasPermi="['system:role:edit']" + >缂栬緫</el-button> + <el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">瀹屾垚</el-button> + <br> + + </el-col> + + <!-- <el-col style="padding-top: 10px;">--> + <!-- <el-button--> + <!-- plain--> + <!-- style="width: 80px;height: 32px;background: #D2F3E0;"--> + <!-- @click="handleExport"--> + <!-- v-hasPermi="['family:note:export']"--> + <!-- >瀵煎嚭</el-button></el-col>--> + + <!-- <el-col style="padding-top: 10px;"> + <el-button + plain + style="width: 80px;height: 32px;background: #FFDDE3;" + v-print="'#printable-content'" + v-hasPermi="['family:note:export']" + >鎵撳嵃</el-button></el-col> --> + + + </el-row> + + </el-container> + </div> +</el-dialog> +<el-dialog :visible.sync="open3" width="1200px" append-to-body @close=""> + <h2 style="font-size:21px">鐜板瓨鍋ュ悍闂</h2> + + <el-container> + <div> + <el-container > + <el-col > + <el-form ref="elForm" :model="HealthNowList" :rules="rules" size="medium" label-position="left" + v-loading="loading" :data="HealthNowList" > + + <el-row :span="16"> + + + <el-form-item label="鑴戣绠$柧鐥�" prop="brainDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedbrainDiseaseType" @change="handlebrainDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in nxoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="蹇冭剰鐤剧梾" prop="heartDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedheartDiseaseType" @change="handleheartDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in xzoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="琛�绠$柧鐥�" prop="vascularDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedvascularDiseaseType" @change="handlevascularDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in xgoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="娑堝寲绯荤粺鐤剧梾" prop="digestiveSystemDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selecteddigestiveSystemDiseaseType" @change="handledigestiveSystemDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in xhoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="鍛煎惛绯荤粺鐤剧梾" prop="respiratorySystemDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedrespiratorySystemDiseaseType" @change="handlerespiratorySystemDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in hxjoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="鑲捐剰鐤剧梾" prop="kidneyDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedkidneyDiseaseDiseaseType" @change="handlekidneyDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in szjoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + <el-row :span="16"> + + + <el-form-item label="鍏跺畠鐤剧梾" prop="otherDiseaseClass" label-width="100px"> + <el-select :disabled="dsb" v-model="selectedotherDiseaseType" @change="handleotherDiseaseTypeChange" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in qtoptions" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-form-item> + </el-row> + </el-form> + </el-col> + </el-container> + </div> + </el-container> + + <div style="position:relative"> + <el-tabs type="border-card" v-model="activeName" + v-loading="loading" :data="HealthNoteList" > + + + <el-tab-pane label="鐢熸椿涔犳儻" name="lifeHabits" > + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.lifeHabits" type="textarea" ></el-input> </div> </template> - </el-upload> - - </el-form> - <h4 class="form-header"> </h4> - - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitDataScope">纭� 瀹�</el-button> - <el-button @click="cancelData">鍙� 娑�</el-button> - </div> - </el-dialog> - - <!-- 鍒嗛厤瑙掕壊鏁版嵁鏉冮檺瀵硅瘽妗� --> - <el-dialog :title="title" :visible.sync="openDataScope" width="500px" append-to-body> - - </el-dialog> - + <template v-else> + {{ HealthNoteList.lifeHabits }} + </template> + </el-tab-pane> + <el-tab-pane label="浠ュ線鐥呭彶" name="historyDisease"> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.historyDisease" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.historyDisease}} + </template> + </el-tab-pane> + <el-tab-pane label="娌荤枟淇℃伅" name="treatmentInfo"> + <!-- 娌荤枟淇℃伅鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.treatmentInfo" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.treatmentInfo}} + </template> + </el-tab-pane> + <el-tab-pane label="瀹舵棌鐥呭彶" name="familyDisease"> + <!-- 瀹舵棌鐥呭彶鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.familyDisease" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.familyDisease}} + </template> + </el-tab-pane> + <el-tab-pane label="鐜扮梾鍙�" name="nowDisease"> + <!-- 鐩墠鐥呮儏鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.nowDisease" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.nowDisease}} + </template> + </el-tab-pane> + <el-tab-pane label="鐤剧梾鍙戠敓" name="diseaseHappen"> + <!-- 鐤剧梾鍙戠敓鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.diseaseHappen" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.diseaseHappen}} + </template> + </el-tab-pane> + <el-tab-pane label="鐤剧梾鍙戝睍" name="diseaseDevelop"> + <!-- 鐤剧梾鍙戝睍鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.diseaseDevelop" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.diseaseDevelop}} + </template> + </el-tab-pane> + <el-tab-pane label="鐤剧梾娌荤枟" name="diseaseTreat"> + <!-- 鐤剧梾娌荤枟鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.diseaseTreat" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.diseaseTreat}} + </template> + </el-tab-pane> + <el-tab-pane label="鐤剧梾澶嶅彂" name="diseaseBack"> + <!-- 鐤剧梾澶嶅彂鐨勫唴瀹� --> + <template v-if="editMode"> + <div style="padding-top: 10px"> + <el-input v-model="HealthNoteList.diseaseBack" type="textarea" ></el-input> + </div> + </template> + <template v-else> + {{HealthNoteList.diseaseBack}} + </template> + </el-tab-pane> + </el-tabs> + + <div style="margin-bottom: 10px;position: absolute;right:10px;top:5px" > + <el-button size='mini' type="text" class="btn_edit" @click="saveData" style='top: 0px; bottom:0px;right: 20px;'> + <sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn> + <span >{{ editMode ? this.bstn='淇濆瓨' : this.bstn='淇敼' }}</span> + </el-button> + </div> + </div> + <div style="padding-top:30px" > + <el-container > + + + <el-row :gutter="10" class="mb8"> + <el-col > + <el-button + plain + @click="handleEdit()" + style="width: 80px;height: 32px;background: #E0EEFE;" + v-if="isShow" + v-hasPermi="['system:role:edit']" + >缂栬緫</el-button> + <el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">瀹屾垚</el-button> + <br> + + </el-col> + + <!-- <el-col style="padding-top: 10px;">--> + <!-- <el-button--> + <!-- plain--> + <!-- style="width: 80px;height: 32px;background: #D2F3E0;"--> + <!-- @click="handleExport"--> + <!-- v-hasPermi="['family:note:export']"--> + <!-- >瀵煎嚭</el-button></el-col>--> + + <!-- <el-col style="padding-top: 10px;"> + <el-button + plain + style="width: 80px;height: 32px;background: #FFDDE3;" + v-print="'#printable-content'" + v-hasPermi="['family:note:export']" + >鎵撳嵃</el-button></el-col> --> + + + </el-row> + + </el-container> + </div> + </el-dialog> </div> </template> <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; +import { + listHealthNote, + updateHealthNote,listHealthBase, + updateHealthBase, + listHealthHabit, + updateHealthHabit, + listHealthHuli, + updateHealthHuli, + listHealthNow, + updateHealthNow, +} from "@/api/healthy/index"; - - -//鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� -import {listHealth,enload,delHealth,uploadPic, addHealth} from "@/api/healthy/index"; +import { blobValidate } from '../../utils/ruoyi' export default { - name: "Role", + name: "show", dicts: ['sys_normal_disable'], data() { return { + open:false, + open1:false, + open2:false, + open3:false, + allBasicInfo:["鍩烘湰鎯呭喌","鐢熸椿涔犳儻","鎶ょ悊鏌ヤ綋","鐜板湪鍋ュ悍闂"], + dictionary: {}, // 閬僵灞� + editMode: false, // 鏄惁澶勪簬缂栬緫妯″紡 + activeName: 'lifeHabits', disabled: false, - loading: true, + isEditing:false, + inds: undefined, + sinds: undefined, + loading: false, + showOtherDialog: false, // 鏄惁鏄剧ず"鍏朵粬"杩囨晱鍙茶緭鍏ユ瀵硅瘽妗嗙殑鏍囧織浣� + otherText:undefined ,// 杈撳叆鐨勫叾浠栬繃鏁忓彶 formData:[], + bloodData:{}, + allergyData: {}, + geneticDiseaseData: {}, + sleepData:{}, + stoolStatusData:{}, + urineStatusData:{}, + eatingHabitsData:{}, + lifeEventData:{}, + skinTypeData:{}, + sychologyTypeData:{}, + attitudeTypeData:{}, + nutritionTypeData:{}, + brainDiseaseTypeData:{}, + vascularDiseaseTypeData:{}, + digestiveSystemTypeData:{}, + respiratorySystemTypeData:{}, + kidneyDiseaseSystemTypeData:{}, + otherDiseaseTypeData:{}, // 閫変腑鏁扮粍 ids: [], // 闈炲崟涓鐢� single: true, + bstn: '淇敼', // 闈炲涓鐢� multiple: true, // 鏄剧ず鎼滅储鏉′欢 showSearch: true, // 鎬绘潯鏁� total: 0, - // 瀹跺ぇ浜嬭琛ㄦ牸鏁版嵁 - economyList: [], + //澶村儚涓婁紶 + showBtnDealImg:true, + noneBtnImg:false, + limitCountImg:1,//涓婁紶鍥剧墖鐨勬渶澶ф暟閲� + selectedBloodType: undefined, // 鐢ㄤ簬瀛樺偍閫変腑鐨勮鍨� + originalBloodType:undefined, + selectedallergyType: undefined, //鐢ㄤ簬瀛樺偍閫変腑鐨勮繃鏁忓彶 + selectedgeneticDiseaseType:undefined, //閬椾紶鐥呭彶 + selectedsleepType:undefined,//鐫$湢 + selectedstoolStatusType:undefined,//澶т究 + selectedurineStatusType:undefined,//灏忎究 + selectedeatingHabitsType:undefined,//楗涔犳儻 + selectedlifeEventType:undefined,//鐢熸椿浜嬩欢 + selectedskinType:undefined,//鐨偆绮樿啘 + selectedpsychologyType:undefined,//蹇冪悊鐘舵�� + selectedpattitudeType:undefined,//鐥呯悊鎬佸害 + selectednutritionType:undefined,//鍏ㄨ韩钀ュ吇 + selectedbrainDiseaseType:undefined,//鑴戣绠� + selectedheartDiseaseType:undefined,//蹇冭剰鐤剧梾 + selectedvascularDiseaseType:undefined,//琛�绠$柧鐥� + selecteddigestiveSystemDiseaseType:undefined,//娑堝寲绯荤粺鐤剧梾 + selectedrespiratorySystemDiseaseType:undefined,//鍛煎惛绯荤粺鐤剧梾 + selectedkidneyDiseaseDiseaseType:undefined,//鑲捐剰鐤剧梾 + selectedotherDiseaseType:undefined,//鍏跺畠鐤剧梾 + //涓汉淇℃伅鏁版嵁 + HealthyBaseList:{ + bloodClass: { + a: undefined, + b: undefined, + o: undefined, + ab: undefined, + rh: undefined, + other: undefined, + otherText: "鍏朵粬琛�鍨�", + unknown: undefined + }, + allergyClass: { + medicine: undefined, + food: undefined, + other: undefined, + otherText: "鍏朵粬杩囨晱" + }, + geneticDiseaseClass: { + hypertension: undefined, + diabetes: undefined, + tumor:undefined, + other: undefined, + otherText: "鍏朵粬杩囨晱" + }, + }, + LiveHabbitList:{ + sleepClass: { + good: undefined, + general: undefined, + easyWake: undefined, + dreaminess: undefined, + sleepless: undefined, + other: undefined, + otherText: "鍏朵粬琛�鍨�", + snore: undefined, + wakefulness:undefined, + }, + stoolStatusClass: { + normal: undefined, + constipation: undefined, + diarrhea: undefined, + incontinence: undefined, + }, + urineStatusClass: { + normal: undefined, + nightUrinaryRetention: undefined, + enuresis: undefined, + incontinence: undefined, + }, + eatingHabitsClass: { + uniformityOfMeatAndVegetables: undefined, + meat: undefined, + vegetable: undefined, + salt: undefined, + oil:undefined, + sugar:undefined, + other:undefined, + }, + lifeEventClass: { + bereave: undefined, + liveAlone: undefined, + inHospital: undefined, + divide: undefined, + other:undefined, + }, + }, + HealthHuliList:{ + skinTypeClass: { + acne: undefined, + psoriasis: undefined, + color: undefined, + edema: undefined, + rash: undefined, + other: undefined, + bloodStasis: undefined, + snom:undefined, + nevus: undefined, + ulcer:undefined, + }, + psychologyTypeClass: { + optimistic: undefined, + worry: undefined, + fear: undefined, + suspicion: undefined, + constrain: undefined, + other: undefined, + miss: undefined, + }, + attitudeClass: { + lucidity: undefined, + unknown: undefined, + normal: undefined, + abnormal: undefined, + other: undefined, + }, + nutritionClass: { + good: undefined, + medium: undefined, + poor: undefined, + obesity: undefined, + thin: undefined, + fluid: undefined, + other: undefined, + }, + }, + HealthNowList:{ + brainDiseaseClass: { + ischemicStroke: undefined, + cerebralHemorrhage: undefined, + subarachnoidHemorrhage: undefined, + TIA: undefined, + other: undefined, + + }, + heartDiseaseClass: { + myocardialInfarct: undefined, + anginaPectoris: undefined, + coronaryRevascularization: undefined, + congestiveHeartFailure: undefined, + precordialPain:undefined, + other: undefined, + + }, + vascularDiseaseClass: { + dissectingAneurysm: undefined, + arterialOcclusiveDiseases: undefined, + other: undefined, + + }, + digestiveSystemDiseaseClass: { + gastroduodenalUlcer: undefined, + esophagitis: undefined, + gastritis: undefined, + colitis: undefined, + hepatitis: undefined, + cholecystitis: undefined, + cholelithiasis: undefined, + fattyLiver: undefined, + hyperlipidemia:undefined, + haemorrhoids:undefined, + other: undefined, + + }, + respiratorySystemDiseaseClass: { + COPD: undefined, + pneumonia: undefined, + bronchitis: undefined, + bronchialAsthma: undefined, + pulmonaryTuberculosis: undefined, + upperRespiratoryTractInfection: undefined, + other: undefined, + + }, + kidneyDiseaseClass: { + diabetes: undefined, + renalFailure: undefined, + acuteNephritis: undefined, + chronicNephritis: undefined, + urinaryCalculus: undefined, + urinaryTractInfection: undefined, + other: undefined, + + }, + otherDiseaseClass: { + pregnant: undefined, + cold: undefined, + infectious: undefined, + pulmonaryBulla: undefined, + hemoptysis: undefined, + activeBleeding: undefined, + other: undefined, + + }, + }, + HealthNoteList:{ + lifeHabits:undefined, + historyDisease:undefined, + treatmentInfo:undefined, + familyDisease:undefined, + nowDisease:undefined, + diseaseHappen:undefined, + diseaseDevelop:undefined, + diseaseTreat:undefined, + diseaseBack:undefined + }, + fit:['fill'], + //涓嬫媺瀹炵幇 + activeNames:['1'], // 寮瑰嚭灞傛爣棰� title: "", // 鏄惁鏄剧ず寮瑰嚭灞� open: false, + // open:true, + code:undefined, // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛� + bear:undefined, + mrs:undefined, + smrs:undefined, openDataScope: false, menuExpand: false, menuNodeAll: false, @@ -330,43 +1271,356 @@ // 鏃ユ湡鑼冨洿 dateRange: [], // 鏁版嵁鑼冨洿閫夐」 - fot:[".jpg",".jif"], + // 鏁版嵁鑼冨洿閫夐」 + fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', + '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], + fileList:[ ], - fileListOther:[ ], + fileListOther:[ + + ], + editStatus: {}, dsb:true, btn:false, + isShow:true, + isShow_2:false, + formDat: { - type: undefined, - createTime: undefined, - useFor: undefined, - usePeople: undefined, - kind:undefined, - remark: undefined, - url: undefined, + + }, + + + qtoptions: + [ + { value: 'pregnant', + label: '瀛曟湡涓変釜鏈堜互鍐呯殑瀛曞'}, + + { value: 'cold', + label: '鐥呮瘨鎬ч噸鎰熷啋'}, + { value: 'infectious', + label: '浼犳煋鎬х柧鐥�'}, + + { value: 'pulmonaryBulla', + label: '鑲哄ぇ鐤�'}, + { value: 'hemoptysis', + label: '缁撴牳鎬х┖娲炲舰鎴愮殑鍜'}, + + { value: 'activeBleeding', + label: '鏈粡澶勭悊鐨勬皵鑳�'}, + + { value: 'other', + label: '娲诲姩鎬у嚭琛�'}, + ], + szjoptions: + [ + { value: 'diabetes', + label: '绯栧翱鐥呰偩鐥�'}, + + { value: 'renalFailure', + label: '鑲惧姛鑳借“绔�'}, + { value: 'acuteNephritis', + label: '鎬ユ�ц偩鐐�'}, + + { value: 'chronicNephritis', + label: '鎱㈡�ц偩鐐�'}, + { value: 'urinaryCalculus', + label: '娉屽翱绯荤粺缁撶煶'}, + + { value: 'urinaryTractInfection', + label: '娉屽翱绯荤粺鎰熸煋'}, + + { value: 'other', + label: '鍏朵粬'}, + ], + hxjoptions: + [ + { value: 'COPD', + label: 'COPD'}, + + { value: 'pneumonia', + label: '鑲虹値'}, + { value: 'bronchitis', + label: '鏀皵绠$値'}, + + { value: 'bronchialAsthma', + label: '鏀皵绠″摦鍠�'}, + { value: 'pulmonaryTuberculosis', + label: '鑲虹粨鏍�'}, + + { value: 'upperRespiratoryTractInfection', + label: '涓婂懠鍚搁亾鎰熸煋'}, + { value: 'other', + label: '鍏朵粬'}, + ], + + xhoptions: + [ + { value: 'gastroduodenalUlcer', + label: '鑳冨崄浜屾寚鑲犳簝鐤�'}, + + { value: 'esophagitis', + label: '鍙嶆祦鎬ч绠$値'}, + { value: 'gastritis', + label: '鎱㈡�ц儍鐐�'}, + + { value: 'colitis', + label: '婧冪枴鎬х粨鑲犵値'}, + { value: 'hepatitis', + label: '鑲濈値'}, + + { value: 'cholecystitis', + label: '鑳嗗泭鐐�'}, + { value: 'cholelithiasis', + label: '鑳嗙煶鐥�'}, + + { value: 'fattyLiver', + label: '鑴傝偑鑲�'}, + { value: 'hyperlipidemia', + label: '楂樿剛琛�鐥�'}, + + { value: 'haemorrhoids', + label: '鐥旂柈'}, + { value: 'other', + label: '鍏朵粬'}, + ], + nxoptions: + [ + { value: 'ischemicStroke', + label: '缂鸿鎬у崚涓�'}, + + { value: 'cerebralHemorrhage', + label: '鑴戝嚭琛�'}, + { value: 'subarachnoidHemorrhage', + label: '铔涚綉鑶滀笅鑵斿嚭琛�'}, + { value: 'TIA', + label: '鐭殏鎬ц剳缂鸿鍙戜綔'}, + + { value: 'other', + label: '鍏跺畠'}, + ], + xzoptions: + [ + { value: 'myocardialInfarct', + label: '蹇冭倢姊楀'}, + { value: 'anginaPectoris', + label: '蹇冪粸鐥�'}, + + { value: 'coronaryRevascularization', + label: '鍐犵姸鍔ㄨ剦琛�杩愰噸寤�'}, + { value: 'congestiveHeartFailure', + label: '鍏呰鎬у績鍔涜“绔�'}, + { value: 'precordialPain', + label: '蹇冨墠鍖虹柤鐥�'}, + + { value: 'other', + label: '鍏跺畠'}, + ], + xgoptions: + [ + { value: 'dissectingAneurysm', + label: '澶瑰眰鍔ㄨ剦鐦�'}, + { value: 'arterialOcclusiveDiseases', + label: '鍔ㄨ剦闂鎬х柧鐥�'}, + + { value: 'other', + label: '鍏跺畠'}, + ], + qsoptions: + [ + { value: 'good', + label: '鑹ソ'}, + { value: 'medium', + label: '涓瓑'}, + { value: 'poor', + label: '娆犱匠'}, + { value: 'obesity', + label: '鑲ヨ儢'}, + { value: 'thin', + label: '娑堢槮'}, + { value: 'fluid', + label: '鎭舵恫璐�'}, + { value: 'other', + label: '鍏跺畠'}, + ], + xloptions: + [ + { value: 'optimistic', + label: '寮�鏈�'}, + { value: 'worry', + label: '鐒﹁檻'}, + { value: 'fear', + label: '蹇ф剚鎭愭儳'}, + { value: 'suspicion', + label: '鐚滅枒'}, + { value: 'miss', + label: '鎬濆康'}, + { value: 'constrain', + label: '鍘嬫姂'}, + { value: 'other', + label: '鍏跺畠'}, + ], + bloptions: + [ + { value: 'lucidity', + label: '鏄庢湕'}, + { value: 'unknown', + label: '涓嶄簡瑙�'}, + { value: 'normal', + label: '姝e父'}, + { value: 'abnormal', + label: '涓嶆甯�'}, + { value: 'other', + label: '鍏跺畠'}, + ], + pfoptions: + [ + { value: 'acne', + label: '闈掓槬鐥�'}, + { value: 'psoriasis', + label: '鐗涚毊钘�'}, + { value: 'color', + label: '鑹茬礌娌夌潃'}, + { value: 'edema', + label: '姘磋偪'}, + { value: 'rash', + label: '鐨柟'}, + { value: 'bloodStasis', + label: '娣ょ偣娣ゆ枒'}, + { value: 'snom', + label: '鐨笅缁撹妭鎴栬偪鍧�'}, + { value: 'nevus', + label: '铚樿洓鐥�'}, + { value: 'ulcer', + label: '婧冪枴鍙婄槩鐥�'}, + { value: 'other', + label: '鍏跺畠'}, + ], + shoptions: + [ + { value: 'bereave', + label: '涓у伓(涓ゅ勾涔嬪唴)'}, + { value: 'liveAlone', + label: '鐩墠鐙眳'}, + { value: 'inHospital', + label: '涓�骞村唴浣忛櫌娌荤枟'}, + { value: 'divide', + label: '瀛愬コ鍒嗗鐢熸椿'}, + + { value: 'other', + label: '鍏跺畠'}, + ], + ysoptions: + [ + { value: 'uniformityOfMeatAndVegetables', + label: '鑽ょ礌鍧囪 '}, + { value: 'meat', + label: '鑽ら涓轰富'}, + { value: 'vegetable', + label: '绱犻涓轰富'}, + { value: 'salt', + label: '鍡滅洂'}, + { value: 'oil', + label: '鍡滄补'}, + { value: 'sugar', + label: '鍡滅硸'}, + { value: 'other', + label: '鍏跺畠'}, + ], + dboptions: + [ + { value: 'normal', + label: '姝e父'}, + { value: 'constipation', + label: '绉樼粨'}, + { value: 'diarrhea', + label: '鑵规郴'}, + { value: 'incontinence', + label: '澶辩'}, + + ], + + xboptions: + [ + { value: 'normal', + label: '姝e父'}, + { value: 'nightUrinaryRetention', + label: '澶滃翱娼寸暀'}, + { value: 'incontinence', + label: '澶辩'}, + { value: 'enuresis', + label: '閬楀翱'}, + + ], + spoptions:[ + { value: 'good', + label: '鑹ソ'}, + { value: 'general', + label: '涓�鑸�'}, + { value: 'easyWake', + label: '鏄撻啋'}, + { value: 'dreaminess', + label: '澶氭ⅵ'}, + { value: 'sleepless', + label: '澶辩湢'}, + { value: 'snore', + label: '鎵撻季'}, + { value: 'wakefulness', + label: '鐫′笉鐔�'}, + + ], + ycoptions:[ + { value: 'hypertension', + label: '楂樿鍘�'}, + { value: 'diabetes', + label: '绯栧翱鐥�'}, + { value: 'tumor', + label: '鑲跨槫'}, + { value: 'other', + label: '鍏跺畠'}, + ], + gmoptions:[ + { value: 'medicine', + label: '鑽墿'}, + { value: 'food', + label: '椋熺墿'}, + { value: 'other', + label: '鍏跺畠'}, + ], +Bloodoptions: [{ + value: 'a', + label: 'A鍨嬭' + }, { + value: 'b', + label: 'B鍨嬭' + }, + { + value: 'o', + label: 'o鍨嬭' + }, { + + value: 'ab', + label: 'AB鍨嬭' + }, + { + value: 'rh', + label: 'RH鍨嬭' + }, { + value: 'otherText', + label: '鍏跺畠' + }, + { + value: 'unknown', + label: '鏈煡琛�鍨�' + }], // 鑿滃崟鍒楄〃 menuOptions: [], // 閮ㄩ棬鍒楄〃 deptOptions: [], // 鏌ヨ鍙傛暟 queryParams: { - pageNum: 1, - pageSize: 10, - type:undefined, - useFor:undefined, - usePeople:undefined, - checkTime:undefined, - }, - healthList:{ - checkTime:undefined, - type:undefined, - hospital:undefined, - title:undefined, - notice:undefined, - remark:undefined, - url:undefined }, // 琛ㄥ崟鍙傛暟 form: {}, @@ -376,93 +1630,982 @@ }, // 琛ㄥ崟鏍¢獙 rules: { - title: [{ - required: true, - message: '璇疯緭鍏ユ爣棰�', - trigger: 'blur' - }], - hospital: [{ - required: true, - message: '璇疯緭鍏ュ氨鐥呭尰闄�', - trigger: 'blur' - }], - type: [{ - required: true, - message: '璇疯緭鍏ョ被鍒�', - trigger: 'blur' - }], - checkTime: [{ - required: true, - message: '閫夋嫨浣撴鏃堕棿', - trigger: 'change' - }], - notice: [{ - required: true, - message: '璇疯緭鍏ユ敞鎰忎簨椤�', - trigger: 'blur' - }], }, }; }, created() { - this.getList(); - - + this.getList() + this.$route.meta.title = "鐜扮姸鍋ュ悍鎯呭喌"; + this.$route.meta.title = "鐜扮姸鍋ュ悍鎯呭喌"; }, - methods: { + methods: { + handleEditInfo(index) + { + + if(index==0) + this.open = true + else if(index==1) + this.open1 = true; + else if(index==2) + this.open2 = true; + else + this.open3 = true; + }, + saveData() { + // 灏嗘暟鎹彂閫佺粰鍚庣 + // alert(this.bstn) + this.editMode= true + if(this.bstn=="淇濆瓨") + { + const data = { + lifeHabits: this.HealthNoteList.lifeHabits, + historyDisease: this.HealthNoteList.historyDisease, + treatmentInfo: this.HealthNoteList.treatmentInfo, + familyDisease:this.HealthNoteList.familyDisease, + nowDisease: this.HealthNoteList.nowDisease,// 鐜扮梾鍙� + diseaseHappen: this.HealthNoteList.diseaseHappen,// 鐤剧梾鐨勫彂鐢� + diseaseDevelop: this.HealthNoteList.diseaseDevelop,// 鐤剧梾鐨勫彂灞� + diseaseTreat: this.HealthNoteList.diseaseTreat,// 鐤剧梾鐨勬不鐤� + diseaseBack: this.HealthNoteList.diseaseBack// 鐤剧梾鐨勮浆褰� + // 鍏朵粬瀛楁鐪佺暐锛岃琛ュ厖瀹屾暣 + }; + updateHealthNote(data).then(response=>{ + this.$modal.msgSuccess("淇敼鎴愬姛锛�"); + }) + this.editMode = false + } + + }, + //琛�鍨嬩慨鏀� + handlebloodChange() { + + if (this.selectedBloodType === '') { + // 娌℃湁閫夋嫨琛�鍨嬶紝涓嶈繘琛屼慨鏀癸紝淇濈暀鍘熷鏁版嵁 + this.selectedBloodType = this.originalBloodType; + } else { + // 鐐瑰嚮鎸夐挳鏃惰繘琛屼慨鏀� + this.bloodData = { + a: this.selectedBloodType === 'a' ? 1 : 0, + b: this.selectedBloodType === 'b' ? 1 : 0, + o: this.selectedBloodType === 'o' ? 1 : 0, + ab: this.selectedBloodType === 'ab' ? 1 : 0, + rh: this.selectedBloodType === 'rh' ? 1 : 0, + unknown: this.selectedBloodType === 'unknown' ? 1 : 0 + }; + } + // 灏嗙粨鏋滀互瀵硅薄褰㈠紡杩斿洖缁欏悗绔繘琛屽鐞� + console.log(this.bloodData); + }, + //杩囨晱鍙� + handleAllergyChange() { + this.allergyData = { + medicine: this.selectedallergyType === 'medicine' ? 1 : 0, + food: this.selectedallergyType === 'food' ? 1 : 0, + other: this.selectedallergyType === 'other' ? 1 : 0 + }; + + // 灏嗙粨鏋滀互瀵硅薄褰㈠紡杩斿洖缁欏悗绔繘琛屽鐞� + console.log(this.allergyData); + }, + //閬椾紶鐥呭彶 + handlegeneticDiseaseChange() { + this.geneticDiseaseData = { + hypertension: this.selectedgeneticDiseaseType === 'hypertension' ? 1 : 0, + diabetes: this.selectedgeneticDiseaseType === 'diabetes' ? 1 : 0, + tumor: this.selectedgeneticDiseaseType === 'tumor' ? 1 : 0, + other: this.selectedgeneticDiseaseType === 'other' ? 1 : 0 + }; + // 灏嗙粨鏋滀互瀵硅薄褰㈠紡杩斿洖缁欏悗绔繘琛屽鐞� + console.log(this.geneticDiseaseData); + }, + //鐫$湢 + handlesleepChange() { + this.sleepData = { + good: this.selectedsleepType === 'good' ? 1 : 0, + general: this.selectedsleepType === 'general' ? 1 : 0, + easyWake: this.selectedsleepType === 'easyWake' ? 1 : 0 , + dreaminess: this.selectedsleepType === 'dreaminess' ? 1 : 0, + sleepless: this.selectedsleepType === 'sleepless' ? 1 : 0, + snore: this.selectedsleepType === 'snore' ? 1 : 0, + wakefulness: this.selectedsleepType === 'wakefulness' ? 1 : 0, + }; + + // 灏嗙粨鏋滀互瀵硅薄褰㈠紡杩斿洖缁欏悗绔繘琛屽鐞� + console.log(this.sleepData); + }, + //澶т究 + handlestoolStatusChange() { + this.stoolStatusData = { + normal: this.selectedstoolStatusType === 'normal' ? 1 : 0, + constipation: this.selectedstoolStatusType === 'constipation' ? 1 : 0, + diarrhea: this.selectedstoolStatusType === 'diarrhea' ? 1 : 0 , + incontinence: this.selectedstoolStatusType === 'incontinence' ? 1 : 0, + + }; + + // 灏嗙粨鏋滀互瀵硅薄褰㈠紡杩斿洖缁欏悗绔繘琛屽鐞� + console.log(this.stoolStatusData); + }, + //灏忎究 + handleurineStatusChange() { + this.urineStatusData = { + normal: this.selectedurineStatusType === 'normal' ? 1 : 0, + nightUrinaryRetention: this.selectedurineStatusType === 'nightUrinaryRetention' ? 1 : 0, + enuresis: this.selectedurineStatusType === 'enuresis' ? 1 : 0 , + incontinence: this.selectedurineStatusType === 'incontinence' ? 1 : 0, + + }; + + }, + //楗涔犳儻 + handleeatingHabitsChange() { + this.eatingHabitsData = { + uniformityOfMeatAndVegetables: this.selectedeatingHabitsType === 'uniformityOfMeatAndVegetables' ? 1 : 0, + meat: this.selectedeatingHabitsType === 'meat' ? 1 : 0, + vegetable: this.selectedeatingHabitsType === 'vegetable' ? 1 : 0 , + salt: this.selectedeatingHabitsType === 'salt' ? 1 : 0, + oil: this.selectedeatingHabitsType === 'oil' ? 1 : 0, + sugar: this.selectedeatingHabitsType === 'sugar' ? 1 : 0 , + other: this.selectedeatingHabitsType === 'other' ? 1 : 0, + + }; + + }, + //鐢熸椿浜嬩欢 + handlelifeEventChange() { + this.lifeEventData = { + bereave: this.selectedlifeEventType === 'bereave' ? 1 : 0, + liveAlone: this.selectedlifeEventType === 'liveAlone' ? 1 : 0, + inHospital: this.selectedlifeEventType === 'inHospital' ? 1 : 0 , + divide: this.selectedlifeEventType === 'divide' ? 1 : 0, + other: this.selectedlifeEventType === 'other' ? 1 : 0, + }; + + }, + //鐨偆绮樿啘 + handleskinTypeChange() { + const modified = this.skinTypeData !== this.HealthHuliList.skinTypeClass; + console.log(modified) + if(modified){ + this.skinTypeData = { + acne: this.selectedskinType === 'acne' ? 1 : 0, + psoriasis: this.selectedskinType === 'psoriasis' ? 1 : 0, + color: this.selectedskinType === 'color' ? 1 : 0 , + edema: this.selectedskinType === 'edema' ? 1 : 0, + rash: this.selectedskinType === 'rash' ? 1 : 0, + bloodStasis: this.selectedskinType === 'bloodStasis' ? 1 : 0, + snom: this.selectedskinType === 'snom' ? 1 : 0, + nevus: this.selectedskinType === 'nevus' ? 1 : 0 , + ulcer: this.selectedskinType === 'ulcer' ? 1 : 0, + other: this.selectedskinType === 'other' ? 1 : 0, + }; + }else { + this.skinTypeData = this.HealthHuliList.skinTypeClass; + console.log(this.skinTypeData) + } + + console.log(this.skinTypeData) + + }, + //蹇冮噷鐘舵�� + handlepsychologyTypeChange() { + + this.sychologyTypeData = { + optimistic: this.selectedpsychologyType === 'optimistic' ? 1 : 0, + worry: this.selectedpsychologyType === 'worry' ? 1 : 0, + fear: this.selectedpsychologyType === 'fear' ? 1 : 0 , + suspicion: this.selectedpsychologyType === 'suspicion' ? 1 : 0, + miss: this.selectedpsychologyType === 'miss' ? 1 : 0, + constrain: this.selectedpsychologyType === 'constrain' ? 1 : 0, + other: this.selectedpsychologyType === 'other' ? 1 : 0, + }; + + }, + //鐤剧梾鎬佸害 + handlepattitudeTypeChange() { + this.attitudeTypeData = { + lucidity: this.selectedpattitudeType === 'lucidity' ? 1 : 0, + unknown: this.selectedpattitudeType === 'unknown' ? 1 : 0, + normal: this.selectedpattitudeType === 'normal' ? 1 : 0 , + abnormal: this.selectedpattitudeType === 'abnormal' ? 1 : 0, + other: this.selectedpattitudeType === 'other' ? 1 : 0, + }; + }, + //鍏ㄨ韩钀ュ吇 + handlenutritionTypeChange() { + this.nutritionTypeData = { + good: this.selectednutritionType === 'good' ? 1 : 0, + medium: this.selectednutritionType === 'medium' ? 1 : 0, + poor: this.selectednutritionType === 'poor' ? 1 : 0 , + obesity: this.selectednutritionType === 'obesity' ? 1 : 0, + thin: this.selectednutritionType === 'thin' ? 1 : 0 , + fluid: this.selectednutritionType === 'fluid' ? 1 : 0, + other: this.selectednutritionType === 'other' ? 1 : 0, + }; + }, + + //鑴戣绠� + handlebrainDiseaseTypeChange() { + this.brainDiseaseTypeData = { + ischemicStroke: this.selectedbrainDiseaseType === 'ischemicStroke' ? 1 : 0, + cerebralHemorrhage: this.selectedbrainDiseaseType === 'cerebralHemorrhage' ? 1 : 0, + subarachnoidHemorrhage: this.selectedbrainDiseaseType === 'subarachnoidHemorrhage' ? 1 : 0 , + TIA: this.selectedbrainDiseaseType === 'TIA' ? 1 : 0, + other: this.selectedbrainDiseaseType === 'other' ? 1 : 0, + }; + }, + //蹇冭剰鐤剧梾 + handleheartDiseaseTypeChange() { + this.heartDiseaseTypeData = { + myocardialInfarct: this.selectedheartDiseaseType === 'myocardialInfarct' ? 1 : 0, + anginaPectoris: this.selectedheartDiseaseType === 'anginaPectoris' ? 1 : 0, + coronaryRevascularization: this.selectedheartDiseaseType === 'coronaryRevascularization' ? 1 : 0 , + congestiveHeartFailure: this.selectedheartDiseaseType === 'congestiveHeartFailure' ? 1 : 0, + precordialPain: this.selectedheartDiseaseType === 'precordialPain' ? 1 : 0, + other: this.selectedheartDiseaseType === 'other' ? 1 : 0, + }; + }, + //琛�绠$柧鐥� + handlevascularDiseaseTypeChange() { + this.vascularDiseaseTypeData = { + dissectingAneurysm: this.selectedvascularDiseaseType === 'dissectingAneurysm' ? 1 : 0, + arterialOcclusiveDiseases: this.selectedvascularDiseaseType === 'arterialOcclusiveDiseases' ? 1 : 0, + other: this.selectedvascularDiseaseType === 'other' ? 1 : 0, + }; + }, + //娑堝寲绯荤粺鐤剧梾 + handledigestiveSystemDiseaseTypeChange() { + this.digestiveSystemTypeData = { + gastroduodenalUlcer: this.selecteddigestiveSystemDiseaseType === 'gastroduodenalUlcer' ? 1 : 0, + esophagitis: this.selecteddigestiveSystemDiseaseType === 'esophagitis' ? 1 : 0, + gastritis: this.selecteddigestiveSystemDiseaseType === 'gastritis' ? 1 : 0 , + colitis: this.selecteddigestiveSystemDiseaseType === 'colitis' ? 1 : 0, + hepatitis: this.selecteddigestiveSystemDiseaseType === 'hepatitis' ? 1 : 0 , + cholecystitis: this.selecteddigestiveSystemDiseaseType === 'cholecystitis' ? 1 : 0, + cholelithiasis: this.selecteddigestiveSystemDiseaseType === 'cholelithiasis' ? 1 : 0, + fattyLiver: this.selecteddigestiveSystemDiseaseType === 'fattyLiver' ? 1 : 0 , + hyperlipidemia: this.selecteddigestiveSystemDiseaseType === 'hyperlipidemia' ? 1 : 0, + haemorrhoids: this.selecteddigestiveSystemDiseaseType === 'haemorrhoids' ? 1 : 0 , + other: this.selecteddigestiveSystemDiseaseType === 'other' ? 1 : 0, + }; + }, + //鍛煎惛閬� + handlerespiratorySystemDiseaseTypeChange() { + this.respiratorySystemTypeData = { + COPD: this.selectedrespiratorySystemDiseaseType === 'COPD' ? 1 : 0, + pneumonia: this.selectedrespiratorySystemDiseaseType === 'pneumonia' ? 1 : 0, + bronchitis: this.selectedrespiratorySystemDiseaseType === 'bronchitis' ? 1 : 0 , + bronchialAsthma: this.selectedrespiratorySystemDiseaseType === 'bronchialAsthma' ? 1 : 0, + pulmonaryTuberculosis: this.selectedrespiratorySystemDiseaseType === 'pulmonaryTuberculosis' ? 1 : 0 , + upperRespiratoryTractInfection: this.selectedrespiratorySystemDiseaseType === 'upperRespiratoryTractInfection' ? 1 : 0, + other: this.selectedrespiratorySystemDiseaseType === 'other' ? 1 : 0, + }; + }, + //鑲捐剰鐤剧梾 + handlekidneyDiseaseTypeChange() { + this.kidneyDiseaseSystemTypeData = { + diabetes: this.selectedkidneyDiseaseDiseaseType === 'diabetes' ? 1 : 0, + renalFailure: this.selectedkidneyDiseaseDiseaseType === 'renalFailure' ? 1 : 0, + acuteNephritis: this.selectedkidneyDiseaseDiseaseType === 'acuteNephritis' ? 1 : 0 , + chronicNephritis: this.selectedkidneyDiseaseDiseaseType === 'chronicNephritis' ? 1 : 0, + urinaryCalculus: this.selectedkidneyDiseaseDiseaseType === 'urinaryCalculus' ? 1 : 0 , + urinaryTractInfection: this.selectedkidneyDiseaseDiseaseType === 'urinaryTractInfection' ? 1 : 0, + other: this.selectedkidneyDiseaseDiseaseType === 'other' ? 1 : 0, + }; + }, + //鍏朵粬鐤剧梾 + handleotherDiseaseTypeChange() { + this.otherDiseaseTypeData = { + pregnant: this.selectedotherDiseaseType === 'pregnant' ? 1 : 0, + cold: this.selectedotherDiseaseType === 'cold' ? 1 : 0, + infectious: this.selectedotherDiseaseType === 'infectious' ? 1 : 0 , + pulmonaryBulla: this.selectedotherDiseaseType === 'pulmonaryBulla' ? 1 : 0, + hemoptysis: this.selectedotherDiseaseType === 'hemoptysis' ? 1 : 0 , + activeBleeding: this.selectedotherDiseaseType === 'activeBleeding' ? 1 : 0, + other: this.selectedotherDiseaseType === 'other' ? 1 : 0, + }; + }, + closeOtherDialog() { + // 鍏抽棴杈撳叆妗嗗璇濇鏃舵竻绌鸿緭鍏ョ殑鍏朵粬杩囨晱鍙� + this.otherAllergy = ''; + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; this.reset(); }, - - //闅旇鍙樿壊 - tableRowClassName({row, rowIndex}) { - if (rowIndex % 2 == 0) { - return "statistics-warning-row1"; - } else { - return "statistics-warning-row"; - } + //涓嬫媺 + handleChange(val) { + console.log(val); }, + /** 鏌ヨ瑙掕壊鍒楄〃 */ - //鍒楄〃鏄剧ず瀹跺ぇ浜嬭 getList() { - this.loading = true; - this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0] - this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1] - // console.log(this.queryParams) - // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { + this.loading = false; - listHealth(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.healthList = response.data.data; - - this.total = response.data.total; + //涓汉淇℃伅 + listHealthBase(this.queryParams).then(response => { + if (response.data.length === 0) { this.loading = false; + this.HealthyBaseList = {}; + + + } else { + this.HealthyBaseList = response.data; + console.log("----------00000000-----------") + console.log(this.HealthyBaseList) + //琛�鍨嬬殑 + if (this.HealthyBaseList.bloodClass.a === 1) { + this.selectedBloodType = 'a'; + } else if (this.HealthyBaseList.bloodClass.b === 1) { + this.selectedBloodType = 'b'; + } else if (this.HealthyBaseList.bloodClass.o === 1) { + this.selectedBloodType = 'o'; + } else if (this.HealthyBaseList.bloodClass.ab === 1) { + this.selectedBloodType = 'ab'; + } else if (this.HealthyBaseList.bloodClass.rh === 1) { + this.selectedBloodType = 'rh'; + } else if (this.HealthyBaseList.bloodClass.otherText === 1) { + this.selectedBloodType = 'otherText'; + } else if (this.HealthyBaseList.bloodClass.unknown === 1) { + this.selectedBloodType = 'unknown'; + } + //杩囨晱鍙� + if (this.HealthyBaseList.allergyClass.medicine === 1) { + this.selectedallergyType = 'medicine'; + } else if (this.HealthyBaseList.allergyClass.food === 1) { + this.selectedallergyType = 'food'; + } else if (this.HealthyBaseList.allergyClass.other === 1) { + this.selectedallergyType = 'other'; + } + //閬椾紶鐥呭彶 + //杩囨晱鍙� + if (this.HealthyBaseList.geneticDiseaseClass.hypertension === 1) { + this.selectedgeneticDiseaseType = 'hypertension'; + } else if (this.HealthyBaseList.geneticDiseaseClass.diabetes === 1) { + this.selectedgeneticDiseaseType = 'diabetes'; + } else if (this.HealthyBaseList.geneticDiseaseClass.tumor === 1) { + this.selectedgeneticDiseaseType = 'tumor'; + } else if (this.HealthyBaseList.geneticDiseaseClass.other === 1) { + this.selectedgeneticDiseaseType = 'other'; + } + //鐢熸椿涔犳儻 + listHealthHabit(this.queryParams).then(response => { + if (response.data.length === 0) { + this.loading = false; + this.LiveHabbitList = {}; + + } else { + this.LiveHabbitList = response.data; + console.log(this.LiveHabbitList.sleepClass) + + //鐫$湢鐨� + if (this.LiveHabbitList.sleepClass.good === 1) { + this.selectedsleepType = 'good'; + } else if (this.LiveHabbitList.sleepClass.general === 1) { + this.selectedsleepType = 'general'; + } else if (this.LiveHabbitList.sleepClass.easyWake === 1) { + this.selectedsleepType = 'easyWake'; + } else if (this.LiveHabbitList.sleepClass.dreaminess === 1) { + this.selectedsleepType = 'dreaminess'; + } else if (this.LiveHabbitList.sleepClass.sleepless === 1) { + this.selectedsleepType = 'sleepless'; + } else if (this.LiveHabbitList.sleepClass.snore === 1) { + this.selectedsleepType = 'snore'; + } else if (this.LiveHabbitList.sleepClass.wakefulness === 1) { + this.selectedsleepType = 'wakefulness'; + } + //澶т究 + if (this.LiveHabbitList.stoolStatusClass.normal === 1) { + this.selectedstoolStatusType = 'normal'; + } else if (this.LiveHabbitList.stoolStatusClass.constipation === 1) { + this.selectedstoolStatusType = 'constipation'; + } else if (this.LiveHabbitList.stoolStatusClass.diarrhea === 1) { + this.selectedstoolStatusType = 'diarrhea'; + } else if (this.LiveHabbitList.stoolStatusClass.incontinence === 1) { + this.selectedstoolStatusType = 'incontinence'; + } + //灏忎究 + if (this.LiveHabbitList.urineStatusClass.normal === 1) { + this.selectedurineStatusType = 'normal'; + } else if (this.LiveHabbitList.urineStatusClass.nightUrinaryRetention === 1) { + this.selectedurineStatusType = 'nightUrinaryRetention'; + } else if (this.LiveHabbitList.urineStatusClass.incontinence === 1) { + this.selectedurineStatusType = 'incontinence'; + } else if (this.LiveHabbitList.urineStatusClass.enuresis === 1) { + this.selectedurineStatusType = 'enuresis'; + } + //楗涔犳儻 + if (this.LiveHabbitList.eatingHabitsClass.uniformityOfMeatAndVegetables === 1) { + this.selectedeatingHabitsType = 'uniformityOfMeatAndVegetables'; + } else if (this.LiveHabbitList.eatingHabitsClass.meat === 1) { + this.selectedeatingHabitsType = 'meat'; + } else if (this.LiveHabbitList.eatingHabitsClass.vegetable === 1) { + this.selectedeatingHabitsType = 'vegetable'; + } else if (this.LiveHabbitList.eatingHabitsClass.salt === 1) { + this.selectedeatingHabitsType = 'salt'; + } else if (this.LiveHabbitList.eatingHabitsClass.oil === 1) { + this.selectedeatingHabitsType = 'oil'; + } else if (this.LiveHabbitList.eatingHabitsClass.sugar === 1) { + this.selectedeatingHabitsType = 'sugar'; + } else if (this.LiveHabbitList.eatingHabitsClass.other === 1) { + this.selectedeatingHabitsType = 'other'; + } + + //鐢熸椿浜嬩欢 + + if (this.LiveHabbitList.lifeEventClass.bereave === 1) { + this.selectedlifeEventType = 'bereave'; + } else if (this.LiveHabbitList.lifeEventClass.liveAlone === 1) { + this.selectedlifeEventType = 'liveAlone'; + } else if (this.LiveHabbitList.lifeEventClass.inHospital === 1) { + this.selectedlifeEventType = 'inHospital'; + } else if (this.LiveHabbitList.lifeEventClass.divide === 1) { + this.selectedlifeEventType = 'divide'; + } else if (this.LiveHabbitList.lifeEventClass.other === 1) { + this.selectedlifeEventType = 'other'; + } + //鎶ょ悊鏌ヤ綋 + listHealthHuli(this.queryParams).then(response => { + if (response.data.length === 0) { + this.loading = false; + this.HealthHuliList = {}; + + } else { + this.HealthHuliList = response.data; + + //鐨偆绮樿啘 + + if (this.HealthHuliList.skinTypeClass.acne === 1) { + this.selectedskinType = 'acne'; + } else if (this.HealthHuliList.skinTypeClass.psoriasis === 1) { + this.selectedskinType = 'psoriasis'; + } else if (this.HealthHuliList.skinTypeClass.color === 1) { + this.selectedskinType = 'color'; + } else if (this.HealthHuliList.skinTypeClass.edema === 1) { + this.selectedskinType = 'edema'; + } else if (this.HealthHuliList.skinTypeClass.rash === 1) { + this.selectedskinType = 'rash'; + } else if (this.HealthHuliList.skinTypeClass.bloodStasis === 1) { + this.selectedskinType = 'bloodStasis'; + } else if (this.HealthHuliList.skinTypeClass.snom === 1) { + this.selectedskinType = 'snom'; + } else if (this.HealthHuliList.skinTypeClass.nevus === 1) { + this.selectedskinType = 'nevus'; + } else if (this.HealthHuliList.skinTypeClass.ulcer === 1) { + this.selectedskinType = 'ulcer'; + } else if (this.HealthHuliList.skinTypeClass.other === 1) { + this.selectedskinType = 'other'; + } + //蹇冮噷鐘舵�� + if (this.HealthHuliList.psychologyTypeClass.optimistic === 1) { + this.selectedpsychologyType = 'optimistic'; + } else if (this.HealthHuliList.psychologyTypeClass.worry === 1) { + this.selectedpsychologyType = 'worry'; + } else if (this.HealthHuliList.psychologyTypeClass.fear === 1) { + this.selectedpsychologyType = 'fear'; + } else if (this.HealthHuliList.psychologyTypeClass.suspicion === 1) { + this.selectedpsychologyType = 'suspicion'; + } else if (this.HealthHuliList.psychologyTypeClass.miss === 1) { + this.selectedpsychologyType = 'miss'; + } else if (this.HealthHuliList.psychologyTypeClass.constrain === 1) { + this.selectedpsychologyType = 'constrain'; + } else if (this.HealthHuliList.psychologyTypeClass.other === 1) { + this.selectedpsychologyType = 'other'; + } + + //鐥呬緥鎬佸害 + if (this.HealthHuliList.attitudeClass.lucidity === 1) { + this.selectedpattitudeType = 'lucidity'; + } else if (this.HealthHuliList.attitudeClass.unknown === 1) { + this.selectedpattitudeType = 'unknown'; + } else if (this.HealthHuliList.attitudeClass.normal === 1) { + this.selectedpattitudeType = 'normal'; + } else if (this.HealthHuliList.attitudeClass.abnormal === 1) { + this.selectedpattitudeType = 'abnormal'; + } else if (this.HealthHuliList.attitudeClass.other === 1) { + this.selectedpattitudeType = 'other'; + } + + //鍏ㄨ韩钀ュ吇 + if (this.HealthHuliList.nutritionClass.good === 1) { + this.selectednutritionType = 'good'; + } else if (this.HealthHuliList.nutritionClass.medium === 1) { + this.selectednutritionType = 'medium'; + } else if (this.HealthHuliList.nutritionClass.poor === 1) { + this.selectednutritionType = 'poor'; + } else if (this.HealthHuliList.nutritionClass.obesity === 1) { + this.selectednutritionType = 'obesity'; + } else if (this.HealthHuliList.nutritionClass.thin === 1) { + this.selectednutritionType = 'thin'; + } else if (this.HealthHuliList.nutritionClass.fluid === 1) { + this.selectednutritionType = 'fluid'; + } else if (this.HealthHuliList.nutritionClass.other === 1) { + this.selectednutritionType = 'other'; + } + listHealthNow(this.queryParams).then(response => { + + if (response.data.length === 0) { + this.loading = false; + this.HealthNowList = {}; + + } else { + this.HealthNowList = response.data; + //鑴戣绠� + if (this.HealthNowList.brainDiseaseClass.ischemicStroke === 1) { + this.selectedbrainDiseaseType = 'ischemicStroke'; + } else if (this.HealthNowList.brainDiseaseClass.cerebralHemorrhage === 1) { + this.selectedbrainDiseaseType = 'cerebralHemorrhage'; + } else if (this.HealthNowList.brainDiseaseClass.subarachnoidHemorrhage === 1) { + this.selectedbrainDiseaseType = 'subarachnoidHemorrhage'; + } else if (this.HealthNowList.brainDiseaseClass.TIA === 1) { + this.selectedbrainDiseaseType = 'TIA'; + } else if (this.HealthNowList.brainDiseaseClass.other === 1) { + this.selectedbrainDiseaseType = 'other'; + } + //蹇冭剰鐤剧梾 + if (this.HealthNowList.heartDiseaseClass.myocardialInfarct === 1) { + this.selectedheartDiseaseType = 'myocardialInfarct'; + } else if (this.HealthNowList.heartDiseaseClass.anginaPectoris === 1) { + this.selectedheartDiseaseType = 'anginaPectoris'; + } else if (this.HealthNowList.heartDiseaseClass.coronaryRevascularization === 1) { + this.selectedheartDiseaseType = 'coronaryRevascularization'; + } else if (this.HealthNowList.heartDiseaseClass.congestiveHeartFailure === 1) { + this.selectedheartDiseaseType = 'congestiveHeartFailure'; + } else if (this.HealthNowList.heartDiseaseClass.precordialPain === 1) { + this.selectedheartDiseaseType = 'precordialPain'; + } else if (this.HealthNowList.heartDiseaseClass.other === 1) { + this.selectedheartDiseaseType = 'other'; + } + //琛�绠$柧鐥� + if (this.HealthNowList.vascularDiseaseClass.dissectingAneurysm === 1) { + this.selectedvascularDiseaseType = 'dissectingAneurysm'; + } else if (this.HealthNowList.vascularDiseaseClass.arterialOcclusiveDiseases === 1) { + this.selectedvascularDiseaseType = 'arterialOcclusiveDiseases'; + } else if (this.HealthNowList.vascularDiseaseClass.other === 1) { + this.selectedvascularDiseaseType = 'other'; + } + //娑堝寲绯荤粺鐤剧梾 + if (this.HealthNowList.digestiveSystemDiseaseClass.gastroduodenalUlcer === 1) { + this.selecteddigestiveSystemDiseaseType = 'gastroduodenalUlcer'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.esophagitis === 1) { + this.selecteddigestiveSystemDiseaseType = 'esophagitis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.gastritis === 1) { + this.selecteddigestiveSystemDiseaseType = 'gastritis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.colitis === 1) { + this.selecteddigestiveSystemDiseaseType = 'colitis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.hepatitis === 1) { + this.selecteddigestiveSystemDiseaseType = 'hepatitis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.cholecystitis === 1) { + this.selecteddigestiveSystemDiseaseType = 'cholecystitis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.cholelithiasis === 1) { + this.selecteddigestiveSystemDiseaseType = 'cholelithiasis'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.fattyLiver === 1) { + this.selecteddigestiveSystemDiseaseType = 'fattyLiver'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.hyperlipidemia === 1) { + this.selecteddigestiveSystemDiseaseType = 'hyperlipidemia'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.haemorrhoids === 1) { + this.selecteddigestiveSystemDiseaseType = 'haemorrhoids'; + } else if (this.HealthNowList.digestiveSystemDiseaseClass.other === 1) { + this.selecteddigestiveSystemDiseaseType = 'other'; + } + //鍛煎惛绯荤粺鐤剧梾 + if (this.HealthNowList.respiratorySystemDiseaseClass.COPD === 1) { + this.selectedrespiratorySystemDiseaseType = 'COPD'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.pneumonia === 1) { + this.selectedrespiratorySystemDiseaseType = 'pneumonia'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchitis === 1) { + this.selectedrespiratorySystemDiseaseType = 'bronchitis'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchialAsthma === 1) { + this.selectedrespiratorySystemDiseaseType = 'bronchialAsthma'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.pulmonaryTuberculosis === 1) { + this.selectedrespiratorySystemDiseaseType = 'pulmonaryTuberculosis'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.other === 1) { + this.selectedrespiratorySystemDiseaseType = 'other'; + } else if (this.HealthNowList.respiratorySystemDiseaseClass.upperRespiratoryTractInfection === 1) { + this.selectedrespiratorySystemDiseaseType = 'upperRespiratoryTractInfection'; + } + //鑲捐剰鐤剧梾 + if (this.HealthNowList.kidneyDiseaseClass.diabetes === 1) { + this.selectedkidneyDiseaseDiseaseType = 'diabetes'; + } else if (this.HealthNowList.kidneyDiseaseClass.renalFailure === 1) { + this.selectedkidneyDiseaseDiseaseType = 'renalFailure'; + } else if (this.HealthNowList.kidneyDiseaseClass.acuteNephritis === 1) { + this.selectedkidneyDiseaseDiseaseType = 'acuteNephritis'; + } else if (this.HealthNowList.kidneyDiseaseClass.chronicNephritis === 1) { + this.selectedkidneyDiseaseDiseaseType = 'chronicNephritis'; + } else if (this.HealthNowList.kidneyDiseaseClass.urinaryCalculus === 1) { + this.selectedkidneyDiseaseDiseaseType = 'urinaryCalculus'; + } else if (this.HealthNowList.kidneyDiseaseClass.urinaryTractInfection === 1) { + this.selectedkidneyDiseaseDiseaseType = 'urinaryTractInfection'; + } else if (this.HealthNowList.kidneyDiseaseClass.other === 1) { + this.selectedkidneyDiseaseDiseaseType = 'other'; + } + //鍏朵粬鐤剧梾 + if (this.HealthNowList.otherDiseaseClass.pregnant === 1) { + this.selectedotherDiseaseType = 'pregnant'; + } else if (this.HealthNowList.otherDiseaseClass.cold === 1) { + this.selectedotherDiseaseType = 'cold'; + } else if (this.HealthNowList.otherDiseaseClass.infectious === 1) { + this.selectedotherDiseaseType = 'infectious'; + } else if (this.HealthNowList.otherDiseaseClass.pulmonaryBulla === 1) { + this.selectedotherDiseaseType = 'pulmonaryBulla'; + } else if (this.HealthNowList.otherDiseaseClass.hemoptysis === 1) { + this.selectedotherDiseaseType = 'hemoptysis'; + } else if (this.HealthNowList.otherDiseaseClass.activeBleeding === 1) { + this.selectedotherDiseaseType = 'activeBleeding'; + } else if (this.HealthNowList.otherDiseaseClass.other === 1) { + this.selectedotherDiseaseType = 'other'; + } + + + this.loading = false; + } + } + ); + + + this.loading = false; + + + } + + } + ); + this.loading = false; + } + + } + ); + this.loading = false; + + + } + }) + .catch(error => { + console.error(error); + }); + //鐢熸椿涔犳儻 + // listHealthHabit(this.queryParams).then(response => { + // if(response.data.length === 0){ + // this.loading = false; + // this.LiveHabbitList={ }; + // + // } + // else{ + // this.LiveHabbitList = response.data; + // console.log(this.LiveHabbitList.sleepClass) + // + // //鐫$湢鐨� + // if (this.LiveHabbitList.sleepClass.good === 1) { + // this.selectedsleepType = 'good'; + // } else if (this.LiveHabbitList.sleepClass.general === 1) { + // this.selectedsleepType = 'general'; + // } else if (this.LiveHabbitList.sleepClass.easyWake === 1) { + // this.selectedsleepType = 'easyWake'; + // } else if (this.LiveHabbitList.sleepClass.dreaminess === 1) { + // this.selectedsleepType = 'dreaminess'; + // } else if (this.LiveHabbitList.sleepClass.sleepless === 1) { + // this.selectedsleepType = 'sleepless'; + // } else if (this.LiveHabbitList.sleepClass.snore === 1) { + // this.selectedsleepType = 'snore'; + // } else if (this.LiveHabbitList.sleepClass.wakefulness === 1) { + // this.selectedsleepType = 'wakefulness'; + // } + // //澶т究 + // if (this.LiveHabbitList.stoolStatusClass.normal === 1) { + // this.selectedstoolStatusType = 'normal'; + // } else if (this.LiveHabbitList.stoolStatusClass.constipation === 1) { + // this.selectedstoolStatusType = 'constipation'; + // } else if (this.LiveHabbitList.stoolStatusClass.diarrhea === 1) { + // this.selectedstoolStatusType = 'diarrhea'; + // } else if (this.LiveHabbitList.stoolStatusClass.incontinence === 1) { + // this.selectedstoolStatusType = 'incontinence'; + // } + // //灏忎究 + // if (this.LiveHabbitList.urineStatusClass.normal === 1) { + // this.selectedurineStatusType = 'normal'; + // } else if (this.LiveHabbitList.urineStatusClass.nightUrinaryRetention === 1) { + // this.selectedurineStatusType = 'nightUrinaryRetention'; + // } else if (this.LiveHabbitList.urineStatusClass.incontinence === 1) { + // this.selectedurineStatusType = 'incontinence'; + // } else if (this.LiveHabbitList.urineStatusClass.enuresis === 1) { + // this.selectedurineStatusType = 'enuresis'; + // } + // //楗涔犳儻 + // if (this.LiveHabbitList.eatingHabitsClass.uniformityOfMeatAndVegetables === 1) { + // this.selectedeatingHabitsType = 'uniformityOfMeatAndVegetables'; + // } else if (this.LiveHabbitList.eatingHabitsClass.meat === 1) { + // this.selectedeatingHabitsType = 'meat'; + // } else if (this.LiveHabbitList.eatingHabitsClass.vegetable === 1) { + // this.selectedeatingHabitsType = 'vegetable'; + // } else if (this.LiveHabbitList.eatingHabitsClass.salt === 1) { + // this.selectedeatingHabitsType = 'salt'; + // }else if (this.LiveHabbitList.eatingHabitsClass.oil === 1) { + // this.selectedeatingHabitsType = 'oil'; + // } else if (this.LiveHabbitList.eatingHabitsClass.sugar === 1) { + // this.selectedeatingHabitsType = 'sugar'; + // } else if (this.LiveHabbitList.eatingHabitsClass.other === 1) { + // this.selectedeatingHabitsType = 'other'; + // } + // + // //鐢熸椿浜嬩欢 + // + // if (this.LiveHabbitList.lifeEventClass.bereave === 1) { + // this.selectedlifeEventType = 'bereave'; + // } else if (this.LiveHabbitList.lifeEventClass.liveAlone === 1) { + // this.selectedlifeEventType = 'liveAlone'; + // } else if (this.LiveHabbitList.lifeEventClass.inHospital === 1) { + // this.selectedlifeEventType = 'inHospital'; + // } else if (this.LiveHabbitList.lifeEventClass.divide === 1) { + // this.selectedlifeEventType = 'divide'; + // }else if (this.LiveHabbitList.lifeEventClass.other === 1) { + // this.selectedlifeEventType = 'other'; + // } + // this.loading = false; + // } + // + // } + // ); + + //鎶ょ悊鏌ヤ綋 + // listHealthHuli(this.queryParams).then(response => { + // if(response.data.length ===0){ + // this.loading = false; + // this.HealthHuliList={}; + // + // } + // else{ + // this.HealthHuliList = response.data; + // + // //鐨偆绮樿啘 + // + // if (this.HealthHuliList.skinTypeClass.acne === 1) { + // this.selectedskinType = 'acne'; + // } else if (this.HealthHuliList.skinTypeClass.psoriasis === 1) { + // this.selectedskinType = 'psoriasis'; + // } else if (this.HealthHuliList.skinTypeClass.color === 1) { + // this.selectedskinType = 'color'; + // } else if (this.HealthHuliList.skinTypeClass.edema === 1) { + // this.selectedskinType = 'edema'; + // }else if (this.HealthHuliList.skinTypeClass.rash === 1) { + // this.selectedskinType = 'rash'; + // }else if (this.HealthHuliList.skinTypeClass.bloodStasis === 1) { + // this.selectedskinType = 'bloodStasis'; + // } else if (this.HealthHuliList.skinTypeClass.snom === 1) { + // this.selectedskinType = 'snom'; + // }else if (this.HealthHuliList.skinTypeClass.nevus === 1) { + // this.selectedskinType = 'nevus'; + // }else if (this.HealthHuliList.skinTypeClass.ulcer === 1) { + // this.selectedskinType = 'ulcer'; + // }else if (this.HealthHuliList.skinTypeClass.other === 1) { + // this.selectedskinType = 'other'; + // } + // //蹇冮噷鐘舵�� + // if (this.HealthHuliList.psychologyTypeClass.optimistic === 1) { + // this.selectedpsychologyType = 'optimistic'; + // } else if (this.HealthHuliList.psychologyTypeClass.worry === 1) { + // this.selectedpsychologyType = 'worry'; + // } else if (this.HealthHuliList.psychologyTypeClass.fear === 1) { + // this.selectedpsychologyType = 'fear'; + // } else if (this.HealthHuliList.psychologyTypeClass.suspicion === 1) { + // this.selectedpsychologyType = 'suspicion'; + // }else if (this.HealthHuliList.psychologyTypeClass.miss === 1) { + // this.selectedpsychologyType = 'miss'; + // }else if (this.HealthHuliList.psychologyTypeClass.constrain === 1) { + // this.selectedpsychologyType = 'constrain'; + // } else if (this.HealthHuliList.psychologyTypeClass.other === 1) { + // this.selectedpsychologyType = 'other'; + // } + // + // //鐥呬緥鎬佸害 + // if (this.HealthHuliList.attitudeClass.lucidity === 1) { + // this.selectedpattitudeType = 'lucidity'; + // } else if (this.HealthHuliList.attitudeClass.unknown === 1) { + // this.selectedpattitudeType = 'unknown'; + // } else if (this.HealthHuliList.attitudeClass.normal === 1) { + // this.selectedpattitudeType = 'normal'; + // } else if (this.HealthHuliList.attitudeClass.abnormal === 1) { + // this.selectedpattitudeType = 'abnormal'; + // }else if (this.HealthHuliList.attitudeClass.other === 1) { + // this.selectedpattitudeType = 'other'; + // } + // + // //鍏ㄨ韩钀ュ吇 + // if (this.HealthHuliList.nutritionClass.good === 1) { + // this.selectednutritionType = 'good'; + // } else if (this.HealthHuliList.nutritionClass.medium === 1) { + // this.selectednutritionType = 'medium'; + // } else if (this.HealthHuliList.nutritionClass.poor === 1) { + // this.selectednutritionType = 'poor'; + // } else if (this.HealthHuliList.nutritionClass.obesity === 1) { + // this.selectednutritionType = 'obesity'; + // }else if (this.HealthHuliList.nutritionClass.thin === 1) { + // this.selectednutritionType = 'thin'; + // } else if (this.HealthHuliList.nutritionClass.fluid === 1) { + // this.selectednutritionType = 'fluid'; + // }else if (this.HealthHuliList.nutritionClass.other === 1) { + // this.selectednutritionType = 'other'; + // } + // this.loading = false; + // + // + // } + // + // } + // ); + + //鐜板瓨鍋ュ悍闂 + // + // listHealthNow(this.queryParams).then(response => { + // + // if(response.data.length ===0){ + // this.loading = false; + // this.HealthNowList={}; + // + // } + // else{ + // this.HealthNowList = response.data; + // //鑴戣绠� + // if (this.HealthNowList.brainDiseaseClass.ischemicStroke === 1) { + // this.selectedbrainDiseaseType = 'ischemicStroke'; + // } else if (this.HealthNowList.brainDiseaseClass.cerebralHemorrhage === 1) { + // this.selectedbrainDiseaseType = 'cerebralHemorrhage'; + // } else if (this.HealthNowList.brainDiseaseClass.subarachnoidHemorrhage === 1) { + // this.selectedbrainDiseaseType = 'subarachnoidHemorrhage'; + // } else if (this.HealthNowList.brainDiseaseClass.TIA === 1) { + // this.selectedbrainDiseaseType = 'TIA'; + // }else if (this.HealthNowList.brainDiseaseClass.other === 1) { + // this.selectedbrainDiseaseType = 'other'; + // } + // //蹇冭剰鐤剧梾 + // if (this.HealthNowList.heartDiseaseClass.myocardialInfarct === 1) { + // this.selectedheartDiseaseType = 'myocardialInfarct'; + // } else if (this.HealthNowList.heartDiseaseClass.anginaPectoris === 1) { + // this.selectedheartDiseaseType = 'anginaPectoris'; + // } else if (this.HealthNowList.heartDiseaseClass.coronaryRevascularization === 1) { + // this.selectedheartDiseaseType = 'coronaryRevascularization'; + // } else if (this.HealthNowList.heartDiseaseClass.congestiveHeartFailure === 1) { + // this.selectedheartDiseaseType = 'congestiveHeartFailure'; + // }else if (this.HealthNowList.heartDiseaseClass.precordialPain === 1) { + // this.selectedheartDiseaseType = 'precordialPain'; + // }else if (this.HealthNowList.heartDiseaseClass.other === 1) { + // this.selectedheartDiseaseType = 'other'; + // } + // //琛�绠$柧鐥� + // if (this.HealthNowList.vascularDiseaseClass.dissectingAneurysm === 1) { + // this.selectedvascularDiseaseType = 'dissectingAneurysm'; + // } else if (this.HealthNowList.vascularDiseaseClass.arterialOcclusiveDiseases === 1) { + // this.selectedvascularDiseaseType = 'arterialOcclusiveDiseases'; + // } else if (this.HealthNowList.vascularDiseaseClass.other === 1) { + // this.selectedvascularDiseaseType = 'other'; + // } + // //娑堝寲绯荤粺鐤剧梾 + // if (this.HealthNowList.digestiveSystemDiseaseClass.gastroduodenalUlcer === 1) { + // this.selecteddigestiveSystemDiseaseType = 'gastroduodenalUlcer'; + // } else if (this.HealthNowList.digestiveSystemDiseaseClass.esophagitis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'esophagitis'; + // } else if (this.HealthNowList.digestiveSystemDiseaseClass.gastritis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'gastritis'; + // } else if (this.HealthNowList.digestiveSystemDiseaseClass.colitis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'colitis'; + // }else if (this.HealthNowList.digestiveSystemDiseaseClass.hepatitis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'hepatitis'; + // }else if (this.HealthNowList.digestiveSystemDiseaseClass.cholecystitis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'cholecystitis'; + // }else if (this.HealthNowList.digestiveSystemDiseaseClass.cholelithiasis === 1) { + // this.selecteddigestiveSystemDiseaseType = 'cholelithiasis'; + // } else if (this.HealthNowList.digestiveSystemDiseaseClass.fattyLiver === 1) { + // this.selecteddigestiveSystemDiseaseType = 'fattyLiver'; + // } else if (this.HealthNowList.digestiveSystemDiseaseClass.hyperlipidemia === 1) { + // this.selecteddigestiveSystemDiseaseType = 'hyperlipidemia'; + // }else if (this.HealthNowList.digestiveSystemDiseaseClass.haemorrhoids === 1) { + // this.selecteddigestiveSystemDiseaseType = 'haemorrhoids'; + // }else if (this.HealthNowList.digestiveSystemDiseaseClass.other === 1) { + // this.selecteddigestiveSystemDiseaseType = 'other'; + // } + // //鍛煎惛绯荤粺鐤剧梾 + // if (this.HealthNowList.respiratorySystemDiseaseClass.COPD === 1) { + // this.selectedrespiratorySystemDiseaseType = 'COPD'; + // } else if (this.HealthNowList.respiratorySystemDiseaseClass.pneumonia === 1) { + // this.selectedrespiratorySystemDiseaseType = 'pneumonia'; + // } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchitis === 1) { + // this.selectedrespiratorySystemDiseaseType = 'bronchitis'; + // } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchialAsthma === 1) { + // this.selectedrespiratorySystemDiseaseType = 'bronchialAsthma'; + // }else if (this.HealthNowList.respiratorySystemDiseaseClass.pulmonaryTuberculosis === 1) { + // this.selectedrespiratorySystemDiseaseType = 'pulmonaryTuberculosis'; + // }else if (this.HealthNowList.respiratorySystemDiseaseClass.other === 1) { + // this.selectedrespiratorySystemDiseaseType = 'other'; + // }else if (this.HealthNowList.respiratorySystemDiseaseClass.upperRespiratoryTractInfection === 1) { + // this.selectedrespiratorySystemDiseaseType = 'upperRespiratoryTractInfection'; + // } + // //鑲捐剰鐤剧梾 + // if (this.HealthNowList.kidneyDiseaseClass.diabetes === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'diabetes'; + // } else if (this.HealthNowList.kidneyDiseaseClass.renalFailure === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'renalFailure'; + // } else if (this.HealthNowList.kidneyDiseaseClass.acuteNephritis === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'acuteNephritis'; + // } else if (this.HealthNowList.kidneyDiseaseClass.chronicNephritis === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'chronicNephritis'; + // }else if (this.HealthNowList.kidneyDiseaseClass.urinaryCalculus === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'urinaryCalculus'; + // }else if (this.HealthNowList.kidneyDiseaseClass.urinaryTractInfection === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'urinaryTractInfection'; + // }else if (this.HealthNowList.kidneyDiseaseClass.other === 1) { + // this.selectedkidneyDiseaseDiseaseType = 'other'; + // } + // //鍏朵粬鐤剧梾 + // if (this.HealthNowList.otherDiseaseClass.pregnant === 1) { + // this.selectedotherDiseaseType = 'pregnant'; + // } else if (this.HealthNowList.otherDiseaseClass.cold === 1) { + // this.selectedotherDiseaseType = 'cold'; + // } else if (this.HealthNowList.otherDiseaseClass.infectious === 1) { + // this.selectedotherDiseaseType = 'infectious'; + // } else if (this.HealthNowList.otherDiseaseClass.pulmonaryBulla === 1) { + // this.selectedotherDiseaseType = 'pulmonaryBulla'; + // }else if (this.HealthNowList.otherDiseaseClass.hemoptysis === 1) { + // this.selectedotherDiseaseType = 'hemoptysis'; + // }else if (this.HealthNowList.otherDiseaseClass.activeBleeding === 1) { + // this.selectedotherDiseaseType = 'activeBleeding'; + // }else if (this.HealthNowList.otherDiseaseClass.other === 1) { + // this.selectedotherDiseaseType = 'other'; + // } + // + // this.loading = false; + // + // } + // + // } + // ); + + listHealthNote(this.queryParams).then(response => { + + if (response.data.length === 0) { + this.loading = false; + this.HealthNoteList = {}; + + } else { + this.HealthNoteList = response.data; + console.log(this.HealthNoteList) + this.loading = false; + + } + } ); }, - handleRemove(file) { - for (let i = 0; i < this.fileList.length; i++) { - if (this.fileList[i].url == file.url) - this.$delete(this.fileList, i); - } - }, - handleRemoveFile(file) { - for (let i = 0; i < this.fileListOther.length; i++) { - if (this.fileListOther[i].url == file.url) - this.$delete(this.fileListOther, i); - } - }, + + // 鍙栨秷鎸夐挳 cancel() { @@ -497,166 +2640,325 @@ }; this.resetForm("form"); }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.dateRange = []; - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - console.log(this.ids) - this.single = selection.length != 1 - this.multiple = !selection.length - }, + /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { this.reset(); this.open = true; - this.title = "鏂板鍋ュ悍鎯呭喌"; - }, - - - /** 鏌ョ湅璇︾粏淇℃伅 */ - handleCheck(row) { - const id = row.id; - this.$router.push("/self/healthy/healthyInfo/" + id); + this.title = "鏂板濠氬Щ淇℃伅"; }, /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(row) { - const id = row.id; + handleUpdate() { + let jd = true - this.$router.push({ - path: "/self/healthy/healthyInfo/" + id, - query: { - detail: jd + // this.$router.push({ + // path:"/self/marry/edit/" + id, + // query:{ + // detail:jd + // } + // }); + }, + // 缂栬緫鎸夐挳 + handleEdit() + { + this.dsb = false + this.btn = true + this.isShow=false + this.isShow_2=true + this.isEditing=true + + }, + + + + + + + editRow(row) { + this.$set(row, 'isEdit', true); + this.$set(this.editStatus, row.id, true); + }, + //淇敼鍚庣殑淇濆瓨 + + submitForm() { + function isObjectEmpty(obj) { + for (let key in obj) { + if (obj.hasOwnProperty(key)) { + return false; // 濡傛灉瀛樺湪浠绘剰涓�涓睘鎬э紝鍒欏璞¢潪绌� + } } - }); - }, + return true; // 娌℃湁浠讳綍灞炴�э紝瀵硅薄涓虹┖ + }; + console.log(111) + console.log(this.bloodData) + + if(isObjectEmpty(this.bloodData)){ + this.HealthyBaseList.bloodClass = this.HealthyBaseList.bloodClass; + }else { + this.HealthyBaseList.bloodClass = this.bloodData; + } + + if(isObjectEmpty(this.allergyData)){ + this.HealthyBaseList.bloodClass = this.HealthyBaseList.bloodClass + }else { + this.HealthyBaseList.allergyClass = this.allergyData; + } + + // this.HealthyBaseList.geneticDiseaseClass = this.geneticDiseaseData; + if(isObjectEmpty(this.geneticDiseaseData)){ + this.HealthyBaseList.geneticDiseaseClass = this.HealthyBaseList.geneticDiseaseClass + }else { + this.HealthyBaseList.geneticDiseaseClass = this.geneticDiseaseData; + } + + if(isObjectEmpty(this.sleepData)){ + this.LiveHabbitList.sleepClass = this.LiveHabbitList.sleepClass + }else { + this.LiveHabbitList.sleepClass = this.sleepData; + } - handlePictureCardPreview(file) { - this.dialogImageUrl = file.url; - this.dialogVisible = true; - }, - /** 鎻愪氦鎸夐挳锛堟暟鎹潈闄愶級 */ - submitDataScope: function () { + if(isObjectEmpty(this.stoolStatusData)){ + this.LiveHabbitList.stoolStatusClass = this.LiveHabbitList.stoolStatusClass + }else { + this.LiveHabbitList.stoolStatusClass = this.stoolStatusData; + } - let ul = this.fileList.map(function (elem) { - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API, "") - }).join(",") - let uls = this.fileListOther.map(function (elem) { - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API, "") - }).join(",") - this.formDat.url = ul + "," + uls - this.$refs["elForm"].validate(valid => { + // this.LiveHabbitList.urineStatusClass = this.urineStatusData; + if(isObjectEmpty(this.urineStatusData)){ + this.LiveHabbitList.urineStatusClass = this.LiveHabbitList.urineStatusClass + }else { + this.LiveHabbitList.urineStatusClass = this.urineStatusData; + } + + // this.LiveHabbitList.eatingHabitsClass = this.eatingHabitsData; + if(isObjectEmpty(this.eatingHabitsData)){ + this.LiveHabbitList.eatingHabitsClass = this.LiveHabbitList.eatingHabitsClass + }else { + this.LiveHabbitList.eatingHabitsClass = this.eatingHabitsData; + } + + // this.LiveHabbitList.lifeEventClass = this.lifeEventData; + if(isObjectEmpty(this.lifeEventData)){ + this.LiveHabbitList.lifeEventClass = this.LiveHabbitList.lifeEventClass + }else { + this.LiveHabbitList.lifeEventClass = this.lifeEventData; + } + + // this.HealthHuliList.skinTypeClass = this.skinTypeData; + if(isObjectEmpty(this.skinTypeData)){ + this.HealthHuliList.skinTypeClass = this.HealthHuliList.skinTypeClass + }else { + this.HealthHuliList.skinTypeClass = this.skinTypeData; + } + // this.HealthHuliList.psychologyTypeClass = this.sychologyTypeData; + if(isObjectEmpty(this.sychologyTypeData)){ + this.HealthHuliList.psychologyTypeClass = this.HealthHuliList.psychologyTypeClass + }else { + this.HealthHuliList.psychologyTypeClass = this.sychologyTypeData; + } + // this.HealthHuliList.attitudeClass = this.attitudeTypeData; + if(isObjectEmpty(this.attitudeTypeData)){ + this.HealthHuliList.attitudeClass = this.HealthHuliList.attitudeClass + }else { + this.HealthHuliList.attitudeClass = this.attitudeTypeData; + } + + // this.HealthHuliList.nutritionClass = this.nutritionTypeData; + if(isObjectEmpty(this.nutritionTypeData)){ + this.HealthHuliList.nutritionClass = this.HealthHuliList.nutritionClass + }else { + this.HealthHuliList.nutritionClass = this.nutritionTypeData; + } + + if(isObjectEmpty(this.brainDiseaseTypeData)){ + this.HealthNowList.brainDiseaseClass = this.HealthNowList.brainDiseaseClass + }else { + this.HealthNowList.brainDiseaseClass = this.brainDiseaseTypeData; + } + if(isObjectEmpty(this.heartDiseaseTypeData)){ + this.HealthNowList.heartDiseaseClass = this.HealthNowList.heartDiseaseClass + }else { + this.HealthNowList.heartDiseaseClass = this.heartDiseaseTypeData; + } + if(isObjectEmpty(this.vascularDiseaseTypeData)){ + this.HealthNowList.vascularDiseaseClass = this.HealthNowList.vascularDiseaseClass + }else { + this.HealthNowList.vascularDiseaseClass = this.vascularDiseaseTypeData; + } + if(isObjectEmpty(this.digestiveSystemTypeData)){ + this.HealthNowList.digestiveSystemDiseaseClass = this.HealthNowList.digestiveSystemDiseaseClass + }else { + this.HealthNowList.digestiveSystemDiseaseClass = this.digestiveSystemTypeData; + } + if(isObjectEmpty(this.respiratorySystemTypeData)){ + this.HealthNowList.respiratorySystemDiseaseClass = this.HealthNowList.respiratorySystemDiseaseClass + }else { + this.HealthNowList.respiratorySystemDiseaseClass = this.respiratorySystemTypeData; + } + if(isObjectEmpty(this.kidneyDiseaseSystemTypeData)){ + this.HealthNowList.kidneyDiseaseClass = this.HealthNowList.kidneyDiseaseClass + }else { + this.HealthNowList.kidneyDiseaseClass = this.kidneyDiseaseSystemTypeData; + } + if(isObjectEmpty(this.otherDiseaseTypeData)){ + this.HealthNowList.otherDiseaseClass = this.HealthNowList.otherDiseaseClass + }else { + this.HealthNowList.otherDiseaseClass = this.otherDiseaseTypeData; + } + + this.$refs['elForm'].validate(valid => { if (valid) { + if (this.HealthyBaseList!== undefined) { + updateHealthBase(this.HealthyBaseList).then(response => { + this.$modal.msgSuccess("淇敼鎴愬姛"); - addHealth(this.formDat).then(response => { - this.$modal.msgSuccess("鏂板鎴愬姛"); - this.open = false; - this.getList(); - }); - } - }); - // 娓呯┖formDat瀵硅薄鐨勬暟鎹� - Object.keys(this.formDat).forEach(key => { - this.formDat[key] = ''; - }); - for (let i = 0; i <= this.fileList.length; i++) { - this.handleRemove(this.fileList[0]); - } - for (let i = 0; i < this.fileListOther.length; i++) { - this.handleRemoveFile(this.fileListOther[0]); - } + // this.open = false; + this.btn=false + this.isEditing = false + this.dsb = true + this.isShow_2=false + this.isShow = true + this.getList(); + }); + } else { + this.$modal.msgSuccess("淇敼澶辫触"); - }, - requestUpload(params) { - var file = params.file; - var formData = new FormData(); - formData.append('uploadFile', file); - let _this = this - - uploadPic(formData).then(response => { - let pth = response.data.originalFilename.substr(response.data.originalFilename.length - 4, response.data.originalFilename.length) - - if (_this.fot.includes(pth) === true) { - _this.fileList.push({name: response.data.fileName, "url": response.data.url}) - - } else { - _this.fileListOther.push({name: response.data.fileName, url: response.data.url}) - + } } }) + this.$refs['elForm'].validate(valid => { + if (valid) { + if (this.LiveHabbitList!== undefined) { + updateHealthHabit(this.LiveHabbitList).then(response => { + + // this.open = false; + this.btn=false + this.isEditing = false + this.dsb = true + this.isShow_2=false + this.isShow = true + this.getList(); + }); + } else { + this.$modal.msgSuccess("淇敼澶辫触"); + + } + } + }) + this.$refs['elForm'].validate(valid => { + if (valid) { + if (this.HealthHuliList!== undefined) { + updateHealthHuli(this.HealthHuliList).then(response => { + + // this.open = false; + this.btn=false + this.isEditing = false + this.dsb = true + this.isShow_2=false + this.isShow = true + this.getList(); + }); + } else { + this.$modal.msgSuccess("淇敼澶辫触"); + + } + } + }) + this.$refs['elForm'].validate(valid => { + if (valid) { + if (this.HealthNowList!== undefined) { + updateHealthNow(this.HealthNowList).then(response => { + this.$modal.msgSuccess("淇敼鎴愬姛"); + // this.open = false; + this.btn=false + this.isEditing = false + this.dsb = true + this.isShow_2=false + this.isShow = true + this.getList(); + }); + } else { + this.$modal.msgSuccess("淇敼澶辫触"); + + } + } + }) + // 鍒锋柊椤甸潰 }, - /** 鍒犻櫎鎸夐挳鎿嶄綔 */ - handleDelete(row) { - const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎鎵�閫夋暟鎹」锛�').then(function () { - return delHealth(Ids); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => { - }); + //骞村害鍋ュ悍鎶ュ憡 + toYearhealthy(){ + // console.log(this.HealthyBaseList.uid) + this.$router.push("/self/healthy/index"); }, + //闅旇鍙樿壊 + tableRowClassName({ row, rowIndex }) { + if (rowIndex % 2 == 0) { + return "statistics-warning-row1"; + } else { + return "statistics-warning-row"; + } + }, + + /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - const Ids = this.ids; - - if (Ids.length == 0) { - this.download('/family/zfEvent/export', { - ...this.queryParams - }, `zYearInfo${new Date().getTime()}.xlsx`) - } else { - this.download('/family/zYearInfo/export1/' + Ids, {}, `zYearInfo${new Date().getTime()}.xlsx`) - } - }, - /** 瀵煎叆妯℃澘涓嬭浇鎿嶄綔*/ - handleExportTemplate() - { - this.download('/zYearInfo/model', { - - }, `zYearInfo${new Date().getTime()}.xlsx`) - }, - /** 瀵煎叆鎿嶄綔*/ - handleEnport(params) { - var file = params.file; - var formData = new FormData(); - formData.append('excelImport', file); - let _this = this - alert(file) - enload(formData).then(response => { - _this.getList(); - Message({message: "瀵煎叆鎴愬姛", type: 'warning'}) - - }).catch(err) - { - Message({message: "瀵煎叆澶辫触", type: 'error'}) - } - + this.download('/self/user/export', { + ...this.queryParams + }, `self_${new Date().getTime()}.xlsx`) } - } + }, + + }; + </script> - <style> -.el-table__row.statistics-warning-row { - background: #E0EEFE; +.button { + background:center no-repeat url('../../assets/icons/add1.png') ; + margin-left: 69.5vw; } -.el-table__row.statistics-warning-row1 { - background: #FFEFF2; - +.form{ + background:center/11% no-repeat url('../../assets/icons/form.png') ; } +.app-container { + background-color: #FEF7FC; +} + +.btn_edit{ + background:center no-repeat url('../../assets/icons/edit.png') ; + position: absolute; + top: 0; + padding-right: 90px; +} + + .bottom { + margin-top: 13px; + line-height: 12px; + } + + .button { + padding: 0; + float: right; + } + + .image { + width: 100%; + display: block; + } + + .clearfix:before, + .clearfix:after { + display: table; + content: ""; + } + + .clearfix:after { + clear: both + } </style> -- Gitblit v1.9.1