|
@@ -30,7 +30,7 @@
|
|
|
<el-button type="primary" size="mini" v-if="!editTechnical" @click="changeEditTechnical()">编辑模式</el-button>
|
|
|
<el-button type="primary" size="mini" v-else @click="changeEditTechnical()">返回预览模式</el-button>
|
|
|
<el-button type="info" size="mini" @click="$message.info('敬请期待')">查新检索</el-button>
|
|
|
- <el-button type="info" size="mini" @click="$message.info('敬请期待')">辅助撰写说明书</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="toWriteInstruction">辅助撰写申请文档</el-button>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -367,16 +367,32 @@
|
|
|
<span>技术交底书解析</span>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <el-upload
|
|
|
- class="upload-demo"
|
|
|
+ <div v-if="uploadFile.show" class="file_show">
|
|
|
+ <myTooltip :content="uploadFile.filename">
|
|
|
+ <div class="noWrap file_name">
|
|
|
+ <i class="el-icon-document" style="margin-right: 10px"></i>
|
|
|
+ <span class="name">{{uploadFile.filename}}</span>
|
|
|
+ </div>
|
|
|
+ </myTooltip>
|
|
|
+ <div class="type">
|
|
|
+ <el-progress :percentage="uploadFile.percentage"></el-progress>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-upload
|
|
|
ref="uploadConfession"
|
|
|
+ class="upload-demo"
|
|
|
+ drag
|
|
|
action="#"
|
|
|
:auto-upload="false"
|
|
|
- :show-file-list="false"
|
|
|
+ :limit="1"
|
|
|
:on-change="onChangeConfession"
|
|
|
- :limit="1">
|
|
|
- <el-button type="primary" size="mini">上传技术交底书</el-button>
|
|
|
- </el-upload>
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
+ <div class="el-upload__text"><em>上传技术交底书</em></div>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -479,7 +495,12 @@ export default {
|
|
|
editTechnical:false,
|
|
|
showHistory:false,
|
|
|
AIModel:'chat',
|
|
|
- styleShow:'style1'
|
|
|
+ styleShow:'style2',
|
|
|
+ uploadFile:{
|
|
|
+ show:false,
|
|
|
+ filename:'',
|
|
|
+ percentage:0
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -493,6 +514,20 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ //去辅助撰写申请文档
|
|
|
+ toWriteInstruction(){
|
|
|
+ if(!this.currentConversation.discoveryResult){
|
|
|
+ this.$message.warning('请先提取技术交底书内容')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const router = this.$router.resolve({
|
|
|
+ path: '/generateInstruction',
|
|
|
+ query:{
|
|
|
+ confessionSessionId:this.currentConversation.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(router.href,'_blank')
|
|
|
+ },
|
|
|
slotDataFunction(val){
|
|
|
let obj = {}
|
|
|
try{
|
|
@@ -692,10 +727,20 @@ export default {
|
|
|
type: 'warning',
|
|
|
duration:0
|
|
|
});
|
|
|
- this.$api.uploadFile(formData).then(response=>{
|
|
|
+ this.uploadFile = {
|
|
|
+ show:true,
|
|
|
+ filename:file.name,
|
|
|
+ percentage:0
|
|
|
+ }
|
|
|
+ this.$api.uploadFile(formData,(percent)=>{
|
|
|
+ this.uploadFile.percentage = percent
|
|
|
+ }).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
let guid = response.data[0]
|
|
|
- this.$refs.uploadConfession.clearFiles()
|
|
|
+ if(this.$refs.uploadConfession){
|
|
|
+ this.$refs.uploadConfession.clearFiles()
|
|
|
+ }
|
|
|
+
|
|
|
var params = {
|
|
|
fileGuid:guid,
|
|
|
type:4
|
|
@@ -704,6 +749,11 @@ export default {
|
|
|
if(response.code == 200){
|
|
|
message.close()
|
|
|
this.$message.success('文件上传成功')
|
|
|
+ this.uploadFile = {
|
|
|
+ show:false,
|
|
|
+ filename:'',
|
|
|
+ percentage:0
|
|
|
+ }
|
|
|
|
|
|
//查询技术交底书会话记录
|
|
|
this.queryConfessionSession(false,true)
|
|
@@ -1195,4 +1245,37 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .technicalDisclosure{
|
|
|
+ .file_title{
|
|
|
+ font-weight: bold;
|
|
|
+ i{
|
|
|
+ color: red !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .file_show{
|
|
|
+ line-height: 50px;
|
|
|
+ .file_name{
|
|
|
+ width: calc(100% - 90px);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .upload-demo{
|
|
|
+ .el-upload{
|
|
|
+ width: 100% !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-upload-dragger {
|
|
|
+ width: 100% !important;
|
|
|
+ height:100px !important;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .el-icon-upload{
|
|
|
+ font-size: 40px !important;
|
|
|
+ margin: 0 25px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
</style>
|