update 报表设计 数据源

qianlishi 3 years ago
parent afe5482ee9
commit fc34d7b911

@ -119,7 +119,7 @@ export const constantRouterMap = [
{ {
path: 'datasource', path: 'datasource',
name: 'datasource', name: 'datasource',
component: () => import('@/views/report/datasource/index'), component: () => import('@/views/datasource/index'),
meta: { meta: {
title: '数据源', title: '数据源',
icon: 'icondatabase', icon: 'icondatabase',

@ -1,10 +1,10 @@
<!-- <!--
* @Descripttion: 权限管理 * @Descripttion: 用户权限--权限管理
* @version: * @version:
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-12-11 14:48:27 * @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi * @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 09:48:59 * @LastEditTime: 2021-12-13 12:20:56
--> -->
<template> <template>
<anji-crud ref="listPage" :option="crudOption" /> <anji-crud ref="listPage" :option="crudOption" />

@ -1,3 +1,11 @@
<!--
* @Descripttion: 用户权限--角色管理
* @version:
* @Author: qianlishi
* @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 12:20:46
-->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
<template slot="rowButtonInMore" slot-scope="props"> <template slot="rowButtonInMore" slot-scope="props">

@ -1,3 +1,11 @@
<!--
* @Descripttion: 用户权限--用户管理
* @version:
* @Author: qianlishi
* @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 12:20:35
-->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
<template slot="rowButtonInMore" slot-scope="props"> <template slot="rowButtonInMore" slot-scope="props">

@ -155,9 +155,6 @@ export default {
testReplyCode: null testReplyCode: null
}; };
}, },
// beforeCreatethis
beforeCreate: function() {},
mounted() {},
methods: { methods: {
async setDataSource() { async setDataSource() {
this.dialogForm = { this.dialogForm = {
@ -215,12 +212,10 @@ export default {
if (this.dialogForm.id == undefined) { if (this.dialogForm.id == undefined) {
const { code } = await reportDataSourceAdd(this.dialogForm); const { code } = await reportDataSourceAdd(this.dialogForm);
if (code != "200") return; if (code != "200") return;
// this.queryByPage()
this.$emit("refreshList"); this.$emit("refreshList");
} else { } else {
const { code } = await reportDataSourceUpdate(this.dialogForm); const { code } = await reportDataSourceUpdate(this.dialogForm);
if (code != "200") return; if (code != "200") return;
// this.queryByPage()
this.$emit("refreshList"); this.$emit("refreshList");
} }
this.closeDialog(); this.closeDialog();

@ -1,3 +1,11 @@
<!--
* @Descripttion: 报表设计--数据源
* @version:
* @Author: qianlishi
* @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 12:21:33
-->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
<template v-slot:buttonLeftOnTable> <template v-slot:buttonLeftOnTable>
@ -18,9 +26,6 @@
>编辑</el-button >编辑</el-button
> >
</template> </template>
<!--自定义的卡片插槽将在编辑详情页面出现在底部新卡片-->
<!--这里可以将自定义的弹出框代码放入到page中
-->
<template v-slot:pageSection> <template v-slot:pageSection>
<EditDataSource <EditDataSource
ref="EditDataSource" ref="EditDataSource"
@ -40,7 +45,7 @@ import {
reportDataSourceUpdate, reportDataSourceUpdate,
reportDataSourceDetail reportDataSourceDetail
} from "@/api/reportDataSource"; } from "@/api/reportDataSource";
import EditDataSource from "@/views/report/datasource/components/EditDataSource"; import EditDataSource from "./components/EditDataSource";
export default { export default {
name: "ReportDataSource", name: "ReportDataSource",
components: { components: {
@ -209,8 +214,6 @@ export default {
} }
}; };
}, },
created() {},
methods: { methods: {
operateDatasource(type, prop) { operateDatasource(type, prop) {
this.dialogVisibleSetDataSource = true; this.dialogVisibleSetDataSource = true;
Loading…
Cancel
Save