fix:测试问题修改,权限菜单修改

dev_1.0.0
xiangcongshuai 8 months ago
parent 88ba4b90f0
commit e122081b82

@ -242,10 +242,10 @@ export default {
e = marked(e)
list.push(e)
})
this.conversationList[this.conversationList.length - 1].docs = list
console.log(this.conversationList)
this.scrollBottom()
}
})
@ -265,6 +265,10 @@ export default {
},
//
handleSend() {
if (this.caseIndex === '' || !this.baseForm.caseId) {
this.$baseMessage.error('请选择案件!')
return
}
this.conversationList.push({
type: 'user',
text: this.caseIndex,

@ -5,7 +5,7 @@ const network = {
// 默认的接口地址 如果是开发环境和生产环境走vab-mock-server当然你也可以选择自己配置成需要的接口地址
baseURL:
process.env.NODE_ENV === 'development'
? 'http://192.168.10.25:8097/fu-hsi-server'
? 'http://192.168.10.137:8097/fu-hsi-server'
: '/fuHsiApi',
// 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
contentType: 'application/json;charset=UTF-8',

@ -29,9 +29,9 @@ export default {
}
screenfull.toggle()
//
setTimeout(() => {
this.$emit('refresh')
}, 1000)
// setTimeout(() => {
// this.$emit('refresh')
// }, 1000)
},
change() {
this.isFullscreen = screenfull.isFullscreen

@ -43,7 +43,7 @@ export default {
this.handleChildren(this.item.children, this.item) &&
(!this.routeChildren.children ||
this.routeChildren.notShowChildren) &&
!this.item.alwaysShow || this.item.children.length === 1
!this.item.alwaysShow
) {
return 'VabMenuItem'
} else {

@ -60,7 +60,7 @@ export const asyncRoutes = [
path: '/case',
name: 'Case',
component: Layout,
permission: 'p_case',
permission: 'p_caseManagement',
meta: { title: '案件管理' },
children: [
{

@ -60,13 +60,14 @@ export default {
columns: [
{ title: '', width: '50px', treeNode: true },
{ title: '序号', type: 'seq', width: '50px' },
{ title: '分析结果', width: '200px', field: 'indexResult', slots: { default: 'result' }},
{ title: '指标名称', field: 'indexName', align: 'left' },
{ title: '分值', field: 'score' },
{ title: '数据来源', field: 'indexSource', formatter: ({ cellValue }) => {
{ title: '分值', field: 'score', width: '50px' },
{ title: '数据来源', field: 'indexSource', width: '200px', formatter: ({ cellValue }) => {
return cellValue ? this.indexSourceList.find(item => item.value === cellValue).label : ''
} },
{ title: '笔录结果', field: 'record' },
{ title: '分析结果', field: 'indexResult', slots: { default: 'result' }}
{ title: '笔录结果', field: 'record' }
// { title: '', field: 'atomicIndex' }
// { title: '', field: 'questioner' },
// { title: '', field: 'startTime' },

@ -22,7 +22,7 @@
<el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag>
</template>
</template>
</vxe-grid>
<div style="text-align: center">
<cs-page
@ -64,13 +64,13 @@ export default {
columns: [
{ title: '', width: '50px', treeNode: true },
{ title: '序号', type: 'seq', width: '50px' },
{ title: '分析结果', width: '200px', field: 'indexResult', slots: { default: 'result' }},
{ title: '指标名称', field: 'indexName', align: 'left' },
{ title: '分值', field: 'score' },
{ title: '数据来源', field: 'indexSource', formatter: ({ cellValue }) => {
{ title: '分值', width: '200px', field: 'score' },
{ title: '数据来源', field: 'indexSource', width: '200px', formatter: ({ cellValue }) => {
return cellValue ? this.indexSourceList.find(item => item.value === cellValue).label : ''
} },
{ title: '笔录结果', field: 'record' },
{ title: '分析结果', field: 'indexResult', slots: { default: 'result' }}
{ title: '笔录结果', field: 'record' }
// { title: '', field: 'atomicIndex' }
// { title: '', field: 'questioner' },
// { title: '', field: 'startTime' },

@ -60,13 +60,13 @@ export default {
columns: [
{ title: '', width: '50px', treeNode: true },
{ title: '序号', type: 'seq', width: '50px' },
{ title: '分析结果', width: '200px', field: 'indexResult', slots: { default: 'result' }},
{ title: '指标名称', field: 'indexName', align: 'left' },
{ title: '分值', field: 'score' },
{ title: '数据来源', field: 'indexSource', formatter: ({ cellValue }) => {
{ title: '分值', width: '200px', field: 'score' },
{ title: '数据来源', width: '200px', field: 'indexSource', formatter: ({ cellValue }) => {
return cellValue ? this.indexSourceList.find(item => item.value === cellValue).label : ''
} },
{ title: '笔录结果', field: 'record' },
{ title: '分析结果', field: 'indexResult', slots: { default: 'result' }}
// { title: '', field: 'atomicIndex' }
// { title: '', field: 'questioner' },
// { title: '', field: 'startTime' },

@ -23,11 +23,12 @@
:checkbox-config="{ labelField: '', highlight: true, trigger: 'row', reserve: true , range: true}"
row-id="id"
v-bind="gridOptions"
@checkbox-all="selectAllEvent"
@checkbox-change="selectChangeEvent"
/>
</div>
<div class="right">
<!-- <div class="right">
<div class="title">{{ `已选择实体(${selectionRows.length * 2}` }}</div>
<div class="right_list">
<div v-for="(item,index) in selectionRows" :key="index" class="right_list_item">
@ -42,7 +43,7 @@
</span>
</div>
</div>
</div> -->
</div>
<div style="text-align: center;margin-top: 10px">
<el-button type="primary" plain style="width: 80px" @click="() => { dialogOptions.show = false }">取消</el-button>
@ -168,6 +169,29 @@ export default {
this.$delete(this.selectionRows, dataIndex)
}
},
// vxe()
selectAllEvent({ checked, records, reserves }) {
// console.log(checked ? '' : '')
// console.log('' + records)
// console.log('' + reserves)
//
if (checked) {
//
if (reserves.length == 0) {
this.selectedRowKeys = records.map(v => v.id)
this.selectionRows = records
} else {
// id,
this.selectedRowKeys = [...reserves.map(v => v.id), ...records.map(v => v.id)]
// ,
this.selectionRows = [...reserves, ...records]
}
} else {
// ,
this.selectionRows = reserves
this.selectedRowKeys = reserves.map(v => v.id)
}
},
handleSearch() {
const filterVal = String(this.name).trim().toLowerCase()
if (filterVal) {
@ -213,7 +237,7 @@ export default {
height: 750px;
width: 1240px;
.left {
width: 750px;
width: 100%;
border-right: 1px solid #EAEAEA;
padding-right: 30px;
.search {

@ -232,9 +232,9 @@ export default {
},
//
handleSelectChange(val) {
// const roleName = this.userList.find(item => item.id === val).roleName
const role = this.userList.find(item => item.id === val).roleCode
const name = this.userList.find(item => item.id === val).name
this.$set(this.recordForm, 'role', val)
this.$set(this.recordForm, 'role', role)
this.$set(this.recordForm, 'name', name)
},
//

@ -12,7 +12,7 @@
</el-dropdown-menu>
</el-dropdown>
</div>
<vxe-grid v-bind="gridOptions" style="margin-top: 20px" @checkbox-change="selectChangeEvent">
<vxe-grid v-bind="gridOptions" style="margin-top: 20px" @checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent">
<template #operate="{row}">
<el-button type="text" @click="resetData(row)"></el-button>
<el-button type="text" style="color: red" @click="handleDel(row)"></el-button>
@ -150,6 +150,29 @@ export default {
this.$delete(this.selectionRows, dataIndex)
}
},
// vxe()
selectAllEvent({ checked, records, reserves }) {
// console.log(checked ? '' : '')
// console.log('' + records)
// console.log('' + reserves)
//
if (checked) {
//
if (reserves.length == 0) {
this.selectedRowKeys = records.map(v => v.id)
this.selectionRows = records
} else {
// id,
this.selectedRowKeys = [...reserves.map(v => v.id), ...records.map(v => v.id)]
// ,
this.selectionRows = [...reserves, ...records]
}
} else {
// ,
this.selectionRows = reserves
this.selectedRowKeys = reserves.map(v => v.id)
}
},
//
async resetData(row) {
const { code, msg } = await resetDataStatusByIds([row.id])

@ -107,7 +107,7 @@ export default {
//
promptGridOptions: {
...mixin.data().gridOptions,
height: '200px',
height: '440px',
columns: [
{ type: 'seq', width: '50px' },
{ title: '头节点类型', field: 'startEntityType', width: '150px' },
@ -178,7 +178,7 @@ export default {
}
},
mounted() {
this.tableHeight(490)
this.tableHeight(700)
this.$nextTick(() => {
const _this = this
_this.treeHeight = (document.documentElement.clientHeight - 150)

@ -185,6 +185,7 @@ export default {
methods: {
//
show(data, isEdit) {
this.activeStep = 0
this.isEdit = isEdit
this.drawerOption.show = true
this.isChange = false

@ -13,7 +13,7 @@
<template slot="content">
<div class="expand-details">
<p>
<span>{{ `指标简称:${showData['indexAbbreviation']}` }}</span>
<span>{{ `指标简称:${showData['indexAbbreviation']}||''` }}</span>
<span style="margin-left: 20px">{{ `必要证据:${showData['necessaryEvidenceContent']}` }}</span>
<span style="margin-left: 20px">{{ `案件类型:${showData['caseType']}` }}</span>
</p>

@ -23,7 +23,7 @@
<div class="expand-details">
<p>{{ `指标说明:${row['remark']||''}` }}</p>
<p>
<span>{{ `指标简称:${row['shortName']}` }}</span>
<span>{{ `指标简称:${row['shortName']||''}` }}</span>
<!-- <span style="margin-left: 20px">{{ `必要证据:${row['necessaryEvidenceContent']}` }}</span>-->
</p>
<p>{{ `案件类型:${row['caseTypeName']}` }}</p>

@ -1,14 +1,14 @@
<template>
<div>
<vxe-grid v-bind="gridOptions" style="margin-top: 20px;" auto-resize />
<div style="text-align: center">
<!-- <div style="text-align: center">
<cs-page
:page.sync="queryForm.page"
:limit.sync="queryForm.size"
:total="queryForm.total"
@pagination="fetchData"
/>
</div>
</div> -->
</div>
</template>
<script>
@ -45,7 +45,7 @@ export default {
fetchData() {
queryIndexData({
indexType: this.indexType
}, this.queryForm.page, this.queryForm.size).then(res => {
}, this.queryForm.page, 9999).then(res => {
this.gridOptions.data = res.data.result
this.queryForm.total = res.data.total
})

Loading…
Cancel
Save