Commit 3a65d394 authored by 罗超's avatar 罗超

Merge branch '1.2.0' of http://gitlab.oytour.com/viitto/pptist into 1.2.0

parents 56571cf2 9b1785dc
...@@ -93,7 +93,7 @@ const userLoginHandler = async ()=>{ ...@@ -93,7 +93,7 @@ const userLoginHandler = async ()=>{
if(param.ViewSlideshow) { if(param.ViewSlideshow) {
searchData.value.ViewSlideshow = param.ViewSlideshow searchData.value.ViewSlideshow = param.ViewSlideshow
try { try {
await sellHistoryTripTemplate(param.sellId) await sellHistoryTripTemplate(param.sellId,param.LogId)
} catch (error) {} } catch (error) {}
} }
if(!ConfigId&&!model&&(param.SalesTripId&&param.SalesTripId=='')) ElMessageBox.confirm( if(!ConfigId&&!model&&(param.SalesTripId&&param.SalesTripId=='')) ElMessageBox.confirm(
...@@ -115,16 +115,17 @@ onMounted(async () => { ...@@ -115,16 +115,17 @@ onMounted(async () => {
}) })
// 销售历史版本模版数据 // 销售历史版本模版数据
const sellHistoryTripTemplate = async (sellId:any) => { const sellHistoryTripTemplate = async (sellId:any,LogId:any) => {
const loadingObj = ElLoading.service({ const loadingObj = ElLoading.service({
text:'正在渲染数据', text:'正在渲染数据',
lock:true lock:true
}) })
try { try {
let queryMsg = { let queryMsg = {
Id: sellId LogId: LogId,
FileId: sellId,
} }
let dataRes = await ConfigService.sellGetTemplateDetails(queryMsg); let dataRes = await ConfigService.GetHistoryInfo(queryMsg);
if (dataRes.data.resultCode==ApiResult.SUCCESS) { if (dataRes.data.resultCode==ApiResult.SUCCESS) {
loadingObj.close() loadingObj.close()
loading.value = false loading.value = false
......
...@@ -5,27 +5,6 @@ import Api,{ HttpResponse, Result } from './../utils/request'; ...@@ -5,27 +5,6 @@ import Api,{ HttpResponse, Result } from './../utils/request';
*/ */
class ConfigService{ class ConfigService{
/**
* 我的回收站
*/
static async GetTripOtherRecycleBinPage(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetTripOtherRecycleBinPage",params)
}
/**
* 共享给我的文件
*/
static async GetShareMyFile(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetShareMyFile",params)
}
/**
* 获取我的收藏
*/
static async GetTripCollectListPage(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetTripCollectListPage",params)
}
/** /**
* 获取行程广告最近版本 * 获取行程广告最近版本
*/ */
...@@ -40,6 +19,13 @@ class ConfigService{ ...@@ -40,6 +19,13 @@ class ConfigService{
return Api.Post("triptemplate_SetTripBrowse",params) return Api.Post("triptemplate_SetTripBrowse",params)
} }
/**
* 历史版本详情
*/
static async GetHistoryInfo(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetHistoryInfo",params)
}
/** /**
* 历史版本另存、替换 * 历史版本另存、替换
*/ */
......
...@@ -2,6 +2,21 @@ import Api,{ HttpResponse, Result } from './../utils/request'; ...@@ -2,6 +2,21 @@ import Api,{ HttpResponse, Result } from './../utils/request';
class FolderService{ class FolderService{
/**
* 我的回收站
*/
static async GetTripOtherRecycleBinPage(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetTripOtherRecycleBinPage",params)
}
/**
* 获取我的收藏
*/
static async GetTripCollectListPage(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetTripCollectListPage",params)
}
/** /**
* 复制文件夹、文件到指定目录 * 复制文件夹、文件到指定目录
*/ */
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
</div> </div>
<div class="col"> <div class="col">
<BrowsingHistory :current-menu="currentMenu" v-if="currentMenu==0"></BrowsingHistory> <BrowsingHistory :current-menu="currentMenu" v-if="currentMenu==0"></BrowsingHistory>
<StarTarget :current-menu="currentMenu" v-if="currentMenu==1"></StarTarget>
<journeyAds :position="position" :current-menu="currentMenu" v-if="currentMenu==3||currentMenu==4" @destroy-position="()=>position=null"></journeyAds> <journeyAds :position="position" :current-menu="currentMenu" v-if="currentMenu==3||currentMenu==4" @destroy-position="()=>position=null"></journeyAds>
<ShareList :position="position" v-if="currentMenu==2" @destroy-position="()=>position=null"></ShareList> <ShareList :position="position" v-if="currentMenu==2" @destroy-position="()=>position=null"></ShareList>
</div> </div>
...@@ -90,6 +91,7 @@ import { storeToRefs } from 'pinia'; ...@@ -90,6 +91,7 @@ import { storeToRefs } from 'pinia';
import { ref,reactive,provide,inject } from 'vue'; import { ref,reactive,provide,inject } from 'vue';
import SearchDocument from './components/SearchDocument.vue' import SearchDocument from './components/SearchDocument.vue'
import BrowsingHistory from './components/BrowsingHistory.vue' import BrowsingHistory from './components/BrowsingHistory.vue'
import StarTarget from './components/StarTarget.vue'
import ShareList from './Share.vue'; import ShareList from './Share.vue';
import journeyAds from './components/journeyAds.vue' import journeyAds from './components/journeyAds.vue'
import { Plus,ArrowDown,Clock,Star,Share,Picture,Management,Delete,RefreshRight,Refresh,Loading } from '@element-plus/icons-vue'; import { Plus,ArrowDown,Clock,Star,Share,Picture,Management,Delete,RefreshRight,Refresh,Loading } from '@element-plus/icons-vue';
......
...@@ -144,7 +144,7 @@ import CopyFile from "./CopyFile.vue"; ...@@ -144,7 +144,7 @@ import CopyFile from "./CopyFile.vue";
isCopyTo.value = true isCopyTo.value = true
}else { }else {
let param = query() let param = query()
const url = `${process.env.VUE_APP_SHARE_URL}/?uid=${param.uid}&sellId=${row.FileId}&ViewSlideshow=1` const url = `${process.env.VUE_APP_SHARE_URL}/?uid=${param.uid}&sellId=${row.FileId}&LogId=${row.LogId}&ViewSlideshow=1`
window.open(url); window.open(url);
} }
} }
......
This diff is collapsed.
...@@ -140,13 +140,6 @@ import FolderService from "@/services/FolderService"; ...@@ -140,13 +140,6 @@ import FolderService from "@/services/FolderService";
// 树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性 // 树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性
if (checkObj.checkedKeys.length != 0) { if (checkObj.checkedKeys.length != 0) {
datas.FolderObj = data datas.FolderObj = data
// if (checkObj.checkedKeys.length == 2) {
// datas.FolderId = data.FileId
// treeRef.value.setCheckedKeys([data.FileId]);
// }else{
// datas.FolderId = data.FileId
// treeRef.value.setCheckedKeys([data.FileId]);
// }
} }
} }
const filterNode = (value: string, data: Tree) => { const filterNode = (value: string, data: Tree) => {
...@@ -226,7 +219,6 @@ import FolderService from "@/services/FolderService"; ...@@ -226,7 +219,6 @@ import FolderService from "@/services/FolderService";
const recursive = (arrs:Array,disabled:any) =>{ const recursive = (arrs:Array,disabled:any) =>{
console.log(props.setFileList[0],'=====')
let isDisableds:Boolean let isDisableds:Boolean
if(arrs.length>0) arrs.forEach(x => { if(arrs.length>0) arrs.forEach(x => {
isDisableds = (props.selectedDatas.indexOf(x.FileId)!=-1&&!props.details)||props.details.FileId==x.FileId||disabled?true:false isDisableds = (props.selectedDatas.indexOf(x.FileId)!=-1&&!props.details)||props.details.FileId==x.FileId||disabled?true:false
......
...@@ -178,6 +178,10 @@ import CopyFile from "./CopyFile.vue"; ...@@ -178,6 +178,10 @@ import CopyFile from "./CopyFile.vue";
type:Object, type:Object,
required:{} required:{}
}, },
setFileList:{
type:Array,
required:[]
},
selectedDatas:{ selectedDatas:{
type:Array, type:Array,
required:[] required:[]
...@@ -279,25 +283,10 @@ import CopyFile from "./CopyFile.vue"; ...@@ -279,25 +283,10 @@ import CopyFile from "./CopyFile.vue";
} }
// 移动到文件夹 // 移动到文件夹
const MoveFile = (item:any) => { const MoveFile = (item:any) => {
if(item) journeyAdsDetails.value = item journeyAdsDetails.value = item
else {
datas.setFileList = []
for(let i=0;i<dataList.value.length;i++){
for(let j=0;j<datas.selectedDatas.length;j++){
if(dataList.value[i].FileId==datas.selectedDatas[j]){
datas.setFileList.push(
{
FileId: dataList.value[i].FileId,
FileType: dataList.value[i].FileType,
ParentFileId: dataList.value[i].ParentFileId
}
)
}
}
}
}
isTreeFile.value = true isTreeFile.value = true
} }
// 历史版本 // 历史版本
const history = (row: any) => { const history = (row: any) => {
journeyAdsDetails.value = row; journeyAdsDetails.value = row;
...@@ -413,12 +402,13 @@ import CopyFile from "./CopyFile.vue"; ...@@ -413,12 +402,13 @@ import CopyFile from "./CopyFile.vue";
emit('UpdateData',obj) emit('UpdateData',obj)
}; };
const getSelectBox = () => { const getSelectBox = () => {
isIndeterminate.value = false;
let checkedCount = datas.selectedDatas.length; let checkedCount = datas.selectedDatas.length;
let datasList = dataList.value.length; let datasList = dataList.value.length;
if (checkedCount > 0 && datasList == checkedCount) { if (checkedCount > 0 && datasList == checkedCount) {
datas.selectAll = true datas.selectAll = true
}; };
if (checkedCount > 0 && (datasList > checkedCount||datasList < checkedCount)) { if (checkedCount > 0&& (datasList > checkedCount||datasList < checkedCount)) {
datas.selectAll = "" datas.selectAll = ""
isIndeterminate.value = true; isIndeterminate.value = true;
} }
...@@ -574,27 +564,17 @@ import CopyFile from "./CopyFile.vue"; ...@@ -574,27 +564,17 @@ import CopyFile from "./CopyFile.vue";
shareFileType.value=item.FileType shareFileType.value=item.FileType
shareId.value =item.FileId shareId.value =item.FileId
} }
watch(() => props.list, (n,o) => { watch(() => props.list, (n,o) => {
if (props.list) { if (props.list) {
nextTick(() => { nextTick(() => {
dataList.value = props.list dataList.value = props.list
for (let index = 0; index < dataList.value.length; index++) { datas.selectAll = false
const element = dataList.value[index]; isIndeterminate.value = false
if (datas.selectAll) { datas.selectedDatas = []
element.singleChoice = true;
datas.selectedDatas.push(element.FileId);
} else if (
datas.selectedDatas.length > 0 &&
datas.selectedDatas.indexOf(element.FileId) != -1
) element.singleChoice = true;
}
}) })
} }
}) })
watch(() => props.selectedDatas, (n,o) => {
datas.selectedDatas = props.selectedDatas
getSelectBox()
})
watch(() => props.navigations, (n,o) => { watch(() => props.navigations, (n,o) => {
Navigations.value = n Navigations.value = n
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment