修改文字

This commit is contained in:
X1627315083
2024-01-26 14:43:20 +08:00
parent 7ddd99d4a7
commit 085349ae8b
7 changed files with 48 additions and 28 deletions

View File

@@ -35,7 +35,7 @@
<div class="operate_list" v-if="column?.Operations">
<div class="operate_item" @click="turnToDetail(record)">{{ $t('HistoryPage.Detail') }}</div>
<!-- <div class="operate_item" @click="renameCollection(record,index)">{{ $t('HistoryPage.Rename') }}</div> -->
<div class="operate_item" @click="exportCanvas()">{{ $t('HomeView.Export') }}</div>
<div class="operate_item" @click="exportCanvas(record)">{{ $t('HomeView.Export') }}</div>
<div class="operate_item" @click="deleteGroup(record, index)">{{ $t('HistoryPage.Delete') }}</div>
</div>
</template>
@@ -79,6 +79,7 @@ import JSZip, { forEach } from "jszip";
import html2canvas from "html2canvas";
import { useStore } from "vuex";
import { useI18n } from 'vue-i18n';
import { getCookie } from "@/tool/cookie";
const FileSaver = require("file-saver");
export default defineComponent({
components: {
@@ -111,6 +112,7 @@ export default defineComponent({
});
let collectionList:any = ref([])
let {t} = useI18n()
let userInfo:any = ref()
return {
rangePickerValue,
columns,
@@ -118,6 +120,7 @@ export default defineComponent({
renameData,
t,
store,
userInfo,
}
},
data(){
@@ -135,6 +138,8 @@ export default defineComponent({
}
},
mounted(){
let userInfo:any = getCookie("userInfo")
this.userInfo = JSON.parse(userInfo);
let historyTable:any = this.$refs.historyTable
this.historyTableHeight = historyTable.clientHeight - 130
this.getHistoryList()
@@ -169,10 +174,13 @@ export default defineComponent({
size:this.pageSize,
collectionName:this.searchCollectionName,
startDate:startDate,
endDate:endDate
endDate:endDate,
userId:83,
}
Https.axiosPost( Https.httpUrls.queryUserGroup, data).then(
Https.axiosPost('http://192.168.1.9:5566/api/history/queryUserGroup', data).then(
(rv: any) => {
console.log(rv);
this.collectionList = rv.content
this.total = rv.total
}
@@ -232,7 +240,16 @@ export default defineComponent({
// }
// );
// },
exportCanvas(){
exportCanvas(recold:any){
console.log(recold);
return
let url = Https.httpUrls.historyChoose + `?userGroupId=${recold.id}`
Https.axiosGet(url).then(
(rv: any) => {
// this.dealHistoryChooseData(rv,type)
}
).catch(rv=>{
});
let collectionReview:any = document.querySelector("#exportNewCoolection")
let a = document.createElement('a');
this.isShowMark = true
@@ -264,7 +281,6 @@ export default defineComponent({
// a.setAttribute('href', URL.createObjectURL(blob));
// a.setAttribute('download', `collection.png`);
// a.click();
})
},
downImg(imagesParams:any) {