update 报表设计 数据集

qianlishi 3 years ago
parent fc34d7b911
commit 77598aae82

@ -131,7 +131,7 @@ export const constantRouterMap = [
{
path: 'resultset',
name: 'resultset',
component: () => import('@/views/report/resultset/index'),
component: () => import('@/views/resultset/index'),
meta: {
title: '数据集',
icon: 'iconAPIwangguan',

@ -16,48 +16,41 @@
@json-save="onJsonSave"
/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="closeDialog"
>关闭</el-button
>
</span>
<el-button type="primary" @click="closeDialog"></el-button>
</span>
</el-dialog>
</template>
<script>
import vueJsonEditor from "vue-json-editor";
export default {
name: 'Support',
name: "Support",
components: { vueJsonEditor },
props: {
visib: {
required: true,
type: Boolean,
default: false,
},
default: false
}
},
data() {
return {
dialogCaseResult: false,
caseResultTitle: "",
caseResultContent: null,
}
caseResultContent: null
};
},
// beforeCreatethis
beforeCreate: function () {},
mounted() {},
methods: {
dataViewPreview(caseResultTitle, caseResultContent){
this.caseResultTitle = caseResultTitle
this.caseResultContent = caseResultContent
dataViewPreview(caseResultTitle, caseResultContent) {
this.caseResultTitle = caseResultTitle;
this.caseResultContent = caseResultContent;
},
//
closeDialog() {
this.$emit('handleClose')
this.$emit("handleClose");
},
onJsonChange(value) {},
onJsonSave(value) {},
},
}
onJsonSave(value) {}
}
};
</script>

@ -204,11 +204,6 @@
</template>
</el-table-column>
</el-table>
<!-- <el-checkbox-->
<!-- v-model="isShowPagination"-->
<!-- @change="changePagination"-->
<!-- >加入分页参数-->
<!-- </el-checkbox>-->
</el-tab-pane>
<el-tab-pane label="数据转换" name="second">
<template>
@ -381,7 +376,6 @@
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<!-- <el-button type="warning" @click="test"></el-button> -->
<el-button @click="closeDialog"></el-button>
<el-button type="primary" @click="submit('form')"></el-button>
</div>
@ -585,9 +579,6 @@ export default {
testReplyCode: null
};
},
// beforeCreatethis
beforeCreate: function() {},
mounted() {},
methods: {
// ,
async addOrEditDataSet(row, type) {

@ -1,10 +1,15 @@
<!--
* @Descripttion: 用户权限--数据集
* @version:
* @Author: qianlishi
* @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 12:28:54
-->
<template>
<anji-crud ref="listPage" :option="crudOption">
<template v-slot:buttonLeftOnTable>
<el-dropdown
placement="bottom"
@command="operateDataset"
>
<el-dropdown placement="bottom" @command="operateDataset">
<el-button type="primary" icon="el-icon-plus">
新增
<i class="el-icon-arrow-down el-icon--right"></i>
@ -21,7 +26,7 @@
type="text"
@click="operateDataset('edit', props)"
v-permission="'resultsetManage:update'"
>编辑
>编辑
</el-button>
</template>
@ -30,12 +35,9 @@
type="text"
@click="dataView(props)"
v-permission="'resultsetManage:query'"
>数据预览
>数据预览
</el-button>
</template>
<!--自定义的卡片插槽将在编辑详情页面出现在底部新卡片-->
<!--这里可以将自定义的弹出框代码放入到page中
-->
<template v-slot:pageSection>
<EditDataSet
ref="EditDataSet"
@ -60,8 +62,8 @@ import {
reportDataSetUpdate,
reportDataSetDetail
} from "@/api/reportDataSet";
import EditDataSet from "@/views/report/resultset/components/EditDataSet";
import DataView from "@/views/report/resultset/components/DataView";
import EditDataSet from "./components/EditDataSet";
import DataView from "./components/DataView";
export default {
name: "ReportDataSet",
@ -109,12 +111,12 @@ export default {
},
label: "数据集类型",
field: "setType"
},
}
],
//
buttons: {
customButton: {
operationWidth: 150
operationWidth: 180
},
query: {
api: reportDataSetList,
@ -157,7 +159,7 @@ export default {
editField: "setCode",
inputType: "input",
rules: [
{min: 1, max: 50, message: "不超过50个字符", trigger: "blur"}
{ min: 1, max: 50, message: "不超过50个字符", trigger: "blur" }
],
disabled: false
},
@ -168,7 +170,7 @@ export default {
editField: "setName",
inputType: "input",
rules: [
{min: 1, max: 100, message: "不超过100个字符", trigger: "blur"}
{ min: 1, max: 100, message: "不超过100个字符", trigger: "blur" }
],
disabled: false
},
@ -179,7 +181,7 @@ export default {
editField: "setDesc",
inputType: "input",
rules: [
{min: 1, max: 255, message: "不超过255个字符", trigger: "blur"}
{ min: 1, max: 255, message: "不超过255个字符", trigger: "blur" }
],
disabled: false
},
@ -190,7 +192,7 @@ export default {
editField: "sourceCode",
inputType: "input",
rules: [
{min: 1, max: 50, message: "不超过50个字符", trigger: "blur"}
{ min: 1, max: 50, message: "不超过50个字符", trigger: "blur" }
],
disabled: false
},
@ -201,7 +203,7 @@ export default {
editField: "setType",
inputType: "input",
rules: [
{min: 1, max: 50, message: "不超过50个字符", trigger: "blur"}
{ min: 1, max: 50, message: "不超过50个字符", trigger: "blur" }
],
disabled: false
},
@ -270,8 +272,6 @@ export default {
};
},
created() {
},
methods: {
operateDataset(type, prop) {
this.dialogVisibleSetDataSet = true;
@ -296,3 +296,8 @@ export default {
}
};
</script>
<style lang="scss" scoped>
/deep/.el-dropdown {
margin-right: 20px;
}
</style>
Loading…
Cancel
Save