feat: There is no way the, bug #55865
This commit is contained in:
@@ -60,6 +60,8 @@
|
||||
:action="actionPath"
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||
name="file"
|
||||
:limit="5"
|
||||
:on-exceed="handleExceed"
|
||||
:file-list="fileList"
|
||||
ref="importFileAboutStand">
|
||||
<i class="el-icon-upload"></i>
|
||||
@@ -100,6 +102,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning(`当前限制选择 5 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
||||
},
|
||||
//提交
|
||||
handleSubmit(){
|
||||
this.$refs['form'].validate((valid) => {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div style="float: right; margin-top: 20px">
|
||||
<el-checkbox v-if="answer.checkedShow && (answer.answerer !== answererNowUserName)" @change="answerChang" :disabled="answer.state && answer.state === 'yes'" v-model="answer.checked">归档</el-checkbox>
|
||||
<el-checkbox v-if="answer.checkedShow && archiveVerify()" @change="answerChang" :disabled="answer.state && answer.state === 'yes'" v-model="answer.checked">归档</el-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="footer-box">-->
|
||||
@@ -38,16 +38,30 @@
|
||||
<script>
|
||||
export default {
|
||||
name: "questionItemInfo",
|
||||
props:['answer'],
|
||||
props: {
|
||||
answer: {
|
||||
type: Object,
|
||||
required: false
|
||||
},
|
||||
questionerForm: {
|
||||
type: Object,
|
||||
required: false
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
checked: '',
|
||||
institutionId: this.$store.getters.userInfo.institutionId,
|
||||
answererNowUserId: this.$store.getters.userInfo.userId,
|
||||
answererNowUserName: this.$store.getters.userInfo.userName,
|
||||
fileList:[],
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
archiveVerify(){
|
||||
return !!(this.questionerForm && this.questionerForm.questioner && this.questionerForm.questioner !== this.answererNowUserName
|
||||
&& this.institutionId === '30001273');
|
||||
},
|
||||
assemble(ids,names){
|
||||
let list= [];
|
||||
if(ids && ids !== '' && names && names !== ''){
|
||||
|
||||
@@ -328,7 +328,9 @@
|
||||
<template v-for="(item, index) in answerList">
|
||||
<div class="clearfix">
|
||||
<div class="answer-box" >
|
||||
<question-item-info :answer="item" :dataLoading="dataLoading"></question-item-info>
|
||||
<question-item-info :key="qiiKey"
|
||||
:answer="item"
|
||||
:questionerForm="question"></question-item-info>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -389,7 +391,9 @@
|
||||
<template v-for="(item, index) in answerList">
|
||||
<div class="clearfix">
|
||||
<div class="answer-box" >
|
||||
<question-item-info :answer="item"></question-item-info>
|
||||
<question-item-info :key="qiiKey"
|
||||
:answer="item"
|
||||
:questionerForm="question"></question-item-info>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -450,7 +454,9 @@
|
||||
<template v-for="(item, index) in answerList">
|
||||
<div class="clearfix">
|
||||
<div class="answer-box" >
|
||||
<question-item-info :answer="item"></question-item-info>
|
||||
<question-item-info :key="qiiKey"
|
||||
:answer="item"
|
||||
:questionerForm="question"></question-item-info>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -512,7 +518,9 @@
|
||||
<div class="clearfix">
|
||||
<div class="answer-box" >
|
||||
<question-item-info
|
||||
:key="qiiKey"
|
||||
:answer="item"
|
||||
:questionerForm="question"
|
||||
></question-item-info>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1246,6 +1254,8 @@ export default {
|
||||
data(){
|
||||
return{
|
||||
aiKey:1,
|
||||
qiiKey:1,
|
||||
institutionId: this.$store.getters.userInfo.institutionId,
|
||||
dataLoading: true,
|
||||
roleFlag: false,
|
||||
nodeList: [],
|
||||
@@ -1314,6 +1324,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
console.log(this.$store.getters.userInfo)
|
||||
this.standSearch()
|
||||
// 查询各下拉框数据
|
||||
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
||||
@@ -1632,6 +1643,7 @@ export default {
|
||||
}, res => {
|
||||
if(this.activeName === 'myAns'){
|
||||
if(res.data.length){
|
||||
|
||||
res.data.forEach(item => {
|
||||
item.checkedShow = true
|
||||
if(item.state && item.state === 'yes'){
|
||||
@@ -1645,6 +1657,7 @@ export default {
|
||||
}else{
|
||||
this.answerList = res.data
|
||||
}
|
||||
this.qiiKey++
|
||||
this.dataLoading = false
|
||||
}, e => {
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user