25843
This commit is contained in:
@@ -4,23 +4,23 @@
|
||||
<ai-title slot="title" :title="detailTitle" isShowBottomBorder isShowBack @onBackClick="$emit('back')">
|
||||
</ai-title>
|
||||
<template #content>
|
||||
<ai-card title="基本信息" class="detail-content" v-if="isEdit">
|
||||
<ai-card title="基本信息" v-if="isEdit">
|
||||
<template #content>
|
||||
<el-form :model="form" label-width="120px" ref="ruleForm" :rules="rules">
|
||||
<el-form-item label="单集名称" prop="title">
|
||||
<el-form class="ai-form" :model="form" label-width="120px" ref="ruleForm" :rules="rules">
|
||||
<el-form-item style="width: 100%;" label="单集名称" prop="title">
|
||||
<el-input size="small" v-model="form.title" clearable placeholder="请输入..." maxlength="100"
|
||||
show-word-limit/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单集顺序" prop="num">
|
||||
<el-form-item style="width: 100%;" label="单集顺序" prop="num">
|
||||
<el-row type="flex" justify="space-between">
|
||||
<div style="width: 540px">
|
||||
<div style="flex: 1;margin-right: 20px;">
|
||||
<el-input size="small" v-model="form.num" clearable placeholder="请输入..." maxlength="100"
|
||||
show-word-limit/>
|
||||
</div>
|
||||
<span>已更新至{{episodeNum}}集</span>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<el-form-item label="视频" prop="videoUrl">
|
||||
<el-form-item style="width: 100%;" label="视频" prop="videoUrl">
|
||||
<el-input size="small" v-model="form.videoUrl" clearable placeholder="请输入..." maxlength="300"
|
||||
show-word-limit/>
|
||||
</el-form-item>
|
||||
@@ -61,9 +61,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Template from '../../../wechat/AppAskForm/components/Template.vue';
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
components: { Template },
|
||||
name: "seriesAdd",
|
||||
props: {
|
||||
instance: Function,
|
||||
@@ -76,7 +75,8 @@ import Template from '../../../wechat/AppAskForm/components/Template.vue';
|
||||
computed: {
|
||||
detailTitle() {
|
||||
return this.isEdit ? '编辑剧集' : '新增剧集'
|
||||
}
|
||||
},
|
||||
...mapState(['user'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -98,17 +98,21 @@ import Template from '../../../wechat/AppAskForm/components/Template.vue';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
downLoad(url) {
|
||||
window.open(url);
|
||||
},
|
||||
// 保存
|
||||
saveAdd(status) {
|
||||
console.log(this.user)
|
||||
this.$refs.ruleForm.validate(v => {
|
||||
if (v) {
|
||||
this.instance.post('/app/apppartyclassroomepisode/addOrUpdate', {
|
||||
...this.form,
|
||||
status,
|
||||
createUser: this.user.info.name,
|
||||
createUserId: this.user.info.id,
|
||||
classroomId: this.parentRow?.id,
|
||||
id: !!this.row.id ? this.row.id : null
|
||||
}).then((res) => {
|
||||
@@ -190,16 +194,6 @@ import Template from '../../../wechat/AppAskForm/components/Template.vue';
|
||||
}
|
||||
|
||||
.el-form {
|
||||
width: 760px;
|
||||
margin: 18px auto 64px;
|
||||
// overflow-x: auto;
|
||||
// overflow-y: auto;
|
||||
padding-right: 3px !important;
|
||||
|
||||
.el-form-item {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.upload-tip {
|
||||
position: absolute;
|
||||
text-align: left;
|
||||
|
||||
Reference in New Issue
Block a user