数据产品相关bug

dev
Jo 3 years ago
parent dff9d95205
commit d29e0878a7
  1. 20
      src/views/data/Framework.vue
  2. 9
      src/views/data/Product.vue

@ -36,11 +36,7 @@
<el-table-column type="index" width="70" label="序号" align="center"></el-table-column> <el-table-column type="index" width="70" label="序号" align="center"></el-table-column>
<el-table-column prop="tableComment" label="数据表名称" align="center"></el-table-column> <el-table-column prop="tableComment" label="数据表名称" align="center"></el-table-column>
<el-table-column prop="showName" label="产品表名称" align="center"></el-table-column> <el-table-column prop="showName" label="产品表名称" align="center"></el-table-column>
<el-table-column label="起止日期" width="160" align="center"> <el-table-column prop="timeRange" label="起止日期" width="180" align="center"></el-table-column>
<template slot-scope="scope">
{{scope.row.startTime.substr(0, 10) + ' ~ ' + scope.row.endTime.substr(0, 10)}}
</template>
</el-table-column>
<el-table-column prop="dataTotal" label="数据总量" width="100" align="center"></el-table-column> <el-table-column prop="dataTotal" label="数据总量" width="100" align="center"></el-table-column>
<el-table-column prop="dataSize" label="数据大小" width="100" align="center"> <el-table-column prop="dataSize" label="数据大小" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -251,7 +247,19 @@ export default {
}, },
getData(){ getData(){
this.$post(`${this.api.getIdQueryTable}?categoryId=${this.categoryId}&showName=${this.keyword}&pageNum=${this.page}&pageSize=${this.pageSize}&updateTime=${this.updateTime ? this.updateTime : ''}`).then(res => { this.$post(`${this.api.getIdQueryTable}?categoryId=${this.categoryId}&showName=${this.keyword}&pageNum=${this.page}&pageSize=${this.pageSize}&updateTime=${this.updateTime ? this.updateTime : ''}`).then(res => {
this.listData = res.pageList.records const list = res.pageList.records
list.map(e => {
const startTime = e.startTime ? e.startTime.slice(0, 10) : ''
const endTime = e.endTime ? e.endTime.slice(0, 10) : ''
if (startTime && endTime) {
e.timeRange = startTime + ' ~ ' + endTime
} else if (startTime) {
e.timeRange = startTime
} else if (endTime) {
e.timeRange = e.endTime
}
})
this.listData = list
this.total = res.pageList.total this.total = res.pageList.total
}).catch(res => {}) }).catch(res => {})
}, },

@ -76,7 +76,7 @@
<el-input v-model="productName" placeholder="请输入数据产品名称"></el-input> <el-input v-model="productName" placeholder="请输入数据产品名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="市场价格"> <el-form-item label="市场价格">
<el-input v-model="market" placeholder="请输入市场价格"> <el-input v-model="market" placeholder="请输入市场价格" type="number" :min="0">
<span slot="suffix">/账号</span> <span slot="suffix">/账号</span>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -378,9 +378,10 @@ export default {
}, },
getDetail(){ getDetail(){
this.$post(`${this.api.findById}?id=${this.id}`).then(res => { this.$post(`${this.api.findById}?id=${this.id}`).then(res => {
let data = res.product const data = res.product
this.productName = data.productName this.productName = data.productName
this.market = data.market this.market = data.market
this.configChecked = data.tableId
this.checkedIds = this.handleType(data.tableId.split(','),this.typeList) this.checkedIds = this.handleType(data.tableId.split(','),this.typeList)
this.$refs.type.setCheckedNodes(this.checkedIds) this.$refs.type.setCheckedNodes(this.checkedIds)
}).catch(res => {}) }).catch(res => {})
@ -460,6 +461,7 @@ export default {
this.typeIndex = 100000 this.typeIndex = 100000
this.typeList = [] this.typeList = []
this.tableId = [] this.tableId = []
this.configChecked = []
}, },
// tableId, // tableId,
getIds(){ getIds(){
@ -647,6 +649,9 @@ export default {
/deep/ .no-mb .el-form-item{ /deep/ .no-mb .el-form-item{
margin-bottom: 0; margin-bottom: 0;
} }
/deep/.el-input--suffix .el-input__inner{
padding-right: 56px;
}
/deep/.el-container{ /deep/.el-container{
.el-aside{ .el-aside{
padding: 15px; padding: 15px;

Loading…
Cancel
Save