Commit df884d62 by 张超军

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents f5eaca2b c86b0d8c
...@@ -44,12 +44,13 @@ ...@@ -44,12 +44,13 @@
prop="xckybh" prop="xckybh"
> >
<el-input <el-input
class="inputBh"
v-model.trim="ruleForm.xckybh" v-model.trim="ruleForm.xckybh"
placeholder="请输入现场勘验编号" placeholder="请输入现场勘验编号"
maxlength="23" maxlength="22"
show-word-limit show-word-limit
clearable clearable
></el-input> ><template slot="prepend">K</template></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -377,7 +378,9 @@ export default { ...@@ -377,7 +378,9 @@ export default {
} }
reqParam.caseBase = this.ruleForm reqParam.caseBase = this.ruleForm
let defaultArr = 'A' let defaultArr = 'A'
let defaultValue = 'K'
reqParam.personDo.ysxtAsjbh = defaultArr.concat(this.ruleForm.ysxtAsjbh) reqParam.personDo.ysxtAsjbh = defaultArr.concat(this.ruleForm.ysxtAsjbh)
reqParam.personDo.xckybh = defaultValue.concat(this.ruleForm.xckybh)
this.$axios this.$axios
.post("/api/casestore/caseadd", reqParam) .post("/api/casestore/caseadd", reqParam)
.then(response => { .then(response => {
......
...@@ -12,8 +12,14 @@ ...@@ -12,8 +12,14 @@
v-model="dataType" v-model="dataType"
class="chooseType" class="chooseType"
> >
<el-radio :label="1">人员</el-radio> <el-radio
<el-radio :label="2">案件</el-radio> :label="1"
@click.native.prevent="clickitemdataType(1)"
>人员</el-radio>
<el-radio
:label="2"
@click.native.prevent="clickitemdataType(2)"
>案件</el-radio>
</el-radio-group> </el-radio-group>
<div class='search barcode'> <div class='search barcode'>
<div class='item'> 条码号:</div> <div class='item'> 条码号:</div>
...@@ -74,6 +80,9 @@ ...@@ -74,6 +80,9 @@
type="daterange" type="daterange"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:picker-options="{
disabledDate: disabledDate,
}"
> >
</el-date-picker> </el-date-picker>
</div> </div>
...@@ -543,7 +552,7 @@ export default { ...@@ -543,7 +552,7 @@ export default {
}, },
data () { data () {
return { return {
dataType: 1, // 导入类型 dataType: null, // 导入类型
barcode: "", // 条码号 barcode: "", // 条码号
logicDatabaseoptions: [ logicDatabaseoptions: [
{ {
...@@ -631,6 +640,10 @@ export default { ...@@ -631,6 +640,10 @@ export default {
this.search(); this.search();
}, },
}, },
mounted () {
this.search();
},
methods: { methods: {
// 获取全部人员列表请求 // 获取全部人员列表请求
search () { search () {
...@@ -878,6 +891,16 @@ export default { ...@@ -878,6 +891,16 @@ export default {
} }
console.log(this.multipleSelection); console.log(this.multipleSelection);
}, },
disabledDate (a) {
if (a.getTime() > new Date().getTime()) {
return true;
} else {
return false;
}
},
clickitemdataType (e) {
e === this.dataType ? this.dataType = '' : this.dataType = e
},
}, },
computed: { computed: {
/** /**
...@@ -886,6 +909,7 @@ export default { ...@@ -886,6 +909,7 @@ export default {
* @return {*} * @return {*}
*/ */
Tpage1 () { Tpage1 () {
console.log(this.total1, this.pageSize, 1112223333)
return ( return (
Math.floor(this.total1 / this.pageSize) + 1 Math.floor(this.total1 / this.pageSize) + 1
); );
......
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