Browse Source

盘点执行周期显示,验证问题。,搜索按钮样式问题

master_hella_20240701
张立 8 months ago
parent
commit
082db12762
  1. 3
      src/components/Form/src/Form.vue
  2. 6
      src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts
  3. 28
      src/views/wms/countManage/count/countPlanMain/index.vue

3
src/components/Form/src/Form.vue

@ -458,7 +458,8 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.myInput { .myInput {
width: calc(100% - 46px); width: 0;
flex: 1
} }
.#{$elNamespace}-form.#{$namespace}-form .#{$elNamespace}-row { .#{$elNamespace}-form.#{$namespace}-form .#{$elNamespace}-row {
margin-right: 0 !important; margin-right: 0 !important;

6
src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts

@ -49,10 +49,14 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '执行周期', label: '执行周期',
field: 'crontab', field: 'crontab',
sort: 'custom', sort: 'custom',
isForm:false,
table: { table: {
width: 150 width: 150
}, },
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '维度', label: '维度',

28
src/views/wms/countManage/count/countPlanMain/index.vue

@ -569,17 +569,29 @@ const selectChange = (field, val) => {
if (field == 'type') { if (field == 'type') {
// //
if (val == 'CYCLE') { if (val == 'CYCLE') {
CountPlanMain.allSchemas.formSchema.splice(1,0,{ // CountPlanMain.allSchemas.formSchema.splice(1,0,{
component: "Input", // component: "Input",
componentProps: {}, // componentProps: {},
field:"crontab", // field:"crontab",
label:"执行周期", // label:"",
value:"" // value:""
}) // })
console.log(CountPlanMain.allSchemas.formSchema)
CountPlanMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'crontab'){
item.componentProps.disabled = false
}
})
CountPlanMainRules.crontab[0].required = true CountPlanMainRules.crontab[0].required = true
}else{ }else{
CountPlanMain.allSchemas.formSchema.splice(1,1)
CountPlanMainRules.crontab[0].required = false CountPlanMainRules.crontab[0].required = false
CountPlanMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'crontab'){
item.componentProps.disabled = true
}
})
// CountPlanMain.allSchemas.formSchema.splice(1,1)
} }
if (val == 'DYNAMIC') { if (val == 'DYNAMIC') {

Loading…
Cancel
Save