From c7da303a2d6c3d8502adffa293c425ef702b7723 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 13 八月 2025 17:28:43 +0800
Subject: [PATCH] 查询文本框clear
---
src/views/wel/shemi.vue | 49 +++++++++++++++++++++++++++++--------------------
1 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index a8194a9..5ee7730 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -65,7 +65,7 @@
</el-dialog>
<avue-tabs :option="tabsOption" @change="tabsHandleChange" style="margin-top: 30px;" v-if="isShowTabs"></avue-tabs>
<avue-form v-if="tabsType == 'tab1'" :option="tabsFormOption" v-model="tabsForm"></avue-form>
- <span v-else-if="tabsType == 'tab2'">鐗堟湰淇℃伅</span>
+ <!--<span v-else-if="tabsType == 'tab2'">鐗堟湰淇℃伅</span>-->
<template v-else-if="tabsType == 'tab3'">
<div v-html="convertToHtml(fileContent)" class="convertToHtml"></div>
</template>
@@ -91,10 +91,10 @@
<el-drawer title="鏇挎崲" append-to-body v-model="todolistModel" size="100%" class="code-box">
<div class="approve-box">
<div class="left">
- <TodolistLeft :row="row" :replaceDataId="replaceDataId" :drawingNo="drawingNo" :processNo="processNo" @selection-change="todoSelectionChange" />
+ <TodolistLeft :row="row" :replaceDataId="replaceDataId" :drawingNo="drawingNo" :processNo="processNo" :processEdition="processEdition" @selection-change="todoSelectionChange" />
</div>
<div class="right">
- <TodolistRightTop :row="row" />
+ <TodolistRightTop :row="row" :name="name" />
<avue-form ref="form" :option="optionApprove" v-model="formApprove" @submit="handleSubmit" />
</div>
</div>
@@ -115,6 +115,7 @@
return {
drawingNo: '',
processNo: '',
+ processEdition: '',
replaceDataId: "",
formApprove: {
title: '',
@@ -209,22 +210,22 @@
icon: 'el-icon-info',
label: '鑺傜偣淇℃伅',
prop: 'tab1',
- }, {
+ }/*, {
icon: 'el-icon-warning',
label: '鐗堟湰淇℃伅',
prop: 'tab2',
- }]
+ }*/]
},
tabsOption2: {
column: [{
icon: 'el-icon-info',
label: '鑺傜偣淇℃伅',
prop: 'tab1',
- }, {
+ },/* {
icon: 'el-icon-warning',
label: '鐗堟湰淇℃伅',
prop: 'tab2',
- }, {
+ }, */{
icon: 'el-icon-warning',
label: '鏂囦欢鍐呭',
prop: 'tab3'
@@ -261,25 +262,25 @@
prop: 'createTime',
disabled: true,
placeholder: " "
- },
+ },/*
{
label: '鑺傜偣鎻忚堪',
prop: 'description',
disabled: true,
placeholder: " "
- },
+ },*/
{
label: '淇敼鏃堕棿',
prop: 'updateTime',
disabled: true,
placeholder: " "
- },
+ }/*,
{
label: '澶囨敞',
prop: 'remark',
disabled: true,
placeholder: " "
- }
+ }*/
]
},
tabsForm: {},
@@ -411,7 +412,7 @@
return '';
}
}
- },
+ },/*
{
label: '鐗堟',
prop: 'processEdition',
@@ -426,16 +427,16 @@
{
label: '鎻忚堪',
prop: 'abc'
- },
+ },*/
{
label: '绫诲瀷',
prop: 'nodeTypeName'
- },
+ },/*
{
label: '璁惧',
prop: 'machineCode'
},
-
+ */
{
label: '閿佸畾鐘舵��',
prop: 'isLocked',
@@ -458,25 +459,30 @@
//闈炵▼搴忚妭鐐�
return '';
}else{
- if(value==0||value==null){
+ if(value==0||value==-1){
return '鏈惎鍔�';
}else if(value == 1){
return '瀹℃壒涓�';
}else if(value == 2){
return '宸查�氳繃';
}else{
- return '鏈畾涔�';
+ return '';
}
}
},
- },
+ },/*
{
label: '娴嬭瘯绋嬪簭',
prop: 'abc'
- },
+ },*/
{
label: '鍒涘缓浜�',
prop: 'createUserName',
+ width: '180'
+ },
+ {
+ label: '鍒涘缓鏃堕棿',
+ prop: 'createTime',
width: '180'
}
],
@@ -629,6 +635,7 @@
title: this.formApprove.title,
nodeId: this.id,
tempInstanceId: this.replaceDataId,
+ comment: this.formApprove.comment,
assignee: this.formApprove.assignee
}
axios({
@@ -689,7 +696,9 @@
this.row = row;
this.replaceDataId = resp.data.data.processInstanceId;
this.processNo = resp.data.data.processNo;
- this.drawingNo = resp.data.data.drawingNo;
+ this.processEdition = resp.data.data.processEdition;
+ this.drawingNo = resp.data.data.drawingNo;
+ this.formApprove.title = resp.data.data.name + "鏇挎崲";
this.todolistModel = true;
});
},
--
Gitblit v1.9.3