Commit 305fc629 by 无尘

add: 增加员工档案

parent 34640c32
......@@ -6,7 +6,7 @@ import {Message} from 'element-ui'
Vue.axios.defaults.timeout = 15000;
var local = window.location.origin;
if (local.indexOf('localhost')!= -1) {
local = 'http://gicdev.demogic.com';
local = 'http://www.gicdev.com';
}
console.log(local)
......
......@@ -2,6 +2,8 @@
限制输入框组件
<limitInput
:inputWidth="500"
:limitClass="'limit-color'"
:disflag='!childItem.fieldEdited'
:inputValue.sync="ruleForm.addressDetail"
:holder="'请输入详细地址'"
:getByType="'word'"
......@@ -9,8 +11,16 @@
</limitInput>
-->
<template>
<div class="input-line-cell" :style="{width: inputWidth + 'px'}">
<el-input :style="{width: inputWidth + 'px'}" v-model="itemValue" :placeholder="holder" @focus="inputFocus()" @keyup.native="(value) => toInput(value)"></el-input>
<div :class="['input-line-cell',limitClass]" :style="{width: inputWidth + 'px'}">
<el-input
:style="{width: inputWidth + 'px'}"
v-model="itemValue"
:disabled='disflag'
:placeholder="holder"
@focus="inputFocus()"
@keyup.native="(value) => toInput(value)">
</el-input>
<span class="tip"><span class="len_span">{{inputNum}}</span>/{{limitLength}}</span>
</div>
......@@ -43,7 +53,17 @@
holder: {
type: String,
default: '请输入'
}
},
disflag: {
type: Boolean,
default: false
},
limitClass: {
type: String,
default: ''
},
},
data() {
return {
......@@ -104,6 +124,12 @@
.input-line-cell {
position: relative;
display: inline-block;
&.limit-color {
.tip {
color: rgba(255,255,255,0.7);
}
}
}
.w-340 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment