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