|
@@ -17,6 +17,9 @@
|
|
<i class="el-icon-delete icon" @click="deateModel = true" />
|
|
<i class="el-icon-delete icon" @click="deateModel = true" />
|
|
</div>
|
|
</div>
|
|
<div class="content base">
|
|
<div class="content base">
|
|
|
|
+ <header class="headerH2">
|
|
|
|
+ <headTitle title="基础信息" />
|
|
|
|
+ </header>
|
|
<baseContent
|
|
<baseContent
|
|
v-if="form_data"
|
|
v-if="form_data"
|
|
:data="form_data"
|
|
:data="form_data"
|
|
@@ -52,7 +55,7 @@
|
|
:value.sync="form_data.replayDesc"
|
|
:value.sync="form_data.replayDesc"
|
|
:empty-text="'点击'"
|
|
:empty-text="'点击'"
|
|
:input-button="'添加复盘内容'"
|
|
:input-button="'添加复盘内容'"
|
|
- :styles="{ padding: '12px 0 20px 0' }"
|
|
|
|
|
|
+ :styles="{ padding: '20px 0 20px 0' }"
|
|
@change="(e) => onChange('replayDesc', e, true)"
|
|
@change="(e) => onChange('replayDesc', e, true)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -61,8 +64,6 @@
|
|
<header class="headerH2">
|
|
<header class="headerH2">
|
|
<headTitle title="改进项" :icon="makeBetterEdit ? '' : 'el-icon-edit'" :open-btn="true" @handle="makeBetterEdit = true">
|
|
<headTitle title="改进项" :icon="makeBetterEdit ? '' : 'el-icon-edit'" :open-btn="true" @handle="makeBetterEdit = true">
|
|
<span slot="handleSlot">
|
|
<span slot="handleSlot">
|
|
- <!-- <i class="el-icon-edit" @click="$emit('handle')" /> -->
|
|
|
|
- <!-- <span></span> -->
|
|
|
|
<span v-show="makeBetterEdit" class="makeBetterBtn" @click="makeBetterSave">
|
|
<span v-show="makeBetterEdit" class="makeBetterBtn" @click="makeBetterSave">
|
|
<i class="el-icon-circle-check" />
|
|
<i class="el-icon-circle-check" />
|
|
保存
|
|
保存
|
|
@@ -174,7 +175,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
async search() {
|
|
async search() {
|
|
const res = await getDetial({ id: this.id })
|
|
const res = await getDetial({ id: this.id })
|
|
- if (res.code === 200) {
|
|
|
|
|
|
+ if (res.code === 200 && res.data) {
|
|
this.form_data = JSON.parse(JSON.stringify(res.data))
|
|
this.form_data = JSON.parse(JSON.stringify(res.data))
|
|
this.copy_form_data = JSON.parse(JSON.stringify(res.data))
|
|
this.copy_form_data = JSON.parse(JSON.stringify(res.data))
|
|
this.replayUrl = res.data.replayUrl || ''
|
|
this.replayUrl = res.data.replayUrl || ''
|
|
@@ -220,6 +221,13 @@ export default {
|
|
},
|
|
},
|
|
onChange(key, value, isUpdate = false) {
|
|
onChange(key, value, isUpdate = false) {
|
|
// 确保每次更新一项
|
|
// 确保每次更新一项
|
|
|
|
+ if (key === 'title' && !value) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '名称不能为空',
|
|
|
|
+ type: 'error'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.updateData = { [key]: value }
|
|
this.updateData = { [key]: value }
|
|
if (isUpdate) {
|
|
if (isUpdate) {
|
|
this.update()
|
|
this.update()
|
|
@@ -303,7 +311,7 @@ export default {
|
|
padding: 20px 30px;
|
|
padding: 20px 30px;
|
|
.makeBetter {
|
|
.makeBetter {
|
|
width: calc(100% - 190px);
|
|
width: calc(100% - 190px);
|
|
- padding: 12px 0px 20px 0px
|
|
|
|
|
|
+ padding: 20px 0px 20px 0px
|
|
}
|
|
}
|
|
&.actionDynamic {
|
|
&.actionDynamic {
|
|
padding: 0px;
|
|
padding: 0px;
|
|
@@ -311,6 +319,12 @@ export default {
|
|
padding: 20px 30px;
|
|
padding: 20px 30px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ &.base {
|
|
|
|
+ .headerH2 {
|
|
|
|
+ margin-top: 0px;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.headerH1 {
|
|
.headerH1 {
|
|
display: flex;
|
|
display: flex;
|