Commit 555837ac authored by 李苏's avatar 李苏 💬

调整

parent 6fcd8861
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmekpi/import'" />
</template>
</BasePage>
......
......@@ -3,12 +3,22 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 16:38:47
* @LastEditTime: 2024-12-06 13:55:59
* @FilePath: /zghywpc-vue/src/views/fmegl/fmerwgl/edit.vue
-->
<template>
<!-- prop 穿透赋值 -->
<BaseEdit v-bind="$attrs" :config='editConfig'>
<BaseEdit @getForm='getForm' :attachments='attachments' v-bind="$attrs" :config='editConfig'>
<template #form="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
<el-form-item label="上传附件">
<UploadTmp @getList='uploadGetList' />
</el-form-item>
<el-form-item label="附件列表">
<AttachmentList :canDelete='ctx.baseEdit.type=="view"?false:true' url='fme/ufmerwgl/attachment' :params='attachmentListParams' ref="attachmentList" @getList='attachmentListGetList' />
</el-form-item>
</template>
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</template>
......@@ -27,6 +37,11 @@
export default {
data() {
return {
uploadAttachments:[],
attachmentListAttachments:[],
attachmentListParams:{
groupid:''
},
editConfig: {
/* 生成form表单 */
editColItemList: [{
......@@ -73,35 +88,33 @@
},
],
/* 生成主从表,为空数组默认不展示 */
editTableTitle: [
// {
// title: "序号",
// field: "xh",
// width: 50,
// align: "center"
// },
// {
// title: "点检部位",
// field: "bw",
// width: 180,
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
editTableTitle: [],
/* 子表名,可选 同editTableTitle一起用*/
detailTable: ''
}
}
},
computed:{
attachments(){
return [...this.uploadAttachments,...this.attachmentListAttachments]
}
},
methods: {
getForm(e){
this.attachmentListParams.groupid=e.id
this.$nextTick(()=>{
this.$refs.attachmentList.init()
})
},
uploadGetList(e) {
this.uploadAttachments = e
},
attachmentListGetList(e) {
this.attachmentListAttachments = e
},
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 16:39:26
* @LastEditTime: 2024-12-06 14:05:12
* @FilePath: /zghywpc-vue/src/views/fmegl/fmerwgl/index.vue
-->
<template>
......@@ -12,6 +12,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmerwgl/import'" />
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 16:37:18
* @LastEditTime: 2024-12-06 10:58:08
* @FilePath: /zghywpc-vue/src/views/fmegl/fmesjhpcecfx/edit.vue
-->
<template>
......@@ -29,24 +29,25 @@
return {
editConfig: {
/* 生成form表单 */
editColItemList: [{
label: 'IOER',
prop: 'ioer',
span: 24,
type: 'textarea',
},
{
label: 'FA',
prop: 'fa',
span: 24,
type: 'textarea',
},
{
label: 'CQ',
prop: 'cq',
span: 24,
type: 'textarea',
},
editColItemList: [
// {
// label: 'IOER',
// prop: 'ioer',
// span: 24,
// type: 'textarea',
// },
// {
// label: 'FA',
// prop: 'fa',
// span: 24,
// type: 'textarea',
// },
// {
// label: 'CQ',
// prop: 'cq',
// span: 24,
// type: 'textarea',
// },
{
label: '偏差汇总',
prop: 'pchz',
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 16:36:18
* @LastEditTime: 2024-12-06 10:58:25
* @FilePath: /zghywpc-vue/src/views/fmegl/fmesjhpcecfx/index.vue
-->
<template>
......@@ -28,21 +28,22 @@
config: {
/* 基本配置*/
url: 'fme/ufmesjpc',
tableTitle: [{
title: "IOER",
field: "ioer",
width: 300
},
{
title: "FA",
field: "fa",
width: 300
},
{
title: "CQ",
field: "cq",
width: 300
},
tableTitle: [
// {
// title: "IOER",
// field: "ioer",
// width: 300
// },
// {
// title: "FA",
// field: "fa",
// width: 300
// },
// {
// title: "CQ",
// field: "cq",
// width: 300
// },
{
title: "偏差汇总",
field: "pchz",
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 15:08:36
* @LastEditTime: 2024-12-06 14:08:23
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/index.vue
-->
<template>
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmezbp/import'" />
</template>
</BasePage>
......
......@@ -55,30 +55,31 @@
</div>
<div class="showYearBodyItem flex1" :class="{
'bg-yellow':yearItem.rlkkx==1,
'bg-green':yearItem.rlkkx<1,
'bg-red':yearItem.rlkkx>1,
}">
'bg-yellow':yearItem.wbyrywsj<=12&&yearItem.wbyrywsj>=6,
'bg-green':yearItem.wbyrywsj<6,
'bg-red':yearItem.wbyrywsj>12,
}">
<div class="showYearBodyItemTitle">
燃料可靠性
外部引入异物事件
</div>
<div class="showYearBodyItemValue flex-center">
{{yearItem.rlkkx||0}}
{{yearItem.wbyrywsj||0}}
</div>
</div>
<div class="showYearBodyItem flex1" :class="{
'bg-yellow':yearItem.wbyrywsj<=12&&yearItem.wbyrywsj>=6,
'bg-green':yearItem.wbyrywsj<6,
'bg-red':yearItem.wbyrywsj>12,
}">
'bg-yellow':yearItem.rlkkx==1,
'bg-green':yearItem.rlkkx<1,
'bg-red':yearItem.rlkkx>1,
}">
<div class="showYearBodyItemTitle">
外部引入异物事件
燃料可靠性
</div>
<div class="showYearBodyItemValue flex-center">
{{yearItem.wbyrywsj||0}}
{{yearItem.rlkkx||0}}
</div>
......
......@@ -163,7 +163,18 @@
return this.form.sfsyhc
}
},
computed:{
dxdm(){
return this.form.dxdm
}
},
watch: {
dxdm(val){
if(!val.startsWith("YJ")){
this.form.dxdm="YJ".concat(val)
}
},
sfsybpbj(v) {
if (v == 'Y') {
this.activeName = '2'
......@@ -327,6 +338,7 @@
prop: 'dxdm',
span: 20,
type: 'input',
value:'YJ'
},
{
label: '备注',
......
......@@ -6,6 +6,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ucneacpip/import'" />
</template>
</BasePage>
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 11:05:32
* @LastEditTime: 2024-12-05 16:57:50
* @FilePath: /zghywpc-vue/src/views/ywxxgl/gshbmjby/edit.vue
-->
<template>
......@@ -73,7 +73,6 @@
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 10:19:18
* @LastEditTime: 2024-12-06 14:12:44
* @FilePath: /zghywpc-vue/src/views/ywxxgl/jdlcdxgsjs/index.vue
-->
<template>
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ujdlcdxgsjs/import'" />
</template>
</BasePage>
......
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ujdysq/import'" />
</template>
</BasePage>
......
......@@ -3,12 +3,22 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 10:51:21
* @LastEditTime: 2024-12-06 13:54:24
* @FilePath: /zghywpc-vue/src/views/ywxxgl/rydgzzqrd/edit.vue
-->
<template>
<!-- prop 穿透赋值 -->
<BaseEdit labelWidth='140px' v-bind="$attrs" :config='editConfig'>
<BaseEdit labelWidth='140px' @getForm='getForm' :attachments='attachments' v-bind="$attrs" :config='editConfig'>
<template #form="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
<el-form-item label="上传附件">
<UploadTmp @getList='uploadGetList' />
</el-form-item>
<el-form-item label="附件列表">
<AttachmentList :canDelete='ctx.baseEdit.type=="view"?false:true' url='ywxxgl/urydgzzqrd/attachment' :params='attachmentListParams' ref="attachmentList" @getList='attachmentListGetList' />
</el-form-item>
</template>
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</template>
......@@ -27,6 +37,11 @@
export default {
data() {
return {
uploadAttachments:[],
attachmentListAttachments:[],
attachmentListParams:{
groupid:''
},
editConfig: {
/* 生成form表单 */
editColItemList: [
......@@ -133,7 +148,27 @@
}
}
},
computed:{
attachments(){
return [...this.uploadAttachments,...this.attachmentListAttachments]
}
},
methods: {
getForm(e){
this.attachmentListParams.groupid=e.id
this.$nextTick(()=>{
this.$refs.attachmentList.init()
})
},
uploadGetList(e) {
this.uploadAttachments = e
},
attachmentListGetList(e) {
this.attachmentListAttachments = e
},
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 10:52:27
* @LastEditTime: 2024-12-06 14:11:50
* @FilePath: /zghywpc-vue/src/views/ywxxgl/rydgzzqrd/index.vue
-->
<template>
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/urydgzzqrd/import'" />
</template>
</BasePage>
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 10:17:27
* @LastEditTime: 2024-12-06 14:09:50
* @FilePath: /zghywpc-vue/src/views/ywxxgl/ywjdzb/index.vue
-->
<template>
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/uywjdzb/import'" />
</template>
</BasePage>
......
......@@ -14,6 +14,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/uywsj/import'" />
</template>
</BasePage>
......
......@@ -6,6 +6,7 @@
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'jywxxgl/uywxx/import'" />
</template>
</BasePage>
......@@ -123,8 +124,7 @@
}
],
queryParams: [
[
{
[{
label: '名称',
prop: 'name',
span: 6,
......@@ -132,11 +132,11 @@
value: ''
},
{
label: '设备编码',
prop: 'sbxxCode',
span: 6,
type: 'input',
value: '',
label: '设备编码',
prop: 'sbxxCode',
span: 6,
type: 'input',
value: '',
}
]
],
......
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