Compare commits

...

11 Commits

Author SHA1 Message Date
Aaaaaaaa a1bc4af0d4 推线上 2024-09-09 15:58:43 +08:00
Aaaaaaaa 3d6f27c171 推线上 2024-09-09 15:19:18 +08:00
Aaaaaaaa 050afe93a0 测试 2024-09-09 08:40:13 +08:00
niuwu666 5f117474af Merge pull request 'dev' (#7) from dev into master
Reviewed-on: #7
2024-09-08 23:52:23 +08:00
Yueng 709ffee6cf 添加资产授权 2024-09-08 23:41:47 +08:00
Yueng d7f4bfcf99 添加资产授权 2024-09-08 23:25:12 +08:00
Yueng a884b72720 添加资产授权 2024-09-08 23:15:32 +08:00
Aaaaaaaa 2e83199138 推线上 2024-09-08 21:20:48 +08:00
Aaaaaaaa 7ad5bac015 推线上 2024-09-08 20:09:50 +08:00
Aaaaaaaa f69dc7f21b 推线上 2024-09-08 19:58:40 +08:00
Aaaaaaaa 00e02111a7 推线上 2024-09-08 19:30:57 +08:00
11 changed files with 147 additions and 129 deletions

View File

@ -71,6 +71,9 @@ export function getOut(){
export function updateByordersState1(data){ export function updateByordersState1(data){
return request({ return request({
url:"/market/orders/updateByordersState1", url:"/market/orders/updateByordersState1",
method: "POST", method: "POST",
data: data data: data

View File

@ -2,9 +2,15 @@ import request from '@/utils/request'
export function getExtractDataTableNameList() { export function getExtractDataTableNameList() {
return request({ return request({
url: '/property/dataRunName/extractDataTableName', url: '/property/dataRunName/extractDataTableNameShow',
method: 'post', method: 'post',
}) })
} }
export function tableStructureShow(data) {
return request({
url: '/property/dataRunName/tableStructureShow',
method: 'post',
data:data
})
}

View File

@ -40,3 +40,31 @@ export function delUserAssetAuthorization(data) {
data: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
})
}

View File

@ -7,16 +7,10 @@ export function getExtractDataTableNameList() {
}) })
} }
export function findTableValue(dataId,name) { export function tableStructureShow(data) {
return request({ return request({
url: '/property/dataRunName/findTableValue?dataId='+dataId+"&tableName="+name, url: '/property/dataRunName/tableStructureShow',
method: 'post',
})
}
export function selectBasicList() {
return request({
url: '/property/dataRunName/selectBasicList',
method: 'post', method: 'post',
data:data
}) })
} }

View File

@ -47,11 +47,3 @@ export function selectHandleClick(data) {
data: data data: data
}) })
} }
export function extractDataName(data) {
return request({
url: '/property/dataRunName/extractDataName',
method: 'post',
data: data
})
}

View File

@ -152,6 +152,7 @@ export default {
} }
}); });
} }
} }
}; };
</script> </script>

View File

@ -241,6 +241,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover trigger="hover" placement="top"> <el-popover trigger="hover" placement="top">
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-button >包年</el-button>
<el-tag size="medium">{{ scope.row.productSpecificationName }}</el-tag> <el-tag size="medium">{{ scope.row.productSpecificationName }}</el-tag>
</div> </div>
</el-popover> </el-popover>
@ -285,7 +286,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button> <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> </span>
</el-dialog> </el-dialog>
@ -549,15 +550,18 @@ export default {
}); });
}}, }},
confirmSelection(row) { confirmSelection(row) {
this.dialogVisible1=false
if (this.selectedRow) { if (this.selectedRow) {
//
startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701 " +
"/alipay/pay?middlePrice="+row.middlePrice)
this.$message.success('付款成功')
//
// startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
this.$message.success('付款成功')
}
},
show(){
// //
var container = document.getElementById('news-list'); var container = document.getElementById('news-list');
// //
@ -586,10 +590,11 @@ export default {
// div // div
container.appendChild(resultDiv); container.appendChild(resultDiv);
}
//-1 //-1
reducetestcount(this.myapi).then(response=>{}) reducetestcount(this.myapi).then(response=>{})
} }
}, },
// - 访this", // - 访this",
created() { created() {

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div >
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px"> <el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>筛选搜索</span> <span>筛选搜索</span>
@ -97,6 +97,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
v-if="scope.row.ordersState !== 1"
@click="pay(scope.row)" >支付</el-button> @click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"--> <!-- v-if="scope.row.status === '待支付'"-->
</template> </template>
@ -160,10 +161,11 @@ import {
ordersDelete, ordersDelete,
pay, pay,
getOut, getOut,
updateByeExist updateByeExist, updateByordersState1
} from '@/api/market/orders' } from '@/api/market/orders'
import { diGui } from "@/api/market/orders"; import { diGui } from "@/api/market/orders";
import axios from 'axios' import axios from 'axios'
import item from '@/layout/components/Sidebar/Item.vue'
//jsjsjson, //jsjsjson,
@ -217,7 +219,11 @@ export default {
}; };
}, },
// data", // data",
computed: {}, computed: {
item() {
return item
}
},
//data", //data",
watch: {}, watch: {},
//", //",
@ -308,8 +314,15 @@ export default {
pay(row){ pay(row){
console.log(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('付款成功') this.$message.success('付款成功')
updateByordersState1(ordersForm).then(response=>{
alert(response.msg)
if (response.code==200){}
this.addordersoff=false
})
}, },
getOut(){ getOut(){
@ -323,6 +336,7 @@ export default {
this.$router.push({path:"/reclaim/index"}) this.$router.push({path:"/reclaim/index"})
} }
// getOut(){ // getOut(){
// axios.get('/market/orders/getOutAll'). // axios.get('/market/orders/getOutAll').
// then(response =>{ // then(response =>{

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<h1>测试4()- 资产展示</h1> <h1>资产展示</h1>
<el-container> <el-container>
<el-aside width="400px"> <el-aside width="400px">
@ -26,7 +26,7 @@
<el-descriptions class="margin-top" title="资产模型基本信息" :column="2" border> <el-descriptions class="margin-top" title="资产模型基本信息" :column="2" border>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">表名称</template> <template slot="label">表名称</template>
{{ tableBasic.tableName }} {{ tableBasic.name }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">表备注</template> <template slot="label">表备注</template>
@ -34,30 +34,30 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">数据量</template> <template slot="label">数据量</template>
{{ tableBasic.dataNum }} {{ dataNum }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">是否核心</template> <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-item>
</el-descriptions> </el-descriptions>
</template> </template>
</div> </div>
</el-card> </el-card>
<!-- v-if="dataType === 'dataTable'--> <!-- v-if="dataType === 'dataTable'-->
<el-card class="box-card" style="margin-top: 20px"> <el-card class="box-card" style="margin-top: 20px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>模型数据</span> <span>模型数据</span>
</div> </div>
<el-row :gutter="20"> <el-row :gutter="20">
<!-- --> <!-- -->
<el-col :span="6" v-for="DataValue in assetShowList" style="margin-top: 20px"> <el-col :span="6" v-for="DataValue in tableStructure" style="margin-top: 20px">
<el-descriptions :title="tableBasic.tableRemark+'.'+tableBasic.tableName+'.'+DataValue.key" direction="vertical" <el-descriptions :title="测试+'.'+tableBasic.name+'.'+DataValue.field" direction="vertical"
border :column="1"> border :column="1">
<el-descriptions-item label="Type"> <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>
<el-descriptions-item label="Value">{{ DataValue.value }}</el-descriptions-item> <el-descriptions-item label="Value">{{ DataValue.dataValue }}</el-descriptions-item>
</el-descriptions> </el-descriptions>
@ -65,15 +65,15 @@
</el-row> </el-row>
</el-card> </el-card>
<el-table <el-table
:data="DataValue" :data="tableStructure"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="key" prop="field"
label="key" label="key"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="label" prop="annotation"
label="label" label="label"
width="180"> width="180">
</el-table-column> </el-table-column>
@ -82,11 +82,10 @@
label="type"> label="type">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="value" prop="dataValue"
label="value"> label="value">
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-main> </el-main>
</el-container> </el-container>
@ -100,6 +99,7 @@
//jsjsjson, //jsjsjson,
//import from ', //import from ',
import { findTableValue, getExtractDataTableNameList, selectBasicList } from '@/api/property/asDisplay' import { findTableValue, getExtractDataTableNameList, selectBasicList } from '@/api/property/asDisplay'
import { tableStructureShow } from '@/api/property/astr'
export default { export default {
//import使" //import使"
@ -112,10 +112,10 @@ export default {
return { return {
data:[], data:[],
defaultProps: { defaultProps: {
children: 'children', children: 'tableNames',
label: 'tableName' label: 'name'
}, },
tableBasic:{}, tableBasic:[],
tableStructure:[], tableStructure:[],
assetShowList: [ assetShowList: [
// {key: ".sys_user.id", type: "String", value: 1}, // {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.email", type: "String", value: "123@136.com"},
// {key: ".sys_user.sex", type: "String", value: "Y"}, // {key: ".sys_user.sex", type: "String", value: "Y"},
], ],
kvtList: [],
DataValue:[], DataValue:[],
dataNum:'',
}; };
}, },
// data", // data",
@ -143,23 +142,16 @@ export default {
}, },
handleNodeClick(data){ handleNodeClick(data){
console.log("...."+data) if (this.data.name!=data.name){
this.tableBasic=data tableStructureShow(data).then(res=> {
this.tableBasic = data
// findStructureByTableId(data.id).then((res)=>{ console.log(res)
// this.tableStructure=res.data this.dataNum = res.data.length
// }) this.tableStructure = res.data
if (data.children==null){
findTableValueList(data.basicId,data.tableName).then(res=>{
this.assetShowList=res.data;
this.DataValue=res.data;
}) })
} }
console.log("-----"+this.DataValue);
console.log("...."+data.basicId)
},
}
}, },
// - 访this", // - 访this",
created() { created() {
@ -188,5 +180,4 @@ export default {
<style scoped> <style scoped>
</style> </style>

View File

@ -189,12 +189,14 @@ export default {
parseTime, parseTime,
//switch //switch
handleDeptAccreditChange(deptId, value) { handleDeptAccreditChange(deptId, value) {
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
this.AssetImPowerListReq.tableId = this.tableBasic.id
this.AssetImPowerListReq.deptId = deptId
if (this.tableBasic.children != null) { if (this.tableBasic.children != null) {
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
this.AssetImPowerListReq.deptId = deptId
this.AssetImPowerListReq.tableId = null; this.AssetImPowerListReq.tableId = null;
} else { } else {
this.AssetImPowerListReq.tableId = this.tableBasic.id
this.AssetImPowerListReq.deptId = deptId
this.AssetImPowerListReq.basicId = null; this.AssetImPowerListReq.basicId = null;
} }
@ -227,12 +229,13 @@ export default {
handleAccreditChange(userId, value) { handleAccreditChange(userId, value) {
console.log("userId的值:" + userId); console.log("userId的值:" + userId);
console.log("value的值" + value) 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) { if (this.tableBasic.children != null) {
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
this.AssetImPowerListReq.userId = userId
this.AssetImPowerListReq.tableId = null; this.AssetImPowerListReq.tableId = null;
} else { } else {
this.AssetImPowerListReq.tableId = this.tableBasic.id
this.AssetImPowerListReq.userId = userId
this.AssetImPowerListReq.basicId = null; this.AssetImPowerListReq.basicId = null;
} }
@ -334,14 +337,16 @@ export default {
*/ */
handleNodeClick(data) { handleNodeClick(data) {
this.tableBasic = data this.tableBasic = data
this.AssetImPowerListReq.tableId = this.tableBasic.id if (this.tableBasic.children != null) {
this.AssetImPowerListReq.basicId = this.tableBasic.basicId this.AssetImPowerListReq.basicId = this.tableBasic.basicId
this.AssetImPowerListReq.deptId = this.tableBasic.deptId this.AssetImPowerListReq.deptId = this.tableBasic.deptId
if (this.tableBasic.children != null) {
this.AssetImPowerListReq.tableId = null; this.AssetImPowerListReq.tableId = null;
} else { } else {
this.AssetImPowerListReq.tableId = this.tableBasic.id
this.AssetImPowerListReq.basicId = null; this.AssetImPowerListReq.basicId = null;
} }
/** /**
* 查询资产赋权用户信息 * 查询资产赋权用户信息
* @param data 参数信息 * @param data 参数信息

View File

@ -62,7 +62,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="类型" prop="type"></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="nullable"></el-table-column>
<el-table-column label="是否字典" prop="isDictionary"></el-table-column> <el-table-column label="是否字典" prop="isDictionary"></el-table-column>
<el-table-column label="映射字典" prop="dictionaryTable"></el-table-column> <el-table-column label="映射字典" prop="dictionaryTable"></el-table-column>
@ -87,7 +87,7 @@
//jsjsjson, //jsjsjson,
//import from ', //import from ',
import { findTableValue, getExtractDataTableNameList } from '@/api/property/astr' import { getExtractDataTableNameList, tableStructureShow } from '@/api/property/astr'
export default { export default {
//import使" //import使"
@ -123,37 +123,17 @@ export default {
this.data = res.data this.data = res.data
}) })
}, },
handleNodeClick(data){ handleNodeClick(data) {
// console.log(data) console.log(data)
this.tableBasic=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)
for (const index in tableMapping) {
for (const i in this.tableStructure) {
if (tableMapping[index].key === this.tableStructure[i].field) {
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
}
}
}
}
tableStructureShow(data).then(res => {
console.log(res)
this.dataNum = res.data.length
this.tableStructure = res.data
}) })
},
},
}, },
// - 访this", // - 访this",
@ -183,5 +163,4 @@ export default {
<style scoped> <style scoped>
</style> </style>