|
|
@ -4,11 +4,11 @@ |
|
|
|
<el-form :model="form" :rules="rules" class="input-form model" label-width="140px"> |
|
|
|
<el-form :model="form" :rules="rules" class="input-form model" label-width="140px"> |
|
|
|
<el-form-item prop="title" label="标题"> |
|
|
|
<el-form-item prop="title" label="标题"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
placeholder="请输入标题" |
|
|
|
placeholder="请输入标题" |
|
|
|
v-model.trim="form.title" |
|
|
|
v-model.trim="form.title" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
maxlength="15" |
|
|
|
maxlength="15" |
|
|
|
class="inline-input" |
|
|
|
|
|
|
|
@change="nameChange" |
|
|
|
@change="nameChange" |
|
|
|
></el-input> |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -55,6 +55,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-form-item prop="summary" label="摘要"> |
|
|
|
<el-form-item prop="summary" label="摘要"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
type="textarea" |
|
|
|
type="textarea" |
|
|
|
v-model.trim="form.summary" |
|
|
|
v-model.trim="form.summary" |
|
|
|
clearable |
|
|
|
clearable |
|
|
@ -204,7 +205,7 @@ |
|
|
|
<el-button type="primary" @click="submit(1)">发布</el-button> |
|
|
|
<el-button type="primary" @click="submit(1)">发布</el-button> |
|
|
|
<el-button @click="preview">预览</el-button> |
|
|
|
<el-button @click="preview">预览</el-button> |
|
|
|
<el-button @click="submit(0)">保存草稿</el-button> |
|
|
|
<el-button @click="submit(0)">保存草稿</el-button> |
|
|
|
<el-button @click="$router.push('/article')">取消</el-button> |
|
|
|
<el-button @click="$router.back()">取消</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|