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

调整

parent 6fcd8861
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmekpi/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -3,12 +3,22 @@ ...@@ -3,12 +3,22 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46 * @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmerwgl/edit.vue
--> -->
<template> <template>
<!-- prop 穿透赋值 --> <!-- 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"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</template> </template>
...@@ -27,6 +37,11 @@ ...@@ -27,6 +37,11 @@
export default { export default {
data() { data() {
return { return {
uploadAttachments:[],
attachmentListAttachments:[],
attachmentListParams:{
groupid:''
},
editConfig: { editConfig: {
/* 生成form表单 */ /* 生成form表单 */
editColItemList: [{ editColItemList: [{
...@@ -73,35 +88,33 @@ ...@@ -73,35 +88,33 @@
}, },
], ],
/* 生成主从表,为空数组默认不展示 */ /* 生成主从表,为空数组默认不展示 */
editTableTitle: [ 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: '' detailTable: ''
} }
} }
}, },
computed:{
attachments(){
return [...this.uploadAttachments,...this.attachmentListAttachments]
}
},
methods: { 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:示例按钮 * @description:示例按钮
* @param {*} ctx操作edit实例内容 * @param {*} ctx操作edit实例内容
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmerwgl/index.vue
--> -->
<template> <template>
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmerwgl/import'" />
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template> </template>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46 * @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmesjhpcecfx/edit.vue
--> -->
<template> <template>
...@@ -29,24 +29,25 @@ ...@@ -29,24 +29,25 @@
return { return {
editConfig: { editConfig: {
/* 生成form表单 */ /* 生成form表单 */
editColItemList: [{ editColItemList: [
label: 'IOER', // {
prop: 'ioer', // label: 'IOER',
span: 24, // prop: 'ioer',
type: 'textarea', // span: 24,
}, // type: 'textarea',
{ // },
label: 'FA', // {
prop: 'fa', // label: 'FA',
span: 24, // prop: 'fa',
type: 'textarea', // span: 24,
}, // type: 'textarea',
{ // },
label: 'CQ', // {
prop: 'cq', // label: 'CQ',
span: 24, // prop: 'cq',
type: 'textarea', // span: 24,
}, // type: 'textarea',
// },
{ {
label: '偏差汇总', label: '偏差汇总',
prop: 'pchz', prop: 'pchz',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmesjhpcecfx/index.vue
--> -->
<template> <template>
...@@ -28,21 +28,22 @@ ...@@ -28,21 +28,22 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'fme/ufmesjpc', url: 'fme/ufmesjpc',
tableTitle: [{ tableTitle: [
title: "IOER", // {
field: "ioer", // title: "IOER",
width: 300 // field: "ioer",
}, // width: 300
{ // },
title: "FA", // {
field: "fa", // title: "FA",
width: 300 // field: "fa",
}, // width: 300
{ // },
title: "CQ", // {
field: "cq", // title: "CQ",
width: 300 // field: "cq",
}, // width: 300
// },
{ {
title: "偏差汇总", title: "偏差汇总",
field: "pchz", field: "pchz",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/index.vue
--> -->
<template> <template>
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmezbp/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -55,30 +55,31 @@ ...@@ -55,30 +55,31 @@
</div> </div>
<div class="showYearBodyItem flex1" :class="{ <div class="showYearBodyItem flex1" :class="{
'bg-yellow':yearItem.rlkkx==1, 'bg-yellow':yearItem.wbyrywsj<=12&&yearItem.wbyrywsj>=6,
'bg-green':yearItem.rlkkx<1, 'bg-green':yearItem.wbyrywsj<6,
'bg-red':yearItem.rlkkx>1, 'bg-red':yearItem.wbyrywsj>12,
}"> }">
<div class="showYearBodyItemTitle"> <div class="showYearBodyItemTitle">
燃料可靠性 外部引入异物事件
</div> </div>
<div class="showYearBodyItemValue flex-center"> <div class="showYearBodyItemValue flex-center">
{{yearItem.rlkkx||0}} {{yearItem.wbyrywsj||0}}
</div> </div>
</div> </div>
<div class="showYearBodyItem flex1" :class="{ <div class="showYearBodyItem flex1" :class="{
'bg-yellow':yearItem.wbyrywsj<=12&&yearItem.wbyrywsj>=6, 'bg-yellow':yearItem.rlkkx==1,
'bg-green':yearItem.wbyrywsj<6, 'bg-green':yearItem.rlkkx<1,
'bg-red':yearItem.wbyrywsj>12, 'bg-red':yearItem.rlkkx>1,
}"> }">
<div class="showYearBodyItemTitle"> <div class="showYearBodyItemTitle">
外部引入异物事件 燃料可靠性
</div> </div>
<div class="showYearBodyItemValue flex-center"> <div class="showYearBodyItemValue flex-center">
{{yearItem.wbyrywsj||0}} {{yearItem.rlkkx||0}}
</div> </div>
......
...@@ -163,7 +163,18 @@ ...@@ -163,7 +163,18 @@
return this.form.sfsyhc return this.form.sfsyhc
} }
}, },
computed:{
dxdm(){
return this.form.dxdm
}
},
watch: { watch: {
dxdm(val){
if(!val.startsWith("YJ")){
this.form.dxdm="YJ".concat(val)
}
},
sfsybpbj(v) { sfsybpbj(v) {
if (v == 'Y') { if (v == 'Y') {
this.activeName = '2' this.activeName = '2'
...@@ -327,6 +338,7 @@ ...@@ -327,6 +338,7 @@
prop: 'dxdm', prop: 'dxdm',
span: 20, span: 20,
type: 'input', type: 'input',
value:'YJ'
}, },
{ {
label: '备注', label: '备注',
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ucneacpip/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46 * @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/ywxxgl/gshbmjby/edit.vue
--> -->
<template> <template>
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
</div> </div>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/ywxxgl/jdlcdxgsjs/index.vue
--> -->
<template> <template>
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ujdlcdxgsjs/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/ujdysq/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -3,12 +3,22 @@ ...@@ -3,12 +3,22 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46 * @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/ywxxgl/rydgzzqrd/edit.vue
--> -->
<template> <template>
<!-- prop 穿透赋值 --> <!-- 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"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</template> </template>
...@@ -27,6 +37,11 @@ ...@@ -27,6 +37,11 @@
export default { export default {
data() { data() {
return { return {
uploadAttachments:[],
attachmentListAttachments:[],
attachmentListParams:{
groupid:''
},
editConfig: { editConfig: {
/* 生成form表单 */ /* 生成form表单 */
editColItemList: [ editColItemList: [
...@@ -133,7 +148,27 @@ ...@@ -133,7 +148,27 @@
} }
} }
}, },
computed:{
attachments(){
return [...this.uploadAttachments,...this.attachmentListAttachments]
}
},
methods: { 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:示例按钮 * @description:示例按钮
* @param {*} ctx操作edit实例内容 * @param {*} ctx操作edit实例内容
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/ywxxgl/rydgzzqrd/index.vue
--> -->
<template> <template>
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/urydgzzqrd/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/ywxxgl/ywjdzb/index.vue
--> -->
<template> <template>
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/uywjdzb/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'ywxxgl/uywsj/import'" />
</template> </template>
</BasePage> </BasePage>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<ImportButton @success="()=>{ctx.basePage.refresh()}" :url="'jywxxgl/uywxx/import'" />
</template> </template>
</BasePage> </BasePage>
...@@ -123,8 +124,7 @@ ...@@ -123,8 +124,7 @@
} }
], ],
queryParams: [ queryParams: [
[ [{
{
label: '名称', label: '名称',
prop: 'name', prop: 'name',
span: 6, span: 6,
......
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