Commit 1e4d0c11 authored by yanglilong's avatar yanglilong

修改

parent daed2143
......@@ -8,7 +8,7 @@
<title><%= webpackConfig.name %></title>
<script
type="text/javascript"
src="//at.alicdn.com/t/font_3020450_a9xwff5f4ug.js"
src="//at.alicdn.com/t/font_3020450_3jdbh13fsoi.js"
></script>
</head>
<body>
......
......@@ -11,4 +11,5 @@ export default {
authorizeDelete: "/backstage/auth/authorizeDelete", //预授权删除
authorizeUseList: "/backstage/auth/authorizeUseList", //预授权使用列表
authorizeUseAdd: "/backstage/auth/authorizeUseAdd", //新增预授权使用
authorizeSendEmail: "/backstage/auth/authorizeSendEmail", //预授权邮件
};
......@@ -52,6 +52,11 @@ const AUTHORIZEUSEADD = function (data) {
return req.post(apis.authorizeUseAdd, data);
};
//预授权邮件
const AUTHORIZESENDEMAIL = function (data) {
return req.post(apis.authorizeSendEmail, data);
};
// 对象数组
export default {
PATIENTLISTNOPAGE,
......@@ -64,4 +69,5 @@ export default {
AUTHORIZEDELETE,
AUTHORIZEUSELIST,
AUTHORIZEUSEADD,
AUTHORIZESENDEMAIL,
};
......@@ -156,7 +156,11 @@
<a-button type="primary" @click="saveEvt" :loading="loading">
<Icon :name="id?'ssibaocun':'ssiadd'" :size="14" />{{id? '保存预授权': '新建预授权'}}
</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-row>
</a-form-model>
......@@ -175,6 +179,7 @@ export default{
this.getPatienList = debounce(this.getPatienList, 800);
return{
loading: false,
loading2: false,
MoneyUnitOptions,
ApplyStatusOptions,
id: '', //预授权id
......@@ -436,6 +441,21 @@ export default{
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