Commit 1e4d0c11 authored by yanglilong's avatar yanglilong

修改

parent daed2143
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<title><%= webpackConfig.name %></title> <title><%= webpackConfig.name %></title>
<script <script
type="text/javascript" type="text/javascript"
src="//at.alicdn.com/t/font_3020450_a9xwff5f4ug.js" src="//at.alicdn.com/t/font_3020450_3jdbh13fsoi.js"
></script> ></script>
</head> </head>
<body> <body>
......
...@@ -11,4 +11,5 @@ export default { ...@@ -11,4 +11,5 @@ export default {
authorizeDelete: "/backstage/auth/authorizeDelete", //预授权删除 authorizeDelete: "/backstage/auth/authorizeDelete", //预授权删除
authorizeUseList: "/backstage/auth/authorizeUseList", //预授权使用列表 authorizeUseList: "/backstage/auth/authorizeUseList", //预授权使用列表
authorizeUseAdd: "/backstage/auth/authorizeUseAdd", //新增预授权使用 authorizeUseAdd: "/backstage/auth/authorizeUseAdd", //新增预授权使用
authorizeSendEmail: "/backstage/auth/authorizeSendEmail", //预授权邮件
}; };
...@@ -52,6 +52,11 @@ const AUTHORIZEUSEADD = function (data) { ...@@ -52,6 +52,11 @@ const AUTHORIZEUSEADD = function (data) {
return req.post(apis.authorizeUseAdd, data); return req.post(apis.authorizeUseAdd, data);
}; };
//预授权邮件
const AUTHORIZESENDEMAIL = function (data) {
return req.post(apis.authorizeSendEmail, data);
};
// 对象数组 // 对象数组
export default { export default {
PATIENTLISTNOPAGE, PATIENTLISTNOPAGE,
...@@ -64,4 +69,5 @@ export default { ...@@ -64,4 +69,5 @@ export default {
AUTHORIZEDELETE, AUTHORIZEDELETE,
AUTHORIZEUSELIST, AUTHORIZEUSELIST,
AUTHORIZEUSEADD, AUTHORIZEUSEADD,
AUTHORIZESENDEMAIL,
}; };
...@@ -156,7 +156,11 @@ ...@@ -156,7 +156,11 @@
<a-button type="primary" @click="saveEvt" :loading="loading"> <a-button type="primary" @click="saveEvt" :loading="loading">
<Icon :name="id?'ssibaocun':'ssiadd'" :size="14" />{{id? '保存预授权': '新建预授权'}} <Icon :name="id?'ssibaocun':'ssiadd'" :size="14" />{{id? '保存预授权': '新建预授权'}}
</a-button> </a-button>
</a-form-model-item> <a-button type="primary" class="mar-left10" v-if="id" :loading="loading2"
@click="sendEmailEvt">
<Icon name="ssiemail" :size="14" />邮件发送
</a-button>
</a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
...@@ -175,6 +179,7 @@ export default{ ...@@ -175,6 +179,7 @@ export default{
this.getPatienList = debounce(this.getPatienList, 800); this.getPatienList = debounce(this.getPatienList, 800);
return{ return{
loading: false, loading: false,
loading2: false,
MoneyUnitOptions, MoneyUnitOptions,
ApplyStatusOptions, ApplyStatusOptions,
id: '', //预授权id id: '', //预授权id
...@@ -436,6 +441,21 @@ export default{ ...@@ -436,6 +441,21 @@ export default{
this.$message.warning(res.returnMsg); this.$message.warning(res.returnMsg);
} }
}) })
},
//发送邮件
sendEmailEvt(){
this.loading2 = true;
this.$apis.AUTHORIZESENDEMAIL({
id: this.id
})
.then((res)=>{
this.loading2 = false;
if(res.returnCode == '0000'){
this.$message.success('发送成功');
}else{
this.$message.warning(res.returnMsg);
}
})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment