Commit 9150e2a3 authored by 李苏's avatar 李苏 💬

检修功能合并,scss ,模型 首页等调整

parent 9af6e9b3
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<DefaultDialog :app='app'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 辅助编码-->
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
mixins: [editMixin],
async mounted() {
},
data() {
return {
readonly: false,
editColItemList: [
{
label: '备件名称',
prop: 'bpbjmc',
span: 12,
type: 'input',
},
{
label: '备件编码',
prop: 'bpbjbm',
span: 12,
type: 'input',
},
{
label: '备件规格',
prop: 'bpbjgg',
span: 12,
type: 'input',
},
{
label: '备件材质',
prop: 'bpbjcz',
span: 12,
type: 'input',
},
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.$emit('save', this.form)
}
})
}
}
}
</script>
<style scoped>
</style>
<template> <template>
<RelDialog ref="RelDialog" width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <DefaultDialog :app='app'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 辅助编码-->
<el-row :gutter="20" :app="this"> <el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" /> :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> <div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template> </template>
<script> <script>
import { import {
editMixin editMixin
} from 'common' } from 'common'
import gjxx from '@/views/auxinput/gjxx' import gjxx from '@/views/auxinput/gjxx'
export default { export default {
mixins: [editMixin],
mounted() { props: {
this.$nextTick(() => { app: {
this.form.mid = this.app.queryParams.mid type: Object,
if (!this.form.mid) { default: () => {
this.$warning('请选择一条检修内容') return {}
this.$refs.RelDialog.closeAll() }
} }
}) },
mixins: [editMixin],
async mounted() {
}, },
data() { data() {
return { return {
readonly: false,
editColItemList: [{ editColItemList: [{
label: '检修工具', label: '检修工具',
prop: 'gjxxid', prop: 'gjxxid',
...@@ -42,16 +54,53 @@ ...@@ -42,16 +54,53 @@
transform: { transform: {
value: 'id', value: 'id',
label: 'name' label: 'name'
},
give:(row)=>{
this.form.jxgjCode=row.code
this.form.cz=row.cz
this.form.ggxh=row.ggxh
} }
} }
} },
{
label: '工具编码',
readonly:true,
prop: 'jxgjCode',
span: 12,
type: 'input',
},
{
label: '材质',
readonly:true,
prop: 'cz',
span: 12,
type: 'input',
},
{
label: '规格型号',
readonly:true,
prop: 'ggxh',
span: 12,
type: 'input',
},
] ]
} }
}, },
methods: { methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.$emit('save', this.form)
}
})
} }
} }
}
</script> </script>
<style scoped>
</style>
<template> <template>
<RelDialog ref="RelDialog" width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <DefaultDialog :app='app'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 辅助编码-->
<el-row :gutter="20" :app="this"> <el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" /> :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> <div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template> </template>
<script> <script>
import { import {
editMixin editMixin
} from 'common' } from 'common'
import wlxx from '@/views/auxinput/wlxx'
export default { export default {
mixins: [editMixin],
mounted() { props: {
this.$nextTick(() => { app: {
this.form.mid = this.app.queryParams.mid type: Object,
if (!this.form.mid) { default: () => {
this.$warning('请选择一条检修内容') return {}
this.$refs.RelDialog.closeAll() }
} }
}) },
mixins: [editMixin],
async mounted() {
}, },
data() { data() {
return { return {
editColItemList: [{ readonly: false,
label: '物料名称', editColItemList: [
prop: 'wlid', {
span: 24, label: '耗材名称',
required: true, prop: 'hcName',
type: 'AuxInput', span: 12,
typeConfig: { type: 'input',
isRequest: false, },
dynamic: true, {
code: true, label: '耗材规格/型号',
component: wlxx, prop: 'hzgg',
label: 'wlxxName', span: 12,
transform: { type: 'input',
value: 'id', },
label: 'name' {
} label: '耗材材质',
prop: 'hccz',
span: 12,
type: 'input',
},
}
}
] ]
} }
}, },
methods: { methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.$emit('save', this.form)
}
})
} }
} }
}
</script> </script>
<style scoped>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template> <template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog width="80vw" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules" style="height: 70vh;overflow: auto;overflow-x: hidden;"> <el-form slot="form" ref="form" :model="form" label-width="120px" :rules="rules"
style="height: 70vh;overflow: auto;overflow-x: hidden;">
<addgjmx @save='addgjmxbc' v-if="showDialog&&DialogTitle=='新增工具'" :app="this"></addgjmx>
<addbpbjmx @save='savebpbj' v-if="showDialog&&DialogTitle=='新增备品备件'" :app="this"></addbpbjmx>
<addhcmx @save='savehc' v-if="showDialog&&DialogTitle=='新增耗材'" :app="this"></addhcmx>
<el-row :gutter="20" :app="this"> <el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" /> :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row> </el-row>
<!-- 放置标签页面-->
<el-tabs v-model="activeName">
<el-tab-pane label="检修工具" name="1">
<div style="height: 300px;">
<editTableForEdit :phsxTitle='false' :expandTitle='false' code='false' :AuxButton='false' :indexApp='app'
:type='type' ref="editTableForEdit1" :editTableTitle='editTableTitle1' :editTableData="editTableData1">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="addjxgj" size='mini' type="primary">新增检修工具</el-button>
</template>
</editTableForEdit>
</div>
</el-tab-pane>
<el-tab-pane v-if="form.isbpbjsy=='Y'" label="备品备件使用" name="2">
<div style="height: 300px;">
<editTableForEdit :phsxTitle='false' :expandTitle='false' code='false' :AuxButton='false' :indexApp='app'
:type='type' ref="editTableForEdit1" :editTableTitle='editTableTitle2' :editTableData="editTableData2">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="addbpbj" size='mini' type="primary">新增备品备件</el-button>
</template>
</editTableForEdit>
</div>
</el-tab-pane>
<el-tab-pane v-if="form.ishcsy=='Y'" label="耗材使用" name="3">
<div style="height: 300px;">
<editTableForEdit :phsxTitle='false' :expandTitle='false' code='false' :AuxButton='false' :indexApp='app'
:type='type' ref="editTableForEdit1" :editTableTitle='editTableTitle3' :editTableData="editTableData3">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="addhcmx" size='mini' type="primary">新增耗材</el-button>
</template>
</editTableForEdit>
</div>
</el-tab-pane>
<el-tab-pane label="完工附件" name="4">
<!-- 上传div-->
<div style="border-bottom: 1px solid #eee;padding-bottom: 20px;" >
<span style="line-height: 40px;font-size: 16px;font-weight: 700;color: #666;" >附件上传</span>
<div class="upload padding-10">
<el-upload
class="upload-demo"
action="https://jsonplaceholder.typicode.com/posts/"
:on-success="success"
:file-list="fileList">
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</div>
</div>
<div v-if="type!='add'" >
<span style="line-height: 40px;font-size: 16px;font-weight: 700;color: #666;" >附件列表</span>
<div class="download padding-10">
<div v-for="(item,index) in downList" :key="index" class="fileList">
<div class="index">
{{index+1}}
</div>
<div class="name">
{{item.name}}
</div>
<div class="size">
{{item.size}}
</div>
<div class="down">
<span style="color: cornflowerblue;cursor: pointer;" >下载</span>
</div>
<div class="del">
<span style="color: red;cursor: pointer;" >删除</span>
</div>
</div>
</div>
</div>
<!-- 下载div-->
</el-tab-pane>
</el-tabs>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import addgjmx from './addgjmx.vue'
import addbpbjmx from './addbpbjmx.vue'
import addhcmx from './addhcmx.vue'
import { import {
editMixin editMixin
} from 'common' } from 'common'
import sbxx from '@/views/auxinput/sbxx' import sbxx from '@/views/auxinput/sbxx'
export default { export default {
mixins: [editMixin], mixins: [editMixin],
components: {
addgjmx,
addbpbjmx,
addhcmx
},
computed:{
isbpbjsy(){
return this.form.isbpbjsy
},
ishcsy(){
return this.form.ishcsy
}
},
watch:{
isbpbjsy(v){
if(v=='Y'){
this.activeName='2'
}else{
this.activeName='1'
}
},
ishcsy(v){
if(v=='Y'){
this.activeName='3'
}else{
this.activeName='1'
}
}
},
data() { data() {
return { return {
editColItemList: [ fileList:[],
downList:[
{
name:'测试1',
size:'200kb',
},
{
name:'测试2',
size:'2030kb',
}
],
showDialog: false,
DialogWidth: '40vw',
DialogTitle: '新增明细',
/* 表格信息*/
editTableTitle1: [{
label: '工具名称',
prop: 'jxgjName',
width: '260'
},
{
label: '工具编码',
prop: 'jxgjCode',
width: '260'
},
{
label: '材质',
prop: 'cz',
width: '260'
},
{
label: '规格型号',
prop: 'ggxh',
}
],
editTableTitle2: [{
label: '备件名称',
prop: 'bpbjmc',
width: '260'
},
{
label: '备件编码',
prop: 'bpbjbm',
width: '260'
},
{
label: '备件规格',
prop: 'bpbjgg',
width: '260'
},
{ {
label: '备件材质',
prop: 'bpbjcz',
}
],
editTableTitle3: [{
label: '耗材名称',
prop: 'hcName',
width: '260'
},
{
label: '耗材规格/型号',
prop: 'hzgg',
width: '260'
},
{
label: '耗材材质',
prop: 'hccz',
width: '260'
}
],
editTableData1: [],
editTableData2: [],
editTableData3: [],
/* 调整*/
activeName: '1',
editColItemList: [{
label: '设备名称', label: '设备名称',
prop: 'sbxxCode', prop: 'sbxxCode',
span: 12, span: 12,
...@@ -35,8 +226,8 @@ ...@@ -35,8 +226,8 @@
value: 'id', value: 'id',
label: 'name' label: 'name'
}, },
give(res){ give(res) {
this.form.sbxxCode=res.code this.form.sbxxCode = res.code
} }
} }
}, },
...@@ -52,84 +243,104 @@ ...@@ -52,84 +243,104 @@
{ {
label: '是否大修', label: '是否大修',
prop: 'sfdx', prop: 'sfdx',
span: 12, span: 4,
type: 'checkbox', type: 'checkbox',
value:'Y' value: 'Y'
}, },
{ {
label: '大修码', label: '大修码',
prop: 'dxdm', prop: 'dxdm',
span: 24, span: 20,
type: 'textarea',
},
{
label: '备品备件名称',
prop: 'bpbjmc',
span: 12,
type: 'input', type: 'input',
}, },
{ {
label: '备品备件编码', label: '备',
prop: 'bpbjbm', prop: 'bz',
span: 12, span: 24,
type: 'input', type: 'input'
}, },
{ {
label: '备品备件材料牌号', label: '备品备件使用',
prop: 'bpbjclph', prop: 'isbpbjsy',
span: 12, span: 6,
type: 'input', type: 'checkbox',
value: 'N'
}, },
{ {
label: '备品备件规格', label: '耗材使用',
prop: 'bpbjgg', prop: 'ishcsy',
span: 12, span: 6,
type: 'input', type: 'checkbox',
value: 'N'
}, },
{ ]
label: '检修内容', }
prop: 'jxnr',
span: 24,
type: 'textarea',
required: true,
}, },
{ methods: {
label: '检修时间', success(response, file, fileList){
prop: 'jxsj', console.log(response, file, fileList)
span: 12,
type: 'datetime',
required: true,
}, },
{ savehc(data) {
label: '检修方法', let ndata = _.cloneDeep(data)
prop: 'jxffid', this.editTableData3.push(ndata)
span: 12, this.showDialog = false
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jxgl/ujxzyff/query",
"match": {
"value": "id",
"label": "name"
}
}
}, },
{ savebpbj(data) {
label: '完工报告', let ndata = _.cloneDeep(data)
prop: 'wgbg', this.editTableData2.push(ndata)
span: 24, this.showDialog = false
type: 'textarea',
}, },
{ addgjmxbc(data) {
label: '备注', let ndata = _.cloneDeep(data)
prop: 'bz', this.editTableData1.push(ndata)
span: 24, this.showDialog = false
type: 'input'
}, },
addjxgj() {
] this.DialogTitle = '新增工具'
this.showDialog = true
},
addbpbj() {
this.DialogTitle = '新增备品备件'
this.showDialog = true
},
addhcmx() {
this.DialogTitle = '新增耗材'
this.showDialog = true
} }
} }
} }
</script> </script>
<style lang="scss" scoped>
.el-tooltip {
display: none;
}
.download{
width: 100%;
border-top: 1px solid #eee;
}
.fileList{
display: flex;
line-height: 35px;
width: 100%;
border-bottom: 1px solid #eee;
text-align: center;
.index{
width: 5%;
}
.name{
width: 35%;
}
.size{
width: 20%;
}
.down{
width: 20%;
}
.del{
width: 20%;
}
}
</style>
<template> <template>
<div class="min_full" style="border-top: 0px;height: 140vh;"> <BasePage class="min_full" :config="config">
<div style="height:477px;width: 100%;">
<BasePage @getRow='getRow' class="min_full" style="height: 477px;border: 0px;border-bottom: 5px solid #eee;"
ref="basePage" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- <ImportButton @success="()=>{ <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
ctx.basePage.refresh() <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
}" :url="'sbgl/usbxx/import'" /> -->
<AttachFileShow :app='ctx.basePage' ></AttachFileShow>
</template> </template>
</BasePage>
</div>
<div style="height: calc(100% - 477px);width: 100%;">
<el-tabs class="full" v-model="activeName">
<el-tab-pane class="full" label="检修工具" style="height: 100%;" name="jxgj">
<Jxgj :app='this' class="full" ref='jxgj' />
</el-tab-pane>
<el-tab-pane class="full" label="检修物料" style="height: 100%;" name="jxwl">
<Jxwl :app='this' class="full" ref='jxwl' />
</el-tab-pane>
</el-tabs>
</BasePage>
</div>
</div>
</template> </template>
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Jxgj from './jxgj'
import Jxwl from './jxwl'
export default { export default {
name: 'sbjxxx', name: 'sbjxxx',
data() { data() {
return { return {
activeName: 'jxgj',
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'jxgl/usbjx', url: 'jxgl/usbjx',
tableTitle: [ tableTitle: [{
{
title: "设备名称", title: "设备名称",
field: "sbxxName", field: "sbxxName",
width: 180 width: 180
...@@ -63,7 +38,7 @@ ...@@ -63,7 +38,7 @@
fieldType: "checkbox" fieldType: "checkbox"
}, },
{ {
title: "大修码", title: "大修码",
field: "dxdm", field: "dxdm",
width: 350 width: 350
}, },
...@@ -176,34 +151,18 @@ ...@@ -176,34 +151,18 @@
methods: { methods: {
/* 示例*/ /* 示例*/
getRow(row) { getRow(row) {
this.$refs.jxgj.$refs.basePage.queryParams.mid = row.id
this.$refs.jxgj.$refs.basePage.refresh()
this.$refs.jxwl.$refs.basePage.queryParams.mid = row.id
this.$refs.jxwl.$refs.basePage.refresh()
} }
}, },
components: { components: {
Edit, Edit,
Jxgj,
Jxwl
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-tabs__content {
height: calc(100% - 60px);
}
::v-deep .el-tabs__nav-scroll {
padding-left: 10px;
}
.hastree {
height: calc(100vh - 84px);
overflow: hidden;
overflow-x: auto;
}
</style> </style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'sbdagl/sbxx/bjqd/import'" /> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'jxgl/ujxgj',
tableTitle: [{
title: "检修工具",
field: "jxgjName",
width: 140
},
{
title: "创建人",
field: "cjr",
width: 140
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime'
},
{
title: "维护人",
field: "whr",
hidden: true
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [],
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
} else {
this.$warning('请选中一条数据')
}
}
},
components: {
Edit
}
}
</script>
<style>
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'sbdagl/sbxx/bjqd/import'" /> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
mounted(){
this.$nextTick(()=>{
setTimeout(()=>{
this.$refs.basePage.$refs.TablePager.czFixed=undefined
},2000)
})
},
data() {
return {
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'jxgl/ujxwl',
tableTitle: [{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "创建人",
field: "cjr",
width: 140
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime'
},
{
title: "维护人",
field: "whr",
hidden: true
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [],
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
} else {
this.$warning('请选中一条数据')
}
}
},
components: {
Edit
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment