吱屋 1 year ago
parent 82f4d9f92a
commit df04c8139a
  1. 39
      ant-design-vue-jeecg/src/views/rulex/modules/RulexForm.vue

@ -42,7 +42,8 @@
<!-- </a-col>--> <!-- </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="任务等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workLevel"> <a-form-model-item label="任务等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workLevel">
<j-dict-select-tag type="list" v-model="model.workLevel" dictCode="work_level" placeholder="请选择任务等级" /> <!-- 回去后台取对应数据-->
<j-dict-select-tag type="radio" v-model="model.workLevel" dictCode="work_level" placeholder="请选择任务等级" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- <a-col :span="24">--> <!-- <a-col :span="24">-->
@ -52,7 +53,7 @@
<!-- </a-col>--> <!-- </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="任务时长" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="duration"> <a-form-model-item label="任务时长" labelAlign="right" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="duration">
<a-input-number v-model="model.duration" placeholder="请输入任务时长" style="width: 100%" /> <a-input-number v-model="model.duration" placeholder="请输入任务时长" style="width: 100%" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
@ -64,9 +65,10 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="24"> <a-col >
<a-form-model-item label="规则描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pmDescribe"> <a-form-model-item label="规则描述" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="pmDescribe" >
<j-editor v-model="model.pmDescribe"/> <j-editor v-model="model.pmDescribe"/>
<!-- :labelCol="{ span: 2 }" :wrapperCol="{ span: 22 }" -->
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
@ -98,14 +100,35 @@
ruleNo: '', ruleNo: '',
ruleCode: '' ruleCode: ''
}, },
labelCol1: {
xs: { span: 24 },
sm: { span: 3 },
},
wrapperCol1: {
xs: { span: 24 },
sm: { span: 20 },
},
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 5 }, sm: { span: 6 },
}, },
wrapperCol: { wrapperCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 16 }, sm: { span: 16 },
}, },
// labelCol: { // 24label a
// xxl: 5, // 1600px
// xl: 8, // 1200px
// lg: 10, // 992px
// md: 12 // 768px
// },
// wrapperCol: { // 24label 24-a
// xxl: 19,
// xl: 16,
// lg: 14,
// md: 12},
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
moduleId: [ moduleId: [
@ -169,6 +192,7 @@
this.sort() this.sort()
this.shiti() this.shiti()
this.modelDefault = JSON.parse(JSON.stringify(this.model)); this.modelDefault = JSON.parse(JSON.stringify(this.model));
console.log(this.modelDefault,'2222');
}, },
methods: { methods: {
sort() { sort() {
@ -228,3 +252,8 @@
} }
} }
</script> </script>
<style lang="less" scoped>
/deep/.ant-col-24 .ant-form-item .ant-col-xs-24 {
text-align: center;
}
</style>
Loading…
Cancel
Save