生辰助手
parent
f9b8d7b482
commit
6121834f85
|
@ -50,3 +50,10 @@ export function getHeadlines() {
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getBirthday(data) {
|
||||||
|
return request({
|
||||||
|
url: '/port/list/getBirthday',
|
||||||
|
method: 'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testPhone()" v-if="connector.connectorName=='手机号查询归属地'">测试API</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testPhone()" v-if="connector.connectorName=='手机号查询归属地'">测试API</el-button>
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testIP()" v-if="connector.connectorName=='IP查询归属地'">测试API</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testIP()" v-if="connector.connectorName=='IP查询归属地'">测试API</el-button>
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testNews()" v-if="connector.connectorName=='新闻头条'">测试API</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testNews()" v-if="connector.connectorName=='新闻头条'">测试API</el-button>
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testWeather(connector)" v-if="connector.connectorName=='气象预警'">测试</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testWeather()" v-if="connector.connectorName=='气象预警'">测试</el-button>
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testBirthdate(connector)" v-if="connector.connectorName=='生辰助手'">测试</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testBirthdate()" v-if="connector.connectorName=='生辰助手'">测试API</el-button>
|
||||||
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testMailbox(connector)" v-if="connector.connectorName=='邮编查询'">测试</el-button>
|
<el-button type="primary" style="float: right; padding: 10px 10px" @click="testMailbox()" v-if="connector.connectorName=='邮编查询'">测试</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -68,6 +68,51 @@
|
||||||
<el-table-column property="authorName" label="新闻来源"></el-table-column>
|
<el-table-column property="authorName" label="新闻来源"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<!--生辰助手-->
|
||||||
|
<el-dialog title="生辰助手" :visible.sync="dialogFormVisible2">
|
||||||
|
<el-form :model="formBirthday">
|
||||||
|
<el-form-item label="年" >
|
||||||
|
<el-input v-model="formBirthday.year" autocomplete="off" placeholder="请输入年份"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="月" >
|
||||||
|
<el-input v-model="formBirthday.month" autocomplete="off" placeholder="请输入月份"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="日" >
|
||||||
|
<el-input v-model="formBirthday.day" autocomplete="off" placeholder="请输入几号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="时" >
|
||||||
|
<el-input v-model="formBirthday.hour" autocomplete="off" placeholder="请输入几点"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<span style="font-weight: bold;font-size: 20px" v-if="formBirthday.reason==true">
|
||||||
|
{{this.formBirthday.years}}<br>
|
||||||
|
{{this.formBirthday.months}}<br>
|
||||||
|
{{this.formBirthday.days}}<br>
|
||||||
|
{{this.formBirthday.animal}}<br>
|
||||||
|
{{this.formBirthday.imonthcn}}<br>
|
||||||
|
{{this.formBirthday.idaycn}}<br>
|
||||||
|
{{this.formBirthday.cyear}}<br>
|
||||||
|
{{this.formBirthday.cmonth}}<br>
|
||||||
|
{{this.formBirthday.cday}}<br>
|
||||||
|
{{this.formBirthday.gzyear}}<br>
|
||||||
|
{{this.formBirthday.gzmonth}}<br>
|
||||||
|
{{this.formBirthday.gzday}}<br>
|
||||||
|
{{this.formBirthday.isleap}}<br>
|
||||||
|
{{this.formBirthday.ncweek}}<br>
|
||||||
|
{{this.formBirthday.isterm}}<br>
|
||||||
|
{{this.formBirthday.term}}<br>
|
||||||
|
{{this.formBirthday.astro}}<br>
|
||||||
|
{{this.formBirthday.eightall}}<br>
|
||||||
|
{{this.formBirthday.fiveall}}
|
||||||
|
</span>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="getBirthday()">发起请求</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -79,6 +124,7 @@ import index from "vuex";
|
||||||
import {phonePlace} from "@/api/port/port";
|
import {phonePlace} from "@/api/port/port";
|
||||||
import {getIpPlace} from "@/api/port/port";
|
import {getIpPlace} from "@/api/port/port";
|
||||||
import {getHeadlines} from "@/api/port/port";
|
import {getHeadlines} from "@/api/port/port";
|
||||||
|
import {getBirthday} from "@/api/port/port";
|
||||||
export default {
|
export default {
|
||||||
//import引入的组件需要注入到对象中才能使用"
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
components: {},
|
components: {},
|
||||||
|
@ -109,6 +155,32 @@ export default {
|
||||||
isp:"",
|
isp:"",
|
||||||
reason:"",
|
reason:"",
|
||||||
},
|
},
|
||||||
|
formBirthday:{
|
||||||
|
year:"",
|
||||||
|
month:"",
|
||||||
|
day:"",
|
||||||
|
hour:"",
|
||||||
|
years:"",
|
||||||
|
months:"",
|
||||||
|
days:"",
|
||||||
|
animal:"",
|
||||||
|
imonthcn:"",
|
||||||
|
idaycn:"",
|
||||||
|
cyear:"",
|
||||||
|
cmonth:"",
|
||||||
|
cday:"",
|
||||||
|
gzyear:"",
|
||||||
|
gzmonth:"",
|
||||||
|
gzday:"",
|
||||||
|
isleap:"",
|
||||||
|
ncweek:"",
|
||||||
|
isterm:"",
|
||||||
|
term:"",
|
||||||
|
astro:"",
|
||||||
|
eightall:"",
|
||||||
|
fiveall:"",
|
||||||
|
reason:"",
|
||||||
|
},
|
||||||
formNews:{
|
formNews:{
|
||||||
news:"",
|
news:"",
|
||||||
reason:"",
|
reason:"",
|
||||||
|
@ -116,6 +188,7 @@ export default {
|
||||||
// IP查询归属地
|
// IP查询归属地
|
||||||
dialogFormVisible:false,
|
dialogFormVisible:false,
|
||||||
dialogFormVisible1:false,
|
dialogFormVisible1:false,
|
||||||
|
dialogFormVisible2:false,
|
||||||
dialogTableVisible:false,
|
dialogTableVisible:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -132,6 +205,35 @@ export default {
|
||||||
watch: {},
|
watch: {},
|
||||||
//方法集合",
|
//方法集合",
|
||||||
methods: {
|
methods: {
|
||||||
|
getBirthday(){
|
||||||
|
getBirthday(this.formBirthday).then((res)=>{
|
||||||
|
console.log(res.data);
|
||||||
|
this.formBirthday.reason=true;
|
||||||
|
this.formBirthday.years=res.data.years;
|
||||||
|
this.formBirthday.months=res.data.months;
|
||||||
|
this.formBirthday.days=res.data.days;
|
||||||
|
this.formBirthday.animal=res.data.animal;
|
||||||
|
this.formBirthday.imonthcn=res.data.imonthcn;
|
||||||
|
this.formBirthday.idaycn=res.data.idaycn;
|
||||||
|
this.formBirthday.cyear=res.data.cyear;
|
||||||
|
this.formBirthday.cmonth=res.data.cmonth;
|
||||||
|
this.formBirthday.cday=res.data.cday;
|
||||||
|
this.formBirthday.gzyear=res.data.gzyear;
|
||||||
|
this.formBirthday.gzmonth=res.data.gzmonth;
|
||||||
|
this.formBirthday.gzday=res.data.gzday;
|
||||||
|
this.formBirthday.isleap=res.data.isleap;
|
||||||
|
this.formBirthday.ncweek=res.data.ncweek;
|
||||||
|
this.formBirthday.isterm=res.data.isterm;
|
||||||
|
this.formBirthday.term=res.data.term;
|
||||||
|
this.formBirthday.astro=res.data.astro;
|
||||||
|
// this.formBirthday.eightall=res.data.eightall;
|
||||||
|
// this.formBirthday.fiveall=res.data.fiveall;
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
|
testBirthdate(){
|
||||||
|
this.dialogFormVisible2=true;
|
||||||
|
},
|
||||||
testNews(){
|
testNews(){
|
||||||
getHeadlines().then((res)=>{
|
getHeadlines().then((res)=>{
|
||||||
this.gridData=res.data;
|
this.gridData=res.data;
|
||||||
|
|
Loading…
Reference in New Issue