qianlishi 3 years ago
commit 0fb45f65d7

@ -0,0 +1,61 @@
<template>
<el-dialog
:title="caseResultTitle"
:visible.sync="visib"
width="70%"
>
<vue-json-editor
v-model="caseResultContent"
:show-btns="false"
:mode="'code'"
lang="zh"
class="my-editor"
@json-change="onJsonChange"
@json-save="onJsonSave"
/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="closeDialog"
>关闭</el-button
>
</span>
</el-dialog>
</template>
<script>
import vueJsonEditor from "vue-json-editor";
export default {
name: 'Support',
components: { vueJsonEditor },
props: {
visib: {
required: true,
type: Boolean,
default: false,
},
},
data() {
return {
dialogCaseResult: false,
caseResultTitle: "",
caseResultContent: null,
}
},
// beforeCreatethis
beforeCreate: function () {},
mounted() {},
methods: {
dataViewPreview(caseResultTitle, caseResultContent){
this.caseResultTitle = caseResultTitle
this.caseResultContent = caseResultContent
},
//
closeDialog() {
this.$emit('handleClose')
},
onJsonChange(value) {},
onJsonSave(value) {},
},
}
</script>

@ -1,176 +0,0 @@
<template>
<anji-crud ref="listPage" :option="crudOption">
<template v-slot:buttonLeftOnTable>
</template>
<!--
<template slot="rowButton" slot-scope="props">
<el-button type="primary" @click="customButtom(props)"></el-button>
</template>
-->
<!--自定义的卡片插槽将在编辑详情页面出现在底部新卡片-->
<!--这里可以将自定义的弹出框代码放入到page中
<template v-slot:pageSection>
<div>插入底部html片段</div>
</template>
-->
</anji-crud>
</template>
<script>
import { reportDataSetList, reportDataSetAdd, reportDataSetDeleteBatch, reportDataSetUpdate, reportDataSetDetail } from '@/api/reportDataSet'
export default {
name: 'ReportDataSet',
components: {
anjiCrud: require('@/components/AnjiPlus/anji-crud/anji-crud').default,
},
data() {
return {
crudOption: {
// 使
title: this.$lang('GLOBAL_MENU_LANG.ReportDataSet'),
//
labelWidth: '120px',
//
queryFormFields: [
{
inputType: 'input',
label: this.$lang('ReportDataSet.setCode'),
field: 'setCode'
},
{
inputType: 'input',
label: this.$lang('ReportDataSet.setName'),
field: 'setName'
},
],
//
buttons: {
query: {
api: reportDataSetList,
permission: 'resultsetManage:query'
},
queryByPrimarykey: {
api: reportDataSetDetail,
permission: 'resultsetManage:detail'
},
add: {
api: reportDataSetAdd,
permission: 'resultsetManage:insert'
},
delete: {
api: reportDataSetDeleteBatch,
permission: 'resultsetManage:delete'
},
edit: {
api: reportDataSetUpdate,
permission: 'resultsetManage:update'
},
},
//
columns: [
{
label: '',
field: 'id',
primaryKey: true, // ,
tableHide: true, //
editHide: true, //
},
{
label: this.$lang('ReportDataSet.setCode'),//
placeholder: '',
field: 'setCode',
editField: 'setCode',
inputType: 'input',
rules: [
{ min: 1, max: 50, message: '不超过50个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.setName'),//
placeholder: '',
field: 'setName',
editField: 'setName',
inputType: 'input',
rules: [
{ min: 1, max: 100, message: '不超过100个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.setDesc'),//
placeholder: '',
field: 'setDesc',
editField: 'setDesc',
inputType: 'input',
rules: [
{ min: 1, max: 255, message: '不超过255个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.sourceCode'),//
placeholder: '',
field: 'sourceCode',
editField: 'sourceCode',
inputType: 'input',
rules: [
{ min: 1, max: 50, message: '不超过50个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.dynSentence'),//sql
placeholder: '',
field: 'dynSentence',
editField: 'dynSentence',
inputType: 'input',
rules: [
{ min: 1, max: 2,048, message: '不超过2048个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.caseResult'),//
placeholder: '',
field: 'caseResult',
editField: 'caseResult',
inputType: 'input',
rules: [
{ min: 1, max: 65,535, message: '不超过65535个字符', trigger: 'blur' }
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.enableFlag'),//0-- 1-- DIC_NAME=ENABLE_FLAG
placeholder: '',
field: 'enableFlag',
editField: 'enableFlag',
inputType: 'input',
rules: [
],
disabled: false,
},
{
label: this.$lang('ReportDataSet.deleteFlag'),//0-- 1-- DIC_NAME=DELETE_FLAG
placeholder: '',
field: 'deleteFlag',
editField: 'deleteFlag',
inputType: 'input',
rules: [
],
disabled: false,
},
],
},
}
},
created() { },
methods: {
handleOpenDialog1() {
alert('自定义按钮1点击事件')
}
}
}
</script>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save