Commit 305fc629 by 无尘

add: 增加员工档案

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