From 22775002a8cc54e88ef44d05eab3fcecd8326e3d Mon Sep 17 00:00:00 2001
From: xia <1928964683@qq.com>
Date: Sat, 8 Jul 2023 09:58:52 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/modulex/modules/ModulexForm.vue | 590 ++++++++++++------
1 file changed, 389 insertions(+), 201 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/modulex/modules/ModulexForm.vue b/ant-design-vue-jeecg/src/views/modulex/modules/ModulexForm.vue
index d598822..a58f4db 100644
--- a/ant-design-vue-jeecg/src/views/modulex/modules/ModulexForm.vue
+++ b/ant-design-vue-jeecg/src/views/modulex/modules/ModulexForm.vue
@@ -1,272 +1,460 @@
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
+}
+
+
From c47739dfe360487038cc4ff6f8997f3200af476f Mon Sep 17 00:00:00 2001
From: deng <1559799626@qq.com>
Date: Sat, 8 Jul 2023 09:59:45 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/functionx/modules/FunctionxForm.vue | 549 +++++++++++++++---
1 file changed, 478 insertions(+), 71 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue b/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
index ca5f64f..e5e655a 100644
--- a/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
+++ b/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
@@ -1,105 +1,324 @@
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
+
+
@@ -109,6 +328,194 @@
+
+
+
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue1 } from '@/utils/util'
From d05bcf2c0870502631b5f7646f0c294866880a46 Mon Sep 17 00:00:00 2001
From: deng <1559799626@qq.com>
Date: Sat, 8 Jul 2023 10:02:13 +0800
Subject: [PATCH 3/4] dyl
---
.../views/functionx/modules/FunctionxForm.vue | 178 ------------------
1 file changed, 178 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue b/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
index e5e655a..9000645 100644
--- a/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
+++ b/ant-design-vue-jeecg/src/views/functionx/modules/FunctionxForm.vue
@@ -515,181 +515,3 @@ export default {
margin-right: 15px;
}
-
-
- import { httpAction, getAction } from '@/api/manage'
- import { validateDuplicateValue1 } from '@/utils/util'
-
- export default {
- name: 'FunctionxForm',
- components: {
- },
- props: {
- //表单禁用
- disabled: {
- type: Boolean,
- default: false,
- required: false
- }
- },
- data () {
- return {
- model:{
- workLevel:2,
- workStatus:0,
-
- },
- labelCol: {
- xs: { span: 24 },
- sm: { span: 5 },
- },
- wrapperCol: {
- xs: { span: 24 },
- sm: { span: 16 },
- },
- confirmLoading: false,
- validatorRules: {
- moduleId: [
- { required: true, message: '请输入对应模块id!'},
- ],
- functionName: [
- { required: true, message: '请输入中文名称!'},
- { validator: (rule, value, callback) => validateDuplicateValue1('functionx', 'function_name', value, this.model.id,this.moduleid, callback)},
- ],
- functionEnName: [
- { required: true, message: '请输入英文名称!'},
- { validator: (rule, value, callback) => validateDuplicateValue1('functionx', 'function_en_name', value, this.model.id,this.moduleid, callback)},
- ],
- functionCode: [
- { required: true, message: '请输入功能编码!'},
- ],
- functionType: [
- { required: true, message: '请输入功能类型!'},
- ],
- workLevel: [
- { required: true, message: '请输入任务等级!'},
- ],
- workStatus: [
- { required: true, message: '请输入任务状态!'},
- ],
- realDuration: [
- { required: true, message: '请输入实际时长!'},
- ],
- status: [
- { required: true, message: '请输入功能状态!'},
- ],
- verisonStatus: [
- { required: true, message: '请输入版本状态!'},
- ],
- verison: [
- { required: true, message: '请输入版本号!'},
- ],
- },
- url: {
- add: "/functionx/functionx/add",
- edit: "/functionx/functionx/edit",
- queryById: "/functionx/functionx/queryById",
- bianma:'/functionx/functionx/bianma'
- },
- moduleid:'',
- modulecode:'',
- }
- },
- computed: {
- formDisabled(){
- return this.disabled
- },
- },
- created () {
- //备份model原始值
- this.moduleid=this.$route.query.moduleid
- this.model.moduleId=this.$route.query.moduleid
- //获得模块编码
- this.modulebianma(this.moduleid)
- this.modelDefault = JSON.parse(JSON.stringify(this.model));
- },
- methods: {
- functionxbianma(){
- if(this.model.functionType==0){
- this.model.functionCode=this.modulecode+"列表"
- }
- else if(this.model.functionType==1){
- this.model.functionCode=this.modulecode+"增加"
- }
- else if(this.model.functionType==2){
- this.model.functionCode=this.modulecode+"删除"
- }
- else if(this.model.functionType==3){
- this.model.functionCode=this.modulecode+"修改"
- }
- else if(this.model.functionType==4){
- this.model.functionCode=this.modulecode+"查看"
- }
- else if(this.model.functionType==5){
- this.model.functionCode=this.modulecode+"导入"
- }
- else if(this.model.functionType==6){
- this.model.functionCode=this.modulecode+"导出"
- }
- else {
- this.model.functionCode=this.modulecode+"其他"
- }
- console.log(this.model.functionCode,"---------")
- },
- modulebianma(id){
- getAction(this.url.bianma,{id:id}).then((res)=>{
- if (res.success) {
- //重新计算分页问题
- this.modulecode=res.result;
-
- }
- })
- },
- add () {
- this.edit(this.modelDefault);
- },
- edit (record) {
- this.model = Object.assign({}, record);
- if(this.model.functionName1!=null){
- this.model.functionName=this.model.functionName1;
- }
- if(this.model.functionEnName1!=null){
- this.model.functionEnName=this.model.functionEnName1
- }
- if(this.model.functionCode1!=null){
- this.model.functionCode=this.model.functionCode1
- }
- this.visible = true;
- },
- submitForm () {
- const that = this;
- // 触发表单验证
- this.$refs.form.validate(valid => {
- if (valid) {
- that.confirmLoading = true;
- let httpurl = '';
- let method = '';
- if(!this.model.id){
- httpurl+=this.url.add;
- method = 'post';
- }else{
- httpurl+=this.url.edit;
- method = 'put';
- }
- httpAction(httpurl,this.model,method).then((res)=>{
- if(res.success){
- that.$message.success(res.message);
- that.$emit('ok');
- }else{
- that.$message.warning(res.message);
- }
- }).finally(() => {
- that.confirmLoading = false;
- })
- }
-
- })
- },
- }
- }
-
\ No newline at end of file
From 8c8748f5a137526f484220f94a4e7e827e123a07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Sat, 8 Jul 2023 10:13:07 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E8=A7=84=E5=88=99=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/rulex/modules/RulexForm.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/rulex/modules/RulexForm.vue b/ant-design-vue-jeecg/src/views/rulex/modules/RulexForm.vue
index 607fc13..1ec86c9 100644
--- a/ant-design-vue-jeecg/src/views/rulex/modules/RulexForm.vue
+++ b/ant-design-vue-jeecg/src/views/rulex/modules/RulexForm.vue
@@ -109,11 +109,11 @@ export default {
sm: { span: 20 },
},
labelCol: {
- xs: { span: 24 },
+ xs: { span: 20 },
sm: { span: 6 },
},
wrapperCol: {
- xs: { span: 24 },
+ xs: { span: 20 },
sm: { span: 16 },
},
@@ -253,7 +253,7 @@ export default {
}
\ No newline at end of file