Commit 49b2f150 authored by 张俊's avatar 张俊

服务应用金币充值

parent 2b4f077d
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
ref="inpNum" ref="inpNum"
v-model="inputText" v-model="inputText"
oninput="value=value.replace(/[^\d]/g, '')" oninput="value=value.replace(/[^\d]/g, '')"
:disabled="couldNotEdit || name == ''" :disabled="couldNotEdit || name == ''||itemEdit"
size="small" size="small"
@input="changeValue" @input="changeValue"
class="table_in_input" class="table_in_input"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<el-input <el-input
ref="inp" ref="inp"
v-model="inputText" v-model="inputText"
:disabled="couldNotEdit || name == ''" :disabled="couldNotEdit || name == ''||itemEdit"
size="small" size="small"
@input="changeValue" @input="changeValue"
class="table_in_input" class="table_in_input"
...@@ -80,6 +80,10 @@ export default { ...@@ -80,6 +80,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
itemEdit:{
type: Boolean,
default: false
},
type: { type: {
type: String, type: String,
default: "" default: ""
...@@ -98,6 +102,11 @@ export default { ...@@ -98,6 +102,11 @@ export default {
inputTextUp: "", inputTextUp: "",
helper: helper helper: helper
}), }),
watch:{
item(n,o){
this.inputText = n
}
},
mounted() { mounted() {
this.inputText = this.item; this.inputText = this.item;
}, },
......
...@@ -84,6 +84,9 @@ ...@@ -84,6 +84,9 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:render-header="item.require ? renderHeader : null" :render-header="item.require ? renderHeader : null"
> >
<template slot="header" slot-scope="scope">
<span v-html="scope.column.label"></span>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 操作按钮 --> <!-- 操作按钮 -->
<span v-if="item.type === 'Button'"> <span v-if="item.type === 'Button'">
...@@ -153,12 +156,13 @@ ...@@ -153,12 +156,13 @@
<v-apaas-table-input <v-apaas-table-input
v-else-if="item.type === 'input' || item.type === 'upload' || item.type === 'inputNumber'" v-else-if="item.type === 'input' || item.type === 'upload' || item.type === 'inputNumber'"
:item="helper.GetProperty(scope.row, item.prop)" :item="helper.GetProperty(scope.row, item.prop)"
:header="item.prop" :header="item.prop" ref=""
:id="scope.row.id" :id="scope.row.id"
:name="scope.row.name" :name="scope.row.name"
:rowId="scope.$index" :rowId="scope.$index"
:type="scope.row[item.uploadKey] ? scope.row[item.uploadKey] : ''" :type="scope.row[item.uploadKey] ? scope.row[item.uploadKey] : ''"
:typeHead="item.type" :typeHead="item.type"
:itemEdit="scope.row[item.prop]=='不限次数'||scope.row[item.prop]=='申请获取应用镜像部署权限'||scope.row[item.prop]=='提供2核4G,4核8G等多种规格'"
:couldNotEdit="couldNotEdit" :couldNotEdit="couldNotEdit"
@changeInputValue="changeInputValue" @changeInputValue="changeInputValue"
@changeUpFile="changeUpFile" @changeUpFile="changeUpFile"
......
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
if(res.data.success){ if(res.data.success){
this.$refs.dialog.hide(); this.$refs.dialog.hide();
this.$message.success('充值成功') this.$message.success('充值成功')
this.change_date()
}else{ }else{
this.$message.error(res.data.errMsg) this.$message.error(res.data.errMsg)
} }
......
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
use_approval_arr: [], use_approval_arr: [],
process_in_up:false,//是否是服务注册产生的 process_in_up:false,//是否是服务注册产生的
perception_in:false,//是否是感知服务 perception_in:false,//是否是感知服务
service_apply_type:1,//服务申请的方式,1:计次收费2:时长收费
port_select:'', port_select:'',
req_solt_code_arr:'', req_solt_code_arr:'',
res_solt_code_arr:'', res_solt_code_arr:'',
...@@ -618,6 +619,10 @@ export default { ...@@ -618,6 +619,10 @@ export default {
title: "申请时间:", title: "申请时间:",
info: "", info: "",
}, },
{
title: "支付总价:",
info: "2000",
},
{ {
title: "审批信息", title: "审批信息",
prop: "title", prop: "title",
...@@ -720,15 +725,7 @@ export default { ...@@ -720,15 +725,7 @@ export default {
? "#515fe7" ? "#515fe7"
: "#e15260" : "#e15260"
); );
this.$set(
this.service_header_arr["first"][2],
"text",
data.service_apply_info.service_end_time == "0001-01-01T00:00:00Z"
? "-"
: data.service_apply_info.service_end_time
.replace("T", " ")
.split("+")[0]
);
this.$set(this.service_header_arr["second"][0], "text", data.req_url); this.$set(this.service_header_arr["second"][0], "text", data.req_url);
this.$set(this.service_header_arr, "url", data.cover); this.$set(this.service_header_arr, "url", data.cover);
...@@ -737,6 +734,28 @@ export default { ...@@ -737,6 +734,28 @@ export default {
this.service_header_arr.second = [] this.service_header_arr.second = []
this.service_header_arr.second.push(temp_sj) this.service_header_arr.second.push(temp_sj)
} }
if(this.service_apply_type==1){
this.$set(
this.service_header_arr["first"][2],
"text",
data.service_apply_info.service_end_time == "0001-01-01T00:00:00Z"
? "-"
: data.service_apply_info.service_end_time
.replace("T", " ")
.split("+")[0]
);
this.$set(this.service_header_arr["first"][2],'name','可调用次数')
}else{
this.$set(
this.service_header_arr["first"][2],
"text",
data.service_apply_info.service_end_time == "0001-01-01T00:00:00Z"
? "-"
: data.service_apply_info.service_end_time
.replace("T", " ")
.split("+")[0]
);
}
this.$set(this.list_arr[0], "info", data.descript); this.$set(this.list_arr[0], "info", data.descript);
this.$set(this.list_arr[1], "info", data.data_service_type2_name); this.$set(this.list_arr[1], "info", data.data_service_type2_name);
this.$set( this.$set(
......
...@@ -262,7 +262,11 @@ export default { ...@@ -262,7 +262,11 @@ export default {
{ {
title: "申请规格:", title: "申请规格:",
info: "" info: ""
} },
{
title: "总价:",
info: "2000",
},
] ]
}; };
}, },
......
This diff is collapsed.
...@@ -889,10 +889,10 @@ export default { ...@@ -889,10 +889,10 @@ export default {
num: "" num: ""
}, },
{ {
text: "收益总额", text: "工作区域",
pic: require("@/assets/imgs/ic_shouyize.png"), pic: require("@/assets/imgs/ic_gongzuoquyu.png"),
bg: "rgb(255,242,226)", bg: "#e7fdfc",
color: "#ea7d19", color: "#25bdb1",
type: "earnings_money", type: "earnings_money",
num: "" num: ""
} }
......
This diff is collapsed.
...@@ -134,6 +134,10 @@ export default { ...@@ -134,6 +134,10 @@ export default {
title: "申请时间:", title: "申请时间:",
info: "", info: "",
}, },
{
title: "总价:",
info: "2000",
},
{ {
title: "审批信息", title: "审批信息",
prop:"title", prop:"title",
......
...@@ -244,6 +244,10 @@ export default { ...@@ -244,6 +244,10 @@ export default {
{ {
title: "申请时间:", title: "申请时间:",
info: "" info: ""
},
{
title: "订单总价:",
info: "30000"
} }
] ]
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment