feat: 修改页面接口
This commit is contained in:
@@ -121,9 +121,10 @@
|
|||||||
:groupDetails="groupDetails"
|
:groupDetails="groupDetails"
|
||||||
:collectionName="collectionName"
|
:collectionName="collectionName"
|
||||||
></HistoryDetail>
|
></HistoryDetail>
|
||||||
<setLabel ref="setLabel"></setLabel>
|
<!-- <setLabel ref="setLabel"></setLabel> -->
|
||||||
<!-- <RobotAssist></RobotAssist> -->
|
<!-- <RobotAssist></RobotAssist> -->
|
||||||
<searchLabel ref="searchLabel" isHistory></searchLabel>
|
<!-- <searchLabel ref="searchLabel" isHistory></searchLabel> -->
|
||||||
|
<projectSetting ref="projectSetting" @getHistory="getHistoryList"></projectSetting>
|
||||||
<div class="history_loading" v-show="isShowMark">
|
<div class="history_loading" v-show="isShowMark">
|
||||||
<a-spin size="large" />
|
<a-spin size="large" />
|
||||||
</div>
|
</div>
|
||||||
@@ -144,8 +145,9 @@ import enUS from 'ant-design-vue/es/locale/en_US'
|
|||||||
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||||
import { ConfigProvider } from 'ant-design-vue'
|
import { ConfigProvider } from 'ant-design-vue'
|
||||||
import TableSearchBar from '@/component/common/TableSearchBar.vue'
|
import TableSearchBar from '@/component/common/TableSearchBar.vue'
|
||||||
import setLabel from '@/component/LibraryPage/setLabel.vue'
|
// import setLabel from '@/component/LibraryPage/setLabel.vue'
|
||||||
import searchLabel from '@/component/LibraryPage/searchLabel.vue'
|
// import searchLabel from '@/component/LibraryPage/searchLabel.vue'
|
||||||
|
import projectSetting from '@/component/home/newProject/setting.vue'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -153,17 +155,18 @@ export default defineComponent({
|
|||||||
// HeaderComponent,
|
// HeaderComponent,
|
||||||
HistoryDetail,
|
HistoryDetail,
|
||||||
// RobotAssist,
|
// RobotAssist,
|
||||||
setLabel,
|
// setLabel,
|
||||||
ElCascader,
|
ElCascader,
|
||||||
searchLabel,
|
// searchLabel,
|
||||||
SearchOutlined,
|
SearchOutlined,
|
||||||
ConfigProvider,
|
ConfigProvider,
|
||||||
TableSearchBar
|
TableSearchBar,
|
||||||
|
projectSetting
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
let rangePickerValue: any = ref([])
|
let rangePickerValue: any = ref([])
|
||||||
|
const projectSetting: any = ref(null)
|
||||||
let renameData: any = ref({}) //修改名字选中的数据
|
let renameData: any = ref({}) //修改名字选中的数据
|
||||||
let isShowMark: any = ref(false)
|
let isShowMark: any = ref(false)
|
||||||
|
|
||||||
@@ -268,7 +271,8 @@ export default defineComponent({
|
|||||||
isShowMark,
|
isShowMark,
|
||||||
enUS,
|
enUS,
|
||||||
zhCN,
|
zhCN,
|
||||||
tableLocale
|
tableLocale,
|
||||||
|
projectSetting
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -369,8 +373,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
//查询列表
|
//查询列表
|
||||||
searchHistoryList(value:any) {
|
searchHistoryList(value: any) {
|
||||||
console.log('value',value)
|
console.log('value', value)
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.getHistoryList()
|
this.getHistoryList()
|
||||||
},
|
},
|
||||||
@@ -429,23 +433,28 @@ export default defineComponent({
|
|||||||
console.log('record', record)
|
console.log('record', record)
|
||||||
|
|
||||||
let deleteGroupFun = (id: any, index: number) => {
|
let deleteGroupFun = (id: any, index: number) => {
|
||||||
let data = {
|
// let data = {
|
||||||
userGroupId: id
|
// userGroupId: id
|
||||||
}
|
// }
|
||||||
Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then((rv: any) => {
|
Https.axiosPost(
|
||||||
|
Https.httpUrls.projectDetail,
|
||||||
|
{},
|
||||||
|
{ params: { projectId: id } }
|
||||||
|
).then((rv: any) => {
|
||||||
message.success(this.t('HistoryPage.jsContent1'))
|
message.success(this.t('HistoryPage.jsContent1'))
|
||||||
this.collectionList.splice(index, 1)
|
this.collectionList.splice(index, 1)
|
||||||
|
this.getHistoryList()
|
||||||
// let userGroupId: any = computed(() => {
|
// let userGroupId: any = computed(() => {
|
||||||
// return
|
// return
|
||||||
// });
|
// });
|
||||||
if (record.id == this.store.state.HomeStoreModule.userGroupId) {
|
// if (record.id == this.store.state.HomeStoreModule.userGroupId) {
|
||||||
this.store.commit('deleteUserGroupId')
|
// this.store.commit('deleteUserGroupId')
|
||||||
this.store.commit('setLikeDesignCollectionList', [])
|
// this.store.commit('setLikeDesignCollectionList', [])
|
||||||
this.store.commit('clearAllData')
|
// this.store.commit('clearAllData')
|
||||||
this.store.commit('clearAllCollection')
|
// this.store.commit('clearAllCollection')
|
||||||
this.store.commit('setAllBoardDataChoose', {})
|
// this.store.commit('setAllBoardDataChoose', {})
|
||||||
this.store.commit('clearShowSketchboard', {})
|
// this.store.commit('clearShowSketchboard', {})
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
@@ -463,8 +472,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
//修改名字
|
//修改名字
|
||||||
renameCollection(record: any, index: number) {
|
renameCollection(record: any, index: number) {
|
||||||
let searchLabel: any = this.$refs.searchLabel
|
// let searchLabel: any = this.$refs.searchLabel
|
||||||
searchLabel.init(record, index)
|
// searchLabel.init(record, index)
|
||||||
|
this.$refs.projectSetting.init(record)
|
||||||
},
|
},
|
||||||
|
|
||||||
retrieveHome(record: any) {
|
retrieveHome(record: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user