Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
69099885
Commit
69099885
authored
Mar 08, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:组件功能
parent
c0b58793
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
33 deletions
+48
-33
PlatformOrderFeeServices.cs
Bailun.DC.Services/DataWareHouse/PlatformOrderFeeServices.cs
+0
-0
Form.cshtml
Bailun.DC.Web/Areas/Component/Views/Dialog/Form.cshtml
+0
-1
Index.cshtml
Bailun.DC.Web/Areas/Component/Views/Table/Index.cshtml
+1
-1
PlatformOrderController.cs
...reas/DataWareHouse/Controllers/PlatformOrderController.cs
+32
-0
el-dialog-form.js
Bailun.DC.Web/wwwroot/js/component/el-dialog-form.js
+9
-29
el-form-control.js
Bailun.DC.Web/wwwroot/js/component/el-form-control.js
+5
-1
el-table-query.js
Bailun.DC.Web/wwwroot/js/component/el-table-query.js
+1
-1
No files found.
Bailun.DC.Services/DataWareHouse/PlatformOrderFeeServices.cs
View file @
69099885
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Component/Views/Dialog/Form.cshtml
View file @
69099885
...
...
@@ -4,7 +4,6 @@
class="el-dialog-form"
el-dialog
append-to-body
destroy-on-close
v-dialogDrag
v-bind:title="dialog.name"
v-bind:visible.sync="show"
...
...
Bailun.DC.Web/Areas/Component/Views/Table/Index.cshtml
View file @
69099885
...
...
@@ -45,7 +45,7 @@
},
//查询数据
onSearch: function (firstPage) {
this.$refs.tableQuery.onSearch(
null
, firstPage);
this.$refs.tableQuery.onSearch(
false
, firstPage);
}
}
})
...
...
Bailun.DC.Web/Areas/DataWareHouse/Controllers/PlatformOrderController.cs
View file @
69099885
...
...
@@ -1476,6 +1476,22 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
}
[
HttpPost
]
public
JsonResult
SaveFlowingSalesFeeDetail
([
FromBody
]
flowing_sales_fee_detail
entity
)
{
ResultDTO
result
=
default
(
ResultDTO
);
try
{
result
=
new
Services
.
DataWareHouse
.
PlatformOrderFeeServices
().
SaveFlowingSalesFeeDetail
(
entity
);
}
catch
(
Exception
ex
)
{
result
=
new
ResultDTO
()
{
Message
=
ex
.
Message
};
}
return
Json
(
result
);
}
[
HttpPost
]
public
JsonResult
ImportFlowingSalesFee
(
IFormFile
file
)
{
ResultDTO
result
=
new
ResultDTO
();
...
...
@@ -1532,6 +1548,22 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
return
Json
(
result
);
}
[
HttpPost
]
public
JsonResult
DeleteFlowingSalesFeeDetail
(
int
[]
id
)
{
ResultDTO
result
=
default
(
ResultDTO
);
try
{
result
=
new
Services
.
DataWareHouse
.
PlatformOrderFeeServices
().
DeleteFlowingSalesFeeDetail
(
id
);
}
catch
(
Exception
ex
)
{
result
=
new
ResultDTO
()
{
Message
=
ex
.
Message
};
}
return
Json
(
result
);
}
#
endregion
...
...
Bailun.DC.Web/wwwroot/js/component/el-dialog-form.js
View file @
69099885
...
...
@@ -40,16 +40,19 @@
var
result
=
response
.
data
;
if
(
response
.
status
===
200
&&
result
.
result
&&
result
.
data
)
{
Vue
.
set
(
that
,
"dialog"
,
result
.
data
)
that
.
show
=
true
;
that
.
$set
(
that
,
"show"
,
true
)
;
if
(
title
)
{
Vue
.
set
(
that
.
dialog
,
"name"
,
title
);
}
if
(
that
.
dialog
.
listFormItem
&&
that
.
dialog
.
listFormItem
.
constructor
===
String
)
{
Vue
.
set
(
that
.
dialog
,
"listFormItem"
,
JSON
.
parse
(
that
.
dialog
.
listFormItem
));
}
if
(
form
&&
that
.
dialog
.
listFormItem
&&
that
.
dialog
.
listFormItem
.
length
)
{
that
.
dialog
.
listFormItem
.
forEach
(
function
(
item
)
{
if
(
item
.
type
==
"select"
&&
(
!
item
.
listOption
||
item
.
listOption
.
length
)
&&
form
[
item
.
prop
]
&&
form
[
item
.
propname
])
{
if
(
that
.
dialog
.
listFormItem
)
{
that
.
dialog
.
listFormItem
.
forEach
(
function
(
item
,
i
)
{
if
(
that
.
$refs
.
dialog
&&
that
.
$refs
.
dialog
.
rendered
&&
item
.
defaultValue
)
{
that
.
$refs
.
control
[
i
].
setDefaultValue
();
}
if
(
form
&&
item
.
type
==
"select"
&&
(
!
item
.
listOption
||
item
.
listOption
.
length
)
&&
form
[
item
.
prop
]
&&
form
[
item
.
propname
])
{
var
listOption
=
[];
var
listPropValue
=
Array
.
isArray
(
form
[
item
.
prop
])
?
form
[
item
.
prop
]
:
[
form
[
item
.
prop
]]
listPropValue
.
forEach
(
function
(
l
,
i
)
{
...
...
@@ -80,11 +83,11 @@
var
resetFieldsIndex
=
that
.
dialog
.
listFormItem
&&
that
.
dialog
.
listFormItem
.
findIndex
(
function
(
l
,
i
)
{
return
(
l
.
type
==
"input"
||
l
.
type
==
"number"
||
l
.
type
==
"select"
||
l
.
type
==
"daterange"
||
l
.
type
==
"date"
||
l
.
type
==
"month"
||
l
.
type
==
"year"
||
l
.
type
==
"switch"
);
});
if
(
resetFieldsIndex
>
0
)
{
if
(
resetFieldsIndex
>
=
0
)
{
that
.
$refs
.
form
&&
that
.
$refs
.
form
.
resetFields
&&
that
.
$refs
.
form
.
resetFields
();
};
}
that
.
show
=
false
that
.
$set
(
that
,
"show"
,
false
);
},
//提交表单
submitForm
:
function
()
{
...
...
@@ -101,28 +104,6 @@
that
.
javaScript
.
call
(
that
,
that
.
dialog
.
saveScript
,
that
.
form
)
}
},
//
visibleChange
:
function
(
visible
,
item
)
{
var
that
=
this
if
(
visible
&&
item
.
api
&&
(
!
item
.
listOption
||
item
.
listOption
.
length
<=
1
||
(
that
.
form
&&
item
.
prop
&&
that
.
form
[
item
.
prop
]
&&
Array
.
isArray
(
that
.
form
[
item
.
prop
])
&&
that
.
form
[
item
.
prop
].
length
==
item
.
listOption
.
length
)))
{
//that.$set(item, "loading", true)
//if (item.apiType == "post") {
// request.post(item.api, { limit: 2147483647 }).then(response => {
// if (response.code == 200 && response.data) {
// that.$set(item, "listOption", response.data.list)
// }
// that.$set(item, "loading", false)
// })
//} else {
// request.get(item.api, { limit: 2147483647 }).then(response => {
// if (response.code == 200 && response.data) {
// that.$set(item, "listOption", response.data.list)
// }
// that.$set(item, "loading", false)
// })
//}
}
}
},
template
:
'#elDialogForm'
});
\ No newline at end of file
Bailun.DC.Web/wwwroot/js/component/el-form-control.js
View file @
69099885
...
...
@@ -202,6 +202,10 @@
}
that
.
$set
(
that
,
"item_value"
,
date
);
break
;
case
'input'
:
case
'textarea'
:
that
.
$set
(
that
,
"item_value"
,
that
.
item
.
defaultValue
);
break
;
}
}
},
...
...
@@ -242,7 +246,7 @@
//文件上传成功
onSuccess
(
response
,
file
,
listFile
)
{
var
that
=
this
;
if
(
response
.
code
=
200
)
{
if
(
response
.
result
)
{
listFile
.
splice
(
listFile
.
length
-
1
,
1
)
that
.
$emit
(
"import"
,
true
,
file
)
that
.
$nextTick
(
function
()
{
...
...
Bailun.DC.Web/wwwroot/js/component/el-table-query.js
View file @
69099885
...
...
@@ -47,7 +47,7 @@
var
listFilter
=
[];
//筛选区域过虑条件
if
(
!
filter
)
{
listFilter
=
that
.
$refs
.
formFilter
.
getFilter
(
tru
e
);
listFilter
=
that
.
$refs
.
formFilter
.
getFilter
(
filter
!=
fals
e
);
}
else
{
listFilter
=
filter
.
length
>
0
?
filter
:
[];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment