Browse Source

login

master
pengjun 2 years ago
parent
commit
4a0a8c6ca9
  1. 36
      src/components/sumDoctorCheck/SumSug.vue
  2. 40
      src/views/login/Login.vue

36
src/components/sumDoctorCheck/SumSug.vue

@ -59,9 +59,9 @@
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button> :disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button>
</div> </div>
<div style="display: flex;"> <div style="display: flex;">
<div style="width:60px;">解释</div>
<div style="width:80px;">医学解释</div>
<el-table :id="'0_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 10px;" <el-table :id="'0_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 10px;"
:data="scope.row.terms" border @row-click="rowClickSug(0)" :show-header="false">
:data="scope.row.medicalInterpretations" border @row-click="rowClickSug(0)" :show-header="false">
<el-table-column width="30"> <el-table-column width="30">
<template slot-scope="scope2"> <template slot-scope="scope2">
<div>{{ scope2.$index + 1 }}).</div> <div>{{ scope2.$index + 1 }}).</div>
@ -87,9 +87,37 @@
</el-table> </el-table>
</div> </div>
<div style="display: flex;"> <div style="display: flex;">
<div style="width:60px;">指导</div>
<div style="width:80px;">常见原因</div>
<el-table :id="'1_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 10px;" <el-table :id="'1_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 10px;"
:data="scope.row.guides" border @row-click="rowClickSug(1)" :show-header="false">
:data="scope.row.commonReasons" border @row-click="rowClickSug(1)" :show-header="false">
<el-table-column width="30">
<template slot-scope="scope2">
<div>{{ scope2.$index + 1 }}).</div>
</template>
</el-table-column>
<el-table-column prop="suggestionContent" label="建议" min-width="200">
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
:autosize="{ minRows: 1, maxRows: 10 }">
</el-input>
</template>
</el-table-column>
<el-table-column label="操作" width="35">
<template slot-scope="scope2">
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger"
style="min-width:23px;height:23px;padding:2px;" icon="el-icon-delete"
@click="delSug(scope.row.details, scope2.$index)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
size="small"></el-button>
</template>
</el-table-column>
</el-table>
</div>
<div style="display: flex;">
<div style="width:80px;">健康指导</div>
<el-table :id="'2_sug' + scope.row.id" row-key="displayOrder" style="margin-left: 10px;"
:data="scope.row.guides" border @row-click="rowClickSug(2)" :show-header="false">
<el-table-column width="30"> <el-table-column width="30">
<template slot-scope="scope2"> <template slot-scope="scope2">
<div>{{ scope2.$index + 1 }}).</div> <div>{{ scope2.$index + 1 }}).</div>

40
src/views/login/Login.vue

@ -6,8 +6,8 @@
<i class="el-icon-setting" @click="toggleDevTools" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-setting" @click="toggleDevTools" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-minus" @click="btnMin" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-minus" @click="btnMin" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i> <i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
<i class="el-icon-close" @click="btnClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
</div>
<i class="el-icon-close" @click="btnClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
</div>
</div> </div>
<div class="box"> <div class="box">
<div class="mainbody"> <div class="mainbody">
@ -65,7 +65,7 @@ import axios from "axios";
export default { export default {
data() { data() {
return { return {
sysConfig:{}, //
sysConfig: {}, //
form: { form: {
Username: "", Username: "",
Password: "", Password: "",
@ -82,8 +82,8 @@ export default {
}, },
}; };
}, },
async mounted() {
await this.getSysConfig()
async mounted() {
await this.getSysConfig()
// //
if (this.$peisAPI) { if (this.$peisAPI) {
this.$peisAPI.lazyLoad(); // dll this.$peisAPI.lazyLoad(); // dll
@ -92,14 +92,16 @@ export default {
}, },
methods: { methods: {
async getSysConfig(){
async getSysConfig() {
try { try {
let res = await axios.get('/sysConfig.html')
let res = await axios.get('/sysConfig.html') // , { timeout: 50000 }
console.log('axios.get /sysConfig.html',res)
if(!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` })
this.sysConfig = res.data this.sysConfig = res.data
window.sessionStorage.setItem('sysConfig',JSON.stringify(res.data))
window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data))
} catch (error) { } catch (error) {
this.$message.error({showClose:true,message:`获取配置参数错误 ${error}`})
}
this.$message.error({ showClose: true, message: `获取配置参数错误 ${error}` })
}
}, },
// //
@ -110,24 +112,24 @@ export default {
} }
this.$peisAPI.toggleDevTools(); this.$peisAPI.toggleDevTools();
}, },
btnMin(){
if(!this.$peisAPI) {
btnMin() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
this.$peisAPI.windowMin(); this.$peisAPI.windowMin();
}, },
btnMax(){
if(!this.$peisAPI) {
btnMax() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
this.$peisAPI.windowMax(); this.$peisAPI.windowMax();
}, },
btnClose(){
if(!this.$peisAPI) {
btnClose() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
this.$peisAPI.windowClose(); this.$peisAPI.windowClose();
}, },

Loading…
Cancel
Save