|
@@ -4,250 +4,247 @@
|
|
|
margin
|
|
margin
|
|
|
background
|
|
background
|
|
|
>
|
|
>
|
|
|
- <template v-if="isExact">
|
|
|
|
|
- <el-tabs
|
|
|
|
|
- v-model="active"
|
|
|
|
|
- class="c-tabs"
|
|
|
|
|
- @tab-click="onTabClick"
|
|
|
|
|
- >
|
|
|
|
|
- <el-tab-pane
|
|
|
|
|
- label="节目排期"
|
|
|
|
|
- name="normal"
|
|
|
|
|
- />
|
|
|
|
|
- <el-tab-pane
|
|
|
|
|
- label="默认排期"
|
|
|
|
|
- name="defaults"
|
|
|
|
|
- />
|
|
|
|
|
- </el-tabs>
|
|
|
|
|
- <c-table
|
|
|
|
|
- class="has-padding"
|
|
|
|
|
- :curr="currObj"
|
|
|
|
|
- @pagination="getList"
|
|
|
|
|
- >
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <div class="l-flex__auto c-sibling-item">
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="isNormal"
|
|
|
|
|
- class="o-button"
|
|
|
|
|
- @click="toAdd"
|
|
|
|
|
- >
|
|
|
|
|
- <i class="o-button__icon el-icon-circle-plus-outline" />
|
|
|
|
|
- 新增
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <el-select
|
|
|
|
|
- v-model="currObj.params.type"
|
|
|
|
|
- class="l-flex__none c-sibling-item o-select"
|
|
|
|
|
- placeholder="请选择类型"
|
|
|
|
|
- @change="search"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in scheduleOptions"
|
|
|
|
|
- :key="item.label"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- <el-select
|
|
|
|
|
- v-model="currObj.params.status"
|
|
|
|
|
- class="l-flex__none c-sibling-item o-select"
|
|
|
|
|
- placeholder="请选择状态"
|
|
|
|
|
- @change="search"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in statusOptions"
|
|
|
|
|
- :key="item.label"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- <search-input
|
|
|
|
|
- v-model.trim="currObj.params.name"
|
|
|
|
|
- class="l-flex__none c-sibling-item"
|
|
|
|
|
- placeholder="排期名称"
|
|
|
|
|
- @search="search"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-tabs
|
|
|
|
|
+ v-model="active"
|
|
|
|
|
+ class="c-tabs"
|
|
|
|
|
+ @tab-click="onTabClick"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-tab-pane
|
|
|
|
|
+ label="节目排期"
|
|
|
|
|
+ name="normal"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-tab-pane
|
|
|
|
|
+ label="默认排期"
|
|
|
|
|
+ name="defaults"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-tabs>
|
|
|
|
|
+ <c-table
|
|
|
|
|
+ class="has-padding"
|
|
|
|
|
+ :curr="currObj"
|
|
|
|
|
+ @pagination="getList"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #header>
|
|
|
|
|
+ <div class="l-flex__auto c-sibling-item">
|
|
|
<button
|
|
<button
|
|
|
- class="l-flex__none c-sibling-item o-button"
|
|
|
|
|
- @click="search"
|
|
|
|
|
|
|
+ v-if="isNormal"
|
|
|
|
|
+ class="o-button"
|
|
|
|
|
+ @click="toAdd"
|
|
|
>
|
|
>
|
|
|
- 搜索
|
|
|
|
|
|
|
+ <i class="o-button__icon el-icon-circle-plus-outline" />
|
|
|
|
|
+ 新增
|
|
|
</button>
|
|
</button>
|
|
|
- </template>
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="name"
|
|
|
|
|
- label="排期名称"
|
|
|
|
|
- align="center"
|
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
- />
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="typeName"
|
|
|
|
|
- label="类型"
|
|
|
|
|
- align="center"
|
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
- />
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="resolutionRatio"
|
|
|
|
|
- label="分辨率"
|
|
|
|
|
- align="center"
|
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
- />
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- label="审核状态"
|
|
|
|
|
- align="center"
|
|
|
|
|
- min-width="100"
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="currObj.params.type"
|
|
|
|
|
+ class="l-flex__none c-sibling-item o-select"
|
|
|
|
|
+ placeholder="请选择类型"
|
|
|
|
|
+ @change="search"
|
|
|
>
|
|
>
|
|
|
- <template v-slot="scope">
|
|
|
|
|
- <el-tag
|
|
|
|
|
- v-if="scope.row.status === 1"
|
|
|
|
|
- class="o-tag u-readonly"
|
|
|
|
|
- type="warning"
|
|
|
|
|
- size="medium"
|
|
|
|
|
- >
|
|
|
|
|
- 未审核
|
|
|
|
|
- </el-tag>
|
|
|
|
|
- <el-tag
|
|
|
|
|
- v-else-if="scope.row.status === 2"
|
|
|
|
|
- class="o-tag u-readonly"
|
|
|
|
|
- type="success"
|
|
|
|
|
- size="medium"
|
|
|
|
|
- >
|
|
|
|
|
- 已审核
|
|
|
|
|
- </el-tag>
|
|
|
|
|
- <el-tag
|
|
|
|
|
- v-else
|
|
|
|
|
- class="o-tag u-readonly"
|
|
|
|
|
- size="medium"
|
|
|
|
|
- >
|
|
|
|
|
- 待提交
|
|
|
|
|
- </el-tag>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="createTime"
|
|
|
|
|
- label="创建时间"
|
|
|
|
|
- align="center"
|
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in scheduleOptions"
|
|
|
|
|
+ :key="item.label"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="currObj.params.status"
|
|
|
|
|
+ class="l-flex__none c-sibling-item o-select"
|
|
|
|
|
+ placeholder="请选择状态"
|
|
|
|
|
+ @change="search"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in statusOptions"
|
|
|
|
|
+ :key="item.label"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <search-input
|
|
|
|
|
+ v-model.trim="currObj.params.name"
|
|
|
|
|
+ class="l-flex__none c-sibling-item"
|
|
|
|
|
+ placeholder="排期名称"
|
|
|
|
|
+ @search="search"
|
|
|
/>
|
|
/>
|
|
|
- <el-table-column
|
|
|
|
|
- label="操作"
|
|
|
|
|
- align="center"
|
|
|
|
|
- width="180"
|
|
|
|
|
|
|
+ <button
|
|
|
|
|
+ class="l-flex__none c-sibling-item o-button"
|
|
|
|
|
+ @click="search"
|
|
|
>
|
|
>
|
|
|
- <template v-slot="scope">
|
|
|
|
|
- <template v-if="scope.row.status === 0">
|
|
|
|
|
- <div
|
|
|
|
|
- class="c-table__btn u-pointer"
|
|
|
|
|
- @click="toDesign(scope.row.id)"
|
|
|
|
|
- >
|
|
|
|
|
- 编辑
|
|
|
|
|
- </div>
|
|
|
|
|
- <div
|
|
|
|
|
- class="c-table__btn u-pointer"
|
|
|
|
|
- @click="toSubmit(scope.row)"
|
|
|
|
|
- >
|
|
|
|
|
- 提交
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- <permission
|
|
|
|
|
- :skip="scope.row.status === 0"
|
|
|
|
|
- deletable
|
|
|
|
|
|
|
+ 搜索
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="name"
|
|
|
|
|
+ label="排期名称"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="typeName"
|
|
|
|
|
+ label="类型"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="resolutionRatio"
|
|
|
|
|
+ label="分辨率"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="审核状态"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ min-width="100"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="scope.row.status === 1"
|
|
|
|
|
+ class="o-tag u-readonly"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ size="medium"
|
|
|
|
|
+ >
|
|
|
|
|
+ 未审核
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-else-if="scope.row.status === 2"
|
|
|
|
|
+ class="o-tag u-readonly"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="medium"
|
|
|
|
|
+ >
|
|
|
|
|
+ 已审核
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-else
|
|
|
|
|
+ class="o-tag u-readonly"
|
|
|
|
|
+ size="medium"
|
|
|
|
|
+ >
|
|
|
|
|
+ 待提交
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="createTime"
|
|
|
|
|
+ label="创建时间"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
|
+ <template v-if="scope.row.status === 0">
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="c-table__btn u-pointer"
|
|
|
|
|
+ @click="toDesign(scope.row.id)"
|
|
|
>
|
|
>
|
|
|
- <div
|
|
|
|
|
- class="c-table__btn u-pointer"
|
|
|
|
|
- @click="toDel(scope.row)"
|
|
|
|
|
- >
|
|
|
|
|
- 删除
|
|
|
|
|
- </div>
|
|
|
|
|
- </permission>
|
|
|
|
|
|
|
+ 编辑
|
|
|
|
|
+ </div>
|
|
|
<div
|
|
<div
|
|
|
- v-if="scope.row.status !== 0"
|
|
|
|
|
class="c-table__btn u-pointer"
|
|
class="c-table__btn u-pointer"
|
|
|
- @click="toView(scope.row.id)"
|
|
|
|
|
|
|
+ @click="toSubmit(scope.row)"
|
|
|
>
|
|
>
|
|
|
- 预览
|
|
|
|
|
|
|
+ 提交
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
- </c-table>
|
|
|
|
|
- <el-dialog
|
|
|
|
|
- title="新增排期"
|
|
|
|
|
- :visible.sync="adding"
|
|
|
|
|
- custom-class="c-dialog"
|
|
|
|
|
- :close-on-click-modal="false"
|
|
|
|
|
- >
|
|
|
|
|
- <div class="c-form">
|
|
|
|
|
- <div class="c-form__section">
|
|
|
|
|
- <span class="c-form__label">名称:</span>
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model.trim="schedule.name"
|
|
|
|
|
- class="c-form__item"
|
|
|
|
|
- placeholder="请输入名称"
|
|
|
|
|
- maxlength="50"
|
|
|
|
|
- show-word-limit
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="c-form__section">
|
|
|
|
|
- <span class="c-form__label">类型:</span>
|
|
|
|
|
- <el-select
|
|
|
|
|
- v-model="schedule.type"
|
|
|
|
|
- class="c-form__item"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="type in typeOptions"
|
|
|
|
|
- :key="type.value"
|
|
|
|
|
- :label="type.label"
|
|
|
|
|
- :value="type.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="c-form__section">
|
|
|
|
|
- <span class="c-form__label">分辨率:</span>
|
|
|
|
|
- <el-select
|
|
|
|
|
- v-model="schedule.resolutionRatio"
|
|
|
|
|
- class="c-form__item"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- popper-class="o-select-option"
|
|
|
|
|
- :loading="fetching"
|
|
|
|
|
|
|
+ <permission
|
|
|
|
|
+ :skip="scope.row.status === 0"
|
|
|
|
|
+ deletable
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="c-table__btn u-pointer"
|
|
|
|
|
+ @click="toDel(scope.row)"
|
|
|
>
|
|
>
|
|
|
- <el-option
|
|
|
|
|
- v-for="ratio in ratios"
|
|
|
|
|
- :key="ratio.value"
|
|
|
|
|
- :label="ratio.label"
|
|
|
|
|
- :value="ratio.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </permission>
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="scope.row.status !== 0"
|
|
|
|
|
+ class="c-table__btn u-pointer"
|
|
|
|
|
+ @click="toView(scope.row.id)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 预览
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </c-table>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="新增排期"
|
|
|
|
|
+ :visible.sync="adding"
|
|
|
|
|
+ custom-class="c-dialog"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="c-form">
|
|
|
|
|
+ <div class="c-form__section">
|
|
|
|
|
+ <span class="c-form__label">名称:</span>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model.trim="schedule.name"
|
|
|
|
|
+ class="c-form__item"
|
|
|
|
|
+ placeholder="请输入名称"
|
|
|
|
|
+ maxlength="50"
|
|
|
|
|
+ show-word-limit
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
- <template #footer>
|
|
|
|
|
- <button
|
|
|
|
|
- class="o-button"
|
|
|
|
|
- @click="add"
|
|
|
|
|
|
|
+ <div class="c-form__section">
|
|
|
|
|
+ <span class="c-form__label">类型:</span>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="schedule.type"
|
|
|
|
|
+ class="c-form__item"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
>
|
|
>
|
|
|
- 确定
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- class="o-button cancel"
|
|
|
|
|
- @click="handleCloseAddDialog"
|
|
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="type in typeOptions"
|
|
|
|
|
+ :key="type.value"
|
|
|
|
|
+ :label="type.label"
|
|
|
|
|
+ :value="type.value"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="c-form__section">
|
|
|
|
|
+ <span class="c-form__label">分辨率:</span>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="schedule.resolutionRatio"
|
|
|
|
|
+ class="c-form__item"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ popper-class="o-select-option"
|
|
|
|
|
+ :loading="fetching"
|
|
|
>
|
|
>
|
|
|
- 取消
|
|
|
|
|
- </button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
- <el-dialog
|
|
|
|
|
- :visible.sync="isPreview"
|
|
|
|
|
- custom-class="c-preview schedule"
|
|
|
|
|
- :before-close="handleCloseScheduleDialog"
|
|
|
|
|
- >
|
|
|
|
|
- <schedule
|
|
|
|
|
- v-if="scheduleId"
|
|
|
|
|
- class="l-flex__auto has-padding"
|
|
|
|
|
- :schedule="scheduleId"
|
|
|
|
|
- />
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
- </template>
|
|
|
|
|
- <router-view class="has-padding" />
|
|
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="ratio in ratios"
|
|
|
|
|
+ :key="ratio.value"
|
|
|
|
|
+ :label="ratio.label"
|
|
|
|
|
+ :value="ratio.value"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <button
|
|
|
|
|
+ class="o-button"
|
|
|
|
|
+ @click="add"
|
|
|
|
|
+ >
|
|
|
|
|
+ 确定
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button
|
|
|
|
|
+ class="o-button cancel"
|
|
|
|
|
+ @click="handleCloseAddDialog"
|
|
|
|
|
+ >
|
|
|
|
|
+ 取消
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ :visible.sync="isPreview"
|
|
|
|
|
+ custom-class="c-preview schedule"
|
|
|
|
|
+ :before-close="handleCloseScheduleDialog"
|
|
|
|
|
+ >
|
|
|
|
|
+ <schedule
|
|
|
|
|
+ v-if="scheduleId"
|
|
|
|
|
+ class="l-flex__auto has-padding"
|
|
|
|
|
+ :schedule="scheduleId"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-dialog>
|
|
|
</wrapper>
|
|
</wrapper>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -302,9 +299,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
- isExact () {
|
|
|
|
|
- return this.$route.name === 'schedule'
|
|
|
|
|
- },
|
|
|
|
|
currObj () {
|
|
currObj () {
|
|
|
return this[this.active]
|
|
return this[this.active]
|
|
|
},
|
|
},
|
|
@@ -322,7 +316,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
|
- this.isExact && this.getList()
|
|
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ },
|
|
|
|
|
+ activated () {
|
|
|
|
|
+ this.getList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
search () {
|
|
search () {
|