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