BUG修改

This commit is contained in:
a0049873 2022-11-25 11:58:12 +08:00
parent 7538cc94d0
commit 22176cac74
10 changed files with 886 additions and 725 deletions

View File

@ -81,8 +81,6 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" > <el-form :inline="true" >
<!--资源类型--> <!--资源类型-->
<el-form-item > <el-form-item >
@ -124,11 +122,9 @@
</el-form> </el-form>
</div> </div>
<el-card shadow="never" class="aui-card--fill" v-if="homeIsShow"> <el-card shadow="never" class="aui-card--fill" v-if="homeIsShow">
<div class="mod-demand__bsdemand"> <div class="mod-demand__bsdemand">
<div class="second-title"> <div class="second-title">
<span style="margin-right: 30px" :class="[ <span style="margin-right: 30px" :class="[
departmentId === 1 || departmentId === 3 departmentId === 1 || departmentId === 3
@ -157,7 +153,7 @@
明细 明细
</span> </span>
</template> </template>
<span v-else class="detail-button" @click="goToBack()"> 返回 </span> <span v-else class="detail-button" @click="goToBack()">统计</span>
</div> </div>
<div class="line-style"></div> <div class="line-style"></div>
<!--统计表--> <!--统计表-->
@ -267,7 +263,7 @@ export default {
data () { data () {
return { return {
checked: false, checked: false,
provideSelects:[], provideSelects: [],
departmentSelects: [], departmentSelects: [],
exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export', exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export',
exportExcelCondition: '', exportExcelCondition: '',
@ -374,7 +370,7 @@ export default {
status: '', status: '',
value1: [], // value1: [], //
abilityDepartment: '', // abilityDepartment: '', //
provideDepartment:'',// provideDepartment: '', //
abilityType: '', // abilityType: '', //
beginTime: '', // beginTime: '', //
endTime: '', // endTime: '', //
@ -744,7 +740,7 @@ export default {
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName: this.resourceName, resourceName: this.resourceName,
provideDept:this.provideDepartment provideDept: this.provideDepartment
} }
}) })
@ -758,7 +754,7 @@ export default {
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName: this.resourceName, resourceName: this.resourceName,
provideDept:this.provideDepartment provideDept: this.provideDepartment
}) })
}) })
}, },
@ -986,10 +982,10 @@ export default {
this.endDate = '' this.endDate = ''
this.examineStatus = '' this.examineStatus = ''
this.abilityDepartment = '' this.abilityDepartment = ''
this.provideDepartment='' this.provideDepartment = ''
this.abilityType = '' this.abilityType = ''
this.approveStatus = '' this.approveStatus = ''
this.resourceName='' this.resourceName = ''
this.exportExcelCondition = qs.stringify({ this.exportExcelCondition = qs.stringify({
approveStatus: this.status, approveStatus: this.status,
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
@ -997,14 +993,13 @@ export default {
endDate: this.endDate, endDate: this.endDate,
resourceName: this.resourceName resourceName: this.resourceName
}) })
if (this.departmentId === 1) {// if (this.departmentId === 1) { //
this.handleChose(1) this.handleChose(1)
} else if (this.departmentId === 2) {//使 } else if (this.departmentId === 2) { // 使
this.handleChose(2) this.handleChose(2)
} else if (this.departmentId === 3) { //
} else if (this.departmentId === 3) {//
this.handleChose(3) this.handleChose(3)
} else {//使 } else { // 使
this.handleChose(4) this.handleChose(4)
} }
}, },

View File

@ -508,45 +508,47 @@ export default {
}, },
// //
deleteData (row) { deleteData (row) {
this.deleteDataArr.push(row.id)
if (this.deleteDataArr.length < 1) { if (this.deleteDataArr.length < 1) {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '请选择要删除的数据' message: '请选择要删除的数据'
})
}else{
this.$confirm('此操作将删除当前数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
let ids = []
if(row.id && this.deleteDataArr.length==0){
ids = [row.id]
}else{
ids = this.deleteDataArr
}
this.$http
.delete('/workdynamics/delete', {
data: ids
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
type: 'success',
message: '删除成功!'
})
this.getTableData()
})
}) })
.catch(() => { } else {
this.$message({ this.$confirm('此操作将删除当前数据, 是否继续?', '提示', {
type: 'info', confirmButtonText: '确定',
message: '已取消删除' cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
let ids = []
if (row.id && this.deleteDataArr.length == 0) {
ids = [row.id]
} else {
ids = this.deleteDataArr
}
this.$http
.delete('/workdynamics/delete', {
data: ids
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
type: 'success',
message: '删除成功!'
})
this.getTableData()
})
}) })
})} .catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
}
}, },
// //
async openPreviewData (row) { async openPreviewData (row) {

View File

@ -65,7 +65,8 @@
header-align="center" header-align="center"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <template v-if="dataList[0]">
<el-table-column
v-for="(item, index) in dataList[0].infoList" v-for="(item, index) in dataList[0].infoList"
:key="index" :key="index"
:label="item.attrType" :label="item.attrType"
@ -77,6 +78,7 @@
{{ findValue(scope.row.infoList, item.attrType) }} {{ findValue(scope.row.infoList, item.attrType) }}
</template> </template>
</el-table-column> </el-table-column>
</template>
<el-table-column <el-table-column
:label="$t('handle')" :label="$t('handle')"
fixed="right" fixed="right"
@ -171,11 +173,11 @@ export default {
}, },
mounted () { mounted () {
window.addEventListener('resize', this.a) window.addEventListener('resize', this.a)
this.fullScreen(); this.fullScreen()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.singleTable.doLayout(); // this.$refs.singleTable.doLayout() //
//:height="qp ? '810px' : '650px'" // :height="qp ? '810px' : '650px'"
}); })
}, },
methods: { methods: {
reset () { reset () {

View File

@ -2,25 +2,25 @@
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-sys__user"> <div class="mod-sys__user">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item label="用户名">
<el-input v-model="dataForm.username" placeholder="用户名" clearable></el-input> <el-input v-model="dataForm.username" placeholder="用户名" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item label="真实姓名">
<el-input v-model="dataForm.real_name" placeholder="真实姓名" clearable></el-input> <el-input v-model="dataForm.real_name" placeholder="真实姓名" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item>
<ren-select v-model="dataForm.gender" dict-type="gender" :placeholder="$t('user.gender')"></ren-select>
</el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<el-select v-model="dataForm.postId" :placeholder="$t('user.postIdList')" clearable> <ren-select v-model="dataForm.gender" dict-type="gender" :placeholder="$t('user.gender')"></ren-select>
<el-option :label="data.postName" v-for="data in postList" :key="data.id" :value="data.id">{{ data.postName </el-form-item> -->
<el-form-item label="所属部门">
<el-select v-model="dataForm.deptId" :placeholder="$t('infrastructure.department')" clearable>
<el-option :label="data.name" v-for="data in deptList" :key="data.id" :value="data.id">{{ data.name
}}</el-option> }}</el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item>
<el-form-item> <!-- <el-form-item>
<ren-dept-tree v-model="dataForm.deptId" :placeholder="$t('dept.title')" :query="true" ref="renDeptTree"> <ren-dept-tree v-model="dataForm.deptId" :placeholder="$t('dept.title')" :query="true" ref="renDeptTree">
</ren-dept-tree> </ren-dept-tree>
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="getDataList()">{{ <el-button type="primary" @click="getDataList()">{{
$t('query') $t('query')
@ -97,7 +97,7 @@ import AddOrUpdate from './user-add-or-update'
import qs from 'qs' import qs from 'qs'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data() { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/sys/user/page', getDataListURL: '/sys/user/page',
@ -106,7 +106,7 @@ export default {
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/sys/user/export' exportURL: '/sys/user/export'
}, },
postList: [], deptList: [],
dataForm: { dataForm: {
username: '', username: '',
deptId: '', deptId: '',
@ -118,18 +118,18 @@ export default {
components: { components: {
AddOrUpdate AddOrUpdate
}, },
created() { created () {
this.getPostList() this.getDeptList()
}, },
methods: { methods: {
reset() { reset () {
this.dataForm.username = '' this.dataForm.username = ''
this.dataForm.real_name = '' this.dataForm.real_name = ''
this.dataForm.deptId = '' this.dataForm.deptId = ''
this.dataForm.postId = '' this.dataForm.postId = ''
this.dataForm.gender = '' this.dataForm.gender = ''
if (this.$refs.renDeptTree) { if (this.$refs.renDeptTree) {
this.$refs.renDeptTree.showDeptName = ''; this.$refs.renDeptTree.showDeptName = ''
} }
this.$http this.$http
.get( .get(
@ -165,16 +165,13 @@ export default {
this.dataListLoading = false this.dataListLoading = false
}) })
}, },
getPostList() { getDeptList () {
this.$http this.$http.get('/sys/dept/list').then(({ data: res }) => {
.get('/sys/post/list') if (res.code !== 0) {
.then(({ data: res }) => { return this.$message.error(res.msg)
if (res.code !== 0) { }
return this.$message.error(res.msg) this.deptList = res.data
} }).catch(() => { })
this.postList = res.data
})
.catch(() => { })
} }
} }
} }

View File

@ -88,7 +88,7 @@
</span> </span>
<div <div
class="leixingsumfather" class="leixingsumfather"
:class="!item.shrinkFlag ? 'shrink' : ''" :class="!item.shrinkFlag ? 'shrink' : 'shrink'"
> >
<div <div
v-for="(item2, index2) in item.typeList" v-for="(item2, index2) in item.typeList"
@ -108,7 +108,7 @@
</a-checkable-tag> </a-checkable-tag>
</div> </div>
</div> </div>
<div <!-- <div
class="shrinkTag" class="shrinkTag"
v-if="item.showShrink" v-if="item.showShrink"
:key="item.shrinkFlag" :key="item.shrinkFlag"
@ -121,7 +121,7 @@
v-show="item.shrinkFlag" v-show="item.shrinkFlag"
@click="changeShrink(item.name)" @click="changeShrink(item.name)"
/> />
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>

View File

@ -62,6 +62,42 @@
item.infoList.filter((val) => val.attrType == '应用图片')[0] item.infoList.filter((val) => val.attrType == '应用图片')[0]
.attrValue .attrValue
" "
:fallback="imgSrcYyzy"
/>
</div>
<div
class="left"
style="display: flex; align-items: center"
v-else-if="
(item.type === '组件服务' &&
item.infoList &&
item.infoList.filter((val) => val.attrType == '图层缩略图')[0]) ||
item.infoList.filter((val) => val.attrType == '组件图片')[0]
"
>
<a-image
v-if="
item.infoList.filter((val) => val.attrType == '图层缩略图')[0]
"
:width="106"
:preview="false"
:src="
item.infoList.filter((val) => val.attrType == '图层缩略图')[0]
.attrValue
"
:fallback="imgSrcTcfw"
/>
<a-image
v-else-if="
item.infoList.filter((val) => val.attrType == '组件图片')[0]
"
:width="106"
:preview="false"
:src="
item.infoList.filter((val) => val.attrType == '组件图片')[0]
.attrValue
"
:fallback="item.type == '开发组件' ? imgSrcKfzj : imgSrcYwzj"
/> />
</div> </div>
<div <div
@ -253,6 +289,18 @@
</div> </div>
</div> </div>
<div class="dec"> <div class="dec">
<div
v-if="
item.infoList.filter((val) => val.attrType == '组件类型')[0]
"
>
<span>
{{
item.infoList.filter((val) => val.attrType == '组件类型')[0]
.attrValue
}}
</span>
</div>
<div <div
v-if=" v-if="
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
@ -615,12 +663,12 @@
// id: item.id, // id: item.id,
// }, // },
// }); // });
// //
let pathData = { let pathData = {
path: '/details', path: '/details',
id: item.id, id: item.id,
}; }
mybus.emit('changeMenuStyle',pathData); mybus.emit('changeMenuStyle', pathData)
} }
} }
} }
@ -766,7 +814,10 @@
integrationServiceOrderDom.value.reset() integrationServiceOrderDom.value.reset()
} }
}) })
const imgSrcYyzy = ref(require('@/assets/home/yyzy_square.png'))
const imgSrcTcfw = ref(require('@/assets/home/tcfw_square.png'))
const imgSrcKfzj = ref(require('@/assets/home/kfzj_square.png'))
const imgSrcYwzj = ref(require('@/assets/home/ywzj_square.png'))
let videoUrl = ref('') let videoUrl = ref('')
const options = reactive({ const options = reactive({
width: '700px', // width: '700px', //
@ -821,8 +872,8 @@
let pathData = { let pathData = {
path: '/algorithmCompare', path: '/algorithmCompare',
id: item.id, id: item.id,
}; }
mybus.emit('changeMenuStyle',pathData); mybus.emit('changeMenuStyle', pathData)
} }
return { return {
onSearch, onSearch,
@ -847,6 +898,10 @@
integrationServiceOrderDom, integrationServiceOrderDom,
orderObj, orderObj,
getTagList, getTagList,
imgSrcYyzy,
imgSrcTcfw,
imgSrcKfzj,
imgSrcYwzj,
} }
}, },
beforeUnmount() { beforeUnmount() {
@ -857,7 +912,7 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
#search-result-list-container { #search-result-list-container {
// width: 1088px; // width: 1088px;
padding: 0 18px; padding: 0 18px;
background: #f3f5f9; background: #f3f5f9;
@ -1043,7 +1098,7 @@
.header-right:last-child { .header-right:last-child {
div { div {
// margin-right: 10px; // margin-right: 10px;
} }
} }
@ -1225,7 +1280,7 @@
.description { .description {
max-width: 990px; max-width: 990px;
// height: 52px; // height: 52px;
font-size: 14px; font-size: 14px;
line-height: 18px; line-height: 18px;
display: -webkit-box; display: -webkit-box;

View File

@ -1,77 +1,82 @@
<!--
* @Author: Light
* @Date: 2022-11-24 09:07:50
* @LastEditors: Light
* @LastEditTime: 2022-11-25 09:56:50
* @Description: 告诉大家这是什么
-->
<template> <template>
<div> <div class="detail-back" @click="goToDetailsPageconetent">
<div class="nav-box"> <!-- <div class="nav-box"> -->
<a-breadcrumb> <!-- <a-breadcrumb>
<a-breadcrumb-item @click="goToDetailsPageconetent" class="bread-crumb-span">能力集市</a-breadcrumb-item> <a-breadcrumb-item @click="goToDetailsPageconetent" class="bread-crumb-span">能力集市</a-breadcrumb-item>
<a-breadcrumb-item>{{detailName}}</a-breadcrumb-item> <a-breadcrumb-item>{{detailName}}</a-breadcrumb-item>
</a-breadcrumb> </a-breadcrumb> -->
</div> <!-- </div> -->
</div> </div>
</template> </template>
<script setup> <script setup>
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'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
const router = useRouter() const router = useRouter()
const oldValue1= ref('') const oldValue1 = ref('')
const props = defineProps({ const props = defineProps({
textColor: { type: String, default: '' }, textColor: { type: String, default: '' },
})
const previousPage = () => {
if (window.history.state.back){
window.history.go(-1)
} else{
router.push({
path: '/integrationServices',
}) })
const previousPage = () => {
if (window.history.state.back) {
window.history.go(-1)
} else {
router.push({
path: '/integrationServices',
})
}
} }
} const detailName = ref('应用资源')
const detailName = ref("应用资源")
const goToDetailsPageconetent = () =>{
let pathData = {
path: '/DetailsPageconetent',
};
mybus.emit('changeMenuStyle',pathData);
}
const goToDetailsPageconetent = () => {
let pathData = {
path: '/DetailsPageconetent',
}
mybus.emit('changeMenuStyle', pathData)
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.detail-back { .detail-back {
position: absolute; position: absolute;
top: 0.6rem; top: 1rem;
left: 100px; left: 100px;
font-size: 0.18rem; font-size: 0.18rem;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
width: 50px; width: 50px;
height: 50px; height: 50px;
//background-image: url('~@/assets/detailsAll/back.png'); background-image: url('~@/assets/detailsAll/back.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.nav-box { .nav-box {
position: absolute; position: absolute;
top: 0.6rem; top: 0.6rem;
//left: 100px; left: 100px;
font-size: 0.18rem; font-size: 0.18rem;
color: #fff; color: #fff;
height: 30px; height: 30px;
line-height:30px; line-height: 30px;
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
display: flex; display: flex;
align-items: center; align-items: center;
background: rgba(244, 245, 248, 0.8); background: rgba(244, 245, 248, 0.8);
padding-left: 145px; padding-left: 145px;
padding-top: 5px; padding-top: 5px;
.bread-crumb-span{ .bread-crumb-span {
cursor: pointer; cursor: pointer;
}
} }
}
</style> </style>

View File

@ -257,7 +257,7 @@
path: '/DetailsPageconetent', path: '/DetailsPageconetent',
query: { query: {
// select: '', // select: '',
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB select: DETAIL_PAGE_CONTENT_DEFAULT_TAB,
}, },
}) })
window.location.href = newpage.href window.location.href = newpage.href

View File

@ -125,7 +125,7 @@
if (abilityToTypeFunctionData.value == '组件服务') { if (abilityToTypeFunctionData.value == '组件服务') {
if (!componentTypeValue.value || componentTypeValue.value == '') { if (!componentTypeValue.value || componentTypeValue.value == '') {
message.error('请选择组件类型!') message.error('请选择组件类型!')
componentTypeValueOld.value='' componentTypeValueOld.value = ''
return return
} else if ( } else if (
componentTypeValue.value === '智能算法' || componentTypeValue.value === '智能算法' ||

File diff suppressed because it is too large Load Diff