Browse Source

login

master
pengjun 2 years ago
parent
commit
4a0a8c6ca9
  1. 36
      src/components/sumDoctorCheck/SumSug.vue
  2. 26
      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>
</div>
<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;"
: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">
<template slot-scope="scope2">
<div>{{ scope2.$index + 1 }}).</div>
@ -87,9 +87,37 @@
</el-table>
</div>
<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;"
: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">
<template slot-scope="scope2">
<div>{{ scope2.$index + 1 }}).</div>

26
src/views/login/Login.vue

@ -6,7 +6,7 @@
<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-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>
<i class="el-icon-close" @click="btnClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
</div>
</div>
<div class="box">
@ -65,7 +65,7 @@ import axios from "axios";
export default {
data() {
return {
sysConfig:{}, //
sysConfig: {}, //
form: {
Username: "",
Password: "",
@ -92,13 +92,15 @@ export default {
},
methods: {
async getSysConfig(){
async getSysConfig() {
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
window.sessionStorage.setItem('sysConfig',JSON.stringify(res.data))
window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data))
} catch (error) {
this.$message.error({showClose:true,message:`获取配置参数错误 ${error}`})
this.$message.error({ showClose: true, message: `获取配置参数错误 ${error}` })
}
},
@ -110,22 +112,22 @@ export default {
}
this.$peisAPI.toggleDevTools();
},
btnMin(){
if(!this.$peisAPI) {
btnMin() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
return
}
this.$peisAPI.windowMin();
},
btnMax(){
if(!this.$peisAPI) {
btnMax() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
return
}
this.$peisAPI.windowMax();
},
btnClose(){
if(!this.$peisAPI) {
btnClose() {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!")
return
}

Loading…
Cancel
Save