This commit is contained in:
@fawn-nine
2024-07-25 11:50:38 +08:00
parent e94bebaf35
commit dfce9d3307
3 changed files with 101 additions and 156 deletions

Binary file not shown.

View File

@@ -1,39 +1,112 @@
<template>
<div class="mod-home">
<!-- <h3>项目介绍</h3>
<ul>
<li>renren-fast-vue基于vueelement-ui构建开发实现<a href="https://gitee.com/renrenio/renren-fast" target="_blank">renren-fast</a>后台管理前端功能提供一套更优的前端解决方案</li>
<li>前后端分离通过token进行数据交互可独立部署</li>
<li>主题定制通过scss变量统一一站式定制</li>
<li>动态菜单通过菜单管理统一管理访问路由</li>
<li>数据切换通过mock配置对接口数据mock模拟数据进行切换</li>
<li>发布时可动态配置CDN静态资源切换新旧版本</li>
<li>演示地址<a href="http://demo.open.renren.io/renren-fast" target="_blank">http://demo.open.renren.io/renren-fast</a> (账号密码admin/admin)</li>
</ul>
<h3>获取帮助</h3>
<ul>
<li>官方社区<a href="https://www.renren.io/community" target="_blank">https://www.renren.io/community</a></li>
<li>前端Git地址<a href="https://github.com/renrenio/renren-fast-vue" target="_blank">https://github.com/renrenio/renren-fast-vue</a></li>
<li>后台Git地址<a href="https://gitee.com/renrenio/renren-fast" target="_blank">https://gitee.com/renrenio/renren-fast</a></li>
<li>代码生成器<a href="https://gitee.com/renrenio/renren-generator" target="_blank">https://gitee.com/renrenio/renren-generator</a></li>
<li>如需关注项目最新动态请WatchStar项目同时也是对项目最好的支持</li>
</ul>
<h3>官方QQ群</h3>
<ul>
<li>高级群324780204(大牛云集跟大牛学习新技能)</li>
<li>普通群145799952(学习交流互相解答各种疑问)</li>
</ul> -->
<div class="mod-home" v-loading='loadAll'>
<!-- <h3>项目介绍</h3> -->
<el-row :gutter="12">
<el-col :span="12">
<el-card shadow="hover">
待处理订单
<span class="number">{{orderNum}}</span>
<router-link :to="{ path: '/order-buyorder', query: {} }">
<el-button type="primary" size="mini">去处理</el-button>
</router-link>
</el-card>
</el-col>
<el-col :span="12">
<el-card shadow="hover">
待处理工单/ 反馈
<span class="number">{{workOrderNum}}</span>
<router-link :to="{ path: '/workOrder', query: {} }">
<el-button type="primary" size="mini" >去处理</el-button>
</router-link>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
data(){
return{
orderNum:0,
workOrderNum:0,
// loadAll:true,
loaded:0,
}
},
created(){
this.getDataList()
this.getWorkDataList()
},
methods:{
// 待发货列表
getDataList() {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/book/buyOrder/orderList'),
method: 'post',
data: this.$http.adornData({
"searchKeyWord": '',
"productName": '',
"startTime": null,
"endTime": null,
"orderStatus": 1,
"pageIndex": 1,
"pageSize": 5,
})
}).then(({
data
}) => {
console.log(data,'列表数据')
if (data && data.code === 0) {
// this.dataList = data.result.records
this.orderNum = data.result.total
this.loaded += 1
}
}).catch(e => {
this.$message.error('获取待处理订单错误')
})
},
// 获取工单列表
getWorkDataList() {
this.$http({
url: this.$http.adornUrl("/common/sysFeedback/getList"),
method: "post",
data: this.$http.adornData({
account: "",
type: "",
status: "0"
})
})
.then(({ data }) => {
if (data.code == 0) {
this.workOrderNum = data.res.length
this.loaded += 1
// console.log('_list',_list)
}
})
.catch(e => {
this.$message.error("获取待处理工数量失败");
// console.log("表单提交报错");
});
}
},
computed:{
loadAll(){
console.log('this.loaded',this.loaded)
if (this.loaded == 2){
return false
}else{
return true
}
}
}
}
</script>
<style>
.mod-home {
line-height: 1.5;
}
.number{font-size: 30px; color: #ec6452; font-weight: bold; display: inline-block; margin-right: 20px; margin-left: 20px;}
</style>

View File

@@ -74,77 +74,6 @@
</div>
</template>
</el-table-column>
<!-- <el-table-column prop="authorName" header-align="center" align="center" label="作者姓名">
</el-table-column>
<el-table-column header-align="center" align="center" label="插图">
<template slot-scope="scope">
<img v-if="scope.row.images != ''" :src="scope.row.images" width="70" height="100" class="tableImg" />
</template>
</el-table-column> -->
<!-- <el-table-column prop="description" header-align="center" align="center" :show-overflow-tooltip="true" label="简介">
</el-table-column> -->
<!-- <el-table-column
prop="title"
header-align="center"
align="center"
label="序言">
</el-table-column>
<el-table-column
prop="content"
header-align="center"
align="center"
label="内容">
</el-table-column> -->
<!-- <el-table-column prop="type" header-align="center" align="center" label="类型">
</el-table-column>
<el-table-column prop="price" header-align="center" align="center" label="价格">
</el-table-column> -->
<!-- <el-table-column
prop="istop"
header-align="center"
align="center"
label="置顶">
</el-table-column> -->
<!-- <el-table-column prop="publisherName" header-align="center" align="center" label="出版商名称">
</el-table-column> -->
<!-- <el-table-column prop="chapterStatus" header-align="center" align="center" label="章节拆分">
<template slot-scope="scope">
<span v-if="scope.row.chapterStatus == '成功'" style="color:blue">{{scope.row.chapterStatus}}</span>
<span v-if="scope.row.chapterStatus == '失败'" style="color: red">{{scope.row.chapterStatus}}</span>
<span v-if="scope.row.chapterStatus == '处理中'">{{scope.row.chapterStatus}}</span>
<span v-if="scope.row.chapterStatus == '未处理'">{{scope.row.chapterStatus}}</span>
</template>
</el-table-column>
<el-table-column prop="contentStatus" header-align="center" align="center" label="单句拆分">
<template slot-scope="scope">
<span v-if="scope.row.contentStatus == '成功'" style="color:blue">{{scope.row.contentStatus}}</span>
<span v-if="scope.row.contentStatus == '失败'" style="color: red">{{scope.row.contentStatus}}</span>
<span v-if="scope.row.contentStatus == '处理中'">{{scope.row.contentStatus}}</span>
<span v-if="scope.row.contentStatus == '未处理'">{{scope.row.contentStatus}}</span>
</template>
</el-table-column>
<el-table-column prop="voicesStatus" header-align="center" align="center" label="音频处理">
<template slot-scope="scope">
<span v-if="scope.row.voicesStatus == '成功'" style="color:blue">{{scope.row.voicesStatus}}</span>
<span v-if="scope.row.voicesStatus == '失败'" style="color: red">{{scope.row.voicesStatus}}</span>
<span v-if="scope.row.voicesStatus == '处理中'">{{scope.row.voicesStatus}}</span>
<span v-if="scope.row.voicesStatus == '未处理'">{{scope.row.voicesStatus}}</span>
</template>
</el-table-column> -->
<!-- <el-table-column
prop="pid"
header-align="center"
align="center"
label="父id">
</el-table-column>
<el-table-column
prop="level"
header-align="center"
align="center"
label="层级">
</el-table-column> -->
<el-table-column
label="课程图"
header-align="center"
@@ -230,29 +159,7 @@
align="center"
label="排序"
>
</el-table-column>
<!-- <el-table-column
prop="createTime"
header-align="center"
align="center"
width="160"
label="创建日期"
>
</el-table-column> -->
<!-- <el-table-column prop="updateTime" header-align="center" align="center" label="更新日期">
</el-table-column> -->
<!-- <el-table-column
prop="sort"
header-align="center"
align="center"
label="排序">
</el-table-column>
<el-table-column
prop="delFlag"
header-align="center"
align="center"
label="删除标记">
</el-table-column> -->
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
@@ -261,41 +168,6 @@
label="操作"
>
<template slot-scope="scope">
<!-- <el-dropdown style="border: 1px solid #17B3A3; border-radius: 5px; padding: 4px;">
<span class="el-dropdown-link" style="color:#17B3A3">
操作管理<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<router-link :to="{path: 'book-comments' , query:{ id : scope.row.id} }">
<el-button type="text" size="small">书评管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'clock' , query:{ id : scope.row.id} }">
<el-button type="text" size="small">打卡管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'book-bookchapter' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">章节管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'talkBook' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">讲书管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'yian' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">医案管理</el-button>
</router-link>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
<!-- <el-button v-if="scope.row.chapterStatus == '未处理' || scope.row.chapterStatus == '失败'" type="text" size="small" @click="chapterHandle(scope.row.id,scope.row)">章节拆分</el-button> -->
<!-- <el-button v-if="scope.row.chapterStatus == '成功' && (scope.row.contentStatus == '未处理' || scope.row.contentStatus == '失败') " type="text" size="small" @click="contentHandle(scope.row.id)">单句拆分</el-button> -->
<!-- <el-button v-if="scope.row.contentStatus == '成功' && (scope.row.voicesStatus == '未处理' || scope.row.voicesStatus == '失败') " type="text" size="small" @click="voicesHandle(scope.row.id)">音频处理</el-button> -->
<div>
<router-link
:to="{