Compare commits
11 Commits
1c3790a689
...
a1bc4af0d4
Author | SHA1 | Date |
---|---|---|
|
a1bc4af0d4 | |
|
3d6f27c171 | |
|
050afe93a0 | |
|
5f117474af | |
|
709ffee6cf | |
|
d7f4bfcf99 | |
|
a884b72720 | |
|
2e83199138 | |
|
7ad5bac015 | |
|
f69dc7f21b | |
|
00e02111a7 |
|
@ -71,6 +71,9 @@ export function getOut(){
|
|||
|
||||
export function updateByordersState1(data){
|
||||
return request({
|
||||
|
||||
|
||||
|
||||
url:"/market/orders/updateByordersState1",
|
||||
method: "POST",
|
||||
data: data
|
||||
|
|
|
@ -2,9 +2,15 @@ import request from '@/utils/request'
|
|||
|
||||
export function getExtractDataTableNameList() {
|
||||
return request({
|
||||
url: '/property/dataRunName/extractDataTableName',
|
||||
url: '/property/dataRunName/extractDataTableNameShow',
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function tableStructureShow(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/tableStructureShow',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -40,3 +40,31 @@ export function delUserAssetAuthorization(data) {
|
|||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
/**
|
||||
* 查询资产赋权用户信息
|
||||
* @param data 参数信息
|
||||
* @returns {*} 响应结果
|
||||
*/
|
||||
export function findUserIdList(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/findUserIdList',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资产赋权部门信息
|
||||
* @param data 参数信息
|
||||
* @returns {*} 响应结果
|
||||
*/
|
||||
export function findDeptIdList(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/findDeptIdList',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -7,16 +7,10 @@ export function getExtractDataTableNameList() {
|
|||
})
|
||||
}
|
||||
|
||||
export function findTableValue(dataId,name) {
|
||||
export function tableStructureShow(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/findTableValue?dataId='+dataId+"&tableName="+name,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
export function selectBasicList() {
|
||||
return request({
|
||||
url: '/property/dataRunName/selectBasicList',
|
||||
url: '/property/dataRunName/tableStructureShow',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -47,11 +47,3 @@ export function selectHandleClick(data) {
|
|||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function extractDataName(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/extractDataName',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -152,6 +152,7 @@ export default {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -241,6 +241,7 @@
|
|||
<template slot-scope="scope">
|
||||
<el-popover trigger="hover" placement="top">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<el-button >包年</el-button>
|
||||
<el-tag size="medium">{{ scope.row.productSpecificationName }}</el-tag>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
@ -285,7 +286,7 @@
|
|||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible1 = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible1 = false">确 定</el-button>
|
||||
<el-button type="primary" @click=" confirmSelection(row)">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
|
@ -549,47 +550,51 @@ export default {
|
|||
});
|
||||
}},
|
||||
confirmSelection(row) {
|
||||
this.dialogVisible1=false
|
||||
if (this.selectedRow) {
|
||||
|
||||
// 这里假设你有一个发起支付的方法,传入所选行的数据
|
||||
startPayment(this.selectedRow);
|
||||
// startPayment(this.selectedRow);
|
||||
console.log(row)
|
||||
window.open("http://localhost:9701 " +
|
||||
"/alipay/pay?middlePrice="+row.middlePrice)
|
||||
window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
|
||||
this.$message.success('付款成功')
|
||||
}
|
||||
|
||||
// 创建一个容器来展示数据
|
||||
var container = document.getElementById('news-list');
|
||||
// 清空容器内容
|
||||
container.innerHTML = '';
|
||||
},
|
||||
|
||||
// 创建一个div来存放结果
|
||||
var resultDiv = document.createElement('div');
|
||||
show(){
|
||||
// 创建一个容器来展示数据
|
||||
var container = document.getElementById('news-list');
|
||||
// 清空容器内容
|
||||
container.innerHTML = '';
|
||||
|
||||
// 检查jsonData.reason
|
||||
if (jsonData.reason !== undefined) {
|
||||
// 移除reason中的感叹号(如果存在)
|
||||
resultDiv.innerHTML += '<h2>Reason: ' + jsonData.reason.replace(/!/g, '') + '</h2>';
|
||||
} else {
|
||||
resultDiv.innerHTML += '<h2>Reason: Not available</h2>';
|
||||
}
|
||||
// 检查jsonData.result
|
||||
if (jsonData.result !== undefined) {
|
||||
// 添加result中的信息
|
||||
resultDiv.innerHTML += '<p>Real Name: ' + jsonData.result.realname + '</p>';
|
||||
resultDiv.innerHTML += '<p>ID Card: ' + jsonData.result.idcard + '</p>';
|
||||
resultDiv.innerHTML += '<p>Order ID: ' + jsonData.result.orderid + '</p>';
|
||||
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
|
||||
} else {
|
||||
resultDiv.innerHTML += '<p>Result information is not available.</p>';
|
||||
}
|
||||
// 创建一个div来存放结果
|
||||
var resultDiv = document.createElement('div');
|
||||
|
||||
// 检查jsonData.reason
|
||||
if (jsonData.reason !== undefined) {
|
||||
// 移除reason中的感叹号(如果存在)
|
||||
resultDiv.innerHTML += '<h2>Reason: ' + jsonData.reason.replace(/!/g, '') + '</h2>';
|
||||
} else {
|
||||
resultDiv.innerHTML += '<h2>Reason: Not available</h2>';
|
||||
}
|
||||
// 检查jsonData.result
|
||||
if (jsonData.result !== undefined) {
|
||||
// 添加result中的信息
|
||||
resultDiv.innerHTML += '<p>Real Name: ' + jsonData.result.realname + '</p>';
|
||||
resultDiv.innerHTML += '<p>ID Card: ' + jsonData.result.idcard + '</p>';
|
||||
resultDiv.innerHTML += '<p>Order ID: ' + jsonData.result.orderid + '</p>';
|
||||
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
|
||||
} else {
|
||||
resultDiv.innerHTML += '<p>Result information is not available.</p>';
|
||||
}
|
||||
|
||||
// 将结果div添加到容器中
|
||||
container.appendChild(resultDiv);
|
||||
|
||||
// 将结果div添加到容器中
|
||||
container.appendChild(resultDiv);
|
||||
}
|
||||
//测试次数-1
|
||||
reducetestcount(this.myapi).then(response=>{})
|
||||
}
|
||||
|
||||
},
|
||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||
created() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<div >
|
||||
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>筛选搜索</span>
|
||||
|
@ -97,6 +97,7 @@
|
|||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
v-if="scope.row.ordersState !== 1"
|
||||
@click="pay(scope.row)" >支付</el-button>
|
||||
<!-- v-if="scope.row.status === '待支付'"-->
|
||||
</template>
|
||||
|
@ -160,10 +161,11 @@ import {
|
|||
ordersDelete,
|
||||
pay,
|
||||
getOut,
|
||||
updateByeExist
|
||||
updateByeExist, updateByordersState1
|
||||
} from '@/api/market/orders'
|
||||
import { diGui } from "@/api/market/orders";
|
||||
import axios from 'axios'
|
||||
import item from '@/layout/components/Sidebar/Item.vue'
|
||||
|
||||
|
||||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
|
@ -217,7 +219,11 @@ export default {
|
|||
};
|
||||
},
|
||||
//计算属性 类似于data概念",
|
||||
computed: {},
|
||||
computed: {
|
||||
item() {
|
||||
return item
|
||||
}
|
||||
},
|
||||
//监控data中的数据变化",
|
||||
watch: {},
|
||||
//方法集合",
|
||||
|
@ -308,8 +314,15 @@ export default {
|
|||
|
||||
pay(row){
|
||||
console.log(row)
|
||||
window.open("http://21.12.0.10:80/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
|
||||
window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
|
||||
this.$message.success('付款成功')
|
||||
updateByordersState1(ordersForm).then(response=>{
|
||||
alert(response.msg)
|
||||
if (response.code==200){}
|
||||
this.addordersoff=false
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
|
||||
getOut(){
|
||||
|
@ -323,6 +336,7 @@ export default {
|
|||
this.$router.push({path:"/reclaim/index"})
|
||||
}
|
||||
|
||||
|
||||
// getOut(){
|
||||
// axios.get('/market/orders/getOutAll').
|
||||
// then(response =>{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>测试4()- 资产展示</h1>
|
||||
<h1>资产展示</h1>
|
||||
|
||||
<el-container>
|
||||
<el-aside width="400px">
|
||||
|
@ -26,7 +26,7 @@
|
|||
<el-descriptions class="margin-top" title="资产模型基本信息" :column="2" border>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">表名称</template>
|
||||
{{ tableBasic.tableName }}
|
||||
{{ tableBasic.name }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">表备注</template>
|
||||
|
@ -34,30 +34,30 @@
|
|||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">数据量</template>
|
||||
{{ tableBasic.dataNum }}
|
||||
{{ dataNum }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">是否核心</template>
|
||||
<dict-tag :options="dict.type.sys_no" :value="tableBasic.isCenter"/>
|
||||
<el-tag size="small" v-if="dataNum!=0">是</el-tag>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
</div>
|
||||
</el-card>
|
||||
<!-- v-if="dataType === 'dataTable'-->
|
||||
<!-- v-if="dataType === 'dataTable'-->
|
||||
<el-card class="box-card" style="margin-top: 20px">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>模型数据</span>
|
||||
</div>
|
||||
<el-row :gutter="20">
|
||||
<!-- -->
|
||||
<el-col :span="6" v-for="DataValue in assetShowList" style="margin-top: 20px">
|
||||
<el-descriptions :title="tableBasic.tableRemark+'.'+tableBasic.tableName+'.'+DataValue.key" direction="vertical"
|
||||
<!-- -->
|
||||
<el-col :span="6" v-for="DataValue in tableStructure" style="margin-top: 20px">
|
||||
<el-descriptions :title="测试+'.'+tableBasic.name+'.'+DataValue.field" direction="vertical"
|
||||
border :column="1">
|
||||
<el-descriptions-item label="Type">
|
||||
<el-tag size="small">{{ DataValue.type }}</el-tag>
|
||||
<el-tag size="small">{{ DataValue.dataMapping}}</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="Value">{{ DataValue.value }}</el-descriptions-item>
|
||||
<el-descriptions-item label="Value">{{ DataValue.dataValue }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
|
||||
|
@ -65,15 +65,15 @@
|
|||
</el-row>
|
||||
</el-card>
|
||||
<el-table
|
||||
:data="DataValue"
|
||||
:data="tableStructure"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
prop="key"
|
||||
prop="field"
|
||||
label="key"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="label"
|
||||
prop="annotation"
|
||||
label="label"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
|
@ -82,11 +82,10 @@
|
|||
label="type">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="value"
|
||||
prop="dataValue"
|
||||
label="value">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</el-main>
|
||||
</el-container>
|
||||
|
||||
|
@ -100,6 +99,7 @@
|
|||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
import { findTableValue, getExtractDataTableNameList, selectBasicList } from '@/api/property/asDisplay'
|
||||
import { tableStructureShow } from '@/api/property/astr'
|
||||
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
|
@ -112,10 +112,10 @@ export default {
|
|||
return {
|
||||
data:[],
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'tableName'
|
||||
children: 'tableNames',
|
||||
label: 'name'
|
||||
},
|
||||
tableBasic:{},
|
||||
tableBasic:[],
|
||||
tableStructure:[],
|
||||
assetShowList: [
|
||||
// {key: "测试.sys_user.id", type: "String", value: 1},
|
||||
|
@ -124,9 +124,8 @@ export default {
|
|||
// {key: "测试.sys_user.email", type: "String", value: "123@136.com"},
|
||||
// {key: "测试.sys_user.sex", type: "String", value: "Y"},
|
||||
],
|
||||
kvtList: [],
|
||||
DataValue:[],
|
||||
|
||||
dataNum:'',
|
||||
};
|
||||
},
|
||||
//计算属性 类似于data概念",
|
||||
|
@ -143,23 +142,16 @@ export default {
|
|||
},
|
||||
|
||||
handleNodeClick(data){
|
||||
console.log("...."+data)
|
||||
this.tableBasic=data
|
||||
|
||||
// findStructureByTableId(data.id).then((res)=>{
|
||||
// this.tableStructure=res.data
|
||||
// })
|
||||
if (data.children==null){
|
||||
findTableValueList(data.basicId,data.tableName).then(res=>{
|
||||
this.assetShowList=res.data;
|
||||
this.DataValue=res.data;
|
||||
if (this.data.name!=data.name){
|
||||
tableStructureShow(data).then(res=> {
|
||||
this.tableBasic = data
|
||||
console.log(res)
|
||||
this.dataNum = res.data.length
|
||||
this.tableStructure = res.data
|
||||
})
|
||||
}
|
||||
console.log("-----"+this.DataValue);
|
||||
console.log("...."+data.basicId)
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||
created() {
|
||||
|
@ -188,5 +180,4 @@ export default {
|
|||
<style scoped>
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
|
|
@ -189,12 +189,14 @@ export default {
|
|||
parseTime,
|
||||
//部门switch状态变化
|
||||
handleDeptAccreditChange(deptId, value) {
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.deptId = deptId
|
||||
|
||||
if (this.tableBasic.children != null) {
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.deptId = deptId
|
||||
this.AssetImPowerListReq.tableId = null;
|
||||
} else {
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.deptId = deptId
|
||||
this.AssetImPowerListReq.basicId = null;
|
||||
}
|
||||
|
||||
|
@ -227,12 +229,13 @@ export default {
|
|||
handleAccreditChange(userId, value) {
|
||||
console.log("userId的值::" + userId);
|
||||
console.log("value的值:" + value)
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.userId = userId
|
||||
if (this.tableBasic.children != null) {
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.userId = userId
|
||||
this.AssetImPowerListReq.tableId = null;
|
||||
} else {
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.userId = userId
|
||||
this.AssetImPowerListReq.basicId = null;
|
||||
}
|
||||
|
||||
|
@ -334,14 +337,16 @@ export default {
|
|||
*/
|
||||
handleNodeClick(data) {
|
||||
this.tableBasic = data
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.deptId = this.tableBasic.deptId
|
||||
if (this.tableBasic.children != null) {
|
||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||
this.AssetImPowerListReq.deptId = this.tableBasic.deptId
|
||||
this.AssetImPowerListReq.tableId = null;
|
||||
} else {
|
||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||
this.AssetImPowerListReq.basicId = null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询资产赋权用户信息
|
||||
* @param data 参数信息
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型" prop="type"></el-table-column>
|
||||
<el-table-column label="映射类型" prop="types"></el-table-column>
|
||||
<el-table-column label="映射类型" prop="dataMapping"></el-table-column>
|
||||
<el-table-column label="是否为空" prop="nullable"></el-table-column>
|
||||
<el-table-column label="是否字典" prop="isDictionary"></el-table-column>
|
||||
<el-table-column label="映射字典" prop="dictionaryTable"></el-table-column>
|
||||
|
@ -87,7 +87,7 @@
|
|||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
|
||||
import { findTableValue, getExtractDataTableNameList } from '@/api/property/astr'
|
||||
import { getExtractDataTableNameList, tableStructureShow } from '@/api/property/astr'
|
||||
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
|
@ -123,38 +123,18 @@ export default {
|
|||
this.data = res.data
|
||||
})
|
||||
},
|
||||
handleNodeClick(data){
|
||||
// console.log(data)
|
||||
this.tableBasic=data
|
||||
this.dataNum=data.tableFie.length
|
||||
this.tableStructure=data.tableFie
|
||||
// console.log(this.tableStructure)
|
||||
findTableValue(data.dataId,data.name).then(res=>{
|
||||
let tableMapping=res.data
|
||||
// console.log(res.data)
|
||||
handleNodeClick(data) {
|
||||
console.log(data)
|
||||
this.tableBasic = data
|
||||
|
||||
for (const index in tableMapping) {
|
||||
for (const i in this.tableStructure) {
|
||||
if (tableMapping[index].key === this.tableStructure[i].field) {
|
||||
tableStructureShow(data).then(res => {
|
||||
console.log(res)
|
||||
this.dataNum = res.data.length
|
||||
this.tableStructure = res.data
|
||||
})
|
||||
|
||||
this.tableStructure[i].types.push(tableMapping[index].type)
|
||||
|
||||
console.log(this.tableStructure[i].types)
|
||||
if (i!== 0&& this.tableStructure[i].types==this.tableStructure[0].types){
|
||||
|
||||
alert("dawdwadad")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||
created() {
|
||||
|
@ -183,5 +163,4 @@ export default {
|
|||
<style scoped>
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue