Commit 7c3ad644 by 米嘉伟

进度条 UI调整

parent 2acfecdf
...@@ -11,9 +11,15 @@ ...@@ -11,9 +11,15 @@
clear="search-input" clear="search-input"
placeholder="请输入条码,*支持模糊搜索" placeholder="请输入条码,*支持模糊搜索"
v-model="reqParam.personStoreCustomSearch.barcode" v-model="reqParam.personStoreCustomSearch.barcode"
@keyup.enter.native="search"
maxlength="23" maxlength="23"
show-word-limit >
></el-input> </el-input>
<i
class="el-icon-error"
v-if="reqParam.personStoreCustomSearch.barcode.length>0"
@click='empty'
></i>
<div <div
class="search-icon el-icon-search" class="search-icon el-icon-search"
@click="search" @click="search"
...@@ -59,7 +65,7 @@ ...@@ -59,7 +65,7 @@
<div <div
class="btn" class="btn"
@click="isShowDcftpxBtn" @click="isShowDcftpxBtn"
>导出FTPX</div> >导出FPTX</div>
<div <div
class="btn" class="btn"
@click="isShowGzBtn" @click="isShowGzBtn"
...@@ -118,6 +124,7 @@ ...@@ -118,6 +124,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
:formatter="idNumberFormat"
prop="idnumber" prop="idnumber"
label="身份证号" label="身份证号"
width="180" width="180"
...@@ -172,6 +179,7 @@ ...@@ -172,6 +179,7 @@
prop="collectunitname" prop="collectunitname"
label="捺印单位" label="捺印单位"
width="180" width="180"
:formatter="collectunitnameFormat"
> >
</el-table-column> </el-table-column>
...@@ -343,7 +351,7 @@ ...@@ -343,7 +351,7 @@
:type="type" :type="type"
@closeGz="closeGz" @closeGz="closeGz"
></gz> ></gz>
<!-- 导出FTPX弹窗 --> <!-- 导出FPTX弹窗 -->
<dcftpx <dcftpx
:isShowDcftpx="isShowDcftpx" :isShowDcftpx="isShowDcftpx"
:rowData="rowData" :rowData="rowData"
...@@ -380,7 +388,7 @@ import moment from "moment"; ...@@ -380,7 +388,7 @@ import moment from "moment";
import tjddl from "./modules/tjddl.vue" // 添加到队列弹窗 import tjddl from "./modules/tjddl.vue" // 添加到队列弹窗
import gz from "./modules/gz.vue" // 关注 import gz from "./modules/gz.vue" // 关注
import fztm from "./modules/fztm.vue" // 复制数据弹窗 import fztm from "./modules/fztm.vue" // 复制数据弹窗
import dcftpx from "./modules/dcftpx.vue" //导出FTPX弹窗 import dcftpx from "./modules/dcftpx.vue" //导出FPTX弹窗
import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗 import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗
import fcx from "./modules/fcx.vue" // 发查询弹窗 import fcx from "./modules/fcx.vue" // 发查询弹窗
export default { export default {
...@@ -398,7 +406,7 @@ export default { ...@@ -398,7 +406,7 @@ export default {
isSelected: false,// 是否批量操作 isSelected: false,// 是否批量操作
isShowTjddl: false,// 添加到队列 isShowTjddl: false,// 添加到队列
isShowGz: false,// 关注 isShowGz: false,// 关注
isShowDcftpx: false, // 导出FTPX isShowDcftpx: false, // 导出FPTX
isShowGgrytm: false,// 更改人员条码 isShowGgrytm: false,// 更改人员条码
isShowFztm: false, //复制条码 isShowFztm: false, //复制条码
isShowFcx: false, //发查询 isShowFcx: false, //发查询
...@@ -455,11 +463,27 @@ export default { ...@@ -455,11 +463,27 @@ export default {
} }
}); });
}, },
// 清空输入框
empty () {
this.reqParam.personStoreCustomSearch.barcode = ''
this.search()
},
// 身份证格式化
idNumberFormat (row) {
let showProp = null
row.idnumber ? showProp = row.idnumber : showProp = '---'
return showProp
},
//捺印单位格式化
collectunitnameFormat (row) {
let showProp = null
row.collectunitname ? showProp = row.collectunitname : showProp = '---'
return showProp
},
// 时间格式化 // 时间格式化
dateTimeFormat (row, colnum) { dateTimeFormat (row, colnum) {
let prop = colnum.property; let prop = colnum.property;
return row[prop] ? moment(row[prop]).format("YYYY-MM-DD") : ""; return row[prop] ? moment(row[prop]).format("YYYY-MM-DD") : "---";
}, },
// 性别格式化 // 性别格式化
sexFormat (row, colnum) { sexFormat (row, colnum) {
...@@ -473,6 +497,8 @@ export default { ...@@ -473,6 +497,8 @@ export default {
showProp = '女' showProp = '女'
} else if (sex == 9) { } else if (sex == 9) {
showProp = '未说明的性别' showProp = '未说明的性别'
} else {
showProp = '---'
} }
return showProp; return showProp;
}, },
...@@ -538,9 +564,9 @@ export default { ...@@ -538,9 +564,9 @@ export default {
console.log('添加到队列关闭', val) console.log('添加到队列关闭', val)
this.isShowTjddl = val this.isShowTjddl = val
}, },
// 导出FTPX // 导出FPTX
isShowDcftpxBtn () { // 多行 isShowDcftpxBtn () { // 多行
console.log('导出FTPX') console.log('导出FPTX')
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要关注的数据!"); this.$message.error("请选择需要关注的数据!");
} else { } else {
...@@ -556,7 +582,7 @@ export default { ...@@ -556,7 +582,7 @@ export default {
this.isShowDcftpx = true; this.isShowDcftpx = true;
}, },
closeDcftpx (val) { closeDcftpx (val) {
console.log('导出FTPX关闭', val) console.log('导出FPTX关闭', val)
this.isShowDcftpx = val this.isShowDcftpx = val
}, },
// 关注 // 关注
...@@ -789,6 +815,13 @@ export default { ...@@ -789,6 +815,13 @@ export default {
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.el-icon-error {
position: absolute;
left: 300px;
width: 14px;
height: 14px;
color: rgba(177, 182, 194, 0.8);
}
.search-icon { .search-icon {
border: 1px solid #006aff; border: 1px solid #006aff;
width: 40px; width: 40px;
...@@ -881,18 +914,16 @@ export default { ...@@ -881,18 +914,16 @@ export default {
.right { .right {
display: flex; display: flex;
.send { .send {
border: none;
background: #055fe7; background: #055fe7;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #ffffff; color: #ffffff;
&:hover { &:hover {
background: #377fec; background: #377fec;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
} }
&:active { &:active {
background: #044cb9; background: #044cb9;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
} }
} }
} }
...@@ -949,6 +980,9 @@ export default { ...@@ -949,6 +980,9 @@ export default {
// margin-right: 120px; // margin-right: 120px;
} }
} }
/deep/.el-table th {
background-color: #f6f8fa;
}
/deep/.el-popover { /deep/.el-popover {
padding: 15px 20px !important; padding: 15px 20px !important;
} }
......
<template> <template>
<el-dialog <el-dialog
title="导出FTPX" title="导出FPTX"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="875px" width="875px"
append-to-body append-to-body
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="保存路径:"> <el-form-item label="保存路径:">
<el-input></el-input> <el-input placeholder="请选择保存路径"></el-input>
<el-button type="text">浏览</el-button> <el-button type="text">浏览</el-button>
</el-form-item> </el-form-item>
<el-form-item label="条码补值:"> <el-form-item label="条码补值:">
...@@ -265,11 +265,15 @@ ...@@ -265,11 +265,15 @@
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
> >
<el-button @click="focus">确 定</el-button> <!-- <el-button @click="focus">确 定</el-button>
<el-button <el-button
@click="dialogVisible = false" @click="dialogVisible = false"
type="primary" type="primary"
>取 消</el-button> >取 消</el-button> -->
<el-button
@click="focus"
type="primary"
>导出</el-button>
</span> </span>
</el-dialog> </el-dialog>
...@@ -349,12 +353,13 @@ export default { ...@@ -349,12 +353,13 @@ export default {
// }); // });
}, },
handleClose (done) { handleClose (done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
this.dialogVisible = false; this.dialogVisible = false;
}) // this.$confirm('确认关闭?')
.catch(_ => { }); // .then(_ => {
// done();
// this.dialogVisible = false;
// })
// .catch(_ => { });
} }
} }
}; };
......
...@@ -125,12 +125,13 @@ export default { ...@@ -125,12 +125,13 @@ export default {
}); });
}, },
handleClose (done) { handleClose (done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
this.dialogVisible = false; this.dialogVisible = false;
}) // this.$confirm('确认关闭?')
.catch(_ => { }); // .then(_ => {
// done();
// this.dialogVisible = false;
// })
// .catch(_ => { });
} }
} }
}; };
......
...@@ -147,29 +147,46 @@ export default { ...@@ -147,29 +147,46 @@ export default {
focus () { focus () {
let reqUrl = ''; let reqUrl = '';
if (this.type == 'ry') { if (this.type == 'ry') {
reqUrl = "/api/mypsn/add" // reqUrl = "/api/mypsn/add"
let newReqParams = { // 请求参数 // let newReqParams = { // 请求参数
pid: '',// 关注ID // pid: '',// 关注ID
barcode: '',//条码号 // barcode: '',//条码号
myPerson: { // myPerson: {
comments: '',//备注 // comments: '',//备注
pid: '',// 关注ID // pid: '',// 关注ID
barcode: '',//条码号 // barcode: '',//条码号
// }
// };
// let barCode = [];
// let myPerson = [];
// for (let i = 0; i < this.rowData.length; i++) {
// myPerson.push(this.rowData[i].pid);
// barCode.push(this.rowData[i].barcode);
// }
// newReqParams.pid = myPerson[0];
// newReqParams.myPerson.pid = myPerson;
// newReqParams.barcode = barCode[0];
// newReqParams.myPerson.barcode = barCode;
// newReqParams.myPerson.comments = this.comments;
// this.reqParam = newReqParams
// console.log('关注人员ID', myPerson);
reqUrl = '/api/mypsn/mypsnAdd'
let newReqParams = {
personDoList: [],
comments: ''
} }
}; newReqParams.comments = this.comments;
let barCode = [];
let myPerson = [];
for (let i = 0; i < this.rowData.length; i++) { for (let i = 0; i < this.rowData.length; i++) {
myPerson.push(this.rowData[i].pid); let personDo = {
barCode.push(this.rowData[i].barcode); barcode: '',
pid: ''
} }
newReqParams.pid = myPerson[0]; personDo.barcode = this.rowData[i].barcode
newReqParams.myPerson.pid = myPerson; personDo.pid = this.rowData[i].pid
newReqParams.barcode = barCode[0]; newReqParams.personDoList.push(personDo)
newReqParams.myPerson.barcode = barCode; }
newReqParams.myPerson.comments = this.comments; console.log('关注人员ID', newReqParams);
this.reqParam = newReqParams this.reqParam = newReqParams
console.log('关注人员ID', myPerson);
} else if (this.type == 'aj') { } else if (this.type == 'aj') {
reqUrl = "/api/mycase/add" reqUrl = "/api/mycase/add"
let newReqParams = { let newReqParams = {
...@@ -245,12 +262,13 @@ export default { ...@@ -245,12 +262,13 @@ export default {
return showProp; return showProp;
}, },
handleClose (done) { handleClose (done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
this.dialogVisible = false; this.dialogVisible = false;
}) // this.$confirm('确认关闭?')
.catch(_ => { }); // .then(_ => {
// done();
// this.dialogVisible = false;
// })
// .catch(_ => { });
} }
} }
}; };
......
...@@ -213,12 +213,13 @@ export default { ...@@ -213,12 +213,13 @@ export default {
}, },
handleClose (done) { handleClose (done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
this.dialogVisible = false; this.dialogVisible = false;
}) // this.$confirm('确认关闭?')
.catch(_ => { }); // .then(_ => {
// done();
// this.dialogVisible = false;
// })
// .catch(_ => { });
} }
} }
}; };
......
...@@ -11,9 +11,14 @@ ...@@ -11,9 +11,14 @@
clear="search-input" clear="search-input"
placeholder="请输入条码,*支持模糊搜索" placeholder="请输入条码,*支持模糊搜索"
v-model="reqParam.caseStoreCustomSearchReq.barcode" v-model="reqParam.caseStoreCustomSearchReq.barcode"
@keyup.enter.native="search"
maxlength="23" maxlength="23"
show-word-limit
></el-input> ></el-input>
<i
class="el-icon-error"
v-if="reqParam.caseStoreCustomSearchReq.barcode.length>0"
@click='empty'
></i>
<div <div
class="search-icon el-icon-search" class="search-icon el-icon-search"
@click="search" @click="search"
...@@ -109,6 +114,7 @@ ...@@ -109,6 +114,7 @@
prop="caseTypeNames" prop="caseTypeNames"
label="案件类型" label="案件类型"
width="220" width="220"
:formatter="caseTypeNamesFormat"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -402,6 +408,11 @@ export default { ...@@ -402,6 +408,11 @@ export default {
} }
}); });
}, },
// 清空输入框
empty () {
this.reqParam.caseStoreCustomSearchReq.barcode = ''
this.search()
},
// 多选删除 // 多选删除
delMore () { delMore () {
// 检查table选择的数据 如果没有选择则不可以删除 // 检查table选择的数据 如果没有选择则不可以删除
...@@ -458,6 +469,12 @@ export default { ...@@ -458,6 +469,12 @@ export default {
let prop = colnum.property; let prop = colnum.property;
return row[prop] ? moment(row[prop]).format("YYYY-MM-DD") : ""; return row[prop] ? moment(row[prop]).format("YYYY-MM-DD") : "";
}, },
// 案件类型格式化
caseTypeNamesFormat (row) {
let showProp = null
row.caseTypeNames ? showProp = row.caseTypeNames : showProp = '---'
return showProp
},
// 是否命案 格式化 // 是否命案 格式化
killFlagFormat (row, colnum) { killFlagFormat (row, colnum) {
let prop = colnum.property; let prop = colnum.property;
...@@ -708,6 +725,13 @@ const datas1 = [ ...@@ -708,6 +725,13 @@ const datas1 = [
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.el-icon-error {
position: absolute;
left: 300px;
width: 14px;
height: 14px;
color: rgba(177, 182, 194, 0.8);
}
.search-icon { .search-icon {
border: 1px solid #006aff; border: 1px solid #006aff;
width: 40px; width: 40px;
...@@ -800,18 +824,16 @@ const datas1 = [ ...@@ -800,18 +824,16 @@ const datas1 = [
.right { .right {
display: flex; display: flex;
.send { .send {
border: none;
background: #055fe7; background: #055fe7;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #ffffff; color: #ffffff;
&:hover { &:hover {
background: #377fec; background: #377fec;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
} }
&:active { &:active {
background: #044cb9; background: #044cb9;
box-shadow: 0px 6px 10px 2px rgba(18, 90, 201, 0.2);
} }
} }
} }
...@@ -868,6 +890,9 @@ const datas1 = [ ...@@ -868,6 +890,9 @@ const datas1 = [
// margin-right: 120px; // margin-right: 120px;
} }
} }
/deep/.el-table th {
background-color: #f6f8fa;
}
/deep/.el-popover { /deep/.el-popover {
padding: 15px 20px !important; padding: 15px 20px !important;
} }
......
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