This commit is contained in:
X1627315083
2023-12-14 17:41:11 +08:00
parent f3d658ae49
commit a917bf66d2
4 changed files with 62 additions and 50 deletions

View File

@@ -1472,6 +1472,9 @@ export default defineComponent({
transform: translate(-.6rem,-.4rem); transform: translate(-.6rem,-.4rem);
} }
} }
.vc-chrome-alpha-wrap{
display: none;
}
.vc-chrome-hue-wrap{ .vc-chrome-hue-wrap{
margin-bottom: .5rem; margin-bottom: .5rem;
} }

View File

@@ -814,6 +814,9 @@ export default defineComponent({
transform: translate(-.6rem,-.4rem); transform: translate(-.6rem,-.4rem);
} }
} }
.vc-chrome-alpha-wrap{
display: none;
}
.vc-chrome-hue-wrap{ .vc-chrome-hue-wrap{
margin-bottom: .5rem; margin-bottom: .5rem;
} }

View File

@@ -161,6 +161,12 @@ export const Https = {
generateDislike:'/api/generate/dislike',//喜欢ganerate图片 generateDislike:'/api/generate/dislike',//喜欢ganerate图片
elementUpload:`/api/element/upload`,//上传图片 elementUpload:`/api/element/upload`,//上传图片
sketchBoardsBoundingBox:`/api/design/sketchBoardsBoundingBox`,//裁剪sketch图片 sketchBoardsBoundingBox:`/api/design/sketchBoardsBoundingBox`,//裁剪sketch图片
trialOrderList:`/api/account/trialOrderList`,//获取审批列表
switchIsAutoApproval:`/api/account/switchIsAutoApproval`,//切换是否自动审批
switchIsAutoApproval:`/api/account/getIsAutoApproval`,//获取是否自动审批
trialOrderApproval:`/api/account/trialOrderApproval`,//通过审批
}, },
axiosGet(url,config) { axiosGet(url,config) {

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="history_page"> <div class="trial_page">
<div class="page_content"> <div class="page_content">
<img <img
class="page_content_bg" class="page_content_bg"
@@ -7,21 +7,36 @@
/> />
<div class="page_content_body"> <div class="page_content_body">
<HeaderComponent></HeaderComponent> <HeaderComponent></HeaderComponent>
<div class="history_page_body"> <div class="trial_page_body">
<div class="history_header">{{ $t('HistoryPage.History') }}</div>
<div class="history_table_search"> <div class="trial_table_search">
<a-range-picker class="range_picker" v-model:value="rangePickerValue" :placeholder="[$t('HistoryPage.StartDate'), $t('HistoryPage.EndDate')]" valueFormat="YYYY-MM-DD"> <a-range-picker class="range_picker" v-model:value="rangePickerValue" :placeholder="[$t('HistoryPage.StartDate'), $t('HistoryPage.EndDate')]" valueFormat="YYYY-MM-DD">
<template #suffixIcon> <template #suffixIcon>
<span class="icon iconfont range_picker_icon icon-rili"></span> <span class="icon iconfont range_picker_icon icon-rili"></span>
</template> </template>
</a-range-picker> </a-range-picker>
<div class="trial_state">
<div>all</div>
<div class="header_user_content marLeft2">
<!-- <span class="icon iconfont icon-yuyan"></span> -->
<span class="username">123123</span>
<div
:class="[
'icon',
'iconfont',
'icon-xiala',
]"
@click.stop=""
></div>
</div>
</div>
<div class="content_search_block"> <div class="content_search_block">
<input class="search_input" :placeholder="$t('HistoryPage.inputContent1')" v-model="searchCollectionName" @keydown.enter="searchHistoryList()"> <input class="search_input" :placeholder="$t('HistoryPage.inputContent1')" v-model="searchCollectionName" @keydown.enter="searchHistoryList()">
<div class="search_icon_block" @click="searchHistoryList()"><span class="icon iconfont icon-sousuo"></span></div> <div class="search_icon_block" @click="searchHistoryList()"><span class="icon iconfont icon-sousuo"></span></div>
</div> </div>
</div> </div>
<div class="history_table_content" ref="historyTable"> <div class="trial_table_content" ref="historyTable">
<a-table :columns="columns" :data-source="collectionList" :scroll="{ y: historyTableHeight }" @change="changePage" <a-table :columns="columns" :data-source="collectionList" :scroll="{ y: historyTableHeight }" @change="changePage"
:pagination="{ :pagination="{
showSizeChanger:true, showSizeChanger:true,
@@ -44,8 +59,6 @@
</div> </div>
</div> </div>
</div> </div>
<HistoryDetail ref="historyDetail" :groupDetails="groupDetails" :collectionName="collectionName"></HistoryDetail>
<a-modal class="rename_modal_component" <a-modal class="rename_modal_component"
v-model:visible="renameVisivle" v-model:visible="renameVisivle"
:footer="null" :footer="null"
@@ -62,7 +75,6 @@
<div class="rename_submit_button" @click="confrimRename()">{{ $t('HistoryPage.Submit') }}</div> <div class="rename_submit_button" @click="confrimRename()">{{ $t('HistoryPage.Submit') }}</div>
</div> </div>
</a-modal> </a-modal>
<RobotAssist></RobotAssist>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
@@ -107,14 +119,14 @@ export default defineComponent({
}); });
let collectionList:any = ref([]) let collectionList:any = ref([])
let userInfo:any = {} let userInfo:any = {}
let {t} = useI18n() let status:any = ref(0)
return { return {
rangePickerValue, rangePickerValue,
columns, columns,
collectionList, collectionList,
renameData, renameData,
userInfo, userInfo,
t, status,
} }
}, },
data(){ data(){
@@ -125,7 +137,6 @@ export default defineComponent({
historyTableHeight:0, historyTableHeight:0,
newCollectionName:'', newCollectionName:'',
renameVisivle:false,//修改名字弹窗 renameVisivle:false,//修改名字弹窗
groupDetails:{},//每个collection的详情
collectionName:'',//选中的名字 collectionName:'',//选中的名字
searchCollectionName:'', searchCollectionName:'',
} }
@@ -133,7 +144,7 @@ export default defineComponent({
mounted(){ mounted(){
let historyTable:any = this.$refs.historyTable let historyTable:any = this.$refs.historyTable
this.historyTableHeight = historyTable.clientHeight - 130 this.historyTableHeight = historyTable.clientHeight - 130
this.getHistoryList() this.gettrialList()
this.userInfo = JSON.parse((getCookie("userInfo") as any)); this.userInfo = JSON.parse((getCookie("userInfo") as any));
if(this.userInfo.userId == 83){ if(this.userInfo.userId == 83){
@@ -145,7 +156,6 @@ export default defineComponent({
}, },
methods:{ methods:{
turnToDetail(record:any){ turnToDetail(record:any){
this.groupDetails = record.groupDetails
let historyDetail:any = this.$refs.historyDetail let historyDetail:any = this.$refs.historyDetail
this.collectionName = record.name this.collectionName = record.name
historyDetail.changeDetailShow() historyDetail.changeDetailShow()
@@ -156,33 +166,30 @@ export default defineComponent({
changePage(e:any){ changePage(e:any){
this.currentPage = e.current this.currentPage = e.current
this.pageSize = e.pageSize this.pageSize = e.pageSize
this.getHistoryList() this.gettrialList()
}, },
//查询列表 //查询列表
searchHistoryList(){ searchHistoryList(){
this.currentPage = 1 this.currentPage = 1
this.getHistoryList() this.gettrialList()
}, },
gettrialList(){
getHistoryList(){ let startDate:any = this.rangePickerValue ? new Date(this.rangePickerValue[0]).getTime(): ''
let startDate:any = this.rangePickerValue ? new Date(this.rangePickerValue[0]).getTime(): '' let endDate:any = this.rangePickerValue ? new Date(this.rangePickerValue[1]).getTime(): ''
let endDate:any = this.rangePickerValue ? new Date(this.rangePickerValue[1]).getTime(): '' let data = {
let data = { page:this.currentPage,
page:this.currentPage, size:this.pageSize,
size:this.pageSize, status:0,
collectionName:this.searchCollectionName, // startDate:startDate,
startDate:startDate, // endDate:endDate
endDate:endDate }
} Https.axiosPost( Https.httpUrls.trialOrderList, data).then(
Https.axiosPost( Https.httpUrls.queryUserGroup, data).then( (rv: any) => {
(rv: any) => { this.collectionList = rv.content
this.collectionList = rv.content }
this.total = rv.total );
}
);
}, },
//删除分组 //删除分组
deleteGroup(record:any,index:number){ deleteGroup(record:any,index:number){
let deleteGroupFun = (id:any,index:number) =>{ let deleteGroupFun = (id:any,index:number) =>{
@@ -191,13 +198,12 @@ export default defineComponent({
} }
Https.axiosPost(Https.httpUrls.deleteUserGroup,data).then( Https.axiosPost(Https.httpUrls.deleteUserGroup,data).then(
(rv: any) => { (rv: any) => {
message.success(this.t('HistoryPage.jsContent1'))
this.collectionList.splice(index,1) this.collectionList.splice(index,1)
} }
); );
} }
Modal.confirm({ Modal.confirm({
title: this.t('HistoryPage.jsContent2'), title: '11',
icon: createVNode(ExclamationCircleOutlined), icon: createVNode(ExclamationCircleOutlined),
okText: 'Yes', okText: 'Yes',
cancelText: 'No', cancelText: 'No',
@@ -227,7 +233,7 @@ export default defineComponent({
} }
Https.axiosPost(Https.httpUrls.updateUserGroupName,data).then( Https.axiosPost(Https.httpUrls.updateUserGroupName,data).then(
(rv: any) => { (rv: any) => {
message.success(this.t('HistoryPage.jsContent3')) // message.success(this.t('HistoryPage.jsContent3'))
this.collectionList[this.renameData.index].name = this.newCollectionName this.collectionList[this.renameData.index].name = this.newCollectionName
this.collectionList[this.renameData.index].updateDate = rv.updateDate this.collectionList[this.renameData.index].updateDate = rv.updateDate
this.renameVisivle = false this.renameVisivle = false
@@ -244,7 +250,7 @@ export default defineComponent({
}) })
</script> </script>
<style lang="less"> <style lang="less">
.history_page { .trial_page {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 0 9rem; padding: 0 9rem;
@@ -266,24 +272,15 @@ export default defineComponent({
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
.history_page_body{ .trial_page_body{
width: 100%; width: 100%;
height: calc(100% - 7rem); height: calc(100% - 7rem);
padding: 0 2.5rem 4rem; padding: 0 2.5rem 4rem;
box-sizing: border-box; box-sizing: border-box;
.trial_table_search{
.history_header{
font-size: 1.8rem;
height: 6.3rem;
line-height: 6.3rem;
font-weight: 500;
color: #333333;
}
.history_table_search{
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 5rem;
.range_picker{ .range_picker{
width: 36rem; width: 36rem;
height: 4.8rem; height: 4.8rem;
@@ -330,9 +327,12 @@ export default defineComponent({
} }
} }
} }
.trial_state{
}
} }
.history_table_content{ .trial_table_content{
margin-top: 2.6rem; margin-top: 2.6rem;
width: 100%; width: 100%;
height: calc(100% - 13.7rem); height: calc(100% - 13.7rem);