update 报表设计 数据源

qianlishi 3 years ago
parent afe5482ee9
commit fc34d7b911

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

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

@ -155,9 +155,6 @@ export default {
testReplyCode: null
};
},
// beforeCreatethis
beforeCreate: function() {},
mounted() {},
methods: {
async setDataSource() {
this.dialogForm = {
@ -215,12 +212,10 @@ export default {
if (this.dialogForm.id == undefined) {
const { code } = await reportDataSourceAdd(this.dialogForm);
if (code != "200") return;
// this.queryByPage()
this.$emit("refreshList");
} else {
const { code } = await reportDataSourceUpdate(this.dialogForm);
if (code != "200") return;
// this.queryByPage()
this.$emit("refreshList");
}
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>
<anji-crud ref="listPage" :option="crudOption">
<template v-slot:buttonLeftOnTable>
@ -18,9 +26,6 @@
>编辑</el-button
>
</template>
<!--自定义的卡片插槽将在编辑详情页面出现在底部新卡片-->
<!--这里可以将自定义的弹出框代码放入到page中
-->
<template v-slot:pageSection>
<EditDataSource
ref="EditDataSource"
@ -40,7 +45,7 @@ import {
reportDataSourceUpdate,
reportDataSourceDetail
} from "@/api/reportDataSource";
import EditDataSource from "@/views/report/datasource/components/EditDataSource";
import EditDataSource from "./components/EditDataSource";
export default {
name: "ReportDataSource",
components: {
@ -209,8 +214,6 @@ export default {
}
};
},
created() {},
methods: {
operateDatasource(type, prop) {
this.dialogVisibleSetDataSource = true;
Loading…
Cancel
Save