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
fce43ca4
Commit
fce43ca4
authored
Jul 19, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:组件功能
parent
37a038a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Control.cshtml
Bailun.DC.Web/Areas/Component/Views/Form/Control.cshtml
+3
-3
No files found.
Bailun.DC.Web/Areas/Component/Views/Form/Control.cshtml
View file @
fce43ca4
...
@@ -35,9 +35,9 @@
...
@@ -35,9 +35,9 @@
v-on:visible-change="visibleChange($event, item)"
v-on:visible-change="visibleChange($event, item)"
v-on:change="item.change && javaScript.call(this,item.change,$event,item)">
v-on:change="item.change && javaScript.call(this,item.change,$event,item)">
<el-option v-for="option in item.listOption"
<el-option v-for="option in item.listOption"
v-bind:key="option[item.
value
] || option.value"
v-bind:key="option[item.
key
] || option.value"
v-bind:label="option[item.display] || option.display"
v-bind:label="option[item.display] || option.display"
v-bind:value="option[item.
value
] || option.value">
v-bind:value="option[item.
key
] || option.value">
</el-option>
</el-option>
</el-select>
</el-select>
<el-date-picker v-else-if="item.type == 'daterange'"
<el-date-picker v-else-if="item.type == 'daterange'"
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
</template>
</template>
<template v-else-if="item.format.constructor === String">
<template v-else-if="item.format.constructor === String">
<template v-if="item.format == 'money'">
<template v-if="item.format == 'money'">
{{ (item.precision && item.precision > 0 ? parseFloat(Math.round(item_value*Math.pow(10, item.precision))/Math.pow(10, 2).toFixed(item.precision)) : item_value).toLocaleString('zh',{minimumFractionDigits:
item.precision
}) }}
{{ (item.precision && item.precision > 0 ? parseFloat(Math.round(item_value*Math.pow(10, item.precision))/Math.pow(10, 2).toFixed(item.precision)) : item_value).toLocaleString('zh',{minimumFractionDigits:
(item.precision > 0 ? item.precision : 2)
}) }}
</template>
</template>
<template v-else-if="item.format == 'number'">
<template v-else-if="item.format == 'number'">
{{ item.precision && item.precision > 0 ? Math.round(item_value*Math.pow(10, item.precision))/Math.pow(10, 2).toFixed(item.precision) : item_value }}
{{ item.precision && item.precision > 0 ? Math.round(item_value*Math.pow(10, item.precision))/Math.pow(10, 2).toFixed(item.precision) : item_value }}
...
...
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