代码生成 改变

szh_zidingyibiaoti
张同海 2 years ago
parent deb5961757
commit 28f4aa314c

@ -4,7 +4,7 @@ import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')
Vue.filter('NumberFormat', function (value) {
Vue.filter('NumberFormat', function(value) {
if (!value) {
return '0'
}
@ -12,11 +12,11 @@ Vue.filter('NumberFormat', function (value) {
return intPartFormat
})
Vue.filter('dayjs', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
Vue.filter('dayjs', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
return moment(dataStr).format(pattern)
})
Vue.filter('moment', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
Vue.filter('moment', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
return moment(dataStr).format(pattern)
})
@ -26,14 +26,14 @@ Vue.filter('moment', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
* @author yubaoshan
* @date 2020-9-15 15:02:20
*/
Vue.filter('Fmoney', function (val) {
Vue.filter('Fmoney', function(val) {
// eslint-disable-next-line no-useless-escape
val = val.toString().replace(/\$|\,/g, '')
if (isNaN(val)) {
val = '0'
}
// eslint-disable-next-line eqeqeq
const sign = (val == (val = Math.abs(val)))
const sign = val == (val = Math.abs(val))
val = Math.floor(val * 100 + 0.50000000001)
let cents = val % 100
val = Math.floor(val / 100).toString()
@ -44,7 +44,7 @@ Vue.filter('Fmoney', function (val) {
for (let i = 0; i < Math.floor((val.length - (1 + i)) / 3); I++) {
val = val.substring(0, val.length - (4 * i + 3)) + ',' + val.substring(val.length - (4 * i + 3))
}
return (((sign) ? '' : '-') + val + '.' + cents)
return (sign ? '' : '-') + val + '.' + cents
})
/**
@ -53,7 +53,7 @@ Vue.filter('Fmoney', function (val) {
* @author yubaoshan
* @date 2020-9-15 15:02:20
*/
Vue.filter('dictType', function (code, value) {
Vue.filter('dictType', function(code, value) {
const dictTypeTree = Vue.ls.get(DICT_TYPE_TREE_DATA)
if (dictTypeTree === undefined) {
return '需重新登录'
@ -77,7 +77,7 @@ Vue.filter('dictType', function (code, value) {
* @author yubaoshan
* @date 2020-9-19 22:40:22
*/
Vue.filter('dictData', function (code) {
Vue.filter('dictData', function(code) {
const dictTypeTree = Vue.ls.get(DICT_TYPE_TREE_DATA)
if (dictTypeTree === undefined) {
return []
@ -96,6 +96,6 @@ Vue.filter('dictData', function (code) {
* @author yubaoshan
* @date 2021-2-8 01:13
*/
Vue.filter('dictDataAll', function () {
Vue.filter('dictDataAll', function() {
return Vue.ls.get(DICT_TYPE_TREE_DATA)
})

@ -5,7 +5,8 @@
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleSubmit"
@cancel="handleCancel">
@cancel="handleCancel"
>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-row :gutter="24">
@ -14,12 +15,15 @@
<a-select
style="width: 100%"
placeholder="请选择数据库表"
v-decorator="['tableName', {rules: [{ required: true, message: '请选择数据库表!' }]}]">
v-decorator="['tableName', { rules: [{ required: true, message: '请选择数据库表!' }] }]"
>
<a-select-option
v-for="(item,index) in tableNameData"
v-for="(item, index) in tableNameData"
:key="index"
:value="item.entityName"
@click="tableNameSele(item)">{{ item.tableName }}</a-select-option>
@click="tableNameSele(item)"
>{{ item.tableName }}</a-select-option
>
</a-select>
</a-form-item>
</a-col>
@ -27,7 +31,8 @@
<a-form-item label="业务名" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input
placeholder="请输入业务名"
v-decorator="['busName', {rules: [{required: true, message: '请输入业务名!'}]}]" />
v-decorator="['busName', { rules: [{ required: true, message: '请输入业务名!' }] }]"
/>
</a-form-item>
</a-col>
<!--<a-col :md="12" :sm="24">
@ -48,12 +53,15 @@
<a-select
style="width: 100%"
placeholder="请选择应用分类"
v-decorator="['menuApplication', {rules: [{ required: true, message: '请选择应用分类!' }]}]">
v-decorator="['menuApplication', { rules: [{ required: true, message: '请选择应用分类!' }] }]"
>
<a-select-option
v-for="(item,index) in appData"
v-for="(item, index) in appData"
:key="index"
:value="item.code"
@click="changeApplication(item.code)">{{ item.name }}</a-select-option>
@click="changeApplication(item.code)"
>{{ item.name }}</a-select-option
>
</a-select>
</a-form-item>
</a-col>
@ -61,14 +69,14 @@
<div>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="父级菜单" has-feedback>
<a-tree-select
v-decorator="['menuPid', {rules: [{ required: true, message: '请选择父级菜单!' }]}]"
v-decorator="['menuPid', { rules: [{ required: true, message: '请选择父级菜单!' }] }]"
style="width: 100%"
:dropdownStyle="{ maxHeight: '300px', overflow: 'auto' }"
:treeData="menuTreeData"
placeholder="请选择父级菜单"
treeDefaultExpandAll>
<span slot="title" slot-scope="{ id }">{{ id }}
</span>
treeDefaultExpandAll
>
<span slot="title" slot-scope="{ id }">{{ id }} </span>
</a-tree-select>
</a-form-item>
</div>
@ -79,14 +87,16 @@
<a-form-item label="命名空间" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input
placeholder="请输入代码包名"
v-decorator="['nameSpace', {rules: [{required: true, message: '请输入命名空间!'}]}]" />
v-decorator="['nameSpace', { rules: [{ required: true, message: '请输入命名空间!' }] }]"
/>
</a-form-item>
</a-col>
<a-col :md="12" :sm="24">
<a-form-item label="作者姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input
placeholder="请输入作者姓名"
v-decorator="['authorName', {rules: [{required: true, message: '请输入作者姓名!'}]}]" />
v-decorator="['authorName', { rules: [{ required: true, message: '请输入作者姓名!' }] }]"
/>
</a-form-item>
</a-col>
</a-row>
@ -115,12 +125,16 @@
<a-row :gutter="24">
<a-col :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="生成方式">
<a-radio-group v-decorator="['generateType',{rules: [{ required: true, message: '请选择生成方式!' }]}]">
<a-radio-group
v-decorator="['generateType', { rules: [{ required: true, message: '请选择生成方式!' }] }]"
>
<a-radio
v-for="(item,index) in generateTypeData"
v-for="(item, index) in generateTypeData"
:key="index"
:value="item.code"
@click="generateTypeRadio(item.code)">{{ item.name }}</a-radio>
@click="generateTypeRadio(item.code)"
>{{ item.name }}</a-radio
>
</a-radio-group>
</a-form-item>
</a-col>
@ -131,121 +145,113 @@
</template>
<script>
import {
getAppList
} from '@/api/modular/system/appManage'
import {
getMenuTree
} from '@/api/modular/system/menuManage'
import {
codeGenerateInformationList,
codeGenerateAdd
} from '@/api/modular/gen/codeGenerateManage'
export default {
data() {
return {
labelCol: {
xs: {
span: 24
},
sm: {
span: 5
}
import { getAppList } from '@/api/modular/system/appManage'
import { getMenuTree } from '@/api/modular/system/menuManage'
import { codeGenerateInformationList, codeGenerateAdd } from '@/api/modular/gen/codeGenerateManage'
export default {
data() {
return {
labelCol: {
xs: {
span: 24
},
wrapperCol: {
xs: {
span: 24
},
sm: {
span: 15
}
sm: {
span: 5
}
},
wrapperCol: {
xs: {
span: 24
},
visible: false,
appData: [],
menuTreeData: [],
tableNameData: [],
// tablePrefixData: [],
generateTypeData: [],
confirmLoading: false,
// tablePrefixValue: 'N',
tableNameValue: '',
form: this.$form.createForm(this)
}
},
methods: {
//
add() {
this.visible = true
this.codeGenerateInformationList()
this.dataTypeItem()
this.selectedByDefault()
//
this.getSysApplist()
sm: {
span: 15
}
},
/**
* 默认选中项
*/
selectedByDefault() {
this.form.getFieldDecorator('nameSpace', {
initialValue: 'Myshipping.Application'
})
// this.form.getFieldDecorator('tablePrefix', { valuePropName: 'checked', initialValue: 'N' })
this.form.getFieldDecorator('generateType', {
valuePropName: 'checked',
initialValue: '2'
})
this.form.getFieldDecorator('authorName', {
initialValue: 'Myshipping'
})
visible: false,
appData: [],
menuTreeData: [],
tableNameData: [],
// tablePrefixData: [],
generateTypeData: [],
confirmLoading: false,
// tablePrefixValue: 'N',
tableNameValue: '',
form: this.$form.createForm(this)
}
},
methods: {
//
add() {
this.visible = true
this.codeGenerateInformationList()
this.dataTypeItem()
this.selectedByDefault()
//
this.form.getFieldDecorator('menuApplication', {
initialValue: 'busiapp'
})
this.changeApplication('busiapp')
},
/**
* 获得所有数据库的表
*/
codeGenerateInformationList() {
codeGenerateInformationList().then((res) => {
this.tableNameData = res.data
})
},
/**
* 获得菜单所属应用
*/
getSysApplist() {
return getAppList().then((res) => {
if (res.success) {
this.appData = res.data
} else {
this.$message.warning(res.message)
}
})
},
/**
* 获取字典数据
*/
dataTypeItem() {
this.tablePrefixData = this.$options.filters['dictData']('yes_or_no')
this.generateTypeData = this.$options.filters['dictData']('code_gen_create_type')
this.generateTypeData.splice(0, 1) //
},
/**
* 提交表单
*/
handleSubmit() {
const {
form: {
validateFields
}
} = this
validateFields((errors, values) => {
if (!errors) {
this.confirmLoading = true
codeGenerateAdd(values).then((res) => {
//
this.getSysApplist()
},
/**
* 默认选中项
*/
selectedByDefault() {
this.form.getFieldDecorator('nameSpace', {
initialValue: 'Myshipping.Application'
})
// this.form.getFieldDecorator('tablePrefix', { valuePropName: 'checked', initialValue: 'N' })
this.form.getFieldDecorator('generateType', {
valuePropName: 'checked',
initialValue: '2'
})
this.form.getFieldDecorator('authorName', {
initialValue: 'Myshipping'
})
//
this.form.getFieldDecorator('menuApplication', {
initialValue: 'busiapp'
})
this.changeApplication('busiapp')
},
/**
* 获得所有数据库的表
*/
codeGenerateInformationList() {
codeGenerateInformationList().then(res => {
this.tableNameData = res.data
})
},
/**
* 获得菜单所属应用
*/
getSysApplist() {
return getAppList().then(res => {
if (res.success) {
this.appData = res.data
} else {
this.$message.warning(res.message)
}
})
},
/**
* 获取字典数据
*/
dataTypeItem() {
this.tablePrefixData = this.$options.filters['dictData']('yes_or_no')
this.generateTypeData = this.$options.filters['dictData']('code_gen_create_type')
this.generateTypeData.splice(0, 1) //
},
/**
* 提交表单
*/
handleSubmit() {
const {
form: { validateFields }
} = this
validateFields((errors, values) => {
if (!errors) {
this.confirmLoading = true
codeGenerateAdd(values)
.then(res => {
if (res.success) {
this.$message.success('新增成功')
this.$emit('ok', values)
@ -253,85 +259,88 @@
} else {
this.$message.error('新增失败:' + res.message)
}
}).finally((res) => {
this.confirmLoading = false
})
}
})
},
handleCancel() {
this.form.resetFields()
this.visible = false
//
this.form.getFieldDecorator('className', {
initialValue: ''
})
this.form.getFieldDecorator('busName', {
initialValue: ''
})
// this.form.getFieldDecorator('tableComment', { initialValue: '' })
},
/**
* 选择数据库列表
*/
tableNameSele(item) {
this.tableNameValue = item.tableName
// this.form.getFieldDecorator('tableComment', { initialValue: item.tableComment })
this.form.getFieldDecorator('busName', {
initialValue: item.tableComment
})
// this.settingDefaultValue()
},
/**
* 菜单所属应用change事件
*/
changeApplication(value) {
getMenuTree({
'application': value
}).then((res) => {
if (res.success) {
this.menuTreeData = [{
'id': '-1',
'parentId': '0',
'title': '顶级',
'value': '0',
'pid': '0',
'children': res.data
}]
this.form.getFieldDecorator('menuPid', {
initialValue: '0'
.finally(res => {
this.confirmLoading = false
})
} else {
this.$message.warning(res.message)
}
})
},
// /**
// *
// */
// tablePrefixRadio (tablePrefixType) {
// this.tablePrefixValue = tablePrefixType
// this.settingDefaultValue()
// },
/**
* 设置默认值
*/
settingDefaultValue() {
// const tableName = this.classNameToHump()
// this.form.getFieldDecorator('className', { initialValue: tableName })
// this.form.getFieldDecorator('busName', { initialValue: tableName + ""})
},
/**
* 选择生成方式
*/
generateTypeRadio(generateType) {
// if (generateType === '1') {
// this.packageNameShow = true
// } else {
// this.packageNameShow = false
// this.form.setFieldsValue({ nameSpace: 'Dilon.Application' })
// }
}
}
})
},
handleCancel() {
this.form.resetFields()
this.visible = false
//
this.form.getFieldDecorator('className', {
initialValue: ''
})
this.form.getFieldDecorator('busName', {
initialValue: ''
})
// this.form.getFieldDecorator('tableComment', { initialValue: '' })
},
/**
* 选择数据库列表
*/
tableNameSele(item) {
this.tableNameValue = item.tableName
// this.form.getFieldDecorator('tableComment', { initialValue: item.tableComment })
this.form.getFieldDecorator('busName', {
initialValue: item.tableComment
})
// this.settingDefaultValue()
},
/**
* 菜单所属应用change事件
*/
changeApplication(value) {
getMenuTree({
application: value
}).then(res => {
if (res.success) {
this.menuTreeData = [
{
id: '-1',
parentId: '0',
title: '顶级',
value: '0',
pid: '0',
children: res.data
}
]
this.form.getFieldDecorator('menuPid', {
initialValue: '0'
})
} else {
this.$message.warning(res.message)
}
})
},
// /**
// *
// */
// tablePrefixRadio (tablePrefixType) {
// this.tablePrefixValue = tablePrefixType
// this.settingDefaultValue()
// },
/**
* 设置默认值
*/
settingDefaultValue() {
// const tableName = this.classNameToHump()
// this.form.getFieldDecorator('className', { initialValue: tableName })
// this.form.getFieldDecorator('busName', { initialValue: tableName + ""})
},
/**
* 选择生成方式
*/
generateTypeRadio(generateType) {
// if (generateType === '1') {
// this.packageNameShow = true
// } else {
// this.packageNameShow = false
// this.form.setFieldsValue({ nameSpace: 'Dilon.Application' })
// }
}
}
}
</script>

@ -12,7 +12,8 @@
:pagination="false"
:alert="true"
:loading="tableLoading"
:rowKey="(record) => record.id">
:rowKey="record => record.id"
>
<template slot="columnComment" slot-scope="text, record">
<a-input v-model="record.columnComment" />
</template>
@ -26,7 +27,8 @@
style="width: 120px"
v-model="record.effectType"
:disabled="judgeColumns(record)"
@change="effectTypeChange(record, $event)">
@change="effectTypeChange(record, $event)"
>
<a-select-option v-for="(item, index) in effectTypeData" :key="index" :value="item.code">{{
item.name
}}</a-select-option>
@ -38,7 +40,8 @@
v-model="record.dictTypeCode"
:disabled="
record.effectType !== 'radio' && record.effectType !== 'select' && record.effectType !== 'checkbox'
">
"
>
<a-select-option v-for="(item, index) in dictDataAll" :key="index" :value="item.code">{{
item.name
}}</a-select-option>
@ -74,201 +77,199 @@
</a-card>
</template>
<script>
import {
sysCodeGenerateConfigList,
sysCodeGenerateConfigEdit
} from '@/api/modular/gen/sysCodeGenerateConfigManage'
import fkModal from './fkModal'
export default {
components: {
fkModal
},
data() {
return {
//
columns: [{
title: '字段',
dataIndex: 'columnName'
},
{
title: '描述',
dataIndex: 'columnComment',
scopedSlots: {
customRender: 'columnComment'
}
},
{
title: '类型',
dataIndex: 'netType'
},
// {
// title: 'java',
// dataIndex: 'javaType',
// scopedSlots: { customRender: 'javaType' }
// },
{
title: '作用类型',
dataIndex: 'effectType',
scopedSlots: {
customRender: 'effectType'
}
},
{
title: '字典',
dataIndex: 'dictTypeCode',
scopedSlots: {
customRender: 'dictTypeCode'
}
},
{
title: '列表显示',
align: 'center',
dataIndex: 'whetherTable',
scopedSlots: {
customRender: 'whetherTable'
}
},
// {
// title: '',
// align: 'center',
// dataIndex: 'whetherRetract',
// scopedSlots: { customRender: 'whetherRetract' }
// },
{
title: '增改',
align: 'center',
dataIndex: 'whetherAddUpdate',
scopedSlots: {
customRender: 'whetherAddUpdate'
}
},
{
title: '必填',
align: 'center',
dataIndex: 'whetherRequired',
scopedSlots: {
customRender: 'whetherRequired'
}
},
{
title: '是否是查询',
align: 'center',
dataIndex: 'queryWhether',
scopedSlots: {
customRender: 'queryWhether'
}
},
{
title: '查询方式',
dataIndex: 'queryType',
scopedSlots: {
customRender: 'queryType'
}
import { sysCodeGenerateConfigList, sysCodeGenerateConfigEdit } from '@/api/modular/gen/sysCodeGenerateConfigManage'
import fkModal from './fkModal'
export default {
components: {
fkModal
},
data() {
return {
//
columns: [
{
title: '字段',
dataIndex: 'columnName'
},
{
title: '描述',
dataIndex: 'columnComment',
scopedSlots: {
customRender: 'columnComment'
}
},
{
title: '类型',
dataIndex: 'netType'
},
// {
// title: 'java',
// dataIndex: 'javaType',
// scopedSlots: { customRender: 'javaType' }
// },
{
title: '作用类型',
dataIndex: 'effectType',
scopedSlots: {
customRender: 'effectType'
}
},
{
title: '字典',
dataIndex: 'dictTypeCode',
scopedSlots: {
customRender: 'dictTypeCode'
}
},
{
title: '列表显示',
align: 'center',
dataIndex: 'whetherTable',
scopedSlots: {
customRender: 'whetherTable'
}
},
// {
// title: '',
// align: 'center',
// dataIndex: 'whetherRetract',
// scopedSlots: { customRender: 'whetherRetract' }
// },
{
title: '增改',
align: 'center',
dataIndex: 'whetherAddUpdate',
scopedSlots: {
customRender: 'whetherAddUpdate'
}
},
{
title: '必填',
align: 'center',
dataIndex: 'whetherRequired',
scopedSlots: {
customRender: 'whetherRequired'
}
},
{
title: '是否是查询',
align: 'center',
dataIndex: 'queryWhether',
scopedSlots: {
customRender: 'queryWhether'
}
},
{
title: '查询方式',
dataIndex: 'queryType',
scopedSlots: {
customRender: 'queryType'
}
],
indexConfigShow: false,
tableLoading: false,
visible: false,
loadData: [],
javaTypeData: [],
effectTypeData: [],
dictDataAll: [],
codeGenQueryTypeData: [],
yesOrNoData: []
}
},
methods: {
/**
* 打开界面
*/
open(data) {
this.indexConfigShow = true
this.tableLoading = true
const dictOption = this.$options
this.javaTypeData = dictOption.filters['dictData']('code_gen_net_type')
this.effectTypeData = dictOption.filters['dictData']('code_gen_effect_type')
this.dictDataAll = dictOption.filters['dictDataAll']()
this.yesOrNoData = dictOption.filters['dictData']('yes_or_no')
this.codeGenQueryTypeData = dictOption.filters['dictData']('code_gen_query_type')
const params = {
codeGenId: data.id
}
sysCodeGenerateConfigList(params).then((res) => {
this.loadData = res.data
this.loadData.forEach(item => {
for (const key in item) {
if (item[key] === 'Y') {
item[key] = true
}
if (item[key] === 'N') {
item[key] = false
}
}
})
this.tableLoading = false
})
},
/**
* 提交表单
*/
handleSubmit() {
this.tableLoading = true
// ,
// eslint-disable-next-line prefer-const
let loadDatas = JSON.parse(JSON.stringify(this.loadData))
loadDatas.forEach(item => {
//
],
indexConfigShow: false,
tableLoading: false,
visible: false,
loadData: [],
// javaTypeData: [],
effectTypeData: [],
dictDataAll: [],
codeGenQueryTypeData: [],
yesOrNoData: []
}
},
methods: {
/**
* 打开界面
*/
open(data) {
this.indexConfigShow = true
this.tableLoading = true
const dictOption = this.$options
// this.javaTypeData = dictOption.filters['dictData']('code_gen_net_type')
this.effectTypeData = dictOption.filters['dictData']('code_gen_effect_type')
this.dictDataAll = dictOption.filters['dictDataAll']()
this.yesOrNoData = dictOption.filters['dictData']('yes_or_no')
this.codeGenQueryTypeData = dictOption.filters['dictData']('code_gen_query_type')
const params = {
codeGenId: data.id
}
sysCodeGenerateConfigList(params).then(res => {
this.loadData = res.data
this.loadData.forEach(item => {
for (const key in item) {
if (item[key] === true) {
item[key] = 'Y'
if (item[key] === 'Y') {
item[key] = true
}
if (item[key] === false) {
item[key] = 'N'
if (item[key] === 'N') {
item[key] = false
}
}
})
// const param = {
// sysCodeGenerateConfigParamList: loadDatas
// }
sysCodeGenerateConfigEdit(loadDatas).then((res) => {
this.tableLoading = false
if (res.success) {
this.$message.success('编辑成功')
this.handleCancel()
} else {
this.$message.error('编辑失败:' + res.message)
this.tableLoading = false
})
},
/**
* 提交表单
*/
handleSubmit() {
this.tableLoading = true
// ,
// eslint-disable-next-line prefer-const
let loadDatas = JSON.parse(JSON.stringify(this.loadData))
loadDatas.forEach(item => {
//
for (const key in item) {
if (item[key] === true) {
item[key] = 'Y'
}
if (item[key] === false) {
item[key] = 'N'
}
})
},
/**
* 判断是否用于是否能选择或输入等
*/
judgeColumns(data) {
if (
data.columnName.indexOf('createdUserName') > -1 ||
data.columnName.indexOf('createdTime') > -1 ||
data.columnName.indexOf('updatedUserName') > -1 ||
data.columnName.indexOf('updatedTime') > -1 ||
data.columnKey === 'True'
) {
return true
}
return false
},
/**
* 作用类型改变
*/
effectTypeChange(data, value) {
if (value === 'fk') {
console.log(11)
this.$refs.fkModal.show(data)
})
// const param = {
// sysCodeGenerateConfigParamList: loadDatas
// }
sysCodeGenerateConfigEdit(loadDatas).then(res => {
this.tableLoading = false
if (res.success) {
this.$message.success('编辑成功')
this.handleCancel()
} else {
this.$message.error('编辑失败:' + res.message)
}
},
handleCancel() {
this.$emit('ok')
this.loadData = []
this.indexConfigShow = false
})
},
/**
* 判断是否用于是否能选择或输入等
*/
judgeColumns(data) {
if (
data.columnName.indexOf('createdUserName') > -1 ||
data.columnName.indexOf('createdTime') > -1 ||
data.columnName.indexOf('updatedUserName') > -1 ||
data.columnName.indexOf('updatedTime') > -1 ||
data.columnKey === 'True'
) {
return true
}
return false
},
/**
* 作用类型改变
*/
effectTypeChange(data, value) {
if (value === 'fk') {
console.log(11)
this.$refs.fkModal.show(data)
}
},
handleCancel() {
this.$emit('ok')
this.loadData = []
this.indexConfigShow = false
}
}
}
</script>

Loading…
Cancel
Save