1.解决运营数据中心-政务信息bug

2.修改 左侧树杈图 组件
dev
862857010@qq.com 2 years ago
parent ade9d44956
commit 4788d0e451
  1. 8
      ruoyi-ui/src/api/governmentData/governmentData.js
  2. 12
      ruoyi-ui/src/components/CommonComponents/PublicCoponents/editTree/Tree.vue
  3. 59
      ruoyi-ui/src/views/system/management/operational-data/governmentData/governmentData/index.vue

@ -12,7 +12,7 @@ export function listGovernmentData(query) {
// 查询政务信息 详细
export function getGovernmentData(id) {
return request({
url: '/governmentData/governmentData/' + id,
url: '/governmentData/government/' + id,
method: 'get'
})
}
@ -20,7 +20,7 @@ export function getGovernmentData(id) {
// 新增政务信息
export function addGovernmentData(data) {
return request({
url: '/governmentData/governmentData',
url: '/governmentData/government',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function addGovernmentData(data) {
// 修改政务信息
export function updateGovernmentData(data) {
return request({
url: '/governmentData/governmentData',
url: '/governmentData/government',
method: 'put',
data: data
})
@ -38,7 +38,7 @@ export function updateGovernmentData(data) {
// 删除政务信息
export function delGovernmentData(id) {
return request({
url: '/governmentData/governmentData/' + id,
url: '/governmentData/government/' + id,
method: 'delete'
})
}

@ -70,8 +70,8 @@ export default {
val.forEach(item => {
if (item.hasOwnProperty('list') && item.list.length > 0) {
let getData = {
label: item.groupName || item.name || item.classificationName,
id: item.id || item.dataType || item.classificationCode,
label: item.groupName || item.name || item.classificationName ||item.dictLabel,
id: item.id || item.dataType || item.classificationCode ||item.dictValue,
code: item.typeCode,
sort: item.sort,
remark: item.remark,
@ -80,8 +80,8 @@ export default {
}
item.list.forEach(items => {
let sonData = {
label: items.groupName || items.classificationName,
id: items.id || items.classificationCode,
label: items.groupName || items.classificationName || item.dictLabel,
id: items.id || items.classificationCode ||item.dictValue,
sort: items.sort || items.sortId,
remark: items.remark
}
@ -92,8 +92,8 @@ export default {
let getData = {
sort: item.sort || item.sortId,
remark: item.remark,
label: item.groupName || item.name || item.classificationName,
id: item.id || item.dataType || item.classificationCode,
label: item.groupName || item.name || item.classificationName || item.dictLabel,
id: item.id || item.dataType || item.classificationCode ||item.dictValue,
code: item.typeCode,
}
// })

@ -10,21 +10,21 @@
<el-date-picker v-model="queryParams.startDate"
clearable
placeholder="请选择开始时间"
type="date"
value-format="yyyy-MM-dd">
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="endDate">
<el-date-picker v-model="queryParams.endDate"
clearable
placeholder="请选择结束时间"
type="date"
value-format="yyyy-MM-dd">
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
<el-form-item label="资源对象" prop="resourceName">
<el-form-item label="资源对象" prop="searchName">
<el-input
v-model="queryParams.resourceName"
v-model="queryParams.searchName"
clearable
placeholder="请输入关键字"
@keyup.enter.native="handleQuery"
@ -38,18 +38,12 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="媒体渠道" prop="mediaChannel">
<el-select v-model="queryParams.mediaChannel" clearable disabled="" placeholder="请选择">
<!-- <el-option-->
<!-- v-for="dict in dict.type.scenic_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
</el-select>
<el-form-item label="媒体渠道" prop="mediaId">
<auto-select v-model="queryParams.mediaId" :options="mediaChannelList"
@getValue="reviceValue($event,21)"></auto-select>
</el-form-item>
<el-form-item label="数据来源" prop="dataSources">
<el-select v-model="queryParams.dataSources" clearable placeholder="数据来源">
<el-form-item label="数据来源" prop="dataSource">
<el-select v-model="queryParams.dataSource" clearable placeholder="数据来源">
<el-option
v-for="dict in dict.type.data_sources"
:key="dict.value"
@ -127,14 +121,14 @@
<el-table-column v-if="false" align="center" label="主键" prop="id"/>
<el-table-column align="center" label="发布时间" prop="releaseTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.releaseTime, '{y}-{m}-{d}') }}</span>
<span>{{ parseTime(scope.row.releaseTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="资源对象" prop="resourceName"/>
<el-table-column align="center" label="标题" prop="title"/>
<el-table-column align="center" label="媒体渠道" prop="mediaChannel">
<el-table-column align="center" label="媒体渠道" prop="name">
<template slot-scope="scope">
{{ scope.row.mediaChannel || '/' }}
{{ scope.row.name || '/' }}
</template>
</el-table-column>
<el-table-column align="center" label="数据来源" prop="dataSource">
@ -179,7 +173,9 @@
<el-input v-model="form.title" placeholder="请输入标题"/>
</el-form-item>
<el-form-item label="媒体渠道" prop="mediaChannel">
<el-input v-model="form.mediaChannel" disabled="" placeholder="请输入媒体渠道"/>
<!-- <el-input v-model="form.mediaChannel" disabled="" placeholder="请输入媒体渠道"/>-->
<auto-select v-model="form.mediaChannel" :options="mediaChannelList"
@getValue="reviceValue($event,21)"></auto-select>
</el-form-item>
<el-form-item label="作者" prop="author">
<el-input v-model="form.author" placeholder="请输入作者"/>
@ -227,10 +223,12 @@ import {
addGovernmentData,
updateGovernmentData
} from "@/api/governmentData/governmentData";
import tickt from '../../../ticket-data/ticket-check-flow/tickt'
import operational from "@/views/system/management/operational-data/utils/operational";
export default {
mixins: [operational],
mixins: [operational,tickt],
dicts: ['government_information_type'],
name: "GovernmentData",
data() {
return {
@ -253,12 +251,15 @@ export default {
title: "",
//
open: false,
groupData: [],
//
queryParams: {
searchName:'',
pageNum: 1,
pageSize: 10,
title: null,
mediaChannel: null,
mediaId: null,
author: null,
originalLink: null,
releaseTime: null,
@ -267,7 +268,8 @@ export default {
introduction: null,
detail: null,
dataSource: null,
organCode: null
organCode: null,
type:null
},
//
form: {},
@ -290,6 +292,12 @@ export default {
},
created() {
this.getList();
this.getDicts("government_information_type").then(response => {
this.groupData = response.data;
});
},
methods: {
/** 查询政务信息 列表 */
@ -397,6 +405,11 @@ export default {
}).catch(() => {
});
},
selectTree(val) {
this.queryParams.type = val.id
this.getList()
},
/** 导出按钮操作 */
handleExport() {
this.download('governmentData/governmentData/export', {

Loading…
Cancel
Save