Compare commits

...

4 Commits

7 changed files with 59 additions and 47 deletions

View File

@ -95,13 +95,13 @@ export default {
this.$http.get('/sys/user/info').then(userRes => { this.$http.get('/sys/user/info').then(userRes => {
console.log('当前用户信息===========>', userRes.data.data.id) console.log('当前用户信息===========>', userRes.data.data.id)
const userId = userRes.data.data.id const userId = userRes.data.data.id
this.dataList = this.dataList.filter(item => { // this.dataList = this.dataList.filter(item => {
// userId creator // // userId creator
console.log(item.params.creator) // console.log(item.params.creator)
if (!(item.params.creator === userId) && !(item.params.userId === userId)) { // if (!(item.params.creator === userId) && !(item.params.userId === userId)) {
return item // return item
} // }
}) // })
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0
}) })
} else { } else {
@ -355,7 +355,12 @@ export default {
}, },
deleteHandle2(id) { deleteHandle2(id) {
console.log('删除========================》', id, this.dataListSelections) if(id==undefined && this.dataListSelections.length < 1){
this.$message({
type: 'info',
message: '请选择要删除的数据'
})
}else{
this.$confirm('确认是否删除?', '提示', { this.$confirm('确认是否删除?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -385,6 +390,7 @@ export default {
// message: '已取消删除' // message: '已取消删除'
// }); // });
}); });
}
}, },
// 导出 // 导出
exportHandle() { exportHandle() {

View File

@ -147,7 +147,8 @@ export default {
}, },
// //
showDetail(val) { showDetail(val) {
window.open(window.SITE_CONFIG.previewUrl + '#/packagingDetails?id=' + val.id) // window.open(window.SITE_CONFIG.previewUrl + '#/packagingDetails?id=' + val.id)
window.open(window.SITE_CONFIG.previewUrl + '#/integrationServicesDetails?id=' + val.id)
}, },
// showDocument(val) { // showDocument(val) {
// console.log(val); // console.log(val);

View File

@ -354,7 +354,6 @@ export default {
// this.disabled = true // this.disabled = true
}, },
showDocument (val) { showDocument (val) {
console.log(val)
window.open( window.open(
window.SITE_CONFIG.frontUrl + '?id=' + val.id + '&&type=' + val.type, window.SITE_CONFIG.frontUrl + '?id=' + val.id + '&&type=' + val.type,
'_blank' '_blank'
@ -459,7 +458,6 @@ export default {
// }, // },
// //
applyAndAssembly (val) { applyAndAssembly (val) {
console.log('vvvv', val)
// idid,type // idid,type
const type = '组件服务' const type = '组件服务'
const id = val.id const id = val.id
@ -475,7 +473,6 @@ export default {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
console.log('rrrrressssz', res.data)
this.relateApplicationResourceVisible = true this.relateApplicationResourceVisible = true
this.relationData = { this.relationData = {
id: id, id: id,
@ -483,13 +480,11 @@ export default {
responseData: res.data responseData: res.data
} }
this.topNameArray = ['未关联组件名称', '已关联组件名称'] this.topNameArray = ['未关联组件名称', '已关联组件名称']
console.log(' this.relationData', this.relationData)
// //
}) })
}, },
// //
applyAndDataResource (val) { applyAndDataResource (val) {
console.log('数据资源')
}, },
// //
applyAndProject (val) { applyAndProject (val) {
@ -507,7 +502,6 @@ export default {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
console.log('rrrrressssx', res.data)
this.relateApplicationResourceVisible = true this.relateApplicationResourceVisible = true
this.relationData = { this.relationData = {
id: id, id: id,
@ -534,7 +528,6 @@ export default {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
console.log('rrrrressssj', res.data)
this.relateApplicationResourceVisible = true this.relateApplicationResourceVisible = true
this.relationData = { this.relationData = {
id: id, id: id,
@ -575,7 +568,6 @@ export default {
this.showPutOnTheShelfFlag2 = true this.showPutOnTheShelfFlag2 = true
this.$http.get('/category/getCategoryTree').then(res => { this.$http.get('/category/getCategoryTree').then(res => {
this.insertList = res.data.data.filter(item => item.name === '应用资源一')[0] this.insertList = res.data.data.filter(item => item.name === '应用资源一')[0]
console.log(this.insertList, this, this.radio, 'hhhhhhhhhhh')
this.putOnTheShelfList = this.insertList.children this.putOnTheShelfList = this.insertList.children
}) })
}, },
@ -670,7 +662,6 @@ export default {
}) })
this.submitFrom.infoList = this.submitFrom.infoList.sort((a, b) => arr.indexOf(a.attrType) - arr.indexOf(b.attrType)) this.submitFrom.infoList = this.submitFrom.infoList.sort((a, b) => arr.indexOf(a.attrType) - arr.indexOf(b.attrType))
this.notFilled = [] this.notFilled = []
console.log(this.submitFrom, '表单验证')
if (!this.submitFrom.name) { if (!this.submitFrom.name) {
this.notFilled.push('应用名称') this.notFilled.push('应用名称')
} }
@ -711,7 +702,6 @@ export default {
val.attrValue = this.radio val.attrValue = this.radio
} }
}) })
console.log('编辑===============>', this.submitFrom)
// //
this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue) this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue)
this.$http this.$http

View File

@ -68,6 +68,12 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!--资源名称 仅明细添加-->
<el-form-item v-if="this.departmentId === 3 || this.departmentId === 4">
<!-- <span v-if="this.departmentId === 2 || this.departmentId === 4">资源名称</span> -->
<el-input v-model="resourceName" placeholder="请输入资源名称" clearable></el-input>
</el-form-item>
<!--操作按钮查询--> <!--操作按钮查询-->
<el-form-item> <el-form-item>
@ -341,6 +347,7 @@ export default {
abilityType: '', // abilityType: '', //
beginTime: '', // beginTime: '', //
endTime: '', // endTime: '', //
resourceName:'',//
typeOptions: [ typeOptions: [
{ name: '智能算法', value: 1 }, { name: '智能算法', value: 1 },
{ name: '图层服务', value: 2 }, { name: '图层服务', value: 2 },
@ -523,7 +530,8 @@ export default {
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
}) })
}) })
}, },
@ -589,7 +597,9 @@ export default {
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
}) })
}) })
}, },
@ -658,7 +668,8 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
type: this.abilityType, type: this.abilityType,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
} }
}) })
.then((res) => { .then((res) => {
@ -670,7 +681,8 @@ export default {
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
}) })
}) })
}, },
@ -697,7 +709,8 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
type: this.abilityType, type: this.abilityType,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
} }
}) })
.then((res) => { .then((res) => {
@ -708,7 +721,8 @@ export default {
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
}) })
}) })
}, },
@ -952,7 +966,8 @@ export default {
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate,
resourceName:this.resourceName
}) })
if (this.departmentId === 1) { if (this.departmentId === 1) {
// if (this.detailFlag) { // if (this.detailFlag) {

View File

@ -508,7 +508,12 @@ export default {
}, },
// //
deleteData (row) { deleteData (row) {
console.log(row) if (this.deleteDataArr.length < 1) {
this.$message({
type: 'info',
message: '请选择要删除的数据'
})
}else{
this.$confirm('此操作将删除当前数据, 是否继续?', '提示', { this.$confirm('此操作将删除当前数据, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -542,7 +547,7 @@ export default {
type: 'info', type: 'info',
message: '已取消删除' message: '已取消删除'
}) })
}) })}
}, },
// //
async openPreviewData (row) { async openPreviewData (row) {

View File

@ -7,30 +7,24 @@
import { reactive, ref, watch, defineProps } from 'vue' import { reactive, ref, watch, defineProps } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
const store = useStore()
const router = useRouter() const router = useRouter()
const oldValue1= ref('')
const props = defineProps({ const props = defineProps({
textColor: { type: String, default: '' }, textColor: { type: String, default: '' },
}) })
const previousPage = () => { const previousPage = () => {
// debugger if (window.history.state.back){
// let a =store.state.previousRouter window.history.go(-1)
// if (store.state.previousRouter.name) { } else{
// this.$router.push({name: this.$store.state.previousRouter.name}); router.push({
// } path: '/integrationServices',
// // let val = router.go(-1) })
}
window.history.go(-1)
} }
// router.beforeEach((to, from, next) => {
// debugger
// // console.log('=========>', to, from, next)
// document.documentElement.scrollTop = 0
// document.body.scrollTop = 0
// next()
// })
</script> </script>
<style scoped lang="less"> <style scoped lang="less">

View File

@ -171,7 +171,7 @@
console.log('编目一级=============>', res.data) console.log('编目一级=============>', res.data)
res.data.data.forEach((val) => { res.data.data.forEach((val) => {
// tabList.value.push(val.name) // tabList.value.push(val.name)
if (val.name == '应用资源' || val.name == '组件服务') { if (val.name == '应用资源' || val.name == '组件服务' || val.name == '融合服务') {
tabList.value.push(val.name) tabList.value.push(val.name)
} }
}) })
@ -357,11 +357,12 @@
}) })
} else if (delFlag === undefined) { } else if (delFlag === undefined) {
// //
mybus.emit('tabsChange', { flag: item.resourceId }) // mybus.emit('tabsChange', { flag: item.resourceId })
mybus.emit('tabsChange', { flag: id })
router.push({ router.push({
path: `/integrationServicesDetails`, path: `/integrationServicesDetails`,
query: { query: {
id: item.resourceId, id: id,
}, },
}) })
} }