Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
113b90c8
Commit
113b90c8
authored
Dec 27, 2021
by
李萌萌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口对接完成
parent
1166ce9a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
181 additions
and
2 deletions
+181
-2
src/views/SystemManage/QueryPermission.vue
+0
-0
src/views/SystemManage/editableLable.vue
+99
-0
src/views/SystemManage/numberInput.vue
+79
-0
vue.config.js
+3
-2
No files found.
src/views/SystemManage/QueryPermission.vue
View file @
113b90c8
This diff is collapsed.
Click to expand it.
src/views/SystemManage/editableLable.vue
0 → 100644
View file @
113b90c8
<!--
* @Author: your name
* @Date: 2021-12-27 11:19:03
* @LastEditTime: 2021-12-27 21:15:20
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\views\SystemManage\editableLable.vue
-->
<
template
>
<div
class=
"editableLable"
>
<label
v-if=
"!canEdit"
@
click=
"enableEdit"
>
{{
preText
.
toString
()
+
curTxt
.
toString
()
}}
</label>
<div
v-else
>
<span
class=
"preText"
>
{{
preText
}}
</span>
<el-input
v-model=
"curTxt"
@
change=
"textChange"
@
blur=
"canEdit = false"
></el-input>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
id
:
{
type
:
String
,
require
:
false
,
default
:
""
,
},
type
:
{
type
:
Number
,
require
:
false
,
default
:
0
,
},
// 当前文本
text
:
{
type
:
String
,
require
:
false
,
default
:
""
,
},
// 固定前缀
preText
:
{
type
:
String
,
require
:
false
,
default
:
""
,
},
},
data
()
{
return
{
canEdit
:
false
,
curTxt
:
""
,
};
},
watch
:
{
text
:
function
(
text
)
{
this
.
curTxt
=
text
;
},
},
methods
:
{
textChange
(
txt
)
{
this
.
curTxt
=
txt
;
this
.
canEdit
=
false
;
this
.
$emit
(
"change"
,
this
.
id
,
this
.
type
,
txt
);
},
enableEdit
()
{
this
.
canEdit
=
true
;
},
},
mounted
()
{
this
.
curTxt
=
this
.
text
;
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.editableLable
{
width
:
100%
;
height
:
100%
;
&
>
label
{
display
:
block
;
}
}
.preText
{
display
:
inline-block
;
left
:
1rem
;
position
:
absolute
;
z-index
:
1
;
font-size
:
14px
;
font-family
:
MicrosoftYaHei
;
color
:
#333333
;
line-height
:
24px
;
}
/
deep
/
.el-input__inner
{
padding-left
:
1.5rem
;
width
:
72px
;
height
:
24px
;
}
</
style
>
src/views/SystemManage/numberInput.vue
0 → 100644
View file @
113b90c8
<!--
* @Author: your name
* @Date: 2021-12-27 15:29:03
* @LastEditTime: 2021-12-27 17:50:56
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\views\SystemManage\numberInput.vue
-->
<
template
>
<div
class=
"numberinput"
>
<span
class=
"preText"
>
{{
preText
}}
</span>
<el-input-number
v-model=
"curTxt"
@
change=
"textChange"
size=
"mini"
:min=
"0"
controls-position=
"right"
></el-input-number>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
// 当前文本
text
:
{
type
:
Number
,
require
:
false
,
default
:
0
,
},
// 固定前缀
preText
:
{
type
:
String
,
require
:
false
,
default
:
""
,
},
},
watch
:
{
text
:
function
(
text
)
{
this
.
curTxt
=
text
;
},
},
data
()
{
return
{
curTxt
:
""
,
};
},
methods
:
{
textChange
(
val
)
{
this
.
curTxt
=
val
;
if
(
val
&&
!
Number
(
val
))
{
this
.
curTxt
=
val
.
replace
(
/
[^
0-9
]
/gi
,
""
);
}
this
.
$emit
(
"change"
,
this
.
curTxt
);
},
},
mounted
()
{
this
.
curTxt
=
this
.
text
;
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.numberinput
{
display
:
inline-block
;
}
.preText
{
display
:
inline-block
;
//
left
:
1rem
;
margin-left
:
10px
;
position
:
absolute
;
z-index
:
1
;
font-size
:
18px
;
font-family
:
MicrosoftYaHei
;
color
:
#333333
;
line-height
:
24px
;
}
/
deep
/
.el-input__inner
{
padding-left
:
1.5rem
;
}
</
style
>
vue.config.js
View file @
113b90c8
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-2
5 13:19:44
* @LastEditTime: 2021-12-2
7 20:29:29
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
...
...
@@ -110,7 +110,7 @@ module.exports = {
"/api"
:
{
// target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://192.168.128.166:8099/", // 张 认定
target
:
"http://192.168.128.114:8099"
,
// 湖南-马
//
target: "http://192.168.128.114:8099", // 湖南-马
// target: "http://192.168.128.116:8099", // 湖南-王
// target: "http://192.168.128.102:8099", // 湖南-张呈光
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
...
...
@@ -119,6 +119,7 @@ module.exports = {
// target: "http://www.meetfood.cn:2390", // 湖南-线上
// target:"http://zwpt.xzclub.top:9333/",
// target: "http://192.168.128.102:8099", // 江
target
:
"http://192.168.128.105:8099"
,
// 张
ws
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
...
...
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