Commit 3332a286 authored by 高飞's avatar 高飞

修改评审新增弹框样式。信息制品文档列表按钮无法查询问题

parent 45b90741
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
this.$refs.tree.setCurrentKey(4); this.$refs.tree.setCurrentKey(4);
}); });
this.currentRole = "navs"; this.currentRole = "navs";
this.clientDetails = { type: [4] }; this.clientDetails = { type: [] };
this.expandedArr = [4]; this.expandedArr = [4];
this.checkList = []; this.checkList = [];
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
......
...@@ -254,58 +254,70 @@ ...@@ -254,58 +254,70 @@
</span> </span>
</el-dialog> </el-dialog>
<el-dialog v-if="Visible_PsxzAdd" title="评审新增" :visible.sync="Visible_PsxzAdd" width="30%" <el-dialog v-if="Visible_PsxzAdd" title="评审新增" :visible.sync="Visible_PsxzAdd" width="60%"
center class="xzwd psxz"> center class="xzwd psxz">
<el-form :model="form_PsxzAdd" label-width="80px" style="margin-bottom: 0px" ref="formsPsxz" :rules="rulesPsxz"> <div style="width: 50%;">
<el-form-item label="文档名称" prop="name"> <el-form :model="form_PsxzAdd" label-width="80px" style="margin-bottom: 0px" ref="formsPsxz" :rules="rulesPsxz">
<el-input v-model="form_PsxzAdd.name" maxlength="20" show-word-limit placeholder="请输入文档名称"></el-input> <el-form-item label="文档名称" prop="name">
</el-form-item> <el-input v-model="form_PsxzAdd.name" maxlength="20" show-word-limit placeholder="请输入文档名称"></el-input>
<!-- <el-form-item label="文档类别"> </el-form-item>
<el-select v-model="form_add.region" placeholder="请选择文档类别"> <!-- <el-form-item label="文档类别">
<el-option <el-select v-model="form_add.region" placeholder="请选择文档类别">
v-for="item in options" <el-option
:key="item.value" v-for="item in options"
:label="item.label" :key="item.value"
:value="item.value" :label="item.label"
> :value="item.value"
</el-option> >
</el-select> </el-option>
</el-form-item> --> </el-select>
<el-form-item label="关键词"> </el-form-item> -->
<el-input v-model="form_PsxzAdd.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input> <el-form-item label="关键词">
</el-form-item> <el-input v-model="form_PsxzAdd.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input>
<el-form-item label="文档描述"> </el-form-item>
<el-input type="textarea" placeholder="请输入文档描述" v-model="form_PsxzAdd.ms" maxlength="100" <el-form-item label="文档描述">
show-word-limit :rows="4"> <el-input type="textarea" placeholder="请输入文档描述" v-model="form_PsxzAdd.ms" maxlength="100"
</el-input> show-word-limit :rows="4">
</el-form-item> </el-input>
<el-form-item label="选择文件" prop="fileList"> </el-form-item>
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList" <el-form-item label="选择文件" prop="fileList">
:on-change="handleChangePsxz" :show-file-list="true" :auto-upload="false" :multiple="false" <el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList"
:on-remove="handleRemovePsxz" :accept="format_files"> :on-change="handleChangePsxz" :show-file-list="true" :auto-upload="false" :multiple="false"
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> :on-remove="handleRemovePsxz" :accept="format_files">
<div slot="tip" class="el-upload__tip"> <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
允许上传DOC、PPT、JPG、PNG、MP4等等 ,且不超过500M <div slot="tip" class="el-upload__tip">
</div> 允许上传DOC、PPT、JPG、PNG、MP4等等 ,且不超过500M
</el-upload> </div>
</el-form-item> </el-upload>
<el-form-item label="预选节点" prop="fileList1"> </el-form-item>
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList1" <el-form-item label="预选节点" prop="fileList1">
:on-change="handleChangePsxzExcel" :show-file-list="true" :auto-upload="false" :multiple="false" <el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList1"
:on-remove="handleRemovePsxzExcel" accept="['.XLS','.XLSX']"> :on-change="handleChangePsxzExcel" :show-file-list="true" :auto-upload="false" :multiple="false"
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> :on-remove="handleRemovePsxzExcel" accept="['.XLS','.XLSX']">
<div slot="tip" class="el-upload__tip"> <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
只允许上传XLSX文件 <div slot="tip" class="el-upload__tip">
</div> 只允许选择XLSX文件
</el-upload> </div>
</el-form-item> </el-upload>
<el-form-item label="选择目录"> </el-form-item>
<el-tree class="myTree" :data="psxz_tree_data" node-key="id" show-checkbox :expand-on-click-node="false" <!-- <el-form-item label="选择目录">
highlight-current :props="defaultProps" :check-strictly="true" ref="treePsxz" <el-tree class="myTree" :data="psxz_tree_data" node-key="id" show-checkbox :expand-on-click-node="false"
:default-expanded-keys="psxzIds" @check-change="handleCheckChangePsxz" :indent=1> highlight-current :props="defaultProps" :check-strictly="true" ref="treePsxz"
</el-tree> :default-expanded-keys="psxzIds" @check-change="handleCheckChangePsxz" :indent=1>
</el-form-item> </el-tree>
</el-form> </el-form-item> -->
</el-form>
</div>
<div style="width: 50%;">
<el-form label-width="80px" style="margin-bottom: 0px" ref="formsPsxz1">
<el-form-item label="选择目录">
<el-tree class="myTree" :data="psxz_tree_data" node-key="id" show-checkbox :expand-on-click-node="false"
highlight-current :props="defaultProps" :check-strictly="true" ref="treePsxz"
:default-expanded-keys="psxzIds" @check-change="handleCheckChangePsxz" :indent=1>
</el-tree>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="Visible_PsxzAdd = false">取 消</el-button> <el-button @click="Visible_PsxzAdd = false">取 消</el-button>
<el-button type="primary" @click="submitPsxz">确 定</el-button> <el-button type="primary" @click="submitPsxz">确 定</el-button>
...@@ -1111,6 +1123,25 @@ export default { ...@@ -1111,6 +1123,25 @@ export default {
}); });
return; return;
} else { } else {
let str = '';
this.psxzIds = [this.psxz_tree_data[0].id];
if(this.psxz_tree_data.length>0){
if(this.psxz_tree_data[0].children.length>0){
str = str + this.zjdsfxz('产品类别代码');
str = str + this.zjdsfxz('年份代码');
str = str + this.zjdsfxz('单位名称代码');
str = str + this.zjdsfxz('产品类型代码');
}
}
if(str!=''){
let mesg = str.replace(/\n/g, '<br />');
this.$message({
type:'warning',
dangerouslyUseHTMLString: true,
message: mesg
});
}else{
let file_ext = this.form_PsxzAdd.fileList[0].name.substring( let file_ext = this.form_PsxzAdd.fileList[0].name.substring(
lastIndexOf(this.form_PsxzAdd.fileList[0].name, ".") + 1, lastIndexOf(this.form_PsxzAdd.fileList[0].name, ".") + 1,
this.form_PsxzAdd.fileList[0].name.length this.form_PsxzAdd.fileList[0].name.length
...@@ -1188,6 +1219,7 @@ export default { ...@@ -1188,6 +1219,7 @@ export default {
console.log("error"); console.log("error");
this.$message.warning(err.message); this.$message.warning(err.message);
}); });
}
} }
} }
}); });
...@@ -1332,7 +1364,7 @@ export default { ...@@ -1332,7 +1364,7 @@ export default {
arrId.push(i.id); arrId.push(i.id);
}) })
if(!this.haveSameElements(this.clientDetails_check_typePsxz,arrId)){ if(!this.haveSameElements(this.clientDetails_check_typePsxz,arrId)){
str = str+''+name+'”子节点没有选中\n'; str = str+''+name+'”子节点未匹配\n';
this.psxzIds.push(zjArr[0].id); this.psxzIds.push(zjArr[0].id);
} }
} }
...@@ -1537,6 +1569,8 @@ export default { ...@@ -1537,6 +1569,8 @@ export default {
ms: "", ms: "",
gjc: "", gjc: "",
}; };
this.psxzIds = [this.psxz_tree_data[0].id];
this.psxz_tree_data = this.initData(this.deepClone(this.psxz_tree_dataCopy));
} }
}, },
//视频预览弹出框隐藏事件 //视频预览弹出框隐藏事件
...@@ -2059,7 +2093,6 @@ export default { ...@@ -2059,7 +2093,6 @@ export default {
.myTree>.el-tree-node>.el-tree-node__content .el-checkbox { .myTree>.el-tree-node>.el-tree-node__content .el-checkbox {
display: none; display: none;
} }
.el-tree { .el-tree {
color: white; color: white;
background: transparent; background: transparent;
...@@ -2145,6 +2178,21 @@ export default { ...@@ -2145,6 +2178,21 @@ export default {
} }
} }
} }
.psxz{
.el-tree{
margin-top: 0px;
}
.el-dialog__body {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 20px;
}
.el-tree > .el-tree-node > .el-tree-node__children{
height: 380px;
overflow: auto !important;
}
}
.el-tree>.el-tree-node>.el-tree-node__content { .el-tree>.el-tree-node>.el-tree-node__content {
height: 40px; height: 40px;
......
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