Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7aea9674
authored
Jan 04, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
1 parent
20db72b9
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
7 deletions
src/directive/index.js
src/main.js
src/views/archi-ele-list/index.vue
src/views/archi-view-manage/index.vue
src/views/meta-model-list/index.vue
src/views/report-template-fabric/index.vue
src/views/report-template-relative-use/index.vue
src/views/tech-politics-fabric/index.vue
src/directive/index.js
0 → 100644
View file @
7aea967
export
default
function
initDirective
(
vue
)
{
/** 节流 */
vue
.
directive
(
'throttle'
,
{
inserted
:
function
(
el
,
binding
)
{
let
stop
=
false
;
el
.
addEventListener
(
binding
.
arg
,
(
e
)
=>
{
if
(
stop
)
return
;
binding
.
value
(
e
)
stop
=
true
;
setTimeout
(()
=>
{
stop
=
false
},
500
)
})
}
})
/** 防抖 */
vue
.
directive
(
'debounce'
,
{
inserted
:
function
(
el
,
binding
)
{
let
stopTime
;
el
.
addEventListener
(
binding
.
arg
,
(
e
)
=>
{
clearTimeout
(
stopTime
);
stopTime
=
setTimeout
(
binding
.
value
,
1000
,
e
)
})
}
})
}
src/main.js
View file @
7aea967
...
...
@@ -4,6 +4,9 @@ import router from './router'
import
store
from
'./store'
import
ElementUI
from
'element-ui'
;
import
'element-ui/lib/theme-chalk/index.css'
;
import
initDirective
from
'./directive'
;
initDirective
(
Vue
);
Vue
.
config
.
productionTip
=
false
;
...
...
src/views/archi-ele-list/index.vue
View file @
7aea967
...
...
@@ -174,8 +174,8 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"release_dialog"
>
发布
</el-button>
<el-button
class=
"greenButton"
@
click=
"save_dialog"
>
保存
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"release_dialog"
>
发布
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"save_dialog"
>
保存
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
</el-dialog>
...
...
src/views/archi-view-manage/index.vue
View file @
7aea967
...
...
@@ -121,7 +121,7 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"ok"
>
确定
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"ok"
>
确定
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
</el-dialog>
...
...
src/views/meta-model-list/index.vue
View file @
7aea967
...
...
@@ -92,7 +92,7 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"ok"
>
确定
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"ok"
>
确定
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
</el-dialog>
...
...
src/views/report-template-fabric/index.vue
View file @
7aea967
...
...
@@ -132,7 +132,7 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"ok"
>
确定
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"ok"
>
确定
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
</el-dialog>
...
...
src/views/report-template-relative-use/index.vue
View file @
7aea967
...
...
@@ -130,7 +130,7 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"ok"
>
保存
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"ok"
>
保存
</el-button>
<el-button
class=
"greenButton"
>
编辑文档
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
...
...
src/views/tech-politics-fabric/index.vue
View file @
7aea967
...
...
@@ -153,7 +153,7 @@
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"greenButton"
@
click=
"ok"
>
确定
</el-button>
<el-button
class=
"greenButton"
v-debounce:
click=
"ok"
>
确定
</el-button>
<el-button
@
click=
"add_dialog = false"
>
取消
</el-button>
</span>
</el-dialog>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment