Commit 3bbf5338 by 张超军

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

parents af8cc38d 1e8b349d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="36.375rem" width="36.375rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
label-width="6.25rem" label-width="6.25rem"
...@@ -77,12 +78,20 @@ ...@@ -77,12 +78,20 @@
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
> >
<!-- <el-button
class="confirmBtn"
@click="focus"
type="primary"
>导出</el-button> -->
<el-button <el-button
class="confirmBtn" class="confirmBtn"
@click="focus" @click="focus"
>导 出</el-button>
<el-button
@click="dialogVisible = false"
class="confirmBtn"
type="primary" type="primary"
>导出</el-button> >取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
</template> </template>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="54.6875rem" width="54.6875rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<div class="head"> <div class="head">
文字:<el-checkbox v-model="wzChecked">基本信息</el-checkbox> 文字:<el-checkbox v-model="wzChecked">基本信息</el-checkbox>
...@@ -300,16 +301,20 @@ ...@@ -300,16 +301,20 @@
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
> >
<!-- <el-button @click="focus">确 定</el-button> <el-button
class="confirmBtn"
@click="focus"
>导 出</el-button>
<el-button <el-button
@click="dialogVisible = false" @click="dialogVisible = false"
class="confirmBtn"
type="primary" type="primary"
>取 消</el-button> --> >取 消</el-button>
<el-button <!-- <el-button
class="confirmBtn" class="confirmBtn"
@click="focus" @click="focus"
type="primary" type="primary"
>导出</el-button> >导出</el-button> -->
</span> </span>
</el-dialog> </el-dialog>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="55.75rem" width="55.75rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<div class="top"> <div class="top">
<div class="left"> <div class="left">
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="26.125rem" width="26.125rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
:label-position="labelPosition" :label-position="labelPosition"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="26.125rem" width="26.125rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
:label-position="labelPosition" :label-position="labelPosition"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
:width="width" :width="width"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-table <el-table
v-if="type=='ry'" v-if="type=='ry'"
...@@ -159,9 +160,9 @@ export default { ...@@ -159,9 +160,9 @@ export default {
reqUrl = '/api/mypsn/mypsnAdd' reqUrl = '/api/mypsn/mypsnAdd'
let newReqParams = { let newReqParams = {
personDoList: [], personDoList: [],
comments: '' bz: ''
} }
newReqParams.comments = this.comments; newReqParams.bz = this.comments;
for (let i = 0; i < this.rowData.length; i++) { for (let i = 0; i < this.rowData.length; i++) {
let personDo = { let personDo = {
ysxtAsjxgrybh: '', ysxtAsjxgrybh: '',
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
width="26.125rem" width="26.125rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
:model="ruleForm" :model="ruleForm"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
top="1.25rem" top="1.25rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
:label-position="labelPosition" :label-position="labelPosition"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
top="1.25rem" top="1.25rem"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal='false'
> >
<el-form <el-form
:label-position="labelPosition" :label-position="labelPosition"
......
...@@ -340,7 +340,11 @@ ...@@ -340,7 +340,11 @@
</div> </div>
</div> </div>
<!-- 角色设置 --> <!-- 角色设置 -->
<el-dialog :title="title.roletitle" :visible.sync="visible.setRoleVisible"> <el-dialog
class="dialog"
:title="title.roletitle"
:visible.sync="visible.setRoleVisible"
>
<div slot="title"> <div slot="title">
<img class="title-img" :src="src" alt="" /> <img class="title-img" :src="src" alt="" />
<span>{{ title.roletitle }}</span> <span>{{ title.roletitle }}</span>
......
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
.dialog{ .dialog{
width: 823px; width: 823px;
padding: 0; padding: 0;
margin-left: 30%;
.title-img{ .title-img{
width: 21px; width: 21px;
height: 21px; height: 21px;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="wjlx"> <div class="wjlx">
<div class="left"> <div class="left">
<el-radio-group v-model="wjlx"> <el-radio-group v-model="wjlx">
<el-radio :label="3">单个文件</el-radio> <el-radio :label="3">文件</el-radio>
<el-radio :label="6">文件夹</el-radio> <el-radio :label="6">文件夹</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
...@@ -522,9 +522,19 @@ export default { ...@@ -522,9 +522,19 @@ export default {
// 导入成功,跳转详情 // 导入成功,跳转详情
goList () { goList () {
if (this.drlx == 3 || this.drlx == 6) { if (this.drlx == 3 || this.drlx == 6) {
this.$router.push('/RAList') this.$router.push({
path: '/RAList',
query: {
id: 1
}
})
} else if (this.drlx == 9) { } else if (this.drlx == 9) {
this.$router.push('/RAList') this.$router.push({
path: '/RAList',
query: {
id: 2
}
})
} }
}, },
// 取消上传 // 取消上传
...@@ -551,10 +561,10 @@ export default { ...@@ -551,10 +561,10 @@ export default {
}, },
// 获取文件列表 // 获取文件列表
onChange (file, fileList) { onChange (file, fileList) {
console.log(fileList[0], 1111) // console.log(fileList[0], 1111)
var folder = fileList[0].raw.webkitRelativePath.split("/"); // var folder = fileList[0].raw.webkitRelativePath.split("/");
console.log('fffff', folder[0]) // console.log('fffff', folder[0])
let that = this; let that = this;
let newlist = fileList; let newlist = fileList;
for (let i = 0; i < fileList.length; i++) { for (let i = 0; i < fileList.length; i++) {
...@@ -563,12 +573,15 @@ export default { ...@@ -563,12 +573,15 @@ export default {
var reader = new FileReader(); var reader = new FileReader();
reader.readAsText(file); reader.readAsText(file);
if (this.drlx == 3) { if (this.drlx == 3) {
console.log('333333')
that.action = '/api/upload/person'
reader.onload = function () { reader.onload = function () {
const reg = /\<ysxt_asjxgrybh\>(.*?)\<\/ysxt_asjxgrybh\>/ const reg = /\<ysxt_asjxgrybh\>(.*?)\<\/ysxt_asjxgrybh\>/
let barcode = this.result.match(reg) let barcode = this.result.match(reg)
that.$set(newlist[i], 'barcode', barcode[1]) that.$set(newlist[i], 'barcode', barcode[1])
} }
} else if (this.drlx == 6) { } else if (this.drlx == 6) {
that.action = '/api/upload/person'
reader.onload = function () { reader.onload = function () {
const reg = /\<ysxt_asjbh\>(.*?)\<\/ysxt_asjbh\>/ const reg = /\<ysxt_asjbh\>(.*?)\<\/ysxt_asjbh\>/
let barcode = this.result.match(reg) let barcode = this.result.match(reg)
...@@ -587,7 +600,6 @@ export default { ...@@ -587,7 +600,6 @@ export default {
console.log('regType', regType) console.log('regType', regType)
} }
console.log('regType', regType) console.log('regType', regType)
//查重 //查重
let TT = result.match(regTT) let TT = result.match(regTT)
console.log('TT', TT) console.log('TT', TT)
......
...@@ -210,8 +210,8 @@ ...@@ -210,8 +210,8 @@
:data="tableDate" :data="tableDate"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
row-key="id" row-key="sequenceNumber"
:tree-props="{children: 'secondRecords', hasChildren: 'hasChildren'}" :tree-props="{children: 'pcImportRecordGrandchildren', hasChildren: 'hasChildren'}"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column <el-table-column
...@@ -424,7 +424,7 @@ export default { ...@@ -424,7 +424,7 @@ export default {
.then(response => { .then(response => {
// console.info("查询结果===>", response); // console.info("查询结果===>", response);
if (response.data.code === 0) { if (response.data.code === 0) {
this.tableDate = response.data.ret.firstRecords; this.tableDate = response.data.ret.pcImportRecordChildren;
// this.reqParam.page.total = response.data.ret.total; // this.reqParam.page.total = response.data.ret.total;
console.info("查询结果===>", this.tableDate); console.info("查询结果===>", this.tableDate);
// this.userInfo = this.getUserInfo(this.tableDate); // this.userInfo = this.getUserInfo(this.tableDate);
...@@ -584,6 +584,7 @@ export default { ...@@ -584,6 +584,7 @@ export default {
}, },
mounted () { mounted () {
this.search(); this.search();
this.showType = this.$route.query.id || '1'
} }
} }
</script> </script>
......
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