合并版本v0.8.1.6
This commit is contained in:
commit
ab21f7de11
|
@ -1,8 +1,8 @@
|
|||
<!--
|
||||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-04-11 10:11:40
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-06-29 19:38:17
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-08 14:13:20
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -27,6 +27,13 @@
|
|||
>挂接</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="showPutOnTheShelf()"
|
||||
>上架</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
v-if="$hasPermission('ability:bsabilityai:delete')"
|
||||
|
@ -126,6 +133,35 @@
|
|||
></add-or-update>
|
||||
<relate-application v-if="relateApplicationVisible" ref="relateApplication" :nameArray="['未关联应用名称', '已关联应用名称']" :relateInfo="relateInfo" @isShowRelatePopup="handleIsShowRelatePopup"></relate-application>
|
||||
</div>
|
||||
<el-dialog
|
||||
title="选择组件类型"
|
||||
:visible.sync="showPutOnTheShelfFlag"
|
||||
:close-on-click-modal='false'
|
||||
:close-on-press-escape='false'
|
||||
:before-close='clear'
|
||||
width="30%">
|
||||
<el-radio v-model="radio" label="智能算法">智能算法</el-radio>
|
||||
<el-radio v-model="radio" label="图层服务">图层服务</el-radio>
|
||||
<el-radio v-model="radio" label="开发组件">开发组件</el-radio>
|
||||
<el-radio v-model="radio" label="业务组件">业务组件</el-radio>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="clear">取 消</el-button>
|
||||
<el-button type="primary" @click="showPutOnTheShelfVue">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
:title="'上架'+radio"
|
||||
:visible.sync="showPutOnTheShelfFlag2"
|
||||
:close-on-click-modal='false'
|
||||
:close-on-press-escape='false'
|
||||
:before-close='clear'
|
||||
width="50%">
|
||||
<putOnTheShelf :putOnTheShelfList='putOnTheShelfList' @changeInfoList='changeInfoList'></putOnTheShelf>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="clear">取 消</el-button>
|
||||
<el-button type="primary" @click="submitData">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
|
@ -135,10 +171,28 @@ import AddOrUpdate from './bsabilityai-add-or-update'
|
|||
import dictionaries from '@/utils/dictionaries'
|
||||
import qs from 'qs'
|
||||
import RelateApplication from './bsabilityai-relate-application.vue'
|
||||
import putOnTheShelf from '@/views/modules/putOnTheShelf'
|
||||
export default {
|
||||
mixins: [mixinViewModule],
|
||||
data () {
|
||||
return {
|
||||
insertList: [],
|
||||
putOnTheShelfList: [],
|
||||
radio: '',
|
||||
showPutOnTheShelfFlag: false,
|
||||
showPutOnTheShelfFlag2: false,
|
||||
submitFrom: {
|
||||
type: '组件服务',
|
||||
deptId: '',
|
||||
delFlag: 0,
|
||||
infoList: [
|
||||
{
|
||||
attrType: '组件类型',
|
||||
attrValue: '',
|
||||
delFlag: 0
|
||||
}
|
||||
]
|
||||
},
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/resource/page',
|
||||
getDataListIsPage: true,
|
||||
|
@ -170,7 +224,8 @@ export default {
|
|||
watch: {},
|
||||
components: {
|
||||
AddOrUpdate,
|
||||
RelateApplication
|
||||
RelateApplication,
|
||||
putOnTheShelf
|
||||
},
|
||||
created () {
|
||||
this.dataForm.name = ''
|
||||
|
@ -181,6 +236,10 @@ export default {
|
|||
this.fullScreen()
|
||||
},
|
||||
methods: {
|
||||
changeInfoList (obj) {
|
||||
this.submitFrom.infoList = this.submitFrom.infoList.filter((item) => item.attrType !== obj.attrType)
|
||||
this.submitFrom.infoList.push(obj)
|
||||
},
|
||||
reset () {
|
||||
this.$http
|
||||
.get(
|
||||
|
@ -343,6 +402,40 @@ export default {
|
|||
// 是否展示关联应用弹窗
|
||||
handleIsShowRelatePopup (type) {
|
||||
this.relateApplicationVisible = type
|
||||
},
|
||||
// 新挂载
|
||||
clear () {
|
||||
this.showPutOnTheShelfFlag = false
|
||||
this.showPutOnTheShelfFlag2 = false
|
||||
this.radio = ''
|
||||
this.submitFrom = {
|
||||
type: '组件服务',
|
||||
deptId: '',
|
||||
delFlag: 0,
|
||||
infoList: [
|
||||
{
|
||||
attrType: '组件类型',
|
||||
attrValue: '',
|
||||
delFlag: 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
showPutOnTheShelf () {
|
||||
this.showPutOnTheShelfFlag = true
|
||||
this.$http.get('/category/getCategoryTree').then(res => {
|
||||
this.insertList = res.data.data.filter(item => item.name === '组件服务一')[0]
|
||||
})
|
||||
},
|
||||
showPutOnTheShelfVue () {
|
||||
this.showPutOnTheShelfFlag = false
|
||||
this.showPutOnTheShelfFlag2 = true
|
||||
this.submitFrom.infoList[0].attrValue = this.radio
|
||||
this.putOnTheShelfList = this.insertList.children.filter(item => item.name === this.radio)[0].children
|
||||
console.log('radio', this.radio)
|
||||
},
|
||||
submitData () {
|
||||
console.log('表单数据=================>', this.submitFrom, this.putOnTheShelfList)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,9 +8,7 @@
|
|||
<template>
|
||||
<div class="management-pop">
|
||||
<div class="top">
|
||||
<a-button series="primary" @click="showAdd()">
|
||||
新增
|
||||
</a-button>
|
||||
<a-button series="primary" @click="showAdd()"> 新增 </a-button>
|
||||
<a-popconfirm
|
||||
title="是否删除选中字段?"
|
||||
okText="是"
|
||||
|
@ -25,81 +23,159 @@
|
|||
:columns="columns"
|
||||
:data-source="data"
|
||||
:expanded-row-keys.sync="expandedRowKeys"
|
||||
:pagination='false'
|
||||
:pagination="false"
|
||||
ref="aTable"
|
||||
:key="showKey"
|
||||
:scroll="{ x: 1200, y: 500 }"
|
||||
>
|
||||
<template
|
||||
v-for="col in ['name', 'isAttr', 'isLinkToDic', 'linkValue', 'isFilterCriteria', 'type', 'xh', 'operation']"
|
||||
v-for="col in [
|
||||
'name',
|
||||
'isAttr',
|
||||
'isLinkToDic',
|
||||
'linkValue',
|
||||
'isFilterCriteria',
|
||||
'type',
|
||||
'xh',
|
||||
'operation'
|
||||
]"
|
||||
:slot="col"
|
||||
slot-scope="text, record, index"
|
||||
class="text"
|
||||
>
|
||||
<div :key="col" style="display: inline-block;" v-if="col==='name'">
|
||||
<div :key="col" style="display: inline-block" v-if="col === 'name'">
|
||||
<a-input
|
||||
v-if="record.editable"
|
||||
style="margin: -5px 0"
|
||||
:value="text"
|
||||
@change="e => handleChange(e.target.value, record.key, col)"
|
||||
@change="(e) => handleChange(e.target.value, record.key, col)"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ text }}
|
||||
</template>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='isAttr'">
|
||||
<a-switch v-if="record.editable && !record.children" default-checked @change="isAttrOnChange" :checked="text" />
|
||||
<div
|
||||
:key="col"
|
||||
style="display: inline-block"
|
||||
v-else-if="col === 'isAttr'"
|
||||
>
|
||||
<a-switch
|
||||
v-if="record.editable && !record.children"
|
||||
default-checked
|
||||
@change="isAttrOnChange"
|
||||
:checked="text"
|
||||
/>
|
||||
<template v-else>
|
||||
<a-switch default-checked :disabled='disabled' :checked="text" />
|
||||
<a-switch default-checked :disabled="disabled" :checked="text" />
|
||||
</template>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='isLinkToDic'">
|
||||
<a-switch v-if="record.editable && record.isAttr" default-checked @change="isLinkToDicOnChange" :checked="text" />
|
||||
<div
|
||||
:key="col"
|
||||
style="display: inline-block"
|
||||
v-else-if="col === 'isLinkToDic'"
|
||||
>
|
||||
<a-switch
|
||||
v-if="record.editable && record.isAttr"
|
||||
default-checked
|
||||
@change="isLinkToDicOnChange"
|
||||
:checked="text"
|
||||
/>
|
||||
<template v-else>
|
||||
<a-switch default-checked :disabled='disabled' :checked="text" />
|
||||
<a-switch default-checked :disabled="disabled" :checked="text" />
|
||||
</template>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='linkValue'">
|
||||
<a-select :defaultValue="text" style="width: 150px" @change="linkValueHandleChange" :disabled='(record.editable && record.isLinkToDic)?!disabled:disabled'>
|
||||
<div
|
||||
:key="col"
|
||||
style="display: inline-block"
|
||||
v-else-if="col === 'linkValue'"
|
||||
>
|
||||
<a-select
|
||||
:defaultValue="text"
|
||||
style="width: 150px"
|
||||
@change="linkValueHandleChange"
|
||||
:disabled="
|
||||
record.editable && record.isLinkToDic ? !disabled : disabled
|
||||
"
|
||||
>
|
||||
<a-select-option :value="val.id" v-for="val in zdList" :key="val">
|
||||
{{ val.dictName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='isFilterCriteria'">
|
||||
<a-switch v-if="record.editable && record.linkValue" default-checked @change="isFilterCriteriaOnChange" :checked="text" />
|
||||
<div
|
||||
:key="col"
|
||||
style="display: inline-block"
|
||||
v-else-if="col === 'isFilterCriteria'"
|
||||
>
|
||||
<a-switch
|
||||
v-if="record.editable && record.linkValue"
|
||||
default-checked
|
||||
@change="isFilterCriteriaOnChange"
|
||||
:checked="text"
|
||||
/>
|
||||
<template v-else>
|
||||
<a-switch default-checked :disabled='disabled' :checked="text" />
|
||||
<a-switch default-checked :disabled="disabled" :checked="text" />
|
||||
</template>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='type'">
|
||||
<a-select :defaultValue="text" style="width: 150px" @change="typeHandleChange" :disabled='(record.editable && !record.children)?!disabled:disabled'>
|
||||
<a-select-option :value="val.dictValue" v-for="val in fieldTypeList" :key="val">
|
||||
<div
|
||||
:key="col"
|
||||
style="display: inline-block"
|
||||
v-else-if="col === 'type'"
|
||||
>
|
||||
<a-select
|
||||
:defaultValue="text"
|
||||
style="width: 150px"
|
||||
@change="typeHandleChange"
|
||||
:disabled="
|
||||
record.editable && !record.children ? !disabled : disabled
|
||||
"
|
||||
>
|
||||
<a-select-option
|
||||
:value="val.dictValue"
|
||||
v-for="val in fieldTypeList"
|
||||
:key="val"
|
||||
>
|
||||
{{ val.dictLabel }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
<div :key="col" style="display: inline-block;" v-else-if="col==='xh'">
|
||||
<div :key="col" style="display: inline-block" v-else-if="col === 'xh'">
|
||||
<a-input
|
||||
v-if="record.editable"
|
||||
style="margin: -5px 0"
|
||||
:value="text"
|
||||
@change="e => handleChange(e.target.value, record.key, col)"
|
||||
@change="(e) => handleChange(e.target.value, record.key, col)"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ text }}
|
||||
</template>
|
||||
</div>
|
||||
<div :key="col" class="editable-row-operations" v-else-if="col==='operation'">
|
||||
<div
|
||||
:key="col"
|
||||
class="editable-row-operations"
|
||||
v-else-if="col === 'operation'"
|
||||
>
|
||||
<span v-if="record.editable">
|
||||
<a @click="() => save(record.key)">保存</a>
|
||||
<a-popconfirm title="是否取消修改?" @confirm="() => cancel(record.key)" okText='是' cancelText='否'>
|
||||
<a-popconfirm
|
||||
title="是否取消修改?"
|
||||
@confirm="() => cancel(record.key)"
|
||||
okText="是"
|
||||
cancelText="否"
|
||||
>
|
||||
<a>取消</a>
|
||||
</a-popconfirm>
|
||||
</span>
|
||||
<span v-else>
|
||||
<a :disabled="editingKey !== ''" @click="() => add(record.id,record.children)" v-if="!record.isAttr&&record.cengji<=3">新增</a>
|
||||
<a :disabled="editingKey !== ''" @click="() => edit(record.key)">修改</a>
|
||||
<a
|
||||
:disabled="editingKey !== ''"
|
||||
@click="() => add(record.id, record.children)"
|
||||
v-if="!record.isAttr && record.cengji <= 3"
|
||||
>新增</a
|
||||
>
|
||||
<a :disabled="editingKey !== ''" @click="() => edit(record.key)"
|
||||
>修改</a
|
||||
>
|
||||
<a-popconfirm
|
||||
title="是否确定删除?"
|
||||
okText="是"
|
||||
|
@ -184,9 +260,7 @@ const columns = [
|
|||
]
|
||||
const data = []
|
||||
export default {
|
||||
components: {
|
||||
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
showItem: {
|
||||
type: Object,
|
||||
|
@ -198,7 +272,7 @@ export default {
|
|||
}
|
||||
},
|
||||
data () {
|
||||
this.cacheData = data.map(item => ({ ...item }))
|
||||
this.cacheData = data.map((item) => ({ ...item }))
|
||||
return {
|
||||
time: true,
|
||||
showKey: 0,
|
||||
|
@ -217,19 +291,27 @@ export default {
|
|||
editingKey: '',
|
||||
rowSelection: {
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows)
|
||||
console.log(
|
||||
`selectedRowKeys: ${selectedRowKeys}`,
|
||||
'selectedRows: ',
|
||||
selectedRows
|
||||
)
|
||||
this.delList = []
|
||||
if (selectedRows) {
|
||||
selectedRows.forEach((val) => {
|
||||
this.delList.push(val.key)
|
||||
})
|
||||
}
|
||||
console.log('delList================>', this.expandedRowKeys, this.delList)
|
||||
console.log(
|
||||
'delList================>',
|
||||
this.expandedRowKeys,
|
||||
this.delList
|
||||
)
|
||||
},
|
||||
onSelect: (record, selected, selectedRows) => {
|
||||
console.log(record, selected, selectedRows)
|
||||
if (record.children) {
|
||||
record.children.forEach(item => {
|
||||
record.children.forEach((item) => {
|
||||
this.delList.push(item.key)
|
||||
})
|
||||
}
|
||||
|
@ -258,81 +340,16 @@ export default {
|
|||
},
|
||||
// 查询所有编目
|
||||
getCategoryTree () {
|
||||
this.$http.get('/category/getCategoryTree').then(res => {
|
||||
console.log(res.data.data, this.index)
|
||||
this.$http.get('/category/getCategoryTree').then((res) => {
|
||||
res.data.data.map((item, indexFather) => {
|
||||
if (item.id === this.showItem.id) {
|
||||
this.index = indexFather
|
||||
}
|
||||
})
|
||||
this.data = []
|
||||
if (res.data.data[this.index].children) {
|
||||
res.data.data[this.index].children.forEach(val => {
|
||||
res.data.data[this.index].children.forEach((val) => {
|
||||
this.initData(val, this.cengji)
|
||||
// if (val.children) {
|
||||
// if (val.children.length === 0) {
|
||||
// delete val.children
|
||||
// } else {
|
||||
// val.children.forEach(item => {
|
||||
// item.key = item.id
|
||||
// item.cengji = '2'
|
||||
// console.log(item)
|
||||
// if (item.children && item.children.length === 0) {
|
||||
// delete item.children
|
||||
// } else if (item.children) {
|
||||
// item.children.forEach(child => {
|
||||
// child.key = child.id
|
||||
// child.cengji = '3'
|
||||
// if (child.children && child.children.length === 0) {
|
||||
// delete child.children
|
||||
// }
|
||||
// if (child.isAttr === 'true') {
|
||||
// child.isAttr = true
|
||||
// } else if (child.isAttr === 'false') {
|
||||
// child.isAttr = false
|
||||
// }
|
||||
// if (child.isFilterCriteria === 'true') {
|
||||
// child.isFilterCriteria = true
|
||||
// } else if (child.isFilterCriteria === 'false') {
|
||||
// child.isFilterCriteria = false
|
||||
// }
|
||||
// if (child.isLinkToDic === 'true') {
|
||||
// child.isLinkToDic = true
|
||||
// } else if (child.isLinkToDic === 'false') {
|
||||
// child.isLinkToDic = false
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// if (item.isAttr === 'true') {
|
||||
// item.isAttr = true
|
||||
// } else if (item.isAttr === 'false') {
|
||||
// item.isAttr = false
|
||||
// }
|
||||
// if (item.isFilterCriteria === 'true') {
|
||||
// item.isFilterCriteria = true
|
||||
// } else if (item.isFilterCriteria === 'false') {
|
||||
// item.isFilterCriteria = false
|
||||
// }
|
||||
// if (item.isLinkToDic === 'true') {
|
||||
// item.isLinkToDic = true
|
||||
// } else if (item.isLinkToDic === 'false') {
|
||||
// item.isLinkToDic = false
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// val.key = val.id
|
||||
// val.cengji = '1'
|
||||
// if (val.isAttr === 'true') {
|
||||
// val.isAttr = true
|
||||
// } else if (val.isAttr === 'false') {
|
||||
// val.isAttr = false
|
||||
// }
|
||||
// if (val.isFilterCriteria === 'true') {
|
||||
// val.isFilterCriteria = true
|
||||
// } else if (val.isFilterCriteria === 'false') {
|
||||
// val.isFilterCriteria = false
|
||||
// }
|
||||
// if (val.isLinkToDic === 'true') {
|
||||
// val.isLinkToDic = true
|
||||
// } else if (val.isLinkToDic === 'false') {
|
||||
// val.isLinkToDic = false
|
||||
// }
|
||||
})
|
||||
this.data = res.data.data[this.index].children
|
||||
console.log('data======================>', this.data)
|
||||
|
@ -365,7 +382,7 @@ export default {
|
|||
delete data.children
|
||||
} else {
|
||||
cengji++
|
||||
data.children.forEach(item => {
|
||||
data.children.forEach((item) => {
|
||||
this.initData(item, cengji)
|
||||
})
|
||||
}
|
||||
|
@ -373,14 +390,18 @@ export default {
|
|||
},
|
||||
// 查询所有字典
|
||||
selectZd () {
|
||||
this.$http.get('/sys/dict/type/page?limit=10000&page=1').then(res => {
|
||||
this.$http.get('/sys/dict/type/page?limit=10000&page=1').then((res) => {
|
||||
this.zdList = res.data.data.list
|
||||
console.log(this.zdList)
|
||||
})
|
||||
},
|
||||
// 查询表单类型字典
|
||||
selectFieldType () {
|
||||
this.$http.get('/sys/dict/data/page?limit=10000&page=1&dictTypeId=1531163741457014785').then(res => {
|
||||
this.$http
|
||||
.get(
|
||||
'/sys/dict/data/page?limit=10000&page=1&dictTypeId=1531163741457014785'
|
||||
)
|
||||
.then((res) => {
|
||||
this.fieldTypeList = res.data.data.list
|
||||
console.log(this.fieldTypeList)
|
||||
})
|
||||
|
@ -408,7 +429,8 @@ export default {
|
|||
// 新增编目
|
||||
handleOk () {
|
||||
if (this.nameTxt) {
|
||||
this.$http.post('/category/insert', {
|
||||
this.$http
|
||||
.post('/category/insert', {
|
||||
isAttr: true,
|
||||
isFilterCriteria: false,
|
||||
isLinkToDic: false,
|
||||
|
@ -418,7 +440,8 @@ export default {
|
|||
rootCategory: this.rootCategory,
|
||||
type: 'input',
|
||||
xh: this.px || this.data.length + 1
|
||||
}).then(res => {
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
this.visible = false
|
||||
this.nameTxt = ''
|
||||
|
@ -429,18 +452,19 @@ export default {
|
|||
},
|
||||
// 批量删除
|
||||
confirmDel () {
|
||||
this.$http.post('/category/deleteById', { ids: this.delList }).then(res => {
|
||||
this.$http
|
||||
.post('/category/deleteById', { ids: this.delList })
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
// 取消修改
|
||||
cancelDel () {
|
||||
},
|
||||
cancelDel () {},
|
||||
handleChange (value, key, column) {
|
||||
const newData = [...this.data]
|
||||
this.editData = {}
|
||||
newData.forEach(val => {
|
||||
newData.forEach((val) => {
|
||||
this.handleChangeFor(val, key)
|
||||
})
|
||||
if (this.editData) {
|
||||
|
@ -454,7 +478,7 @@ export default {
|
|||
this.editData = val
|
||||
} else {
|
||||
if (val.children) {
|
||||
val.children.forEach(item => {
|
||||
val.children.forEach((item) => {
|
||||
this.handleChangeFor(item, key)
|
||||
})
|
||||
}
|
||||
|
@ -495,7 +519,7 @@ export default {
|
|||
}
|
||||
},
|
||||
editFor (data, key) {
|
||||
data.forEach(val => {
|
||||
data.forEach((val) => {
|
||||
if (val.key === key) {
|
||||
this.editData = val
|
||||
} else {
|
||||
|
@ -515,7 +539,7 @@ export default {
|
|||
})
|
||||
} else {
|
||||
this.flag = false
|
||||
this.$http.post('/category/update', this.editData).then(res => {
|
||||
this.$http.post('/category/update', this.editData).then((res) => {
|
||||
console.log(res)
|
||||
this.editingKey = ''
|
||||
this.init()
|
||||
|
@ -586,12 +610,12 @@ export default {
|
|||
// }
|
||||
// })
|
||||
}
|
||||
this.$http.post('/category/deleteById', { ids: arr }).then(res => {
|
||||
this.$http.post('/category/deleteById', { ids: arr }).then((res) => {
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
delFor (data, arr) {
|
||||
data.forEach(val => {
|
||||
data.forEach((val) => {
|
||||
arr.push(val.id)
|
||||
if (val.children) {
|
||||
this.delFor(val.children, arr)
|
||||
|
@ -601,7 +625,7 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
<style lang="scss" scoped>
|
||||
.top {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
|
|
@ -24,7 +24,9 @@
|
|||
<div
|
||||
class="resource-detail-wrap"
|
||||
:style="{
|
||||
backgroundImage: `url(${topicCardBgImg(slotProps.item.positionNum)})`,
|
||||
backgroundImage: `url(${topicCardBgImg(
|
||||
slotProps.item.positionNum
|
||||
)})`
|
||||
}"
|
||||
>
|
||||
<!-- 企业标题 -->
|
||||
|
@ -36,11 +38,17 @@
|
|||
<input
|
||||
v-model="slotProps.item.name"
|
||||
class="edit-enterprise-input"
|
||||
>
|
||||
/>
|
||||
</div>
|
||||
<!-- 专题资源列表 -->
|
||||
<div class="resource-detail-resource">
|
||||
<div class="num" v-for="item2 in slotProps.item.children" :key="item2.id">{{ item2.name }}</div>
|
||||
<div
|
||||
class="num"
|
||||
v-for="item2 in slotProps.item.children"
|
||||
:key="item2.id"
|
||||
>
|
||||
{{ item2.name }}
|
||||
</div>
|
||||
<!-- <span class="unit">个</span> -->
|
||||
</div>
|
||||
<!-- 删除资源按钮 -->
|
||||
|
@ -48,7 +56,9 @@
|
|||
<i
|
||||
v-if="isRemoveCard"
|
||||
class="resource-detail-remove"
|
||||
@click.stop="removeEnterpriseCard(slotProps.item,slotProps.index)"
|
||||
@click.stop="
|
||||
removeEnterpriseCard(slotProps.item, slotProps.index)
|
||||
"
|
||||
/>
|
||||
</transition>
|
||||
</div>
|
||||
|
@ -61,7 +71,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<span @click.stop="editTopicCard">{{
|
||||
isRemoveCard ? "完成" : "编辑"
|
||||
isRemoveCard ? '完成' : '编辑'
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -75,7 +85,7 @@
|
|||
:style="{
|
||||
top: cardAddTop,
|
||||
left: cardAddLeft,
|
||||
backgroundImage: `url(${addCardBgImg})`,
|
||||
backgroundImage: `url(${addCardBgImg})`
|
||||
}"
|
||||
>
|
||||
<div v-if="!isAddCard">
|
||||
|
@ -88,7 +98,7 @@
|
|||
v-model="addEnterpriseName"
|
||||
class="add-enterprise-input"
|
||||
placeholder="请输入目录名称"
|
||||
>
|
||||
/>
|
||||
</div>
|
||||
<div class="add-enterprise-button-wrap">
|
||||
<el-button
|
||||
|
@ -109,24 +119,26 @@
|
|||
</div>
|
||||
</transition>
|
||||
<!-- 卡片覆盖层-->
|
||||
<div class="enterprise-card-cover" :style="{ zIndex: topicCoverZIndex||1000 }">
|
||||
<div
|
||||
class="enterprise-card-cover"
|
||||
:style="{ zIndex: topicCoverZIndex || 1000 }"
|
||||
>
|
||||
<div
|
||||
v-for="(item, index) in topicList"
|
||||
:key="index"
|
||||
@click="test(item, index)"
|
||||
>
|
||||
</div>
|
||||
></div>
|
||||
</div>
|
||||
<a-modal
|
||||
:visible="show"
|
||||
title="编目配置"
|
||||
@ok.stop="handleOk"
|
||||
@cancel.stop="handleCancel"
|
||||
:footer='null'
|
||||
:footer="null"
|
||||
:key="showKey"
|
||||
width="1200px"
|
||||
>
|
||||
<ManagementPop :showItem="showItem" :index='index'></ManagementPop>
|
||||
<ManagementPop :showItem="showItem" :index="index"></ManagementPop>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -147,7 +159,8 @@ export default {
|
|||
ManagementPop
|
||||
},
|
||||
props: {
|
||||
enterpriseTypeOption: { // 企业类型字典值
|
||||
enterpriseTypeOption: {
|
||||
// 企业类型字典值
|
||||
type: Array,
|
||||
default: () => {
|
||||
return []
|
||||
|
@ -161,6 +174,7 @@ export default {
|
|||
index: -1,
|
||||
pid: '',
|
||||
showKey: 0,
|
||||
showItem: {},
|
||||
oldId: -1,
|
||||
isShowEdit: true,
|
||||
oldIdList: [],
|
||||
|
@ -169,8 +183,7 @@ export default {
|
|||
cardInsideWidth: 360, // 卡片的宽度
|
||||
cardOutsideHeight: 198, // 卡片组件的高度
|
||||
cardInsideHeight: 176, // 卡片的高度
|
||||
topicList: [
|
||||
],
|
||||
topicList: [],
|
||||
newGroupName: {
|
||||
// 修改后的企业新名称
|
||||
cur: []
|
||||
|
@ -271,7 +284,9 @@ export default {
|
|||
},
|
||||
// 初始化卡片列表
|
||||
async initTopicCardList () {
|
||||
this.$http.get('/category/getCategoryTree').then(({ data: res }) => {
|
||||
this.$http
|
||||
.get('/category/getCategoryTree')
|
||||
.then(({ data: res }) => {
|
||||
// 首先对后端返回的数据进行排序,这是为了方便进行卡片排序
|
||||
this.oldIdList = res.data
|
||||
res.data.sort((a, b) => a.sortIndex - b.sortIndex)
|
||||
|
@ -285,7 +300,7 @@ export default {
|
|||
if (this.selectIndex !== -1) {
|
||||
console.log('showItem=============>', res.data[this.selectIndex])
|
||||
if (res.data[this.selectIndex].children) {
|
||||
res.data[this.selectIndex].children.forEach(val => {
|
||||
res.data[this.selectIndex].children.forEach((val) => {
|
||||
val.key = val.id
|
||||
if (val.isAttr === 'true') {
|
||||
val.isAttr = true
|
||||
|
@ -308,7 +323,8 @@ export default {
|
|||
this.showItem = res.data[this.selectIndex]
|
||||
}
|
||||
this.cardNum = this.topicList.length
|
||||
}).catch(() => {})
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
// 卡片开始拖拽前的方法
|
||||
startDrag () {},
|
||||
|
@ -348,7 +364,9 @@ export default {
|
|||
const params = {
|
||||
ids: letid
|
||||
}
|
||||
this.$http.post('/category/deleteById', params).then(({ data: res }) => {
|
||||
this.$http
|
||||
.post('/category/deleteById', params)
|
||||
.then(({ data: res }) => {
|
||||
let removeIndex = 0
|
||||
this.topicList.forEach((enterprise, index) => {
|
||||
if (
|
||||
|
@ -395,7 +413,9 @@ export default {
|
|||
id: item.id.slice(5),
|
||||
name: item.name
|
||||
}
|
||||
this.$http.post('/category/update', params).then(({ data: res }) => {
|
||||
this.$http
|
||||
.post('/category/update', params)
|
||||
.then(({ data: res }) => {
|
||||
item.name = newGroupName
|
||||
})
|
||||
.catch((e) => {
|
||||
|
@ -437,7 +457,9 @@ export default {
|
|||
linkValue: '',
|
||||
xh: this.topicList.length + 1
|
||||
}
|
||||
const response = this.$http.post('/category/insert', params).then(({ data: res }) => {
|
||||
const response = this.$http
|
||||
.post('/category/insert', params)
|
||||
.then(({ data: res }) => {
|
||||
if (res.code !== 0) {
|
||||
console.log('response.code', res)
|
||||
this.$message.error('新增目录失败,请联系管理员!')
|
||||
|
@ -548,7 +570,7 @@ export default {
|
|||
height: 28px;
|
||||
margin-left: 14px;
|
||||
margin-top: 9px;
|
||||
background-image: url("~@/assets/img/capabilityCatalogingManagement/edit-card.png");
|
||||
background-image: url('~@/assets/img/capabilityCatalogingManagement/edit-card.png');
|
||||
}
|
||||
}
|
||||
div:nth-child(2) {
|
||||
|
@ -587,7 +609,7 @@ export default {
|
|||
left: 50%;
|
||||
margin-left: -45.5px;
|
||||
margin-top: -45.5px;
|
||||
background-image: url("~@/assets/img/capabilityCatalogingManagement/add.png");
|
||||
background-image: url('~@/assets/img/capabilityCatalogingManagement/add.png');
|
||||
cursor: pointer;
|
||||
}
|
||||
> span {
|
||||
|
@ -596,7 +618,7 @@ export default {
|
|||
padding-top: 5px;
|
||||
padding-left: 20px;
|
||||
font-size: 26px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
}
|
||||
.add-enterprise-input-wrap {
|
||||
// height: 50px;
|
||||
|
@ -634,7 +656,7 @@ export default {
|
|||
background: #0fa7f6;
|
||||
span {
|
||||
color: #ffffff;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
@ -682,7 +704,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
}
|
||||
span:nth-child(2) {
|
||||
display: inline-block;
|
||||
|
@ -691,7 +713,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
padding-top: 4px;
|
||||
margin-top: 15px;
|
||||
|
@ -702,7 +724,7 @@ export default {
|
|||
.enterprise-card-tip-first:before,
|
||||
.enterprise-card-tip-first:after {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
content: ' ';
|
||||
top: 32px;
|
||||
left: -16px;
|
||||
display: block;
|
||||
|
@ -730,7 +752,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
}
|
||||
span:nth-child(2) {
|
||||
display: inline-block;
|
||||
|
@ -739,7 +761,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
padding-top: 4px;
|
||||
margin-top: 15px;
|
||||
|
@ -750,7 +772,7 @@ export default {
|
|||
.enterprise-card-tip-third:before,
|
||||
.enterprise-card-tip-third:after {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
content: ' ';
|
||||
top: 32px;
|
||||
left: 180px;
|
||||
display: block;
|
||||
|
@ -779,7 +801,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
}
|
||||
span:nth-child(2) {
|
||||
display: inline-block;
|
||||
|
@ -788,7 +810,7 @@ export default {
|
|||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
padding-top: 4px;
|
||||
margin-top: 15px;
|
||||
|
@ -799,7 +821,7 @@ export default {
|
|||
.enterprise-card-tip-second:before,
|
||||
.enterprise-card-tip-second:after {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
content: ' ';
|
||||
top: -15px;
|
||||
left: 78px;
|
||||
display: block;
|
||||
|
@ -814,7 +836,7 @@ export default {
|
|||
width: 100%;
|
||||
// height: 373px;
|
||||
height: 176px;
|
||||
background-image: url("~@/assets/img/capabilityCatalogingManagement/small-card-orange.png");
|
||||
background-image: url('~@/assets/img/capabilityCatalogingManagement/small-card-orange.png');
|
||||
.resource-detail-title {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
|
@ -826,7 +848,7 @@ export default {
|
|||
span {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
|
@ -845,7 +867,7 @@ export default {
|
|||
width: 100%;
|
||||
height: 30px;
|
||||
padding-left: 19px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
vertical-align: middle;
|
||||
|
@ -877,7 +899,7 @@ export default {
|
|||
position: absolute;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background-image: url("~@/assets/img/capabilityCatalogingManagement/remove.png");
|
||||
background-image: url('~@/assets/img/capabilityCatalogingManagement/remove.png');
|
||||
top: 0;
|
||||
right: 0;
|
||||
cursor: pointer;
|
||||
|
@ -886,7 +908,7 @@ export default {
|
|||
}
|
||||
input::-webkit-input-placeholder {
|
||||
font-size: 14px;
|
||||
font-family: "Microsoft YaHei";
|
||||
font-family: 'Microsoft YaHei';
|
||||
color: #999999;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,96 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-07-08 14:55:19
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-08 17:23:58
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<template>
|
||||
<el-upload
|
||||
ref='my-upload'
|
||||
:action="apiURL"
|
||||
:accept='accept'
|
||||
:on-change='handleChange'
|
||||
:on-preview="handlePreview"
|
||||
:on-remove="handleRemove"
|
||||
:limit="maxCount"
|
||||
:file-list="fileList">
|
||||
<el-button>上传{{type}}</el-button>
|
||||
<div slot="tip" class="el-upload__tip">{{tip}}</div>
|
||||
</el-upload>
|
||||
</template>
|
||||
<script>
|
||||
import Cookies from 'js-cookie'
|
||||
export default {
|
||||
name: '',
|
||||
components: {
|
||||
|
||||
},
|
||||
props: {
|
||||
title: String,
|
||||
accept: String,
|
||||
btnName: String,
|
||||
type: String,
|
||||
tip: String,
|
||||
maxCount: Number,
|
||||
data: Array,
|
||||
list: Array,
|
||||
emitFlag: String,
|
||||
busType: Number
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
apiURL: window.SITE_CONFIG.apiURL + '/upload?token=' + Cookies.get('ucsToken'),
|
||||
fileList: JSON.parse(JSON.stringify(this.list))
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleExceed (file) {
|
||||
console.log(file)
|
||||
},
|
||||
handError (err, file, fileList) {
|
||||
console.log(err, file, fileList)
|
||||
},
|
||||
handlePreview (file) {
|
||||
console.log(file)
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(file.response.data))
|
||||
)
|
||||
},
|
||||
handleChange (file, fileList) {
|
||||
console.log(file, fileList)
|
||||
if (file.status === 'success') {
|
||||
if (file.response.msg === 'success') {
|
||||
this.$message({
|
||||
message: file.name + '上传成功',
|
||||
type: 'success'
|
||||
})
|
||||
// this.data.note1 = file.response.data
|
||||
this.$emit('changeInfoList', {
|
||||
attrType: this.title,
|
||||
attrValue: file.response.data,
|
||||
delFlag: 0
|
||||
})
|
||||
} else {
|
||||
this.$message.error(file.name + '上传失败')
|
||||
this.$refs['my-upload'].clearFiles()
|
||||
}
|
||||
} else if (file.status === 'error') {
|
||||
this.$message.error(file.name + '上传失败')
|
||||
this.$refs['my-upload'].clearFiles()
|
||||
}
|
||||
},
|
||||
handleRemove (file) {
|
||||
this.$emit('changeInfoList', {
|
||||
attrType: this.title,
|
||||
attrValue: '',
|
||||
delFlag: 0
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
</style>
|
|
@ -0,0 +1,142 @@
|
|||
<!-- 已办任务-能力资源上架 -->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.processDefinitionId"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="startUserName"
|
||||
:label="$t('process.user')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column :label="$t('process.system')" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row && scope.row.resourceName||scope.row.params && scope.row.params.undercarriageReason}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="resourceName"
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processInstanceId"
|
||||
:label="$t('running.id')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionVersion"
|
||||
:label="$t('process.processDefinitionVersion')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="startTime"
|
||||
:label="$t('process.startTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
:label="$t('process.endTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="showDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
import qs from 'qs'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/his/getMyHandledInstancePage',
|
||||
getDataListIsPage: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
processDefinitionId: '',
|
||||
processDefinitionKey: 'resourcemountapply'
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
showDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,142 @@
|
|||
<!-- 已办任务-能力资源下架 -->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.processDefinitionId"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="startUserName"
|
||||
:label="$t('process.user')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column :label="$t('process.system')" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row && scope.row.resourceName||scope.row.params && scope.row.params.undercarriageReason}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="resourceName"
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processInstanceId"
|
||||
:label="$t('running.id')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionVersion"
|
||||
:label="$t('process.processDefinitionVersion')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="startTime"
|
||||
:label="$t('process.startTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
:label="$t('process.endTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="showDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
import qs from 'qs'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/his/getMyHandledInstancePage',
|
||||
getDataListIsPage: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
processDefinitionId: '',
|
||||
processDefinitionKey: 'resourcundercarriageapply'
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
showDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,142 @@
|
|||
<!-- 已办任务-能力需求申请 -->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.processDefinitionId"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="startUserName"
|
||||
:label="$t('process.user')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column :label="$t('process.system')" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row && scope.row.resourceName||scope.row.params && scope.row.params.undercarriageReason}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="resourceName"
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processInstanceId"
|
||||
:label="$t('running.id')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionVersion"
|
||||
:label="$t('process.processDefinitionVersion')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="startTime"
|
||||
:label="$t('process.startTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
:label="$t('process.endTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="showDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
import qs from 'qs'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/his/getMyHandledInstancePage',
|
||||
getDataListIsPage: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
processDefinitionId: '',
|
||||
processDefinitionKey: 'abilitydemandapply'
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
showDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,142 @@
|
|||
<!-- 已办任务-评论审核 -->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.processDefinitionId"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="startUserName"
|
||||
:label="$t('process.user')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column :label="$t('process.system')" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row && scope.row.resourceName||scope.row.params && scope.row.params.undercarriageReason}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="resourceName"
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processInstanceId"
|
||||
:label="$t('running.id')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionVersion"
|
||||
:label="$t('process.processDefinitionVersion')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="startTime"
|
||||
:label="$t('process.startTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
:label="$t('process.endTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="showDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
import qs from 'qs'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/his/getMyHandledInstancePage',
|
||||
getDataListIsPage: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
processDefinitionId: '',
|
||||
processDefinitionKey: 'comment_review'
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
showDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,142 @@
|
|||
<!-- 已办任务-能力申请 -->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.processDefinitionId"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="startUserName"
|
||||
:label="$t('process.user')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column :label="$t('process.system')" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row && scope.row.resourceName||scope.row.params && scope.row.params.undercarriageReason}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="resourceName"
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processInstanceId"
|
||||
:label="$t('running.id')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="processDefinitionVersion"
|
||||
:label="$t('process.processDefinitionVersion')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="startTime"
|
||||
:label="$t('process.startTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
:label="$t('process.endTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="showDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
import qs from 'qs'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/his/getMyHandledInstancePage',
|
||||
getDataListIsPage: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
processDefinitionId: '',
|
||||
processDefinitionKey: 'abilityprocess_v2'
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
showDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,170 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-27 11:27:22
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-29 16:31:26
|
||||
* @Description: "能力资源上架"
|
||||
-->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.taskName"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50"
|
||||
></el-table-column>
|
||||
<el-table-column label="申请人" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.user) ||
|
||||
(scope.row.params && scope.row.params.applyUserName) ||
|
||||
(scope.row.params && scope.row.params.userName) ||
|
||||
(scope.row.params && scope.row.params.undercarriageUserName) ||
|
||||
(scope.row.params && scope.row.params.name)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.system) ||
|
||||
(scope.row.params && scope.row.params.demandSubject) ||
|
||||
(scope.row.params &&
|
||||
scope.row.params.resourceDTO &&
|
||||
scope.row.params.resourceDTO.name) ||
|
||||
(scope.row.params && scope.row.params.undercarriageReason) ||
|
||||
(scope.row.params && scope.row.params.comment)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
||||
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="taskName"
|
||||
:label="$t('process.taskName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column prop="startTime" :label="$t('process.startTime')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
:label="$t('process.createTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:processInstanceId="processInstanceId"
|
||||
@click="taskHandle(scope.row)"
|
||||
>{{ $t('manage') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="taskDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/task/myToDoTaskPage',
|
||||
getDataListIsPage: true,
|
||||
activatedIsNeed: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
taskName: '',
|
||||
taskId: '',
|
||||
processDefinitionKey: 'resourcemountapply'
|
||||
},
|
||||
processInstanceId: ''
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
// 处理
|
||||
taskHandle (row) {
|
||||
console.log('row======================>', row, this.forwardHandleUrl)
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.businessKeyError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardHandleUrl)
|
||||
},
|
||||
taskDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardTaskDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,170 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-27 11:27:22
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-29 16:31:26
|
||||
* @Description: "能力资源下架"
|
||||
-->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.taskName"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50"
|
||||
></el-table-column>
|
||||
<el-table-column label="申请人" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.user) ||
|
||||
(scope.row.params && scope.row.params.applyUserName) ||
|
||||
(scope.row.params && scope.row.params.userName) ||
|
||||
(scope.row.params && scope.row.params.undercarriageUserName) ||
|
||||
(scope.row.params && scope.row.params.name)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.system) ||
|
||||
(scope.row.params && scope.row.params.demandSubject) ||
|
||||
(scope.row.params &&
|
||||
scope.row.params.resourceDTO &&
|
||||
scope.row.params.resourceDTO.name) ||
|
||||
(scope.row.params && scope.row.params.undercarriageReason) ||
|
||||
(scope.row.params && scope.row.params.comment)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
||||
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="taskName"
|
||||
:label="$t('process.taskName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column prop="startTime" :label="$t('process.startTime')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
:label="$t('process.createTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:processInstanceId="processInstanceId"
|
||||
@click="taskHandle(scope.row)"
|
||||
>{{ $t('manage') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="taskDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/task/myToDoTaskPage',
|
||||
getDataListIsPage: true,
|
||||
activatedIsNeed: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
taskName: '',
|
||||
taskId: '',
|
||||
processDefinitionKey: 'resourcundercarriageapply'
|
||||
},
|
||||
processInstanceId: ''
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
// 处理
|
||||
taskHandle (row) {
|
||||
console.log('row======================>', row, this.forwardHandleUrl)
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.businessKeyError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardHandleUrl)
|
||||
},
|
||||
taskDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardTaskDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,170 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-27 11:27:22
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-29 16:31:26
|
||||
* @Description: "能力需求申请"
|
||||
-->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.taskName"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50"
|
||||
></el-table-column>
|
||||
<el-table-column label="申请人" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.user) ||
|
||||
(scope.row.params && scope.row.params.applyUserName) ||
|
||||
(scope.row.params && scope.row.params.userName) ||
|
||||
(scope.row.params && scope.row.params.undercarriageUserName) ||
|
||||
(scope.row.params && scope.row.params.name)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.system) ||
|
||||
(scope.row.params && scope.row.params.demandSubject) ||
|
||||
(scope.row.params &&
|
||||
scope.row.params.resourceDTO &&
|
||||
scope.row.params.resourceDTO.name) ||
|
||||
(scope.row.params && scope.row.params.undercarriageReason) ||
|
||||
(scope.row.params && scope.row.params.comment)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
||||
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="taskName"
|
||||
:label="$t('process.taskName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column prop="startTime" :label="$t('process.startTime')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
:label="$t('process.createTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:processInstanceId="processInstanceId"
|
||||
@click="taskHandle(scope.row)"
|
||||
>{{ $t('manage') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="taskDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/task/myToDoTaskPage',
|
||||
getDataListIsPage: true,
|
||||
activatedIsNeed: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
taskName: '',
|
||||
taskId: '',
|
||||
processDefinitionKey: 'abilitydemandapply'
|
||||
},
|
||||
processInstanceId: ''
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
// 处理
|
||||
taskHandle (row) {
|
||||
console.log('row======================>', row, this.forwardHandleUrl)
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.businessKeyError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardHandleUrl)
|
||||
},
|
||||
taskDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardTaskDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,170 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-27 11:27:22
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-29 16:31:26
|
||||
* @Description: "评论审核"
|
||||
-->
|
||||
<template>
|
||||
<el-card shadow="never" class="aui-card--fill">
|
||||
<div class="mod-activiti__process">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="dataForm"
|
||||
@keyup.enter.native="getDataList()"
|
||||
>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="dataForm.taskName"
|
||||
:placeholder="$t('process.name')"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{
|
||||
$t('query')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="dataListLoading"
|
||||
:data="dataList"
|
||||
border
|
||||
@selection-change="dataListSelectionChangeHandle"
|
||||
@sort-change="dataListSortChangeHandle"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50"
|
||||
></el-table-column>
|
||||
<el-table-column label="申请人" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.user) ||
|
||||
(scope.row.params && scope.row.params.applyUserName) ||
|
||||
(scope.row.params && scope.row.params.userName) ||
|
||||
(scope.row.params && scope.row.params.undercarriageUserName) ||
|
||||
(scope.row.params && scope.row.params.name)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('process.system')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
(scope.row.params && scope.row.params.system) ||
|
||||
(scope.row.params && scope.row.params.demandSubject) ||
|
||||
(scope.row.params &&
|
||||
scope.row.params.resourceDTO &&
|
||||
scope.row.params.resourceDTO.name) ||
|
||||
(scope.row.params && scope.row.params.undercarriageReason) ||
|
||||
(scope.row.params && scope.row.params.comment)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
||||
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="processDefinitionName"
|
||||
:label="$t('process.processDefinitionName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="taskName"
|
||||
:label="$t('process.taskName')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column prop="startTime" :label="$t('process.startTime')" header-align="center" align="center"></el-table-column> -->
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
:label="$t('process.createTime')"
|
||||
header-align="center"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('handle')"
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
:processInstanceId="processInstanceId"
|
||||
@click="taskHandle(scope.row)"
|
||||
>{{ $t('manage') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="taskDetail(scope.row)"
|
||||
>{{ $t('process.viewFlowImage') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="limit"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="pageSizeChangeHandle"
|
||||
@current-change="pageCurrentChangeHandle"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mixinViewModule from '@/mixins/view-module'
|
||||
import processModule from '@/mixins/process-module'
|
||||
export default {
|
||||
mixins: [mixinViewModule, processModule],
|
||||
data () {
|
||||
return {
|
||||
mixinViewModuleOptions: {
|
||||
getDataListURL: '/act/task/myToDoTaskPage',
|
||||
getDataListIsPage: true,
|
||||
activatedIsNeed: true,
|
||||
deleteIsBatch: true,
|
||||
deleteIsBatchKey: 'deploymentId'
|
||||
},
|
||||
dataForm: {
|
||||
taskName: '',
|
||||
taskId: '',
|
||||
processDefinitionKey: 'comment_review'
|
||||
},
|
||||
processInstanceId: ''
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
// 处理
|
||||
taskHandle (row) {
|
||||
console.log('row======================>', row, this.forwardHandleUrl)
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.businessKeyError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardHandleUrl)
|
||||
},
|
||||
taskDetail (row) {
|
||||
if (!row.businessKey) {
|
||||
return this.$message.error(this.$t('task.detailError'))
|
||||
}
|
||||
this.getProcDefRouteSet(row, this.forwardTaskDetail)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,273 @@
|
|||
<template>
|
||||
<div class="wrapper">
|
||||
<div>
|
||||
<el-form
|
||||
:model="dataForm"
|
||||
ref="dataForm"
|
||||
@keyup.enter.native="dataFormSubmitHandle()"
|
||||
:label-width="$i18n.locale === 'en-US' ? '120px' : 'auto'"
|
||||
>
|
||||
<div v-if="shifoushizujian">
|
||||
<el-form-item label="应用名称">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="应用名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="应用描述">
|
||||
<el-tooltip
|
||||
effect="dark"
|
||||
:content="dataForm.description"
|
||||
placement="top"
|
||||
popper-class="kuandukuandukuandu"
|
||||
>
|
||||
<el-input
|
||||
v-model="dataForm.description"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="应用描述"
|
||||
></el-input>
|
||||
</el-tooltip>
|
||||
</el-form-item>
|
||||
<el-form-item label="部门联系人">
|
||||
<el-input
|
||||
v-model="dataForm.deptContacts"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="部门联系人"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="共享类型">
|
||||
<el-input
|
||||
v-model="dataForm.shareType"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享类型"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="共享方式">
|
||||
<el-input
|
||||
v-model="dataForm.shareMode"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享方式"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="共享条件">
|
||||
<el-input
|
||||
v-model="dataForm.shareCondition"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享方条件"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="访问地址">
|
||||
<el-input
|
||||
v-model="dataForm.link"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="访问地址"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div v-if="!shifoushizujian">
|
||||
<el-form-item label="组件名称" v-if="algorithmShow">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="组件名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="算法名称" v-if="nameNotShow">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="算法名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="应用描述" v-if="algorithmShow">
|
||||
<el-input
|
||||
v-model="dataForm.description"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="应用描述"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="算法描述" v-if="nameNotShow">
|
||||
<el-input
|
||||
v-model="dataForm.description"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="算法描述"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="部门联系人" v-if="algorithmShow">
|
||||
<el-input
|
||||
v-model="dataForm.deptContacts"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="部门联系人"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="共享类型">
|
||||
<el-input
|
||||
v-model="dataForm.shareType"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享类型"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="共享方式"
|
||||
v-if="coverageNotShow && algorithmShow"
|
||||
>
|
||||
<el-input
|
||||
v-model="dataForm.shareMode"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享方式"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="共享条件">
|
||||
<el-input
|
||||
v-model="dataForm.shareCondition"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="共享方条件"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务接口" v-if="coverageNotShow">
|
||||
<el-input
|
||||
v-model="dataForm.apiUrl"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="服务接口"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="接口请求方式" v-if="coverageNotShow">
|
||||
<el-input
|
||||
v-model="dataForm.apiMethodType"
|
||||
:disabled="fieldDisabled"
|
||||
placeholder="接口请求方式"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item
|
||||
v-for="item in dataForm.infoList"
|
||||
:key="item.index"
|
||||
:label="item.attrType"
|
||||
:disabled="fieldDisabled"
|
||||
>
|
||||
<el-input
|
||||
v-model="item.attrValue"
|
||||
:placeholder="item.attrType"
|
||||
:disabled="fieldDisabled"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="dataForm.enclosure"
|
||||
label="申请附件"
|
||||
prop="enclosure"
|
||||
>
|
||||
<el-button @click="downloadFile(dataForm.enclosure, '申请附件')"
|
||||
>附件下载</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<!-- 流程综合组件 -->
|
||||
<ren-process-multiple
|
||||
v-if="processVisible"
|
||||
updateInstanceIdUrl="/processForm/tabilityapplication/updateInstanceId"
|
||||
saveFormUrl="/processForm/tabilityapplication"
|
||||
dataFormName="dataForm"
|
||||
ref="renProcessMultiple"
|
||||
></ren-process-multiple>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import processModule from '@/mixins/process-module'
|
||||
export default {
|
||||
// 注入公共方法
|
||||
mixins: [processModule],
|
||||
components: {},
|
||||
props: {
|
||||
// fromList: {
|
||||
// // type: Array,
|
||||
// // default: () => {
|
||||
// // return []
|
||||
// // }
|
||||
// }
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
// processVisible: true,
|
||||
visible: false,
|
||||
// 表单属性是否可编辑
|
||||
fieldDisabled: false,
|
||||
dataForm: [],
|
||||
id: '',
|
||||
shifoushizujian: true,
|
||||
coverageNotShow: true,
|
||||
nameNotShow: false,
|
||||
algorithmShow: true
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
computed: {},
|
||||
methods: {
|
||||
init () {
|
||||
this.visible = true
|
||||
// this.getInfo(this.$router.currentRoute.params.params.params.resourceDTO.id)
|
||||
// this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO
|
||||
// this.id=this.$router.currentRoute
|
||||
this.$nextTick(() => {
|
||||
this.$refs.dataForm.resetFields()
|
||||
// if (this.dataForm.id) {
|
||||
// 如业务KEY已存在,不允许编辑
|
||||
this.fieldDisabled = true
|
||||
// this.id = this.$router.currentRoute.businessKey
|
||||
this.getInfo(this.$router.currentRoute.params.businessKey)
|
||||
console.log('id', this.$router.currentRoute.params.businessKey)
|
||||
// }
|
||||
})
|
||||
},
|
||||
getInfo (id) {
|
||||
this.$http.get('/resourceMountApply/' + id).then(({ data: res }) => {
|
||||
if (res.code !== 0) {
|
||||
return this.$message.error(res.msg)
|
||||
}
|
||||
this.dataForm = res.data.resourceDTO
|
||||
if (this.dataForm.type != '应用资源') {
|
||||
this.shifoushizujian = false
|
||||
this.dataForm.infoList.forEach((val) => {
|
||||
if (val.attrValue === '图层服务') {
|
||||
this.coverageNotShow = false
|
||||
} else if (val.attrValue === '智能算法') {
|
||||
this.nameNotShow = true
|
||||
this.algorithmShow = false
|
||||
console.log(this.nameNotShow, 'wowowo')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.shifoushizujian = true
|
||||
}
|
||||
console.log('this.dataForm', this.dataForm)
|
||||
})
|
||||
}
|
||||
},
|
||||
created () {
|
||||
// this.dataForm = this.$router.currentRoute.params.id
|
||||
this.init()
|
||||
console.log('fromList', this.$router.currentRoute.params.businessKey)
|
||||
// this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO
|
||||
var callbacks = {
|
||||
startProcessSuccessCallback: this.closeCurrentTab,
|
||||
startProcessErrorCallback: this.startProcessErrorCallback,
|
||||
taskHandleSuccessCallback: this.closeCurrentTab,
|
||||
taskHandleErrorCallback: this.taskHandleErrorCallback,
|
||||
formSaveSuccessCallback: null,
|
||||
formSaveErrorCallback: null
|
||||
}
|
||||
// 初始化综合组件
|
||||
this.initProcessMultiple(callbacks)
|
||||
},
|
||||
mounted () {}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.kuandukuandukuandu {
|
||||
max-width: 1500px;
|
||||
}
|
||||
.wrapper {
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,177 @@
|
|||
<!--
|
||||
*传参示例
|
||||
html:
|
||||
<input-select-checkbox
|
||||
:type="typeSon"
|
||||
:name="nameSon"
|
||||
:value="valueSon"
|
||||
:options="optionSon">
|
||||
</input-select-checkbox>
|
||||
js:
|
||||
this.typeSon = 'select'//类型
|
||||
this.nameSon = '算法描述'//名称
|
||||
this.valueSon = '这是一个描述'//内容
|
||||
this.optionSon = ['1', '2', '3']//选项
|
||||
-->
|
||||
<template>
|
||||
<div id="inputSelectCheckbox">
|
||||
<!-- input框 -->
|
||||
<a-input v-if="type == 'input'" v-model:value="value" :placeholder="'请输入' + name" />
|
||||
<!-- 下拉框 -->
|
||||
<el-select
|
||||
v-else-if="type === 'select'"
|
||||
style="width: 240px"
|
||||
v-model="value"
|
||||
:placeholder="'请选择' + name">
|
||||
<el-option
|
||||
:value="itemSelect.dictLabel"
|
||||
v-for="(itemSelect, indexSelect) in options"
|
||||
:key="indexSelect">
|
||||
{{ itemSelect.dictLabel }}
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- 多选 -->
|
||||
<div
|
||||
v-else-if="type === 'checkBox'"
|
||||
>
|
||||
<el-checkbox-group v-model="valueCheckBox">
|
||||
<el-checkbox-button v-for="val in options" :label="val.dictLabel" :key="val.dictLabel">{{val.dictLabel}}</el-checkbox-button>
|
||||
</el-checkbox-group>
|
||||
</div>
|
||||
<!-- 不可点的input框 -->
|
||||
<el-input
|
||||
v-else-if="type === 'disabled'"
|
||||
v-model="value"
|
||||
:placeholder="'请输入' + name"
|
||||
:disabled="true"
|
||||
/>
|
||||
<!-- 单选 -->
|
||||
<el-radio-group v-model="value" v-else-if="type == 'radio'">
|
||||
<el-radio v-for="item in options" :label="item.dictLabel" :key="item.dictLabel">{{item.dictLabel}}</el-radio>
|
||||
</el-radio-group>
|
||||
<!-- <a-radio-group
|
||||
|
||||
v-model:value="value"
|
||||
:options="item.options.dictLabel"
|
||||
/> -->
|
||||
<!-- 描述框 -->
|
||||
<!-- <a-textarea v-model:value="value" :showCount="true"
|
||||
/> -->
|
||||
<a-textarea v-else-if="type == 'textArea'" v-model:value="value" :showCount="true" :maxlength="200" :placeholder="'请填写' + name"
|
||||
/>
|
||||
<!-- <el-input type="textarea" :maxlength="200" v-model="value" :placeholder="'请输入' + item.name" ></el-input> -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'inputSelectCheckbox',
|
||||
components: {
|
||||
|
||||
},
|
||||
props: {
|
||||
type: String,
|
||||
data: Array,
|
||||
name: String,
|
||||
value: String,
|
||||
options: {
|
||||
type: Array,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
// 多选放数据的数组
|
||||
valueCheckBox: [],
|
||||
// 单选数据
|
||||
regionSelect: '',
|
||||
showKey: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
selectOptions () {
|
||||
if (this.data.isLinkToDic === 'true' && this.data.linkValue) {
|
||||
this.$http
|
||||
.get(`/sys/dict/data/page?page=1&limit=20&dictTypeId=${this.data.linkValue}&deFlage=0`).then(({ data: res }) => {
|
||||
console.log(res, 'res')
|
||||
const dataList = []
|
||||
res.data.list.forEach((element) => {
|
||||
dataList.push(element)
|
||||
console.log(dataList, 'this.options')
|
||||
})
|
||||
this.options = dataList
|
||||
console.log(this.options)
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.selectOptions()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
#inputSelectCheckbox {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
span:first-child {
|
||||
display: block;
|
||||
width: 120px;
|
||||
}
|
||||
::v-deep .el-select {
|
||||
.el-input__inner {
|
||||
resize: none;
|
||||
width: 240px;
|
||||
}
|
||||
}
|
||||
::v-deep .ant-input {
|
||||
// width: 570px;
|
||||
}
|
||||
::v-deep .el-input__inner {
|
||||
resize: none;
|
||||
// width: 570px;
|
||||
}
|
||||
::v-deep .el-textarea {
|
||||
width: 570px;
|
||||
}
|
||||
::v-deep .el-textarea__inner {
|
||||
width: 570px;
|
||||
height: 76px;
|
||||
min-height: 32px;
|
||||
resize: none;
|
||||
}
|
||||
::v-deep .el-input__count {
|
||||
bottom: -20px;
|
||||
right: 5px;
|
||||
}
|
||||
::v-deep .el-checkbox-group {
|
||||
width: 570px;
|
||||
display: grid;
|
||||
margin-top: -5px;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||
}
|
||||
::v-deep .el-checkbox-button__inner {
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
width: 90px;
|
||||
height: 26px;
|
||||
border-radius: 13px;
|
||||
color: #333333;
|
||||
background: #f5f5f5;
|
||||
border: 1px #cccccc solid;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
font-weight: 500;
|
||||
}
|
||||
::v-deep .el-checkbox-button.is-checked .el-checkbox-button__inner {
|
||||
background: #0087ff;
|
||||
color: #fff;
|
||||
box-shadow: unset;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,311 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-07-08 09:54:50
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-08 17:26:24
|
||||
* @Description: 多条数据特殊处理
|
||||
-->
|
||||
<template>
|
||||
<div class="special">
|
||||
<div class="top">{{configure.name}}</div>
|
||||
<div class="bottom">
|
||||
<div class="items" v-show="data.length > 0">
|
||||
<div class="item" v-for="(val, index) in data" :key="'key1' + val.name + index">
|
||||
<p>
|
||||
<span>{{ configure.name }}-{{ index + 1 }}</span>
|
||||
<span></span>
|
||||
</p>
|
||||
<p v-for="(attr,index2) in configure.list" :key="'key2' + attr.name + index2">
|
||||
<span>{{ attr.name }}</span>
|
||||
<span v-if="attr.type === 'image'">
|
||||
<!-- <a-image :width="85" :height="60" :src="val.img" /> -->
|
||||
<el-image
|
||||
style="width: 85px; height: 60px"
|
||||
:src="val.img"
|
||||
:preview-src-list="[val.img]">
|
||||
</el-image>
|
||||
</span>
|
||||
<span v-else>{{ val[attr.field] + (attr.company || '') }}</span>
|
||||
</p>
|
||||
<div class="del">
|
||||
<i class="delImg" @click="del( index)"></i>
|
||||
<div @click="del(configure.name, index)">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="add">添加更多{{ configure.name }}</div>
|
||||
<div class="form" v-for="(val, index) in configure.list" :key="'key3' + val.name + index">
|
||||
<span>{{ val.name }}</span>
|
||||
<a-input v-model:value="val.note1" :maxlength="24" :placeholder="'请填写' + val.name + ',不超过24个字符'"
|
||||
v-if="val.type == 'input'"/>
|
||||
<a-textarea v-model:value="val.note1" :showCount="true" :maxlength="200" :placeholder="'请填写' + val.name"
|
||||
v-else-if="val.type == 'textArea'"/>
|
||||
<a-input-number v-model:value="val.note1" :min="0" :max="9999" :step="0.01" string-mode
|
||||
:placeholder="'请填写' + val.name" v-else-if="val.type == 'number'" />
|
||||
<a-radio-group v-model:value="val.note1" :options="val.options" v-else-if="val.type == 'radio'" />
|
||||
<upload :key="showKey" type="图片" btnName="上传图片" :maxCount="1" :data="val" :list="[]" tip="支持图片类型,大小不超过100M"
|
||||
v-else-if="val.type == 'image'"></upload>
|
||||
<!-- <upload :key="showKey" :child='val' limit='1' accept='.jpg,.png' v-else-if="val.type == 'image'"></upload> -->
|
||||
</div>
|
||||
<div class="submit">
|
||||
<a-button type="primary" @click="add(configure.name)">提交</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
// import upload from '@/views/modules/ability/upload.vue'
|
||||
import upload from '@/views/modules/components/upload'
|
||||
export default {
|
||||
name: '',
|
||||
components: {
|
||||
upload
|
||||
},
|
||||
props: {
|
||||
configure: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
data: [],
|
||||
showKey: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
add (title) {
|
||||
const list = this.configure.list
|
||||
let flag = true
|
||||
list.forEach((item) => {
|
||||
console.log(item)
|
||||
if (item.type !== 'number' && !item.note1.length > 0) {
|
||||
flag = false
|
||||
} else if (item.type === 'number' && !item.note1 > 0) {
|
||||
flag = false
|
||||
}
|
||||
})
|
||||
if (flag) {
|
||||
const obj = {}
|
||||
list.forEach((item) => {
|
||||
obj[item.field] = item.note1
|
||||
})
|
||||
this.data.push(obj)
|
||||
// console.log(data.value[title])
|
||||
this.$emit('changeInfoList', {
|
||||
attrType: title,
|
||||
attrValue: JSON.stringify(this.data),
|
||||
delFlag: 0
|
||||
})
|
||||
list.forEach((item) => {
|
||||
item.note1 = ''
|
||||
})
|
||||
this.showKey++
|
||||
} else {
|
||||
this.$message.warning('请填写完整')
|
||||
}
|
||||
},
|
||||
del (title, index) {
|
||||
this.data.splice(index, 1)
|
||||
this.$emit('changeInfoList', {
|
||||
attrType: title,
|
||||
attrValue: JSON.stringify(this.data),
|
||||
delFlag: 0
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
.top {
|
||||
color: #333333;
|
||||
font-size: 22px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
|
||||
div:first-child,
|
||||
div:last-child {
|
||||
width: 245px;
|
||||
height: 1px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
div:nth-child(2) {
|
||||
margin: 0 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
margin-top: 25px;
|
||||
margin-bottom: 25px;
|
||||
.items {
|
||||
background: #fafafa;
|
||||
padding: 10px;
|
||||
|
||||
p {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
span:nth-of-type(1) {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
span:nth-of-type(2) {
|
||||
width: 100%;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
p:nth-of-type(1) > span:nth-of-type(1) {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.del {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
|
||||
.delImg {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background: url(~@/assets/img/putOnTheShelf/del.png) no-repeat;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
div {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.add {
|
||||
margin-top: 10px;
|
||||
font-size: 16px;
|
||||
color: #007efb;
|
||||
}
|
||||
|
||||
.form {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
span:first-child {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
:deep(.ant-input-textarea) {
|
||||
width: 570px;
|
||||
}
|
||||
|
||||
:deep(.ant-radio-group) {
|
||||
width: 570px;
|
||||
}
|
||||
|
||||
:deep(.ant-input-number) {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
:deep(.ant-input) {
|
||||
resize: none;
|
||||
width: 570px;
|
||||
}
|
||||
|
||||
.ant-btn {
|
||||
width: 160px;
|
||||
height: 32px;
|
||||
text-align: center;
|
||||
background: #edf4fc;
|
||||
color: #0087ff;
|
||||
border: 1px solid #bbd3ef;
|
||||
border-radius: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.submit {
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
.ant-btn {
|
||||
width: 80px;
|
||||
height: 28px;
|
||||
text-align: center;
|
||||
background: #d9ebff;
|
||||
color: #0087ff;
|
||||
border: 1px solid #0087ff;
|
||||
border-radius: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
::v-deep .el-image__preview {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
::v-deep .ant-modal {
|
||||
width: 960px;
|
||||
}
|
||||
|
||||
::v-deep .ant-transfer-list {
|
||||
width: 39.5%;
|
||||
height: 520px;
|
||||
}
|
||||
|
||||
::v-deep .ant-transfer-operation {
|
||||
flex-direction: row-reverse;
|
||||
margin: 0 30px;
|
||||
}
|
||||
|
||||
::v-deep .ant-btn {
|
||||
// width: 56px;
|
||||
// height: 40px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::v-deep .ant-btn:first-child {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
::v-deep .ant-modal-footer {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
::v-deep .ant-modal-header {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
::v-deep .ant-modal-title {
|
||||
line-height: 24px;
|
||||
font-size: 18px;
|
||||
color: #303133;
|
||||
}
|
||||
|
||||
::v-deep .ant-transfer-list-header {
|
||||
background: #f5f7fa;
|
||||
}
|
||||
|
||||
::v-deep .ant-transfer-list-header-selected {
|
||||
display: flex;
|
||||
width: 90%;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
::v-deep .ant-input-number {
|
||||
width: 200px;
|
||||
}
|
||||
::v-deep .ant-transfer-list-header-title {
|
||||
font-size: 16px;
|
||||
color: #303133;
|
||||
font-weight: 400;
|
||||
text-align: left;
|
||||
}
|
||||
textarea {
|
||||
height: 100px;
|
||||
resize: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,212 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-07-08 09:48:52
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-08 17:48:27
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<template>
|
||||
<div class="put-on-the-shelf">
|
||||
<div v-for="parent in putOnTheShelfList" :key='parent.id'>
|
||||
<div v-for='child in parent.children' :key='child.id'>
|
||||
<template v-if='judgmentType.filter(item => item.name==child.name).length === 0'>
|
||||
<div class="top">{{child.name}}</div>
|
||||
<div v-for="item in child.children" :key="item.id" class='item'>
|
||||
<span v-if="item.name != '来源应用'">{{ item.name }}</span>
|
||||
<upload :list="[]" v-if="item.type == 'image'" type="图片" btnName="上传图片" :maxCount="1" :data="item"
|
||||
tip="支持图片类型,大小不超过100M"></upload>
|
||||
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.pdf,.ppt,.xlsx,.doc,.docx' :list="[]" v-else-if="item.type == 'file' && item.name !== '使用手册'" type="文件" btnName="上传附件" :maxCount="1"
|
||||
:dataList="item" tip="支持文件类型,大小不超过100M"></upload>
|
||||
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.pdf,.ppt,.xlsx,.doc,.docx' :list="[]" v-else-if="item.name == '使用手册'" type="文件" btnName="上传附件" :maxCount="1" :dataList="item" :busType="2"
|
||||
tip="支持文件类型,大小不超过100M"></upload>
|
||||
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.mp4' :list="[]" v-else-if="item.type == 'video'" type="视频" btnName="上传视频" :maxCount="1" :dataList="item"
|
||||
tip="支持视频类型,大小不超过100M"></upload>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'text'" type="disabled" :data="item" :name="item.name"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'text2'" type="disabled" :data="item" :name="item.name"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'input'" type="input" :data="item" :name="item.name"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'select'" type="select" :data="item" :name="item.name" :value="item.note1" :options="item.options"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'checkBox'" type="checkBox" :data="item" :name="item.name" :value="item.note1" :options="item.options"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'radio'" type="radio" :data="item" :name="item.name" :value="item.note1" :options="item.options"></input-select-checkbox>
|
||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'textArea'" type="textArea" :data="item" :name="item.name" :value="item.note1"></input-select-checkbox>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<special :configure='judgmentType.filter(item => item.name==child.name)[0]' @changeInfoList='changeInfoList'></special>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import inputSelectCheckbox from './components/inputSelectCheckbox'
|
||||
import special from './components/special'
|
||||
import upload from '@/views/modules/components/upload'
|
||||
export default {
|
||||
name: '',
|
||||
components: {
|
||||
special,
|
||||
upload,
|
||||
inputSelectCheckbox
|
||||
},
|
||||
props: {
|
||||
putOnTheShelfList: Array
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
judgmentType: [
|
||||
{
|
||||
name: '算法优势',
|
||||
list: [
|
||||
{
|
||||
name: '算法优势名称',
|
||||
field: 'name',
|
||||
type: 'input',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '算法优势描述',
|
||||
field: 'desc',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '应用场景',
|
||||
list: [
|
||||
{
|
||||
name: '应用场景名称',
|
||||
field: 'name',
|
||||
type: 'input',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '应用场景描述',
|
||||
field: 'desc',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '应用场景图片',
|
||||
field: 'img',
|
||||
type: 'image',
|
||||
note1: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '计费标准信息',
|
||||
list: [
|
||||
{
|
||||
name: '计费方式',
|
||||
field: 'type',
|
||||
type: 'radio',
|
||||
options: ['一次性买断', '按调用次数', '按并发路数', '按年计费'],
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '计费标准',
|
||||
field: 'price',
|
||||
type: 'number',
|
||||
company: '元',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '计费标准描述',
|
||||
field: 'desc',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '常见问题',
|
||||
list: [
|
||||
{
|
||||
name: '问题',
|
||||
field: 'question',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '答复',
|
||||
field: 'answer',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '功能介绍',
|
||||
list: [
|
||||
{
|
||||
name: '功能名称',
|
||||
field: 'name',
|
||||
type: 'input',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '功能描述',
|
||||
field: 'desc',
|
||||
type: 'textArea',
|
||||
note1: ''
|
||||
},
|
||||
{
|
||||
name: '功能图片',
|
||||
field: 'img',
|
||||
type: 'image',
|
||||
note1: ''
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
changeInfoList (obj) {
|
||||
this.$emit('changeInfoList', obj)
|
||||
},
|
||||
goToRichText () {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
.put-on-the-shelf {
|
||||
height: 500px;
|
||||
padding: 0 50px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.put-on-the-shelf::-webkit-scrollbar {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.top {
|
||||
color: #333333;
|
||||
font-size: 22px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
|
||||
div:first-child,
|
||||
div:last-child {
|
||||
width: 245px;
|
||||
height: 1px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
div:nth-child(2) {
|
||||
margin: 0 30px;
|
||||
}
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 25px 0;
|
||||
& > span:nth-of-type(1) {
|
||||
width: 105px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -28,108 +28,108 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import contentTitle from "./content-title";
|
||||
import * as Apis from '../api';
|
||||
import contentTitle from './content-title'
|
||||
import * as Apis from '../api'
|
||||
export default {
|
||||
components: {
|
||||
contentTitle
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
title: { dynamic: "部门发布动态", recommend: "部门推荐能力" },
|
||||
title: { dynamic: '部门发布动态', recommend: '部门推荐能力' },
|
||||
list: [],
|
||||
columns: [
|
||||
{
|
||||
title: "名称",
|
||||
key: "name",
|
||||
dataIndex: "name",
|
||||
title: '名称',
|
||||
key: 'name',
|
||||
dataIndex: 'name',
|
||||
width: 250
|
||||
},
|
||||
{
|
||||
title: "类型",
|
||||
key: "type",
|
||||
dataIndex: "type",
|
||||
title: '类型',
|
||||
key: 'type',
|
||||
dataIndex: 'type',
|
||||
width: 76
|
||||
},
|
||||
{
|
||||
title: "单位",
|
||||
key: "deptContacts",
|
||||
dataIndex: "deptContacts",
|
||||
title: '单位',
|
||||
key: 'deptContacts',
|
||||
dataIndex: 'deptContacts',
|
||||
width: 144
|
||||
},
|
||||
{
|
||||
title: "时间",
|
||||
key: "createDate",
|
||||
dataIndex: "createDate",
|
||||
title: '时间',
|
||||
key: 'createDate',
|
||||
dataIndex: 'createDate',
|
||||
width: 153
|
||||
},
|
||||
{
|
||||
title: "当前申请数",
|
||||
key: "applyCount",
|
||||
dataIndex: "applyCount",
|
||||
title: '当前申请数',
|
||||
key: 'applyCount',
|
||||
dataIndex: 'applyCount',
|
||||
width: 145
|
||||
},
|
||||
}
|
||||
],
|
||||
tableData: [],
|
||||
maxSize: { y: 195 },
|
||||
loadingDynamic: false,
|
||||
loadingTable: false,
|
||||
};
|
||||
loadingTable: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getResourceByDept();
|
||||
this.getResourceByDept()
|
||||
this.getApplyByDept()
|
||||
},
|
||||
methods: {
|
||||
// 发布动态
|
||||
getResourceByDept () {
|
||||
let data = {
|
||||
const data = {
|
||||
limit: 5,
|
||||
page: 1
|
||||
};
|
||||
this.loadingDynamic = true;
|
||||
}
|
||||
this.loadingDynamic = true
|
||||
Apis.getResourceByDept(
|
||||
data,
|
||||
res => {
|
||||
this.loadingDynamic = false;
|
||||
this.loadingDynamic = false
|
||||
if (res.data.code !== 0) {
|
||||
return this.$message.error(res.data.msg)
|
||||
}
|
||||
console.log('res.data----发布动态-------->', res.data);
|
||||
console.log('res.data----发布动态-------->', res.data)
|
||||
this.list = res.data.data.list || []
|
||||
this.list.push(this.list[0])
|
||||
this.list.push(this.list[0])
|
||||
// this.list.push({})
|
||||
// this.list.push({})
|
||||
},
|
||||
err => {
|
||||
this.loadingDynamic = false;
|
||||
this.loadingDynamic = false
|
||||
this.$message.error(err)
|
||||
console.log('err-----发布动态------->', err);
|
||||
console.log('err-----发布动态------->', err)
|
||||
}
|
||||
);
|
||||
)
|
||||
},
|
||||
// 部门推荐能力
|
||||
getApplyByDept () {
|
||||
let data = {
|
||||
const data = {
|
||||
limit: 5,
|
||||
page: 1
|
||||
};
|
||||
this.loadingTable = true;
|
||||
}
|
||||
this.loadingTable = true
|
||||
Apis.getApplyByDept(
|
||||
data,
|
||||
res => {
|
||||
this.loadingTable = false;
|
||||
this.loadingTable = false
|
||||
if (res.data.code !== 0) {
|
||||
return this.$message.error(res.data.msg)
|
||||
}
|
||||
console.log('res.data------部门推荐能力------>', res.data);
|
||||
this.tableData = res.data.data.list || [];
|
||||
console.log('res.data------部门推荐能力------>', res.data)
|
||||
this.tableData = res.data.data.list || []
|
||||
},
|
||||
err => {
|
||||
this.loadingTable = false;
|
||||
this.loadingTable = false
|
||||
this.$message.error(err)
|
||||
console.log("err", err);
|
||||
console.log('err', err)
|
||||
}
|
||||
);
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,6 @@ export default {
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
|
||||
.bottom-view {
|
||||
width: 100%;
|
||||
height: 335px;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</div>
|
||||
<div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i">
|
||||
<div class="left">
|
||||
<div class="row-index">{{ i + 3 }}</div>
|
||||
<div class="row-index">{{ i + 4 }}</div>
|
||||
<el-tooltip effect="dark" :content="data.name" placement="top">
|
||||
<div class="name-text ellipsis">{{ data.name || '--' }}</div>
|
||||
</el-tooltip>
|
||||
|
@ -47,59 +47,58 @@ export default {
|
|||
colorObj: {
|
||||
1: '#4658710',
|
||||
2: '#734204',
|
||||
3: '#805932',
|
||||
3: '#805932'
|
||||
},
|
||||
no1Obj: {
|
||||
name: '',
|
||||
count: '',
|
||||
count: ''
|
||||
},
|
||||
no2Obj: {
|
||||
name: '',
|
||||
count: '',
|
||||
count: ''
|
||||
},
|
||||
no3Obj: {
|
||||
name: '',
|
||||
count: '',
|
||||
count: ''
|
||||
},
|
||||
noData: false,
|
||||
loading: true,
|
||||
};
|
||||
loading: true
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getData();
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
// 频率
|
||||
getData () {
|
||||
let data = {
|
||||
const data = {
|
||||
limit: 5,
|
||||
page: 1,
|
||||
};
|
||||
page: 1
|
||||
}
|
||||
this.loading = true
|
||||
Apis.getFrequence(data, res => {
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
if (res.data.code !== 0) {
|
||||
return this.$message.error(res.data.msg);
|
||||
return this.$message.error(res.data.msg)
|
||||
}
|
||||
console.log("res----频率-------->", res.data);
|
||||
let _arr = res.data.data.records || [];
|
||||
console.log('res----频率-------->', res.data)
|
||||
const _arr = res.data.data.records || []
|
||||
if (_arr.length == 0) {
|
||||
this.noData = true
|
||||
return;
|
||||
return
|
||||
}
|
||||
for (let i = 0; i < 3; i++) {
|
||||
let k = i + 1;
|
||||
const k = i + 1
|
||||
this[`no${k}Obj`].name = _arr[i].name
|
||||
this[`no${k}Obj`].count = _arr[i].count
|
||||
}
|
||||
this.listInfo = []
|
||||
this.listInfo.push(_arr[3] || {})
|
||||
this.listInfo.push(_arr[4] || {})
|
||||
|
||||
}, err => {
|
||||
this.loading = false;
|
||||
this.$message.error(err);
|
||||
});
|
||||
this.loading = false
|
||||
this.$message.error(err)
|
||||
})
|
||||
},
|
||||
formatCount (count) {
|
||||
return count || count === 0 ? count : '--'
|
||||
|
@ -168,7 +167,6 @@ export default {
|
|||
background-image: url("~@/assets/img/workBench/NO2.png");
|
||||
}
|
||||
|
||||
|
||||
.no3 {
|
||||
width: 170px;
|
||||
height: 120px;
|
||||
|
@ -206,11 +204,9 @@ export default {
|
|||
width: 430px;
|
||||
}
|
||||
|
||||
|
||||
.num-text {
|
||||
font-size: 14px;
|
||||
color: #2b2b2b;
|
||||
|
||||
}
|
||||
|
||||
.no-data {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-03-29 16:45:25
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-07-06 18:44:35
|
||||
* @LastEditTime: 2022-07-09 10:36:03
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
|
@ -28,10 +28,10 @@
|
|||
<!-- 站点配置 -->
|
||||
<script>
|
||||
window.SITE_CONFIG = {};
|
||||
// window.SITE_CONFIG['backUrl'] = 'http://15.72.183.90:8001';
|
||||
// window.SITE_CONFIG['previewUrl'] = 'http://15.72.183.90:7008/';
|
||||
// window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/document/#/devModelFile/';
|
||||
// window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
|
||||
window.SITE_CONFIG['backUrl'] = 'http://15.72.183.90:8001';
|
||||
window.SITE_CONFIG['previewUrl'] = 'http://15.72.183.90:7008/';
|
||||
window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/document/#/devModelFile/';
|
||||
window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
|
||||
window.SITE_CONFIG['POI_URL'] = 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
|
||||
// 包头
|
||||
// window.SITE_CONFIG['backUrl'] = 'http://10.110.205.1:8001';
|
||||
|
@ -45,10 +45,10 @@
|
|||
// window.SITE_CONFIG['frontUrl'] = 'http://10.134.135.9:9796/document/#/devModelFile/';
|
||||
// window.SITE_CONFIG['apiURL'] = 'http://10.134.135.9:8888/renren-admin';
|
||||
// 开发
|
||||
window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
|
||||
window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/';
|
||||
window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
|
||||
window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
|
||||
// window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
|
||||
// window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/';
|
||||
// window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
|
||||
// window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
|
||||
// window.SITE_CONFIG['POI_URL'] = 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
|
||||
// 穿透版本
|
||||
// window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797';
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2020-07-07 16:03:23
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-07-06 18:44:54
|
||||
* @LastEditTime: 2022-07-09 10:36:12
|
||||
* @Description: 数据资源参数配置
|
||||
*/
|
||||
//const newLocation = 'qingdao'
|
||||
const newLocation = 'qingdao'
|
||||
// const newLocation = 'baotou'
|
||||
const newLocation = 'xihaian'
|
||||
// const newLocation = 'xihaian'
|
||||
|
||||
// 数据资源数据
|
||||
const whoShow = {}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-03-29 17:48:03
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-05 15:04:47
|
||||
* @LastEditTime: 2022-07-07 09:22:56
|
||||
* @Description: 告诉大家这是什么
|
||||
*/
|
||||
import { createApp } from 'vue'
|
||||
|
@ -51,9 +51,3 @@ router.beforeEach((to, from, next) => {
|
|||
document.body.scrollTop = 0
|
||||
next()
|
||||
})
|
||||
// 解决bug:页面/路由跳转后,滚动条消失,页面无法滚动
|
||||
router.afterEach((to, from, next) => {
|
||||
document
|
||||
.querySelector('body')
|
||||
.setAttribute('style', 'overflow: auto !important;')
|
||||
})
|
||||
|
|
|
@ -12,7 +12,7 @@ import qs from 'qs'
|
|||
import router from '@/router'
|
||||
// import { isArray } from '@/utils/validate'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { setAccessToken } from '@/utils/accessToken'
|
||||
import { getAccessToken, setAccessToken } from '@/utils/accessToken'
|
||||
|
||||
let loadingInstance
|
||||
|
||||
|
@ -22,15 +22,24 @@ let loadingInstance
|
|||
* @param {*} code
|
||||
* @param {*} msg
|
||||
*/
|
||||
const handleCode = (code, msg, redirect) => {
|
||||
const handleCode = (code, msg, res) => {
|
||||
debugger
|
||||
switch (code) {
|
||||
case 401:
|
||||
// message.error(msg || '登录失效')
|
||||
|
||||
store.dispatch('user/resetAll').catch(() => {})
|
||||
// // location.reload()
|
||||
if (redirect) {
|
||||
window.location.href = redirect
|
||||
if (res.token) {
|
||||
console.log('存在token信息', res.token)
|
||||
setAccessToken(res.token)
|
||||
const token = getAccessToken()
|
||||
console.log('验证token信息', token)
|
||||
}
|
||||
|
||||
// // location.reload()
|
||||
// if (redirect) {
|
||||
// window.location.href = res.redirect
|
||||
// }
|
||||
break
|
||||
case 403:
|
||||
router.push({ path: '/401' }).catch(() => {})
|
||||
|
@ -87,10 +96,21 @@ instance.interceptors.request.use(
|
|||
*/
|
||||
instance.interceptors.response.use(
|
||||
(response) => {
|
||||
// console.log('接口返回', response)
|
||||
// console.log('接口返回headers', response.headers)
|
||||
// console.log('接口返回REDIRECT', response.headers.redirect)
|
||||
|
||||
console.log('接口返回', response)
|
||||
console.log('接口返回headers', response.headers)
|
||||
console.log('接口返回REDIRECT', response.headers.redirect)
|
||||
response['Access-Control-Expose-Headers'] = 'redirect'
|
||||
const { code, message } = response.data
|
||||
if (response.headers.token) {
|
||||
setAccessToken(response.headers.token)
|
||||
} else {
|
||||
if (response.headers.redirect) {
|
||||
// window.location.href = response.headers.redirect
|
||||
window.location.replace(response.headers.redirect)
|
||||
return
|
||||
// location.reload()
|
||||
}
|
||||
}
|
||||
if (response.headers.redirect === '/#/login') {
|
||||
var keys = document.cookie.match(/[^ =;]+(?=\=)/g)
|
||||
if (keys) {
|
||||
|
@ -109,25 +129,12 @@ instance.interceptors.response.use(
|
|||
new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com
|
||||
}
|
||||
}
|
||||
// console.log('已清除')
|
||||
console.log('已清除')
|
||||
setTimeout(() => {
|
||||
location.reload()
|
||||
}, 1000)
|
||||
}
|
||||
response['Access-Control-Expose-Headers'] = 'redirect'
|
||||
const { code, message } = response.data
|
||||
if (response.headers.token) {
|
||||
setAccessToken(response.headers.token)
|
||||
} else {
|
||||
if (response.headers.redirect) {
|
||||
// window.location.href = response.headers.redirect
|
||||
window.location.replace(response.headers.redirect)
|
||||
return
|
||||
// location.reload()
|
||||
}
|
||||
}
|
||||
|
||||
handleCode(code, message, response.headers.redirect)
|
||||
handleCode(code, message, response.headers)
|
||||
if (loadingInstance) loadingInstance.close()
|
||||
// const { data, config } = response
|
||||
// const { code, msg } = data
|
||||
|
@ -147,38 +154,15 @@ instance.interceptors.response.use(
|
|||
// }
|
||||
},
|
||||
(error) => {
|
||||
// console.log('接口error', error)
|
||||
console.log('接口error', error)
|
||||
if (loadingInstance) loadingInstance.close()
|
||||
const { response, message } = error
|
||||
if (error.response && error.response.data) {
|
||||
// console.log('接口返回', response)
|
||||
// console.log('接口返回headers', response.headers)
|
||||
// console.log('接口返回REDIRECT1111', response.headers.redirect)
|
||||
if (response.headers.redirect === '/#/login') {
|
||||
var keys = document.cookie.match(/[^ =;]+(?=\=)/g)
|
||||
if (keys) {
|
||||
for (var i = keys.length; i--; ) {
|
||||
document.cookie =
|
||||
keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() //清除当前域名下的,例如:m.kevis.com
|
||||
document.cookie =
|
||||
keys[i] +
|
||||
'=0;path=/;domain=' +
|
||||
document.domain +
|
||||
';expires=' +
|
||||
new Date(0).toUTCString() //清除当前域名下的,例如 .m.kevis.com
|
||||
document.cookie =
|
||||
keys[i] +
|
||||
'=0;path=/;domain=kevis.com;expires=' +
|
||||
new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com
|
||||
}
|
||||
}
|
||||
// console.log('已清除')
|
||||
setTimeout(() => {
|
||||
location.reload()
|
||||
}, 1000)
|
||||
}
|
||||
console.log('接口返回', response)
|
||||
console.log('接口返回headers', response.headers)
|
||||
console.log('接口返回REDIRECT', response.headers.redirect)
|
||||
if (response.headers.redirect) {
|
||||
window.location.href = response.headers.redirect
|
||||
window.location.replace(response.headers.redirect)
|
||||
return Promise.reject(error)
|
||||
}
|
||||
const { status, data } = response
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-04-01 17:23:11
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-29 09:54:19
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-07-08 18:55:28
|
||||
* @Description: 告诉大家这是什么
|
||||
*/
|
||||
/**
|
||||
|
@ -12,6 +12,7 @@
|
|||
import router from '@/router'
|
||||
import store from '@/store'
|
||||
import getPageTitle from '@/utils/pageTitle'
|
||||
import { getUserInfo } from '@/api/user'
|
||||
import {
|
||||
// authentication,
|
||||
loginInterception,
|
||||
|
@ -26,11 +27,11 @@ router.beforeEach(async (to, from, next) => {
|
|||
// setAccessToken(SSOTOKEN)
|
||||
// }
|
||||
const token = getAccessToken()
|
||||
// console.log('token', token)
|
||||
console.log('token', token)
|
||||
let hasToken = token || store.getters['user/accessToken']
|
||||
// debugger
|
||||
if (!loginInterception) hasToken = true
|
||||
// console.log('hasToken存在巨大问题', hasToken)
|
||||
console.log('hasToken存在巨大问题', hasToken)
|
||||
if (hasToken) {
|
||||
setAccessToken(hasToken)
|
||||
await store.dispatch('user/getUserInfo')
|
||||
|
@ -44,11 +45,16 @@ router.beforeEach(async (to, from, next) => {
|
|||
if (routesWhiteList.indexOf(to.path) !== -1) {
|
||||
next()
|
||||
} else {
|
||||
await store.dispatch('user/getUserInfo')
|
||||
getUserInfo().then(res=>{
|
||||
console.log(res)
|
||||
router.replace('/home')
|
||||
})
|
||||
// await store.dispatch('user/getUserInfo')
|
||||
// next()
|
||||
// if (recordRoute)
|
||||
// next({ path: '/login', query: { redirect: to.path }, replace: true })
|
||||
// else next({ path: '/login', replace: true })
|
||||
next()
|
||||
// next()
|
||||
// window.open('http://www.baidu.com', '_self')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,9 @@
|
|||
v-for="(item, index) in bubbleList"
|
||||
:key="item.id"
|
||||
class="bubble-item"
|
||||
@click.stop.prevent="index == 0 ? showDepartmentList() : ''"
|
||||
@click.stop.prevent="
|
||||
index == 0 ? showDepartmentList() : goToDetails(item)
|
||||
"
|
||||
>
|
||||
<a-tooltip>
|
||||
<template #title>{{ item.name }}</template>
|
||||
|
@ -58,7 +60,7 @@
|
|||
</span>
|
||||
</nav>
|
||||
</article>
|
||||
<p>查看更多></p>
|
||||
<!-- <p>查看更多></p> -->
|
||||
</div>
|
||||
<div class="itemList" v-else-if="navSelect.indexOf('应用领域') > 0">
|
||||
<div class="item" v-for="item in dataList" :key="item.deptId">
|
||||
|
@ -136,6 +138,8 @@
|
|||
provideDeptTopN,
|
||||
applyDeptTopN,
|
||||
} from '@/api/abilityStatistics'
|
||||
// import { useRouter } from 'vue-router'
|
||||
// const router = useRouter()
|
||||
// 左侧导航
|
||||
const navList = ref([
|
||||
'能力共享方-应用领域',
|
||||
|
@ -149,6 +153,15 @@
|
|||
])
|
||||
const navSelect = ref('能力共享方-应用领域')
|
||||
const departmentListFlag = ref(false)
|
||||
const goToDetails = (item) => {
|
||||
// console.log('点击气泡===============>', item)
|
||||
// router.push({
|
||||
// path: '/details',
|
||||
// query: {
|
||||
// id: item.id,
|
||||
// },
|
||||
// })
|
||||
}
|
||||
// 点击导航
|
||||
const selectNav = (name) => {
|
||||
navSelect.value = name
|
||||
|
|
|
@ -147,6 +147,10 @@
|
|||
break
|
||||
}
|
||||
})
|
||||
let arr = ['组件服务', '应用资源', '基础设施', '数据资源', '知识库']
|
||||
dataList.value.dataList.sort((a, b) => {
|
||||
return arr.indexOf(a.type) - arr.indexOf(b.type)
|
||||
})
|
||||
})
|
||||
let datas = ref([])
|
||||
let laiyuanDataList = ref([])
|
||||
|
|
|
@ -271,8 +271,8 @@
|
|||
},
|
||||
grid: {
|
||||
top: '10%',
|
||||
left: '0%',
|
||||
right: '5%',
|
||||
left: '10%',
|
||||
right: '10%',
|
||||
bottom: '0%',
|
||||
containLabel: true,
|
||||
},
|
||||
|
|
|
@ -18,11 +18,15 @@
|
|||
<!-- <span class="name">{{ props.dataList.name }}</span> -->
|
||||
<div class="label-content">
|
||||
<p class="lable-father">
|
||||
<span class="label">
|
||||
{{ componentType || props.dataList.type }}
|
||||
<span class="label" v-if="props.dataList.type">
|
||||
{{ props.dataList.type }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareType">
|
||||
{{ props.dataList.shareType }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareCondition">
|
||||
{{ props.dataList.shareCondition }}
|
||||
</span>
|
||||
<span class="label">{{ props.dataList.shareType }}</span>
|
||||
<span class="label">{{ props.dataList.shareCondition }}</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="label">免费</span> -->
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
<script setup>
|
||||
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { pinyin } from 'pinyin-pro'
|
||||
import { ref, defineProps, watch } from 'vue'
|
||||
let dataFrom = ref({
|
||||
|
@ -184,12 +185,19 @@
|
|||
let obj = props.dataList.infoList.filter(
|
||||
(item) => item.attrType === '技术文档'
|
||||
)[0]
|
||||
console.log('dataFrom.value.link', obj.attrValue)
|
||||
// console.log('dataFrom.value.link', obj.attrValue)
|
||||
if (obj) {
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(obj.attrValue))
|
||||
)
|
||||
} else {
|
||||
message.config({
|
||||
top: '100px', // 距离顶部的位置
|
||||
})
|
||||
message.error('暂未上传技术文档')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -2,17 +2,34 @@
|
|||
<template>
|
||||
<div class="application-deployment-and-security">
|
||||
<div class="title">
|
||||
<DetalsTitle :title="dataFrom.title" :type="dataFrom.englishTitle"></DetalsTitle>
|
||||
<DetalsTitle
|
||||
:title="dataFrom.title"
|
||||
:type="dataFrom.englishTitle"
|
||||
></DetalsTitle>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div v-for="(item, index) in dataFrom.content" :key="index" class="content-card">
|
||||
<div
|
||||
v-for="(item, index) in dataFrom.content"
|
||||
:key="index"
|
||||
class="content-card"
|
||||
>
|
||||
<div class="card-title">{{ item.childrenTitle }}</div>
|
||||
<div class="card-content">
|
||||
<div v-for="carditem in item.childrenContent" :key="carditem">
|
||||
<div
|
||||
v-for="carditem in item.childrenContent"
|
||||
:key="carditem"
|
||||
:class="
|
||||
carditem.attrType == '访问地址' ? 'access-to-the-address' : ''
|
||||
"
|
||||
>
|
||||
<span>{{ carditem.attrType }}:</span>
|
||||
<a-tooltip>
|
||||
<template #title>{{ carditem.attrValue }}</template>
|
||||
<span>{{ carditem.attrValue }}</span>
|
||||
<span
|
||||
@click="addressFunction(carditem.attrType, carditem.attrValue)"
|
||||
>
|
||||
{{ carditem.attrValue }}
|
||||
</span>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -80,6 +97,12 @@ if (props.dataList.infoList) {
|
|||
})
|
||||
}
|
||||
}
|
||||
//访问地址跳转方法
|
||||
const addressFunction = (name, itemValue) => {
|
||||
if (name == '访问地址') {
|
||||
window.open(itemValue)
|
||||
}
|
||||
}
|
||||
watch(
|
||||
() => props.dataList,
|
||||
(val) => {
|
||||
|
@ -151,9 +174,11 @@ watch(
|
|||
height: 1.5rem;
|
||||
width: 6.2rem;
|
||||
border-radius: 0.2rem;
|
||||
background: linear-gradient(to right,
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(113, 132, 252, 0.4),
|
||||
rgba(148, 163, 252, 0.4));
|
||||
rgba(148, 163, 252, 0.4)
|
||||
);
|
||||
padding: 0 0.3rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -190,6 +215,9 @@ watch(
|
|||
/*超出的设置为省略号*/
|
||||
}
|
||||
}
|
||||
.access-to-the-address {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,9 +18,15 @@
|
|||
<!-- <span class="name">{{ props.dataList.name }}</span> -->
|
||||
<div class="label-content">
|
||||
<p class="lable-father">
|
||||
<span class="label">{{ props.dataList.type }}</span>
|
||||
<span class="label">{{ props.dataList.shareType }}</span>
|
||||
<span class="label">{{ props.dataList.shareCondition }}</span>
|
||||
<span class="label" v-if="props.dataList.type">
|
||||
{{ props.dataList.type }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareType">
|
||||
{{ props.dataList.shareType }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareCondition">
|
||||
{{ props.dataList.shareCondition }}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="label">免费</span> -->
|
||||
|
|
|
@ -18,11 +18,15 @@
|
|||
<!-- <span class="name">{{ props.dataList.name }}</span> -->
|
||||
<div class="label-content">
|
||||
<p class="lable-father">
|
||||
<span class="label">
|
||||
{{ componentType || props.dataList.type }}
|
||||
<span class="label" v-if="props.dataList.type">
|
||||
{{ props.dataList.type }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareType">
|
||||
{{ props.dataList.shareType }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareCondition">
|
||||
{{ props.dataList.shareCondition }}
|
||||
</span>
|
||||
<span class="label">{{ props.dataList.shareType }}</span>
|
||||
<span class="label">{{ props.dataList.shareCondition }}</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="label">免费</span> -->
|
||||
|
@ -265,7 +269,8 @@ watch(
|
|||
.right {
|
||||
width: 5.8rem;
|
||||
height: 4rem;
|
||||
background: url('~@/assets/detailsAll/business/business_right_bg.png') no-repeat;
|
||||
background: url('~@/assets/detailsAll/business/business_right_bg.png')
|
||||
no-repeat;
|
||||
background-size: 100%;
|
||||
margin-top: -0.4rem;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
<!-- 使用方式 -->
|
||||
<div class="usage-mode" v-if="flag">
|
||||
<div class="tltle">
|
||||
<DetalsTitle :title="dataFrom.title" :type="dataFrom.englishTitle"></DetalsTitle>
|
||||
<DetalsTitle
|
||||
:title="dataFrom.title"
|
||||
:type="dataFrom.englishTitle"
|
||||
></DetalsTitle>
|
||||
</div>
|
||||
<div class="content" v-for="item in dataFrom.content" :key="item.title">
|
||||
<div class="content-left">
|
||||
|
@ -87,6 +90,7 @@
|
|||
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
|
||||
import { pinyin } from 'pinyin-pro'
|
||||
import { ref, defineProps, watch } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
let dataFrom = ref({
|
||||
title: '使用方式',
|
||||
englishTitle: 'USAGE',
|
||||
|
@ -202,12 +206,18 @@ function technical() {
|
|||
let obj = props.dataList.infoList.filter(
|
||||
(item) => item.attrType === '技术文档'
|
||||
)[0]
|
||||
console.log('dataFrom.value.link', obj.attrValue)
|
||||
if (obj) {
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(obj.attrValue))
|
||||
)
|
||||
} else {
|
||||
message.config({
|
||||
top: '100px', // 距离顶部的位置
|
||||
})
|
||||
message.error('暂未上传技术文档')
|
||||
}
|
||||
}
|
||||
function technicalNew() {
|
||||
// 拼接路径
|
||||
|
@ -221,11 +231,18 @@ function technicalNew() {
|
|||
(item) => item.attrType === '使用手册'
|
||||
)[0]
|
||||
console.log('dataFrom.value.link', obj.attrValue)
|
||||
if (obj) {
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(obj.attrValue))
|
||||
)
|
||||
} else {
|
||||
message.config({
|
||||
top: '100px', // 距离顶部的位置
|
||||
})
|
||||
message.error('暂未上传使用手册')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -243,7 +260,8 @@ function technicalNew() {
|
|||
.content-left {
|
||||
height: 1.5rem;
|
||||
width: 6.2rem;
|
||||
background: url('~@/assets/detailsAll/business/business_usage_mode_bg.png') no-repeat;
|
||||
background: url('~@/assets/detailsAll/business/business_usage_mode_bg.png')
|
||||
no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100% 100%;
|
||||
border-radius: 0.1rem;
|
||||
|
@ -309,7 +327,8 @@ function technicalNew() {
|
|||
.content-right {
|
||||
height: 1.5rem;
|
||||
width: 6.2rem;
|
||||
background: url('~@/assets/detailsAll/business/business_usage_mode_bg.png') no-repeat;
|
||||
background: url('~@/assets/detailsAll/business/business_usage_mode_bg.png')
|
||||
no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100% 100%;
|
||||
border-radius: 0.1rem;
|
||||
|
|
|
@ -18,11 +18,15 @@
|
|||
<!-- <span class="name">{{ props.dataList.name }}</span> -->
|
||||
<div class="label-content">
|
||||
<p class="lable-father">
|
||||
<span class="label">
|
||||
{{ componentType || props.dataList.type }}
|
||||
<span class="label" v-if="props.dataList.type">
|
||||
{{ props.dataList.type }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareType">
|
||||
{{ props.dataList.shareType }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareCondition">
|
||||
{{ props.dataList.shareCondition }}
|
||||
</span>
|
||||
<span class="label">{{ props.dataList.shareType }}</span>
|
||||
<span class="label">{{ props.dataList.shareCondition }}</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="label">免费</span> -->
|
||||
|
|
|
@ -8,7 +8,12 @@
|
|||
<template>
|
||||
<div class="business-navigation" v-if="navList.length > 0">
|
||||
<template v-for="nav in navList" :key="nav.key">
|
||||
<div class="nav" :class="{ select: nav.key == select }" v-if="nav.show" @click="selectNav(nav.key)">
|
||||
<div
|
||||
class="nav"
|
||||
:class="{ select: nav.key == select }"
|
||||
v-if="nav.show"
|
||||
@click="selectNav(nav.key)"
|
||||
>
|
||||
{{ nav.name }}
|
||||
<span class="line"></span>
|
||||
</div>
|
||||
|
@ -215,12 +220,11 @@ watch(
|
|||
item.show = true
|
||||
}
|
||||
})
|
||||
if (list.value.length > 0) {
|
||||
if (navList.value.filter((item) => item.name === list.value[0])[0]) {
|
||||
select.value = navList.value.filter(
|
||||
(item) => item.name === list.value[0]
|
||||
)[0].key
|
||||
}
|
||||
console.log('11111111111111111111111111', list.value, navList.value)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
@ -18,11 +18,15 @@
|
|||
<!-- <span class="name">{{ props.dataList.name }}</span> -->
|
||||
<div class="label-content">
|
||||
<p class="lable-father">
|
||||
<span class="label">
|
||||
{{ componentType || props.dataList.type }}
|
||||
<span class="label" v-if="props.dataList.type">
|
||||
{{ props.dataList.type }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareType">
|
||||
{{ props.dataList.shareType }}
|
||||
</span>
|
||||
<span class="label" v-if="props.dataList.shareCondition">
|
||||
{{ props.dataList.shareCondition }}
|
||||
</span>
|
||||
<span class="label">{{ props.dataList.shareType }}</span>
|
||||
<span class="label">{{ props.dataList.shareCondition }}</span>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="label">免费</span> -->
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
|
||||
<script setup>
|
||||
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { pinyin } from 'pinyin-pro'
|
||||
import { ref, defineProps, watch } from 'vue'
|
||||
let dataFrom = ref({
|
||||
|
@ -213,12 +214,18 @@
|
|||
let obj = props.dataList.infoList.filter(
|
||||
(item) => item.attrType === '技术文档'
|
||||
)[0]
|
||||
console.log('dataFrom.value.link', obj.attrValue)
|
||||
if (obj) {
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(obj.attrValue))
|
||||
)
|
||||
} else {
|
||||
message.config({
|
||||
top: '100px', // 距离顶部的位置
|
||||
})
|
||||
message.error('暂未上传接口文档')
|
||||
}
|
||||
}
|
||||
function technicalNew() {
|
||||
// 拼接路径
|
||||
|
@ -231,12 +238,18 @@
|
|||
let obj = props.dataList.infoList.filter(
|
||||
(item) => item.attrType === '使用手册'
|
||||
)[0]
|
||||
console.log('dataFrom.value.link', obj.attrValue)
|
||||
if (obj) {
|
||||
window.open(
|
||||
window.SITE_CONFIG.previewUrl +
|
||||
'hisense_office/onlinePreview?url=' +
|
||||
btoa(encodeURI(obj.attrValue))
|
||||
)
|
||||
} else {
|
||||
message.config({
|
||||
top: '100px', // 距离顶部的位置
|
||||
})
|
||||
message.error('暂未上传使用手册')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-content">
|
||||
<div class="top-content" v-if="Cardsname == '组件服务'">
|
||||
<span class="top-content-title">共享条件</span>
|
||||
<div class="leixingsumfather">
|
||||
<div class="leixingsum">
|
||||
|
@ -106,6 +106,8 @@
|
|||
>
|
||||
申请
|
||||
</a-checkable-tag>
|
||||
</div>
|
||||
<div class="leixingsum">
|
||||
<a-checkable-tag
|
||||
:checked="tagFlag == '免批申请'"
|
||||
@change="() => chagneTag('免批申请')"
|
||||
|
@ -312,7 +314,7 @@
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-content">
|
||||
<div class="top-content" v-if="Cardsname == '组件服务'">
|
||||
<span class="top-content-title">共享条件</span>
|
||||
<div class="leixingsumfather">
|
||||
<div class="leixingsum">
|
||||
|
@ -322,6 +324,8 @@
|
|||
>
|
||||
申请
|
||||
</a-checkable-tag>
|
||||
</div>
|
||||
<div class="leixingsum">
|
||||
<a-checkable-tag
|
||||
:checked="tagFlag == '免批申请'"
|
||||
@change="() => chagneTag('免批申请')"
|
||||
|
@ -508,7 +512,7 @@
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-content">
|
||||
<div class="top-content" v-if="Cardsname == '组件服务'">
|
||||
<span class="top-content-title">共享条件</span>
|
||||
<div class="leixingsumfather">
|
||||
<div class="leixingsum">
|
||||
|
@ -518,6 +522,8 @@
|
|||
>
|
||||
申请
|
||||
</a-checkable-tag>
|
||||
</div>
|
||||
<div class="leixingsum">
|
||||
<a-checkable-tag
|
||||
:checked="tagFlag == '免批申请'"
|
||||
@change="() => chagneTag('免批申请')"
|
||||
|
@ -1020,7 +1026,7 @@
|
|||
}
|
||||
tecHnosphere = router.currentRoute.value.query.tecHnosphere
|
||||
appLiCation = router.currentRoute.value.query.appLiCation
|
||||
if (val.typeList && val.typeList.length > 6) {
|
||||
if (val.typeList && val.typeList.length > 8) {
|
||||
val.showShrink = true
|
||||
val.shrinkFlag = true
|
||||
}
|
||||
|
|
|
@ -267,21 +267,17 @@
|
|||
if (mynoticeDom) {
|
||||
mynoticeDom.addEventListener('mouseover', () => {
|
||||
mynoticeFlag.value = true
|
||||
// document.documentElement.style.overflowY = 'hidden'
|
||||
})
|
||||
mynoticeDom.addEventListener('mouseout', () => {
|
||||
mynoticeFlag.value = false
|
||||
document.documentElement.style.overflowY = 'scroll'
|
||||
})
|
||||
}
|
||||
if (mynotice) {
|
||||
mynotice.addEventListener('mouseover', () => {
|
||||
mynoticeFlag.value = true
|
||||
// document.documentElement.style.overflowY = 'hidden'
|
||||
})
|
||||
mynotice.addEventListener('mouseout', () => {
|
||||
mynoticeFlag.value = false
|
||||
document.documentElement.style.overflowY = 'scroll'
|
||||
})
|
||||
}
|
||||
mybus.on('getSgcNum', () => {
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
<div v-if="selectCardsname !== '数据资源'">
|
||||
浏览量:{{ item.visits || 0 }}次
|
||||
</div>
|
||||
<div>申购量:{{ item.applyCount || 0 }}次</div>
|
||||
<div>申请量:{{ item.applyCount || 0 }}次</div>
|
||||
<div v-if="selectCardsname === '数据资源'">
|
||||
数据量:{{ item.sjlCount || 0 }}
|
||||
</div>
|
||||
|
@ -430,8 +430,7 @@
|
|||
item.guid
|
||||
)
|
||||
} else {
|
||||
window.open(
|
||||
'http://10.134.135.24:30090/#/home')
|
||||
window.open('http://10.134.135.24:30090/#/home')
|
||||
}
|
||||
} else {
|
||||
if (type === 'apply') {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<span
|
||||
v-for="itemContent in item.content"
|
||||
:key="itemContent"
|
||||
@click="tabClick(index, itemContent, itemContent)"
|
||||
@click="tabClick(index, itemContent)"
|
||||
:class="
|
||||
clickList[index].content.indexOf(itemContent.labelName) != -1 ||
|
||||
clickList[index].content.indexOf(itemContent) != -1
|
||||
|
@ -115,8 +115,8 @@
|
|||
</template>
|
||||
<script setup>
|
||||
import VideoSurveillance from '@/views/home/videoSurveillance'
|
||||
import { getCategoryTreePage } from '@/api/personalCenter'
|
||||
import { dataType } from 'element-plus/es/components/table-v2/src/common'
|
||||
// import { getCategoryTreePage } from '@/api/personalCenter'
|
||||
// import { dataType } from 'element-plus/es/components/table-v2/src/common'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { ref, reactive, onMounted } from 'vue'
|
||||
|
@ -243,7 +243,7 @@
|
|||
clickList.value.push(params)
|
||||
})
|
||||
mybus.off('tranferToList')
|
||||
mybus.on('tranferToList', (data) => {
|
||||
mybus.on('tranferToList', () => {
|
||||
console.log('获取到的列表数据')
|
||||
})
|
||||
}
|
||||
|
@ -338,12 +338,22 @@
|
|||
})
|
||||
console.log('选中的标签code', mapSearchParam.value)
|
||||
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
|
||||
if (name == '视频资源') {
|
||||
let fatherName = ref('视频资源')
|
||||
if (name == '视频资源' || name == '云资源' || name == '感知资源') {
|
||||
fatherName.value == name
|
||||
}
|
||||
if (fatherName.value == '视频资源') {
|
||||
getCamera()
|
||||
} else {
|
||||
dataSource.value = []
|
||||
pagination.value.total = 0
|
||||
}
|
||||
// if (name == '视频资源') {
|
||||
// getCamera()
|
||||
// } else {
|
||||
// dataSource.value = []
|
||||
// pagination.value.total = 0
|
||||
// }
|
||||
}
|
||||
// 清空
|
||||
const nullClick = () => {
|
||||
|
@ -392,10 +402,10 @@
|
|||
message.error('请选择需要申请的数据')
|
||||
}
|
||||
}
|
||||
// 添加至购物车
|
||||
const addShopCar = () => {
|
||||
console.log('添加至购物车')
|
||||
}
|
||||
// // 添加至购物车
|
||||
// const addShopCar = () => {
|
||||
// console.log('添加至购物车')
|
||||
// }
|
||||
const getCamera = () => {
|
||||
console.log('初始化调用')
|
||||
getCameraByParentId(mapSearchParam.value).then((res) => {
|
||||
|
@ -442,7 +452,7 @@
|
|||
key: 'channelId',
|
||||
},
|
||||
])
|
||||
const allClick = ref([])
|
||||
// const allClick = ref([])
|
||||
const onSelectChange = (record, selected, selectedRows, nativeEvent) => {
|
||||
console.log('hahhahah', record, selected, selectedRows, nativeEvent)
|
||||
if (selected) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
>
|
||||
<span
|
||||
class="img"
|
||||
:class="sel == '浏览量' ? 'fwl' : sel == '申购量' ? 'sgl' : 'scl'"
|
||||
:class="sel == '浏览量' ? 'fwl' : sel == '申请量' ? 'sgl' : 'scl'"
|
||||
></span>
|
||||
<span class="text">{{ sel }}</span>
|
||||
</div>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<div class="fw" v-if="select == '浏览量'">
|
||||
{{ select }}:{{ item.visits }}
|
||||
</div>
|
||||
<div class="fw" v-if="select == '申购量'">
|
||||
<div class="fw" v-if="select == '申请量'">
|
||||
{{ select }}:{{ item.applyCount }}
|
||||
</div>
|
||||
<div class="fw" v-if="select == '收藏量'">
|
||||
|
@ -64,7 +64,7 @@
|
|||
const store = useStore()
|
||||
const router = useRouter()
|
||||
const select = ref('浏览量')
|
||||
const selList = ref(['浏览量', '申购量', '收藏量'])
|
||||
const selList = ref(['浏览量', '申请量', '收藏量'])
|
||||
const list = ref([])
|
||||
|
||||
const paramsGetResources = {
|
||||
|
@ -83,7 +83,7 @@
|
|||
case '浏览量':
|
||||
paramsGetResources.orderField = 'visits'
|
||||
break
|
||||
case '申购量':
|
||||
case '申请量':
|
||||
paramsGetResources.orderField = 'applyCount'
|
||||
break
|
||||
case '收藏量':
|
||||
|
|
Loading…
Reference in New Issue