|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div id="spdAdd">
|
|
|
<div style="padding:0 0 30px 10px;" v-if="!control">
|
|
|
- <span>新增问题</span>
|
|
|
+ <!-- <span>新增问题</span> -->
|
|
|
<el-form :model="basicForm" :rules="basicRules" ref="basic" label-position="left" label-width="auto">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="23">
|
|
@@ -137,6 +137,14 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ let phonenumber = this.GetQueryString('phonenumber')
|
|
|
+ let hosName = this.GetQueryString('hosName')
|
|
|
+ let officeName = this.GetQueryString('officeName')
|
|
|
+ if(phonenumber) { this.basicForm.contactInfo = phonenumber }
|
|
|
+ if(hosName) { this.basicForm.hospital = hosName }
|
|
|
+ if(officeName) { this.basicForm.department = officeName }
|
|
|
+ },
|
|
|
methods: {
|
|
|
successUpload(resp, file, fileList) {
|
|
|
console.log(fileList)
|
|
@@ -205,6 +213,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //获取url参数
|
|
|
+ GetQueryString(name) {
|
|
|
+ var reg = new RegExp( "(^|&)" + name + "=([^&]*)(&|$)()" );
|
|
|
+ var r = window.location.search.substr(1).match(reg);
|
|
|
+ if (r!= null ) return decodeURI(r[2]); return null ;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|