提交 ecf8513c authored 作者: 王腾飞's avatar 王腾飞

1029

上级 fed3c66b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box"> <div class="box">
<div class="metaDataTop"> <div class="metaDataTop">
<em>人物</em> <em>人物</em>
<span>刷新</span> <span @click="refPage">刷新</span>
</div> </div>
<div class="searchBox"> <div class="searchBox">
<el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select"> <el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select">
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<pagination v-if="totalNum>0" :total="totalNum" @pagesize="pagesizeFun" @currentPage="currentPageFun"></pagination>
<div class="noDataPic" style="text-align:center;" v-if="totalNum === 0"> <div class="noDataPic" style="text-align:center;" v-if="totalNum === 0">
<img src="../../../assets/img/noData_pic.png" alt=""> <img src="../../../assets/img/noData_pic.png" alt="">
</div> </div>
...@@ -115,8 +116,10 @@ import { ...@@ -115,8 +116,10 @@ import {
showNamedEntityAPI, showNamedEntityAPI,
finallyAddNamedEntityAPI finallyAddNamedEntityAPI
} from '@/api/storagemodule' } from '@/api/storagemodule'
import pagination from '@/components/pagination/pagination'
export default { export default {
name: 'characterentry', name: 'characterentry',
components:{pagination},
data() { data() {
return { return {
dialogFormVisible: false, dialogFormVisible: false,
...@@ -135,7 +138,7 @@ export default { ...@@ -135,7 +138,7 @@ export default {
state: 1, state: 1,
keyword: null,//搜索的时候传 keyword: null,//搜索的时候传
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 30,
orderBy: null orderBy: null
}, },
createdate:'',//创建时间的筛选的 createdate:'',//创建时间的筛选的
...@@ -147,6 +150,14 @@ export default { ...@@ -147,6 +150,14 @@ export default {
this.getNamedEntityListAPI() this.getNamedEntityListAPI()
}, },
methods: { methods: {
pagesizeFun(val){
this.paramsFrom.pageSize = val;
this.getNamedEntityListAPI()
},
currentPageFun(val){
this.paramsFrom.pageNum = val;
this.getNamedEntityListAPI()
},
getNamedEntityListAPI() { getNamedEntityListAPI() {
namedEntityListAPI(this.paramsFrom) namedEntityListAPI(this.paramsFrom)
.then(res => { .then(res => {
...@@ -214,6 +225,24 @@ export default { ...@@ -214,6 +225,24 @@ export default {
this.$message.error('新增实体未入库') this.$message.error('新增实体未入库')
} }
}) })
},
resetSearch() {
this.paramsFrom = {
state: 1,
keyword: null,//搜索的时候传
pageNum: 1,
pageSize: 30,
orderBy: null
};
this.createdate = '';//创建时间的筛选的
this.getNamedEntityListAPI();
},
refPage() {
this.loading = true;
this.resetSearch();
setTimeout(()=>{
this.loading=false;
},1000)
} }
} }
} }
...@@ -243,6 +272,7 @@ export default { ...@@ -243,6 +272,7 @@ export default {
background:url(../../../assets/img/sx.png) no-repeat; background:url(../../../assets/img/sx.png) no-repeat;
background-size:12px 12px; background-size:12px 12px;
background-position:37px 2px; background-position:37px 2px;
cursor:pointer;
} }
} }
.searchBox { .searchBox {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box"> <div class="box">
<div class="metaDataTop"> <div class="metaDataTop">
<em>地理位置</em> <em>地理位置</em>
<span>刷新</span> <span @click="refPage">刷新</span>
</div> </div>
<div class="searchBox"> <div class="searchBox">
<el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select"> <el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select">
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<pagination v-if="totalNum>0" :total="totalNum" @pagesize="pagesizeFun" @currentPage="currentPageFun"></pagination>
<div class="noDataPic" style="text-align:center;" v-if="totalNum === 0"> <div class="noDataPic" style="text-align:center;" v-if="totalNum === 0">
<img src="../../../assets/img/noData_pic.png" alt=""> <img src="../../../assets/img/noData_pic.png" alt="">
</div> </div>
...@@ -94,6 +95,7 @@ ...@@ -94,6 +95,7 @@
<script> <script>
import BaiduMap from 'vue-baidu-map/components/map/Map.vue' import BaiduMap from 'vue-baidu-map/components/map/Map.vue'
import pagination from '@/components/pagination/pagination'
import { import {
namedEntityListAPI, namedEntityListAPI,
addNamedEntityAPI, addNamedEntityAPI,
...@@ -103,7 +105,8 @@ import { ...@@ -103,7 +105,8 @@ import {
export default { export default {
name: 'location', name: 'location',
components: { components: {
BaiduMap BaiduMap,
pagination
}, },
data() { data() {
return { return {
...@@ -129,7 +132,7 @@ export default { ...@@ -129,7 +132,7 @@ export default {
state: 3, state: 3,
keyword: null, keyword: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 30,
orderBy: null, orderBy: null,
}, },
createdate:'',//创建时间的筛选的 createdate:'',//创建时间的筛选的
...@@ -141,6 +144,14 @@ export default { ...@@ -141,6 +144,14 @@ export default {
this.getNamedEntityListAPI() this.getNamedEntityListAPI()
}, },
methods: { methods: {
pagesizeFun(val){
this.paramsFrom.pageSize = val;
this.getNamedEntityListAPI()
},
currentPageFun(val){
this.paramsFrom.pageNum = val;
this.getNamedEntityListAPI()
},
getNamedEntityListAPI() { getNamedEntityListAPI() {
namedEntityListAPI(this.paramsFrom) namedEntityListAPI(this.paramsFrom)
.then(res => { .then(res => {
...@@ -212,6 +223,24 @@ export default { ...@@ -212,6 +223,24 @@ export default {
this.$message.error('新增实体未入库') this.$message.error('新增实体未入库')
} }
}) })
},
resetSearch() {
this.paramsFrom = {
state: 3,
keyword: null,
pageNum: 1,
pageSize: 30,
orderBy: null,
};
this.createdate = '';//创建时间的筛选的
this.getNamedEntityListAPI();
},
refPage() {
this.loading = true;
this.resetSearch();
setTimeout(()=>{
this.loading=false;
},1000)
} }
} }
} }
...@@ -241,6 +270,7 @@ export default { ...@@ -241,6 +270,7 @@ export default {
background:url(../../../assets/img/sx.png) no-repeat; background:url(../../../assets/img/sx.png) no-repeat;
background-size:12px 12px; background-size:12px 12px;
background-position:37px 2px; background-position:37px 2px;
cursor:pointer;
} }
} }
.searchBox { .searchBox {
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<pagination v-if="totalNum>0" :total="totalNum" @pagesize="pagesizeFun" @currentPage="currentPageFun"></pagination>
<div class="noDataPic" style="text-align:center;" v-if="totalNum === 0"> <div class="noDataPic" style="text-align:center;" v-if="totalNum === 0">
<img src="../../../assets/img/noData_pic.png" alt=""> <img src="../../../assets/img/noData_pic.png" alt="">
</div> </div>
...@@ -100,8 +101,10 @@ import { ...@@ -100,8 +101,10 @@ import {
showNamedEntityAPI, showNamedEntityAPI,
finallyAddOrganNamedEntityAPI finallyAddOrganNamedEntityAPI
} from '@/api/storagemodule' } from '@/api/storagemodule'
import pagination from '@/components/pagination/pagination'
export default { export default {
name: 'characterentry', name: 'characterentry',
components:{pagination},
data() { data() {
return { return {
dialogFormVisible: false, dialogFormVisible: false,
...@@ -119,7 +122,7 @@ export default { ...@@ -119,7 +122,7 @@ export default {
state: 2, state: 2,
keyword: null, keyword: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 30,
orderBy: null, orderBy: null,
}, },
createdate:'',//创建时间的筛选的 createdate:'',//创建时间的筛选的
...@@ -131,6 +134,14 @@ export default { ...@@ -131,6 +134,14 @@ export default {
this.getNamedEntityListAPI() this.getNamedEntityListAPI()
}, },
methods: { methods: {
pagesizeFun(val){
this.paramsFrom.pageSize = val;
this.getNamedEntityListAPI()
},
currentPageFun(val){
this.paramsFrom.pageNum = val;
this.getNamedEntityListAPI()
},
getNamedEntityListAPI() { getNamedEntityListAPI() {
namedEntityListAPI(this.paramsFrom) namedEntityListAPI(this.paramsFrom)
.then(res => { .then(res => {
...@@ -191,6 +202,24 @@ export default { ...@@ -191,6 +202,24 @@ export default {
this.$message.error('新增实体未入库') this.$message.error('新增实体未入库')
} }
}) })
},
resetSearch() {
this.paramsFrom = {
state: 2,
keyword: null,
pageNum: 1,
pageSize: 30,
orderBy: null,
};
this.createdate = '';//创建时间的筛选的
this.getNamedEntityListAPI();
},
refPage() {
this.loading = true;
this.resetSearch();
setTimeout(()=>{
this.loading=false;
},1000)
} }
} }
} }
...@@ -220,6 +249,7 @@ export default { ...@@ -220,6 +249,7 @@ export default {
background:url(../../../assets/img/sx.png) no-repeat; background:url(../../../assets/img/sx.png) no-repeat;
background-size:12px 12px; background-size:12px 12px;
background-position:37px 2px; background-position:37px 2px;
cursor:pointer;
} }
} }
.searchBox { .searchBox {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box"> <div class="box">
<div class="metaDataTop"> <div class="metaDataTop">
<em>时间</em> <em>时间</em>
<span>刷新</span> <span @click="refPage">刷新</span>
</div> </div>
<div class="searchBox"> <div class="searchBox">
<el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select"> <el-input placeholder="搜索数字记忆资源库" v-model="inputVal" class="input-with-select">
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
state: 4, state: 4,
keyword: null, keyword: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 30,
orderBy: null, orderBy: null,
}, },
createdate:'',//创建时间的筛选的 createdate:'',//创建时间的筛选的
...@@ -186,6 +186,24 @@ export default { ...@@ -186,6 +186,24 @@ export default {
this.$message.error('新增实体未入库') this.$message.error('新增实体未入库')
} }
}) })
},
resetSearch() {
this.paramsFrom = {
state: 4,
keyword: null,
pageNum: 1,
pageSize: 30,
orderBy: null,
};
this.createdate = '';//创建时间的筛选的
this.getNamedEntityListAPI();
},
refPage() {
this.loading = true;
this.resetSearch();
setTimeout(()=>{
this.loading=false;
},1000)
} }
} }
} }
...@@ -215,6 +233,7 @@ export default { ...@@ -215,6 +233,7 @@ export default {
background:url(../../../assets/img/sx.png) no-repeat; background:url(../../../assets/img/sx.png) no-repeat;
background-size:12px 12px; background-size:12px 12px;
background-position:37px 2px; background-position:37px 2px;
cursor:pointer;
} }
} }
.searchBox { .searchBox {
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
</div> </div>
</div> </div>
</div> </div>
<pagination v-if="photoTotalNum>0" :total="photoTotalNum" @pagesize="pagesizeFun" @currentPage="currentPageFun"></pagination>
</div> </div>
</div> </div>
</template> </template>
...@@ -96,8 +97,10 @@ ...@@ -96,8 +97,10 @@
<script> <script>
import { uploadUrl, uploadPath, requestPath } from "@/utils/global"; import { uploadUrl, uploadPath, requestPath } from "@/utils/global";
import { getItemDetailByIdAPI, resourceCommitAPI, myAtlasDeleteItemAPI } from '@/api/resourcecommit' import { getItemDetailByIdAPI, resourceCommitAPI, myAtlasDeleteItemAPI } from '@/api/resourcecommit'
import pagination from '@/components/pagination/pagination'
export default { export default {
name: 'photolook', name: 'photolook',
components:{pagination},
data() { data() {
return { return {
domain: process.env.BASE_API, domain: process.env.BASE_API,
...@@ -106,6 +109,11 @@ export default { ...@@ -106,6 +109,11 @@ export default {
uploadPath: uploadPath, uploadPath: uploadPath,
atlasInfo: {}, atlasInfo: {},
photoInfo: [], photoInfo: [],
photoTotalNum: null,
paramsFrom: {
pageSize:30,
pageNum: 1
},
formData: { formData: {
albumId: this.$route.query.oid, albumId: this.$route.query.oid,
fileName: null, fileName: null,
...@@ -121,6 +129,14 @@ export default { ...@@ -121,6 +129,14 @@ export default {
this.getItemDetailById(); this.getItemDetailById();
}, },
methods: { methods: {
pagesizeFun(val){
this.paramsFrom.pageSize = val;
this.getNamedEntityListAPI()
},
currentPageFun(val){
this.paramsFrom.pageNum = val;
this.getNamedEntityListAPI()
},
// 上传附件有关 // 上传附件有关
beforeUpload(file) { beforeUpload(file) {
console.log(file) console.log(file)
...@@ -166,6 +182,7 @@ export default { ...@@ -166,6 +182,7 @@ export default {
this.atlasInfo = res.data.data; this.atlasInfo = res.data.data;
this.photoInfo = res.data.data.imgList; this.photoInfo = res.data.data.imgList;
this.formData.albumId = res.data.data.id this.formData.albumId = res.data.data.id
this.photoTotalNum = res.data.data.imgList.length;
this.photoInfo.map((item, index) => { this.photoInfo.map((item, index) => {
this.$set(item, 'statusVal', null) this.$set(item, 'statusVal', null)
if (item.status === 0) { if (item.status === 0) {
...@@ -251,6 +268,7 @@ export default { ...@@ -251,6 +268,7 @@ export default {
.atlasBasicInfo { .atlasBasicInfo {
width:100%; width:100%;
margin-top:20px; margin-top:20px;
margin-bottom:20px;
section { section {
width:100%; width:100%;
border-bottom:1px solid rgb(152, 164, 184); border-bottom:1px solid rgb(152, 164, 184);
......
...@@ -81,6 +81,7 @@ import { myCommitResListAPI, deleteMyCommitResItemAPI } from '@/api/resourcecomm ...@@ -81,6 +81,7 @@ import { myCommitResListAPI, deleteMyCommitResItemAPI } from '@/api/resourcecomm
import pagination from '@/components/pagination/pagination' import pagination from '@/components/pagination/pagination'
import { operationMsg, confirm } from '@/utils/publicFunctions' import { operationMsg, confirm } from '@/utils/publicFunctions'
import { uploadUrl, uploadPath, requestPath } from "@/utils/global.js"; import { uploadUrl, uploadPath, requestPath } from "@/utils/global.js";
import Cookies from 'js-cookie'
export default { export default {
name: 'allresource', name: 'allresource',
components:{pagination}, components:{pagination},
...@@ -194,6 +195,23 @@ export default { ...@@ -194,6 +195,23 @@ export default {
} }
}) })
}, },
resetSearch() {
this.searchForm = {
formation: null,
size: null,
status: null,
resourceType: '',
status: '',
orderBy: null,
createTime: null,
pageNum: 1,
pageSize: 30
};
this.formation='';
this.createTime='desc';
this.size ='';
this.getList()
},
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
......
...@@ -34,14 +34,17 @@ ...@@ -34,14 +34,17 @@
</ul> </ul>
</section> </section>
</div> </div>
<pagination v-if="atlasTotalNum>0" :total="atlasTotalNum" @pagesize="pagesizeFun" @currentPage="currentPageFun"></pagination>
</div> </div>
</template> </template>
<script> <script>
import { myAtlasListAPI, myAtlasInfoAPI, myAtlasDeleteItemAPI } from '@/api/resourcecommit' import { myAtlasListAPI, myAtlasInfoAPI, myAtlasDeleteItemAPI } from '@/api/resourcecommit'
import { uploadUrl } from "@/utils/global"; import { uploadUrl } from "@/utils/global";
import pagination from '@/components/pagination/pagination'
export default { export default {
name: 'atlas', name: 'atlas',
components:{pagination},
data() { data() {
return { return {
uploadUrl: uploadUrl, uploadUrl: uploadUrl,
...@@ -62,6 +65,14 @@ export default { ...@@ -62,6 +65,14 @@ export default {
this.getMyAtlasInfo(); this.getMyAtlasInfo();
}, },
methods: { methods: {
pagesizeFun(val){
this.paramsFrom.pageSize = val;
this.getNamedEntityListAPI()
},
currentPageFun(val){
this.paramsFrom.pageNum = val;
this.getNamedEntityListAPI()
},
addAtlas() { addAtlas() {
this.$router.push('addatlas') this.$router.push('addatlas')
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div v-loading='loading'> <div v-loading='loading'>
<div class="sip_Top clearfix"> <div class="sip_Top clearfix">
<span class="fl">资源分类管理</span> <span class="fl">资源分类管理</span>
<a><i class="el-icon-refresh fr" @click="refPage"></i></a> <a>刷新<i class="el-icon-refresh fr" @click="refPage"></i></a>
</div> </div>
<div class="resource_content"> <div class="resource_content">
<div class="tree_wrap" v-loading='loadTreeVisible'> <div class="tree_wrap" v-loading='loadTreeVisible'>
...@@ -417,8 +417,26 @@ export default { ...@@ -417,8 +417,26 @@ export default {
this.loadTreeVisible=false; this.loadTreeVisible=false;
},1000) },1000)
}, },
resetSearch() {
this.searchForm = {
diyTypeCode:'',
status:'',//默认丰富化的
resourceType:'',
orderBy:"",
beginTime:'',
endTime:'',
pageNum:1,
pageSize:30,
createrId:''
};
this.formation = '';//形成时间的筛选的
this.size = '';
this.createTime = 'desc';
this.getList();
},
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch();
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -203,9 +203,27 @@ export default { ...@@ -203,9 +203,27 @@ export default {
} }
}) })
}, },
resetSearch() {
this.searchForm = {
formation: null,
size: null,
status: null,
resourceType: '',
status: '',
orderBy: null,
createTime: null,
modifierId: Cookies.get('userId'),
pageNum: 1,
pageSize: 30
};
this.formation='';
this.createTime='desc';
this.size ='';
this.getList()
},
refPage(){ refPage(){
this.loading=true; this.loading=true;
//this.resetSearch(); this.resetSearch();
setTimeout(()=>{ setTimeout(()=>{
this.loading=false; this.loading=false;
},1000) },1000)
......
...@@ -201,6 +201,24 @@ export default { ...@@ -201,6 +201,24 @@ export default {
} }
}) })
}, },
resetSearch() {
this.searchForm = {
formation: null,
size: null,
status: null,
resourceType: '',
status: '',
orderBy: null,
createTime: null,
modifierId: Cookies.get('userId'),
pageNum: 1,
pageSize: 30
};
this.formation='';
this.createTime='desc';
this.size ='';
this.getList()
},
refPage(){ refPage(){
this.loading=true; this.loading=true;
this.resetSearch(); this.resetSearch();
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</el-carousel> --> </el-carousel> -->
<div class="swiper-box" style="height: 500px; padding-top:20px;"> <div class="swiper-box" style="height: 500px; padding-top:20px;">
<!-- swiper1 --> <!-- swiper1 -->
<swiper :options="swiperOptionTop" class="gallery-top" ref="swiperTop" @click="callback($event)"> <swiper :options="swiperOptionTop" class="gallery-top" ref="swiperTop">
<swiper-slide class="slide-1" v-for="(item, key) in photoInfo" :key="key" :style="{backgroundImage: 'url('+`${uploadUrl}?fileName=${item.fileName}`+')', backgroundRepeat: 'no-repeat', backgroundPosition: '50%', backgroundSize: 'contain'}"> <swiper-slide class="slide-1" v-for="(item, key) in photoInfo" :key="key" :style="{backgroundImage: 'url('+`${uploadUrl}?fileName=${item.fileName}`+')', backgroundRepeat: 'no-repeat', backgroundPosition: '50%', backgroundSize: 'contain'}">
<!-- <img :src="`${uploadUrl}?fileName=${item.fileName}`" alt=""> --> <!-- <img :src="`${uploadUrl}?fileName=${item.fileName}`" alt=""> -->
</swiper-slide> </swiper-slide>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<h2 class="titleWithIcon"> <h2 class="titleWithIcon">
<i class="el-icon-info"></i>照片信息 <i class="el-icon-info"></i>照片信息
</h2> </h2>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="goEditPhotoResource(item)">编辑信息</el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="goEditPhotoResource">编辑信息</el-button>
</section> </section>
<table v-for="(item, key) in photoInfo" :key="key" v-if="key === activeIndex"> <table v-for="(item, key) in photoInfo" :key="key" v-if="key === activeIndex">
<tr> <tr>
...@@ -169,6 +169,7 @@ export default { ...@@ -169,6 +169,7 @@ export default {
uploadUrl: uploadUrl, uploadUrl: uploadUrl,
atlasInfo: {}, atlasInfo: {},
photoInfo: [], photoInfo: [],
photoItemId: null,
activeIndex: 0, activeIndex: 0,
swiperOptionTop: { swiperOptionTop: {
spaceBetween: 10, spaceBetween: 10,
...@@ -185,6 +186,7 @@ export default { ...@@ -185,6 +186,7 @@ export default {
let flag = this.photoInfo[this.activeIndex]; let flag = this.photoInfo[this.activeIndex];
console.log(flag,"不知道是什么") console.log(flag,"不知道是什么")
console.log(this.uploadUrl, "LL") console.log(this.uploadUrl, "LL")
this.photoItemId = flag.id
this.exifImgPath = this.uploadUrl + '?fileName=' + flag.fileName; this.exifImgPath = this.uploadUrl + '?fileName=' + flag.fileName;
console.log(this.exifImgPath) console.log(this.exifImgPath)
var _this = this; var _this = this;
...@@ -209,6 +211,15 @@ export default { ...@@ -209,6 +211,15 @@ export default {
const swiperThumbs = this.$refs.swiperThumbs.swiper const swiperThumbs = this.$refs.swiperThumbs.swiper
this.activeIndex = swiperThumbs.activeIndex; this.activeIndex = swiperThumbs.activeIndex;
console.log(this.activeIndex,"当前索引"); console.log(this.activeIndex,"当前索引");
let flag = this.photoInfo[this.activeIndex];
console.log(flag,"不知道是什么")
console.log(this.uploadUrl, "LL")
this.photoItemId = flag.id
this.exifImgPath = this.uploadUrl + '?fileName=' + flag.fileName;
console.log(this.exifImgPath)
var _this = this;
var res = _this.EXIF.getAllTags(this.exifImgPath);
console.log(res,"22222222222222");
} }
} }
} }
...@@ -239,6 +250,7 @@ export default { ...@@ -239,6 +250,7 @@ export default {
if (res.data.code === 0) { if (res.data.code === 0) {
this.atlasInfo = res.data.data; this.atlasInfo = res.data.data;
this.photoInfo = res.data.data.imgList; this.photoInfo = res.data.data.imgList;
this.photoItemId = res.data.data.imgList[0].id
} else { } else {
this.$message.error('获取详情错误') this.$message.error('获取详情错误')
} }
...@@ -254,9 +266,14 @@ export default { ...@@ -254,9 +266,14 @@ export default {
swiperThumbs.controller.control = swiperTop swiperThumbs.controller.control = swiperTop
}) })
}, },
goEditPhotoResource(item) { goEditPhotoResource() {
this.$router.push({ this.$router.push({
path: 'editphotoresource' path: 'editphotoresource',
query: {
id: this.photoItemId,
oid: this.$route.query.oid,
activeIndexOne: this.activeIndex
}
}) })
} }
// uploadFile (event) {//exif获取照片信息 // uploadFile (event) {//exif获取照片信息
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论