fix(系统设置): 修复默认模版title编辑状态的问题
--bug=1008102 --user=刘瑞斌 【系统设置】默认缺陷模板的名字可以修改 https://www.tapd.cn/55049933/s/1071026
This commit is contained in:
parent
7f8733e0ca
commit
e4d1c0c4de
|
@ -1,18 +1,12 @@
|
|||
<template>
|
||||
<el-row type="flex" class="head-bar">
|
||||
|
||||
<el-col :span="12">
|
||||
<div v-if="showEdit" class="name-edit">
|
||||
<el-input :placeholder="$t('test_track.plan_view.input_template_name')" v-model="template[prop]"/>
|
||||
<span v-if="template[prop]" class="title">{{template[prop]}}</span>
|
||||
<span class="name-tip" v-else>{{$t('test_track.plan_view.input_template_name')}}</span>
|
||||
</div>
|
||||
<span class="title">{{ template[prop] }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12" class="head-right">
|
||||
<el-button plain size="mini" @click="handleCancel">{{ $t('test_track.return') }}</el-button>
|
||||
<el-button type="primary" size="mini" @click="handleSave">{{ $t('test_track.save') }}</el-button>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
|
||||
</template>
|
||||
|
@ -21,15 +15,13 @@
|
|||
export default {
|
||||
name: "TemplateComponentEditHeader",
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
return {};
|
||||
},
|
||||
props: {
|
||||
template: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {}
|
||||
return {};
|
||||
}
|
||||
},
|
||||
prop: {
|
||||
|
@ -53,7 +45,7 @@
|
|||
this.$emit('save');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
Loading…
Reference in New Issue