|
@@ -21,7 +21,8 @@ const {
|
|
|
handleShowOpt,
|
|
|
handleClassifyShare,
|
|
|
handleCopyClassify,
|
|
|
- handleClassifyDel
|
|
|
+ handleClassifyDel,
|
|
|
+ handleAddClassifyBeforeClose
|
|
|
}=useClassify()
|
|
|
|
|
|
|
|
@@ -58,7 +59,8 @@ const listState = reactive({
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
finished:false,
|
|
|
- loading:false
|
|
|
+ loading:false,
|
|
|
+ total:0,
|
|
|
})
|
|
|
async function getList(){
|
|
|
const res=await apiMyChartList({
|
|
@@ -76,6 +78,7 @@ async function getList(){
|
|
|
listState.finished=res.Data.Paging.IsEnd
|
|
|
const arr=res.Data.List||[]
|
|
|
listState.list=[...listState.list,...arr]
|
|
|
+ listState.total=res.Data.Paging.Totals
|
|
|
}
|
|
|
}
|
|
|
function onLoad(){
|
|
@@ -114,7 +117,7 @@ function handleRemoveChart(item,index){
|
|
|
|
|
|
// 跳转详情
|
|
|
function goDetail(item){
|
|
|
- router.push({
|
|
|
+ const routerEl=router.resolve({
|
|
|
path:"/myETA/chartdetail",
|
|
|
query:{
|
|
|
code:item.UniqueCode,
|
|
@@ -122,6 +125,7 @@ function goDetail(item){
|
|
|
iscommon:classifyState.classifyTypeAct==1?false:true
|
|
|
}
|
|
|
})
|
|
|
+ window.open(routerEl.href,'_blank')
|
|
|
}
|
|
|
|
|
|
function goChooseChart(){
|
|
@@ -214,6 +218,7 @@ function goChooseChart(){
|
|
|
/>
|
|
|
<div class="btn" @click="goChooseChart">选择图表</div>
|
|
|
<div class="btn" @click="handleAddClassify('')">添加分类</div>
|
|
|
+ <div class="list-total">共{{listState.total}}张图表</div>
|
|
|
</div>
|
|
|
<van-list
|
|
|
v-model:loading="listState.loading"
|
|
@@ -252,6 +257,7 @@ function goChooseChart(){
|
|
|
show-cancel-button
|
|
|
confirmButtonText="确定"
|
|
|
@confirm="handleConfirmEditClassify"
|
|
|
+ :before-close="handleAddClassifyBeforeClose"
|
|
|
>
|
|
|
<div class="rename-wrap">
|
|
|
<input type="text" placeholder="请输入分类名称!" v-model="classifyState.classifyNameVal">
|
|
@@ -363,6 +369,10 @@ function goChooseChart(){
|
|
|
border-radius: 3px;
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
+ .list-total{
|
|
|
+ position: absolute;
|
|
|
+ bottom: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
.chart-list{
|
|
|
padding: 0 30px;
|