排班优化加上一键复制功能,营养知识列表、视频列表加上创建时间

This commit is contained in:
xiezhijun
2021-05-14 18:38:25 +08:00
parent 8c2ab96881
commit 85f362e775
13 changed files with 242 additions and 14 deletions

View File

@ -61,3 +61,14 @@ export function updateLiveStatus(data) {
params: data
})
}
// 复制上次直播记录
export function copyLastTimeLiveSchedul() {
return request({
url: '/custom/liveSchedul/copyLastTimeLiveSchedul',
method: 'get',
params: {}
})
}

View File

@ -96,6 +96,15 @@
v-hasPermi="['custom:liveSchedul:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
size="mini"
@click="copyLastTimeLiveSchedul"
v-hasPermi="['custom:liveSchedul:add']"
>一键复制上次记录</el-button>
</el-col>
<!--<el-col :span="1.5">
<el-button
type="warning"
@ -339,7 +348,7 @@
</template>
<script>
import { listLiveSchedul, getLiveSchedul, delLiveSchedul, addLiveSchedul, updateLiveSchedul, exportLiveSchedul,updateLiveStatus } from "@/api/custom/liveSchedul";
import { listLiveSchedul, getLiveSchedul, delLiveSchedul, addLiveSchedul, updateLiveSchedul, exportLiveSchedul,updateLiveStatus,copyLastTimeLiveSchedul } from "@/api/custom/liveSchedul";
import { listWxAccount } from "@/api/custom/wxAccount";
import AutoHideInfo from "@/components/AutoHideInfo";
import dayjs from "dayjs";
@ -597,6 +606,17 @@ export default {
},
wxAccountFormat(row){
return (row.wxAccountList != null && row.wxAccountList.length > 0) ? row.wxAccountList : [];
},
copyLastTimeLiveSchedul(){
copyLastTimeLiveSchedul().then(response => {
if (response.code === 200) {
this.msgSuccess("一键复制成功");
this.getList();
}else{
this.msgError(response.msg);
}
});
}
}
};

View File

@ -112,7 +112,11 @@
</el-switch>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" >
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">

View File

@ -134,6 +134,11 @@
</el-switch>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" >
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200">
<template slot-scope="scope">
<el-button