perf(项目设置): 应用管理加小数的过滤以及时间显示延迟问题

--bug=1010562--user=郭雨琦
应用管理加小数的过滤以及时间显示延迟问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001010562
This commit is contained in:
guoyuqi 2022-02-23 16:10:14 +08:00 committed by xiaomeinvG
parent 21b12e340a
commit 0b2c492d05
6 changed files with 12 additions and 7 deletions

View File

@ -36,7 +36,7 @@
placement="bottom"
width="300">
<p>{{ shareUrl }}</p>
<span style="color: red;float: left;margin-left: 10px;">{{
<span style="color: red;float: left;margin-left: 10px;" v-if="application.typeValue">{{
$t('commons.validity_period')+application.typeValue
}}</span>
<div style="text-align: right; margin: 0">
@ -369,6 +369,7 @@ export default {
});
},
handleShare(report) {
this.getProjectApplication();
let pram = {};
pram.customData = report.id;
pram.shareType = 'PERFORMANCE_REPORT';
@ -376,7 +377,6 @@ export default {
let thisHost = window.location.host;
this.shareUrl = thisHost + "/sharePerformanceReport" + data.shareUrl;
});
this.getProjectApplication();
},
getProjectApplication(){
this.$get('/project_application/get/' + getCurrentProjectID()+"/PERFORMANCE_SHARE_REPORT_TIME", res => {

View File

@ -122,10 +122,15 @@ export default {
this.selfChoose = false;
return false;
}
if(Number(this.selfQuantity)>parseInt(this.selfQuantity)){
this.$warning(this.$t('api_test.request.time')+this.$t('commons.type_of_num'));
this.selfChoose = false;
return false;
}
}
this.$emit("update:choose", val);
this.$emit("update:expr", this.selfQuantity + this.selfUnit);
this.$emit("update:expr", parseInt(this.selfQuantity) + this.selfUnit);
this.$emit("chooseChange");
},
parseExpr(expr) {

View File

@ -5,7 +5,7 @@
placement="right"
width="300">
<p>{{shareUrl}}</p>
<span style="color: red;float: left;margin-left: 10px;">{{ $t('commons.validity_period')+application.typeValue}}</span>
<span style="color: red;float: left;margin-left: 10px;" v-if="application.typeValue">{{ $t('commons.validity_period')+application.typeValue}}</span>
<div style="text-align: right; margin: 0">
<el-button type="primary" size="mini" :disabled="!shareUrl"
v-clipboard:copy="shareUrl">{{ $t("commons.copy") }}</el-button>

View File

@ -241,7 +241,7 @@ export default {
cancel_follow_success: "Cancel Follow Success",
generate_test_data: "Generate test data",
type: "Type",
type_of_num:"Only Number",
type_of_num:"Please enter an integer type",
validity_period:'Validity Period',
please_select_a_deadline: "Please select a deadline",
relationship: {

View File

@ -241,7 +241,7 @@ export default {
follow_success: "关注成功",
cancel_follow_success: "取消关注成功",
type: "类型",
type_of_num:"只能输入数字类型",
type_of_num:"请输入整数类型",
validity_period:'有效期',
please_select_a_deadline: "请选择截止时间",
relationship: {

View File

@ -241,7 +241,7 @@ export default {
follow_success: "關註成功",
cancel_follow_success: "取消關註成功",
type: "類型",
type_of_num:"只能輸入數字類型",
type_of_num:"請輸入整數類型",
validity_period:'有效期',
please_select_a_deadline: "請選擇截止時間",
relationship: {