提交 55ace172 编写于 作者: tao.wu's avatar tao.wu

no message

上级 799e4dcc
......@@ -51,6 +51,7 @@
export default {
data(){
return {
domain: '',//通过接口获取白名单域名
needRule: true, //是否动态开启验证
showModule: true, //是否隐藏表单模块
canRender: true,
......@@ -145,14 +146,32 @@
this.planPatientsTimesId = this.$route.query.planPatientsTimesId
this.scaleNo = this.$route.query.scaleNo
this.doctorId = this.$route.query.doctorId
this.planTimesId = this.$route.query.planTimesId
this.planTimesId = this.$route.query.planTimesId;
this.getFormModules();
this.getFormDetail();
this.getWhiteDomain();
localStorage.setItem('needRule',this.needRule);
},
methods: {
getWhiteDomain(){
// config.headers['token'] = '876B1ECF42DE4D49942E18D9CA72F2B5'
// config.headers['token'] = localStorage.getItem('storageToken')
axios({
method: 'get',
url: getFollowUpSC(`/followup/route/domain?type=1`),
headers: {
token: '7B74969E396C4041A4DFCAC75711AA71',
// token: localStorage.getItem('storageToken')
},
data: {},
}).then(res=>{
if(res.data.code=='000000'){
this.domain = res.data.data
this.getFormModules();
this.getFormDetail();
}
})
},
// 动态开启验证开关
setRuleToTrue(index){
this.addComponents[index].dataSource.forEach((item,k)=>{
......@@ -169,7 +188,7 @@
getFormModules(){
axios({
method: 'get',
url: getFollowUpSC(`/scale/${this.scaleNo}/models`),
url: `${this.domain}/scale/${this.scaleNo}/models`,
data: {},
}).then(res=>{
if(res.data.code=='000000'){
......@@ -193,7 +212,7 @@
getFormDetail(){
axios({
method: 'get',
url: getFollowUpSC(`/scale/${this.planPatientsTimesId}/${this.scaleNo}/info?type=2&isLine=2`),
url: `${this.domain}/scale/${this.planPatientsTimesId}/${this.scaleNo}/info?type=2&isLine=2`,
data: JSON.stringify(this.formData),
}).then(res=>{
this.formData = res.data.data
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册