Merge remote-tracking branch 'origin/master'

master
陈思豪 2024-08-28 00:12:27 +08:00
commit 5d9df94177
16 changed files with 788 additions and 191 deletions

View File

@ -39,6 +39,25 @@ export function del(id){
}
//开启
export function onEngine(id){
return request({
url: "/engine/engine/onEngine/" + id,
method: "post",
data:id
})
}
//禁用
export function forbiddenEngine(id){
return request({
url: "/engine/engine/forbiddenEngine/" + id,
method: "post",
data:id
})
}
export function selectLevel(){
return request({
url: "/engine/level/selectLevelList",
@ -55,3 +74,12 @@ export function getRuleEngineInfo(id) {
}
// 通过id查询
export function findById(id) {
return request({
url: '/engine/engine/findById/' + id,
method: 'get'
})
}

View File

@ -75,3 +75,27 @@ export function update(data){
}
//查询数据库名称 表名称 字段名称 类型等
export function findTableInfo(){
return request({
url: "/source/tableInfo/findTableInfo",
method: "get",
})
}
export function findTableInfoList(){
return request({
url: "/source/tableInfo/findTableInfoList",
method: "get",
})
}
export function findStructureByTableId(id){
return request({
url: "/source/tableInfo/findStruceure/"+id,
method: "get",
})
}

View File

@ -1,12 +1,5 @@
import request from '@/utils/request'
export function getPhonePlace(tel) {
return request({
url: '/mart/list/getPhonePlace?tel='+tel,
method: 'get'
})
}
export function findConnectorList(data) {
return request({
url: '/mart/connector/findConnectorList',
@ -36,5 +29,11 @@ export function updateConnector(data) {
method: 'post',
data:data
})
}
};
export function phonePlace(tel) {
return request({
url: '/port/list/phonePlace?tel='+tel,
method: 'get'
})
}

View File

@ -12,6 +12,15 @@ export function listUser(query) {
//充值用户记录
export function userPayinfo(query) {
return request({
url: '/system/user/userPayinfo',
method: 'get',
params: query
})
}
// 充值用户余额
export function userRecharge(data) {
return request({

View File

@ -0,0 +1,42 @@
import request from '@/utils/request'
//查询规则引擎列表
export function list(){
return request({
url: "/engine/type/list",
method: "post"
})
}
export function insert(data){
return request({
url: "/engine/type/add",
method: "post",
data:data
})
}
export function update(data){
return request({
url: "/engine/type/update",
method: "post",
data:data
})
}
export function del(id){
return request({
url: "/engine/type/delete/" + id,
method: "post",
data:id
})
}
export function exports(data){
return request({
url: "/engine/type/export",
method: "post",
data:data
})
}

View File

@ -4,18 +4,35 @@
<el-form-item label="规则名称">
<el-input v-model="engineReq.name"></el-input>
</el-form-item>
<el-form-item label="规则类型">
<el-input v-model="engineReq.type"></el-input>
<el-select v-model="engineReq.type" placeholder="请选择类型">
<el-option label="字段类型" value="1"></el-option>
<el-option label="基本类型" value="2"></el-option>
<el-option label="引用类型" value="3"></el-option>
<el-option label="时间类型" value="4"></el-option>
<el-option label="转换类型" value="5"></el-option>
</el-select>
</el-form-item>
<el-form-item label="是否激活">
<el-input v-model="engineReq.isActivate"></el-input>
<el-select v-model="engineReq.isActivate" placeholder="是否激活">
<el-option label="已激活" value="1"></el-option>
<el-option label="未激活" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="规则状态">
<el-input v-model="engineReq.status"></el-input>
<el-select v-model="engineReq.status" placeholder="规则状态">
<el-option label="开启" value="1"></el-option>
<el-option label="关闭" value="2"></el-option>
</el-select>
</el-form-item>
<el-button @click="select()">
查询
</el-button>
<el-button @click="clears()">
重置
</el-button>
</el-form>
<el-button
type="warning"
@ -27,7 +44,7 @@
>导出
</el-button>
<!-- 添加按钮 /-->
<!-- 添加按钮 /-->
<el-button
type="primary"
plain
@ -182,7 +199,7 @@
</template>
</el-table-column>
</el-table>
<!-- 分页-->
<!-- 分页-->
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@ -326,6 +343,14 @@ export default {
path:'list',
query:{id:row.id}
})
},
clears(){
this.engineReq = {
name: '',
type: '',
isActivate: '',
status: ''
};
}
},
// - 访this",

View File

@ -1,117 +1,73 @@
<template>
<div>
<el-table :data="scopeList" style="width: 100%">
<div>
<el-row :gutter="10">
<el-col :span="8" v-for="customer in scopeList" v-if="scopeList.length !== 0">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span style="font-size: 18px;font-weight: 900">{{ customer.name }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.versionCode }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.isActivate }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.status }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.testStatus }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.ruleContent }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.engineMaintenanceId }}</span>
<span style="font-size: 18px;font-weight: 900">{{ customer.description }}</span>
</div>
<div>
<el-descriptions class="margin-top" :column="1" :size="size" border>
<el-table-column label="日期" width="180">
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>版本名称</template>
{{ customer.name }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>版本编码</template>
{{ customer.versionClass }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>是否激活</template>
{{ customer.versionCode }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>版本状态</template>
{{ customer.isActivate }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>版本测试状态</template>
{{ customer.status }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>规则内容</template>
{{ customer.testStatus }}
</el-descriptions-item><el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>引擎维护编号</template>
{{ customer.ruleContent }}
</el-descriptions-item>
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
<el-descriptions-item>
<template slot="label"><i class="el-icon-user"></i>描述</template>
{{ customer.engineMaintenanceId }}
</el-descriptions-item>
</el-table-column>
</el-descriptions>
<el-divider content-position="left">规则引擎版本</el-divider>
</div>
</el-card>
</el-col>
</el-row>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<el-table-column label="日期" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.date }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- @click="handleEdit(scope.$index, scope.row)">编辑</el-button>-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="danger"-->
<!-- @click="handleDelete(scope.$index, scope.row)">删除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- -->
</el-table>
</div>
</div>
</template>
<script>
import {getRuleEngineInfo} from "@/api/engine/engine";
import {findById, forbiddenEngine, onEngine} from "@/api/engine/engine";
export default {
//import使"
@ -126,14 +82,28 @@ export default {
},
methods: {
List(){
getRuleEngineInfo().then(res =>{
findById(this.maintenance.id).then(res =>{
this.scopeList = res.data;
console.log(this.scopeList)
})
},
handleStatusChange(row){
if (row.status === "Y"){
onEngine(row.id).then((res)=>{
this.$modal.msgSuccess("启用成功")
this.getList()
})
}else {
forbiddenEngine(row.id).then((res)=>{
this.$modal.msgSuccess("禁用成功")
this.getList()
})
}
},
},
// - 访this",
created() {
this.scopeList.id = this.$route.query.id
this.maintenance.id = this.$route.query.id
this.List();
}
}

View File

@ -0,0 +1,151 @@
<template>
<div>
<el-container>
<el-aside width="30%">
<el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</el-aside>
<el-main>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>资产模型基本信息</span>
</div>
<el-descriptions class="margin-top" title="带边框列表" :column="2" border>
<el-descriptions-item>
<template slot="label">表名称</template>
{{ tableBasic.tableName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">表备注</template>
{{ tableBasic.tableRemark }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">数据量</template>
{{ tableBasic.dataNum }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">是否核心</template>
<dict-tag :options="dict.type.yes_no" :value="tableBasic.isCenter"/>
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>资产模型详细信息</span>
</div>
<el-table
:data="tableData" style="width: 100%">
<el-table-column label="名称" prop="columnName"></el-table-column>
<el-table-column label="注释" prop="columnRemark"></el-table-column>
<el-table-column label="是否主键" prop="isPrimary">
<template slot-scope="scope">
<dict-tag :options="dict.type.yes_no" :value="scope.row.isPrimary"/>
</template>
</el-table-column>
<el-table-column label="类型" prop="columnType"></el-table-column>
<el-table-column label="映射类型" prop="javaType"></el-table-column>
<el-table-column label="长度" prop="columnLength"></el-table-column>
<el-table-column label="小数位" prop="columnDecimals"></el-table-column>
<el-table-column label="是否为空" prop="isNull">
<template slot-scope="scope">
<dict-tag :options="dict.type.yes_no" :value="scope.row.isNull"/>
</template>
</el-table-column>
</el-table>
</el-card>
</el-main>
</el-container>
</div>
</template>
<script>
//jsjsjson,
//import from ',
import {findTableInfoList} from "@/api/etl/switch";
import {findStructureByTableId} from "@/api/etl/switch";
export default {
dicts: ['yes_no'],
//import使"
components: {},
props: {},
data() {
//"
return {
tableData:[],
tableBasic:{
},
form:{
},
data:[],
defaultProps:{
children:"children",
label:'tableName'
},
};
},
// data",
computed: {},
//data",
watch: {},
//",
methods: {
findTAbleInfoList(){
findTableInfoList().then(res=>{
this.data=res.data;
})
},
handleNodeClick(data) {
this.tableBasic=data
findStructureByTableId(data.id).then((res)=>{
this.tableData=res.data;
})
console.log(data);
},
},
// - 访this",
created() {
this.findTAbleInfoList();
},
// - 访DOM",
mounted() {
},
beforeCreate() {
}, // - ",
beforeMount() {
}, // - ",
beforeUpdate() {
}, // - ",
updated() {
}, // - ",
beforeDestroy() {
}, // - ",
destroyed() {
}, // - ",
activated() {
} //keep-alive",
};
</script>
<style scoped>
</style>

View File

@ -48,7 +48,7 @@
<el-dialog title="title" :visible.sync="dialogFormVisible" append-to-body width="60%">
<el-form ref="form" :model="sourceAddReq" :rules="rules" label-width="140px" :inline="true" class="demo-form-inline">
<el-form ref="sourceAddReq" :model="sourceAddReq" :rules="rules" label-width="140px" :inline="true" class="demo-form-inline">
<el-form-item label="接入源名称">
<el-input v-model="sourceAddReq.dataResourceName"></el-input>
</el-form-item>
@ -83,9 +83,9 @@
<div slot="header" class="clearfix">
<span>连接池配置</span>
</div>
<el-form ref="form" :model="sourceAddReq" label-width="120px" :inline="true" class="demo-form-inline">
<el-form :model="sourceAddReq" label-width="120px" :inline="true" class="demo-form-inline">
<el-form-item label="初始连接数量:" prop="initCount">
<el-input v-model="sourceAddReq.initCount" placeholder="初始连接数量"/>
<el-input v-model="sourceAddReq.initLinkNum" placeholder="初始连接数量"/>
</el-form-item>
<el-form-item label="最大连接数量:" prop="maxCount">
<el-input v-model="sourceAddReq.maxLinkNum" placeholder="最大连接数量"/>
@ -94,7 +94,7 @@
<el-input v-model="sourceAddReq.maxWaitTime" placeholder="最大等待时间"/>
</el-form-item>
<el-form-item label="最大等待次数:" prop="maxFrequency">
<el-input v-model="sourceAddReq.remark" placeholder="最大等待次数"/>
<el-input v-model="sourceAddReq.maxWaitTimes" placeholder="最大等待次数"/>
</el-form-item>
@ -106,11 +106,11 @@
<div slot="header" class="clearfix">
<span>其他信息</span>
</div>
<el-form ref="form" :model="sourceAddReq" label-width="140px" :inline="true" class="demo-form-inline">
<el-form :model="sourceAddReq" label-width="140px" :inline="true" class="demo-form-inline">
<el-form-item label="是否初始化:" prop="status">
<el-radio-group v-model="sourceAddReq.status">
<el-radio
v-for="dict in dict.type.ys_yes_no"
v-for="dict in dict.type.yes_no"
:key="dict.value"
:label="dict.value"
>{{ dict.label }}
@ -125,11 +125,13 @@
</el-card>
<div slot="footer" class="dialog-footer">
<el-button @click="textP()"></el-button>
<el-button @click="dialogFormVisible = false"> </el-button>
<el-button type="primary" @click="addSource()"> </el-button>
</div>
</el-dialog>
@ -179,14 +181,20 @@
prop="databaseName">
</el-table-column>
<el-table-column
label="是否初始化"
prop="status">
<el-table-column align="status" label="是否初始化" prop="status">
<template slot-scope="scope">
<dict-tag :options="dicts.type.ys_yes_no" :value="scope.row.status"/>
<dict-tag :options="dict.type.yes_no" :value="scope.row.status"/>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- label="是否初始化"-->
<!-- prop="status">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.yes_no" :value="scope.row.status"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label="备注"
prop="remark">
@ -237,43 +245,43 @@
//jsjsjson,
//import from ',
import {selectSourceList, update} from "@/api/etl/switch";
import {selectSourceExport} from "@/api/etl/switch";
import {connectionTest} from "@/api/etl/switch";
import {insertAdd} from "@/api/etl/switch";
import {deleteSource} from "@/api/etl/switch";
import {getInfo} from "@/api/etl/switch";
import {structure} from "@/api/etl/switch";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
dicts: ['sys_normal_disable','ys_yes_no'],
dicts: ['yes_no', 'sys_normal_disable'],
//import使"
components: {},
components: {
},
props: {},
data() {
//"
return {
dicts: ['sys_normal_disable','ys_yes_no'],
sourceAddReq:{
},
rules: {
dataResourceName: [
{required: true, message: "接入源名称不能为空", trigger: "blur"}
],
dataSourcesSystemName: [
{required: true, message: "数据来源系统名称不能为空", trigger: "blur"}
],
host: [
{required: true, message: "主机地址不能为空", trigger: "blur"}
]
dataResourceName: [{required: true, message: "接入源名称不能为空", trigger: "blur"}],
dataSourcesSystemName: [{required: true, message: "数据来源系统名称不能为空", trigger: "blur"}],
host: [{required: true, message: "主机地址不能为空", trigger: "blur"}]
},
ids:[],
dialogFormVisible:false,
SourceReq:{
},
sourceAddReq:{
},
source:[],
};
},
@ -299,8 +307,8 @@ export default {
},
struceure(row){
structure(row).then(res=>{
if (res ===200){
alert("同步资产成功")
if (res.code ===200){
alert("同步资产成功,请查询数据库")
}
})
},
@ -311,6 +319,7 @@ export default {
}
})
},
handleDelete(row){
deleteSource(row.id).then(res=>{
if (res.code===200){
@ -327,7 +336,9 @@ export default {
}
})
},
addSource(){
addSource: function (){
this.$refs["sourceAddReq"].validate(valid=> {
if (valid){
if (this.sourceAddReq.id!=undefined){
update(this.sourceAddReq).then(res=>{
if (res.code===200){
@ -343,6 +354,9 @@ export default {
}
})
}
}
});
},
//
textConnect(row){

View File

@ -0,0 +1,109 @@
<template>
<div style="padding: 20px;">
<h1 style="text-align: center; margin-bottom: 30px;">充值明细</h1>
<el-divider></el-divider>
<el-row>
<el-col :span="50"></el-col>
<el-col :span="5" :offset="15">
<el-button
v-hasPermi="['system:pay:export']"
icon="el-icon-download"
plain
size="mini"
type="warning"
@click="handleExport"
>导出
</el-button>
</el-col>
</el-row>
<el-table
:data="listDate"
style="width: 100%; border-collapse: collapse;">
<el-table-column
label="序号"
width="300"
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
<template slot-scope="scope">
{{ scope.row.id }}
</template>
</el-table-column>
<el-table-column
label="充值编号"
width="300"
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
<template slot-scope="scope">
{{ scope.row.outTradeNo }}
</template>
</el-table-column>
<el-table-column
label="充值金额"
width="300"
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
<template slot-scope="scope">
{{ scope.row.totalAmount }}
</template>
</el-table-column>
<el-table-column
label="充值类型"
width="300"
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
<template slot-scope="scope">
{{ scope.row.productCode }}
</template>
</el-table-column>
<el-table-column
label="充值时间"
width="300"
style="border: 1px solid #ca8a8a; padding: 10px; text-align: center;">
<template slot-scope="scope">
{{ scope.row.createTime }}
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNum"
:total="total"
@pagination="getList"
/>
</div>
</template>
<script>
import { userPayinfo } from "@/api/system/user";
import PanelGroup from "@/views/dashboard/PanelGroup.vue";
export default {
components: {PanelGroup},
data() {
return {
listDate: [],
total: 0,
queryParams: {
pageNum: 1,
pageSize: 10,
}
}
},
created() {
this.getList();
},
methods: {
/** 导出按钮操作 */
handleExport() {
this.download('system/user/export', {
...this.queryParams
}, `pay_${new Date().getTime()}.xlsx`)
},
getList() {
userPayinfo(this.addDateRange(this.queryParams)).then(response => {
this.listDate = response.data.rows;
this.total = response.data.total;
}
);
}
}
}
</script>

View File

@ -3,9 +3,8 @@
<ul class="msg-box">
<li>
<h1 style="margin-bottom: 15px;">充值说明</h1>
<h4>你敢充钱,我就敢让你没钱</h4>
<h4>子龙说你得有个小目标</h4>
<h4>什么小目标,得一个亿</h4>
<h4>请输入支付宝沙箱账号</h4>
<h4>西伯利亚龙</h4>
</li>
<li>
<h4 style="margin-bottom: 15px;">支付金额</h4>
@ -37,8 +36,7 @@
</template>
<script>
import {addUserMoney, userRecharge} from "@/api/system/user";
import { addUserMoney, userRecharge ,createRechargeRecord} from "@/api/system/user";
export default {
data() {
return {
@ -46,7 +44,7 @@ export default {
addSysUser: {},
disabled: false,
//
returnUrl: 'http://172.13.1.1/money/money',
returnUrl:'http://localhost/money/money',
//
rechargeParams: {
"totalAmt": '', //
@ -86,7 +84,7 @@ export default {
//
returnUrl: this.returnUrl,
//
subject: '充值金额',
subject: '支付金额',
//
productCode: 'FAST_INSTANT_TRADE_PAY'
}
@ -109,6 +107,7 @@ export default {
let userId = localStorage.getItem('userId');
this.addSysUser.userId = userId;
addUserMoney(this.addSysUser).then(res => {
createRechargeRecord(praem);
}).catch(error => {
console.error('Error updating user balance:', error);
});

View File

@ -12,17 +12,17 @@
<h1>余额预警</h1>
<el-button type="text" @click="dialogFormVisible = true">开启</el-button>
<el-dialog title="添加预警号码" :visible.sync="dialogFormVisible">
<el-divider style="color: #00afff">
<el-divider style="border-color: #00afff;">
<el-tag content-position="right" type="warning">
账户可用余额小于该值时,每天短信通知一次(最多连续提醒5天)
</el-tag>
</el-divider>
<el-form :model="form">
<el-form-item label="预警阈值:" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
<el-input v-model="form.userBalance" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="预警号码:" :label-width="formLabelWidth">
<el-input v-model="form.phone" autocomplete="off"></el-input>
<el-input v-model="form.phonenumber" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">

View File

@ -0,0 +1,115 @@
<template>
<div>
<el-row :gutter="50">
<el-col :span="7" v-for="connector in connectorList" v-if="connectorList.length !== 0">
<el-card class="box-card" style="margin-top: 15px;width: 500px; height: 600px;" shadow="hover">
<div slot="header" class="clearfix">
<h1 style="font-weight: bold">{{connector.connectorName}}</h1>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyPhone(connector)"></el-button>
</div>
<span style="font-weight: bold;font-size: 20px">产品图片:</span><br>
<el-image style="width: 300px; height: 300px" :src="connector.connectorPicture" :fit="fit"></el-image><br>
<span style="font-weight: bold;font-size: 20px">产品介绍</span>
{{connector.connectorDescribe}}<br>
<span style="font-weight: bold;font-size: 20px">价格</span>
{{connector.connectorPrice}}/<br>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="dialogFormVisible=true" v-if="connector.connectorName=='手机号查询归属地'"></el-button>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyIP(connector)" v-if="connector.connectorName=='IP查询归属地'"></el-button>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyNews(connector)" v-if="connector.connectorName=='新闻头条'"></el-button>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyWeather(connector)" v-if="connector.connectorName=='气象预警'"></el-button>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyBirthdate(connector)" v-if="connector.connectorName=='生辰助手'"></el-button>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buyMailbox(connector)" v-if="connector.connectorName=='邮编查询'"></el-button>
</el-card>
</el-col>
</el-row>
<el-dialog title="手机查询归属地" :visible.sync="dialogFormVisible">
<el-form :model="formInline">
<el-form-item label="手机号" :label-width="formLabelWidth">
<el-input v-model="formInline.tel" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="buyPhone(tel)"></el-button>
</div>
</el-dialog>
</div>
</template>
<script>
//jsjsjson,
//import from ',
import {findConnectorList} from "@/api/port/port";
import index from "vuex";
import {phonePlace} from "@/api/port/port";
export default {
//import使"
components: {},
props: {},
data() {
//"
return {
connectorList:[],
form:{},
formInline:{},
dialogFormVisible:false,
};
},
// data",
computed: {
index() {
return index
},
node() {
return node
}
},
//data",
watch: {},
//",
methods: {
buyPhone(tel){
getPhonePlace(tel).then((res)=>{
console.log(111);
console.log(res.data);
alert(res.msg);
if (200==res.code){
}
})
},
findConnectorList(){
findConnectorList(this.form).then((res)=>{
this.connectorList=res.data;
console.log(res.data);
})
}
},
// - 访this",
created() {
this.findConnectorList();
},
// - 访DOM",
mounted() {
},
beforeCreate() {
}, // - ",
beforeMount() {
}, // - ",
beforeUpdate() {
}, // - ",
updated() {
}, // - ",
beforeDestroy() {
}, // - ",
destroyed() {
}, // - ",
activated() {
} //keep-alive",
};
</script>
<style scoped>
</style>

View File

@ -15,7 +15,7 @@
<el-table-column
label="接口名称"
width="180">
width="150">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorName }}</span>
</template>
@ -80,7 +80,7 @@
<el-table-column
label="状态"
width="180">
width="150">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.connectorStatus==0"></span>
<span style="margin-left: 10px" v-if="scope.row.connectorStatus==1"></span>
@ -109,8 +109,17 @@
<el-input v-model="formLabelAlign.connectorName" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="接口分类" :label-width="formLabelWidth">
<el-input v-model="formLabelAlign.connectorSort" autocomplete="off"></el-input>
<el-form-item label="接口分类">
<el-select v-model="formLabelAlign.connectorSort" placeholder="请选择活动区域">
<el-option label="生活服务" value="生活服务">生活服务</el-option>
<el-option label="金融科技" value="金融科技">金融科技</el-option>
<el-option label="数据智能" value="数据智能">数据智能</el-option>
<el-option label="企业工商" value="企业工商">企业工商</el-option>
<el-option label="交通地理" value="交通地理">交通地理</el-option>
<el-option label="应用开发" value="应用开发">应用开发</el-option>
<el-option label="电子商务" value="电子商务">电子商务</el-option>
<el-option label="充值缴费" value="充值缴费">充值缴费</el-option>
</el-select>
</el-form-item>
<el-form-item label="接口描述" :label-width="formLabelWidth">
@ -118,7 +127,6 @@
</el-form-item>
<el-form-item label="接口图片" :label-width="formLabelWidth">
<el-input v-model="formLabelAlign.connectorPicture" autocomplete="off"></el-input>
<el-upload
action="https://jsonplaceholder.typicode.com/posts/"
list-type="picture-card"
@ -139,6 +147,7 @@
<el-form-item label="购买次数" :label-width="formLabelWidth">
<el-input v-model="formLabelAlign.connectorFrequency" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="addConnector"> </el-button>
@ -157,7 +166,7 @@
</el-form-item>
<el-form-item label="接口分类" :label-width="formLabelWidth">
<el-input v-model="formLabelAlign.connectorSort" autocomplete="off"></el-input>
<el-input v-model="formInline.connectorSort" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="接口描述" :label-width="formLabelWidth">

View File

@ -429,6 +429,7 @@ export default {
/** 提交按钮 */
submitForm: function () {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.menuId != undefined) {
updateMenu(this.form).then(response => {
@ -444,6 +445,7 @@ export default {
});
}
}
});
},
/** 删除按钮操作 */

View File

@ -0,0 +1,101 @@
<template>
<div>
<!-- 添加或修改规则引擎对话框 -->
<el-button type="text" @click="dialogFormVisible = true">添加规则类型</el-button>
<el-dialog title="添加规则" :visible.sync="dialogFormVisible">
<el-form :model="type">
<el-form-item label="规则名称" :label-width="formLabelWidth">
<el-input v-model="type.name" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button>
</div>
</el-dialog>
<el-table :data="arr" style="width: 100%">
<el-table-column label="类型编号" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.id }}</span>
</template>
</el-table-column>
<el-table-column label="类型名称" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import {del, insert, list} from "@/api/type/type";
export default {
//import使"
components: {},
props: {},
data() {
//"
return {
arr:[],
type:{},
rules: {
name: [{required: true, message: '请输入规则名称', trigger: 'blur'}]
},
dialogFormVisible:false,
formLabelWidth: '120px'
};
},
methods: {
List(){
list().then(res =>{
this.arr = res;
})
},
handleDelete(id){
if (confirm("你确定删除吗?")){
del(id).then(res =>{
this.$message.success(res.msg || "删除成功")
})
}
},
submitForm(){
this.dialogFormVisible=true
insert(this.type).then(res =>{
this.$message.success(res.msg || "添加成功")
})
this.dialogFormVisible = false;
}
},
// - 访this",
created() {
this.List();
}
}
</script>
<style scoped>
</style>