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

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

parent 45b90741
......@@ -166,7 +166,7 @@ export default {
this.$refs.tree.setCurrentKey(4);
});
this.currentRole = "navs";
this.clientDetails = { type: [4] };
this.clientDetails = { type: [] };
this.expandedArr = [4];
this.checkList = [];
this.$refs.tree.setCheckedKeys([]);
......
......@@ -254,58 +254,70 @@
</span>
</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">
<el-form :model="form_PsxzAdd" label-width="80px" style="margin-bottom: 0px" ref="formsPsxz" :rules="rulesPsxz">
<el-form-item label="文档名称" prop="name">
<el-input v-model="form_PsxzAdd.name" maxlength="20" show-word-limit placeholder="请输入文档名称"></el-input>
</el-form-item>
<!-- <el-form-item label="文档类别">
<el-select v-model="form_add.region" placeholder="请选择文档类别">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="关键词">
<el-input v-model="form_PsxzAdd.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input>
</el-form-item>
<el-form-item label="文档描述">
<el-input type="textarea" placeholder="请输入文档描述" v-model="form_PsxzAdd.ms" maxlength="100"
show-word-limit :rows="4">
</el-input>
</el-form-item>
<el-form-item label="选择文件" prop="fileList">
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList"
:on-change="handleChangePsxz" :show-file-list="true" :auto-upload="false" :multiple="false"
:on-remove="handleRemovePsxz" :accept="format_files">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">
允许上传DOC、PPT、JPG、PNG、MP4等等 ,且不超过500M
</div>
</el-upload>
</el-form-item>
<el-form-item label="预选节点" prop="fileList1">
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList1"
:on-change="handleChangePsxzExcel" :show-file-list="true" :auto-upload="false" :multiple="false"
:on-remove="handleRemovePsxzExcel" accept="['.XLS','.XLSX']">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">
只允许上传XLSX文件
</div>
</el-upload>
</el-form-item>
<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 style="width: 50%;">
<el-form :model="form_PsxzAdd" label-width="80px" style="margin-bottom: 0px" ref="formsPsxz" :rules="rulesPsxz">
<el-form-item label="文档名称" prop="name">
<el-input v-model="form_PsxzAdd.name" maxlength="20" show-word-limit placeholder="请输入文档名称"></el-input>
</el-form-item>
<!-- <el-form-item label="文档类别">
<el-select v-model="form_add.region" placeholder="请选择文档类别">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="关键词">
<el-input v-model="form_PsxzAdd.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input>
</el-form-item>
<el-form-item label="文档描述">
<el-input type="textarea" placeholder="请输入文档描述" v-model="form_PsxzAdd.ms" maxlength="100"
show-word-limit :rows="4">
</el-input>
</el-form-item>
<el-form-item label="选择文件" prop="fileList">
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList"
:on-change="handleChangePsxz" :show-file-list="true" :auto-upload="false" :multiple="false"
:on-remove="handleRemovePsxz" :accept="format_files">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">
允许上传DOC、PPT、JPG、PNG、MP4等等 ,且不超过500M
</div>
</el-upload>
</el-form-item>
<el-form-item label="预选节点" prop="fileList1">
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_PsxzAdd.fileList1"
:on-change="handleChangePsxzExcel" :show-file-list="true" :auto-upload="false" :multiple="false"
:on-remove="handleRemovePsxzExcel" accept="['.XLS','.XLSX']">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">
只允许选择XLSX文件
</div>
</el-upload>
</el-form-item>
<!-- <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>
<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">
<el-button @click="Visible_PsxzAdd = false">取 消</el-button>
<el-button type="primary" @click="submitPsxz">确 定</el-button>
......@@ -1111,6 +1123,25 @@ export default {
});
return;
} 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(
lastIndexOf(this.form_PsxzAdd.fileList[0].name, ".") + 1,
this.form_PsxzAdd.fileList[0].name.length
......@@ -1188,6 +1219,7 @@ export default {
console.log("error");
this.$message.warning(err.message);
});
}
}
}
});
......@@ -1332,7 +1364,7 @@ export default {
arrId.push(i.id);
})
if(!this.haveSameElements(this.clientDetails_check_typePsxz,arrId)){
str = str+''+name+'”子节点没有选中\n';
str = str+''+name+'”子节点未匹配\n';
this.psxzIds.push(zjArr[0].id);
}
}
......@@ -1537,6 +1569,8 @@ export default {
ms: "",
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 {
.myTree>.el-tree-node>.el-tree-node__content .el-checkbox {
display: none;
}
.el-tree {
color: white;
background: transparent;
......@@ -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 {
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