!518 【修复】修复el-input、el-select、el-date-picker宽度(先等等、全局影响)

Merge pull request !518 from 半栈幼儿员/hotfix/input-width
pull/532/MERGE
芋道源码 2024-08-31 10:38:01 +00:00 committed by Gitee
commit 632dea08c0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
32 changed files with 137 additions and 34 deletions

View File

@ -71,7 +71,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -40,7 +40,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -70,7 +70,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="是否发布" prop="publicStatus"> <el-form-item label="是否发布" prop="publicStatus">

View File

@ -76,7 +76,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -11,6 +11,7 @@
<el-form-item label="流程名称" prop="name"> <el-form-item label="流程名称" prop="name">
<el-input <el-input
v-model="queryParams.processInstanceName" v-model="queryParams.processInstanceName"
@keyup.enter="handleQuery"
class="!w-240px" class="!w-240px"
clearable clearable
placeholder="请输入流程名称" placeholder="请输入流程名称"

View File

@ -127,6 +127,7 @@
placeholder="选择下次联系时间" placeholder="选择下次联系时间"
type="datetime" type="datetime"
value-format="x" value-format="x"
class="!w-1/1"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -153,6 +153,7 @@
placeholder="选择下次联系时间" placeholder="选择下次联系时间"
type="datetime" type="datetime"
value-format="x" value-format="x"
class="!w-1/1"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -127,6 +127,7 @@
placeholder="选择下次联系时间" placeholder="选择下次联系时间"
type="datetime" type="datetime"
value-format="x" value-format="x"
class="!w-1/1"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -124,6 +124,7 @@
placeholder="选择回款日期" placeholder="选择回款日期"
type="date" type="date"
value-format="x" value-format="x"
class="!w-100%"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -89,6 +89,7 @@
placeholder="选择计划回款日期" placeholder="选择计划回款日期"
type="date" type="date"
value-format="x" value-format="x"
class="!w-100%"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -30,7 +30,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -30,7 +30,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="客户" prop="customerId"> <el-form-item label="客户" prop="customerId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="客户" prop="customerId"> <el-form-item label="客户" prop="customerId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="客户" prop="customerId"> <el-form-item label="客户" prop="customerId">

View File

@ -43,7 +43,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="supplierId"> <el-form-item label="供应商" prop="supplierId">

View File

@ -75,7 +75,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -15,6 +15,7 @@
placeholder="请输入文件路径" placeholder="请输入文件路径"
clearable clearable
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="文件类型" prop="type" width="80"> <el-form-item label="文件类型" prop="type" width="80">
@ -23,6 +24,7 @@
placeholder="请输入文件类型" placeholder="请输入文件类型"
clearable clearable
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="createTime"> <el-form-item label="创建时间" prop="createTime">
@ -33,6 +35,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -11,19 +11,34 @@
label-width="68px" label-width="68px"
> >
<el-form-item label="回复状态" prop="replyStatus"> <el-form-item label="回复状态" prop="replyStatus">
<el-select v-model="queryParams.replyStatus"> <el-select v-model="queryParams.replyStatus" class="!w-240px">
<el-option label="已回复" :value="true" /> <el-option label="已回复" :value="true" />
<el-option label="未回复" :value="false" /> <el-option label="未回复" :value="false" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="商品名称" prop="spuName"> <el-form-item label="商品名称" prop="spuName">
<el-input v-model="queryParams.spuName" placeholder="请输入商品名称" /> <el-input
v-model="queryParams.spuName"
placeholder="请输入商品名称"
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item> </el-form-item>
<el-form-item label="用户名称" prop="userNickname"> <el-form-item label="用户名称" prop="userNickname">
<el-input v-model="queryParams.userNickname" placeholder="请输入用户名称" /> <el-input
v-model="queryParams.userNickname"
placeholder="请输入用户名称"
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item> </el-form-item>
<el-form-item label="订单编号" prop="orderId"> <el-form-item label="订单编号" prop="orderId">
<el-input v-model="queryParams.orderId" placeholder="请输入订单编号" /> <el-input
v-model="queryParams.orderId"
placeholder="请输入订单编号"
@keyup.enter="handleQuery"
class="!w-240px"
/>
</el-form-item> </el-form-item>
<el-form-item label="评论时间" prop="createTime"> <el-form-item label="评论时间" prop="createTime">
<el-date-picker <el-date-picker

View File

@ -156,7 +156,6 @@
<el-date-picker <el-date-picker
v-model="formData.validTimes" v-model="formData.validTimes"
:default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]" :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]"
style="width: 240px"
type="datetimerange" type="datetimerange"
value-format="x" value-format="x"
/> />

View File

@ -81,7 +81,7 @@
<el-date-picker <el-date-picker
v-model="queryParams.createTime" v-model="queryParams.createTime"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-260px" class="!w-280px"
end-placeholder="自定义时间" end-placeholder="自定义时间"
start-placeholder="自定义时间" start-placeholder="自定义时间"
type="daterange" type="daterange"

View File

@ -79,7 +79,7 @@
<el-date-picker <el-date-picker
v-model="queryParams.createTime" v-model="queryParams.createTime"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-260px" class="!w-280px"
end-placeholder="自定义时间" end-placeholder="自定义时间"
start-placeholder="自定义时间" start-placeholder="自定义时间"
type="daterange" type="daterange"

View File

@ -13,6 +13,7 @@
v-model="queryParams.name" v-model="queryParams.name"
placeholder="请输入部门名称" placeholder="请输入部门名称"
clearable clearable
@keyup.enter="handleQuery"
class="!w-240px" class="!w-240px"
/> />
</el-form-item> </el-form-item>

View File

@ -25,12 +25,26 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '邮箱', label: '邮箱',
field: 'mail', field: 'mail',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '用户名', label: '用户名',
field: 'username', field: 'username',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '密码', label: '密码',

View File

@ -21,7 +21,10 @@ const crudSchemas = reactive<CrudSchema[]>([
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
style: {
width: '240px'
}
} }
}, },
detail: { detail: {
@ -36,7 +39,14 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '用户编号', label: '用户编号',
field: 'userId', field: 'userId',
isSearch: true, isSearch: true,
isTable: false isTable: false,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '用户类型', label: '用户类型',
@ -44,7 +54,14 @@ const crudSchemas = reactive<CrudSchema[]>([
dictType: DICT_TYPE.USER_TYPE, dictType: DICT_TYPE.USER_TYPE,
dictClass: 'number', dictClass: 'number',
isSearch: true, isSearch: true,
isTable: false isTable: false,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '邮件标题', label: '邮件标题',
@ -65,7 +82,14 @@ const crudSchemas = reactive<CrudSchema[]>([
field: 'sendStatus', field: 'sendStatus',
dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS, dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '邮箱账号', label: '邮箱账号',
@ -79,6 +103,9 @@ const crudSchemas = reactive<CrudSchema[]>([
optionsAlias: { optionsAlias: {
labelField: 'mail', labelField: 'mail',
valueField: 'id' valueField: 'id'
},
style: {
width: '240px'
} }
} }
} }
@ -93,7 +120,14 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '模板编号', label: '模板编号',
field: 'templateId', field: 'templateId',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板编码', label: '模板编码',

View File

@ -22,12 +22,26 @@ const crudSchemas = reactive<CrudSchema[]>([
{ {
label: '模板编码', label: '模板编码',
field: 'code', field: 'code',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板名称', label: '模板名称',
field: 'name', field: 'name',
isSearch: true isSearch: true,
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '模板标题', label: '模板标题',
@ -59,6 +73,9 @@ const crudSchemas = reactive<CrudSchema[]>([
optionsAlias: { optionsAlias: {
labelField: 'mail', labelField: 'mail',
valueField: 'id' valueField: 'id'
},
style: {
width: '240px'
} }
} }
}, },
@ -82,7 +99,14 @@ const crudSchemas = reactive<CrudSchema[]>([
field: 'status', field: 'status',
isSearch: true, isSearch: true,
dictType: DICT_TYPE.COMMON_STATUS, dictType: DICT_TYPE.COMMON_STATUS,
dictClass: 'number' dictClass: 'number',
search: {
componentProps: {
style: {
width: '240px'
}
}
}
}, },
{ {
label: '备注', label: '备注',
@ -100,7 +124,10 @@ const crudSchemas = reactive<CrudSchema[]>([
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
style: {
width: '240px'
}
} }
} }
}, },

View File

@ -61,7 +61,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-220px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="业务编号" prop="bizId"> <el-form-item label="业务编号" prop="bizId">

View File

@ -13,6 +13,7 @@
v-model="queryParams.name" v-model="queryParams.name"
placeholder="请输入岗位名称" placeholder="请输入岗位名称"
clearable clearable
class="!w-240px"
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
/> />
</el-form-item> </el-form-item>
@ -21,11 +22,12 @@
v-model="queryParams.code" v-model="queryParams.code"
placeholder="请输入岗位编码" placeholder="请输入岗位编码"
clearable clearable
class="!w-240px"
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable> <el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px">
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value"

View File

@ -14,6 +14,7 @@
v-model="queryParams.signature" v-model="queryParams.signature"
placeholder="请输入短信签名" placeholder="请输入短信签名"
clearable clearable
class="!w-240px"
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
/> />
</el-form-item> </el-form-item>
@ -40,6 +41,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>