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

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

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

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

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

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

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

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

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

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

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

@ -232,9 +232,9 @@ export default {
}, },
// //
handleSelectChange(val) { 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 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) this.$set(this.recordForm, 'name', name)
}, },
// //

@ -12,7 +12,7 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </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}"> <template #operate="{row}">
<el-button type="text" @click="resetData(row)"></el-button> <el-button type="text" @click="resetData(row)"></el-button>
<el-button type="text" style="color: red" @click="handleDel(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) 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) { async resetData(row) {
const { code, msg } = await resetDataStatusByIds([row.id]) const { code, msg } = await resetDataStatusByIds([row.id])

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

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

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

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

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

Loading…
Cancel
Save