Merge pull request 'fix : 标签不可编辑' (#998) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/998
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
<!-- <el-button color="#DED0B2" @click="handleUpload">上传附件</el-button>-->
|
<!-- <el-button color="#DED0B2" @click="handleUpload">上传附件</el-button>-->
|
||||||
<file-upload v-if="!isLineBtn&&uploadState&&activeName!='plus'&&activeName!='all'" @getFile="getFile"/>
|
<file-upload v-if="!isLineBtn&&uploadState&&activeName!='plus'&&activeName!='all'" @getFile="getFile"/>
|
||||||
|
|
||||||
<el-button color="#DED0B2" @click="handleEditTag" v-if="activeName!='all'&&activeName!='plus'&&uploadState"
|
<el-button color="#DED0B2" @click="handleEditTag" v-if="activeName!='all'&&activeName!='plus'&&uploadState&&!isDefault"
|
||||||
style="margin-left: 10px;">编辑
|
style="margin-left: 10px;">编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -75,6 +75,7 @@ const fileParam = ref({
|
|||||||
})
|
})
|
||||||
const uploadState = ref(false)
|
const uploadState = ref(false)
|
||||||
const tagNameShow = ref(false)
|
const tagNameShow = ref(false)
|
||||||
|
const isDefault = ref(false)
|
||||||
const tagsOption = ref([])
|
const tagsOption = ref([])
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
const allFiles = ref([])
|
const allFiles = ref([])
|
||||||
@@ -253,6 +254,12 @@ const getTagName = (name) => {
|
|||||||
return tagName
|
return tagName
|
||||||
}
|
}
|
||||||
const handleTabClick = (item) => {
|
const handleTabClick = (item) => {
|
||||||
|
const defaultArray=tagsOption.value.filter(item1=>item1.tagId==item.props.name)
|
||||||
|
if(defaultArray&&defaultArray.length>0){
|
||||||
|
isDefault.value=defaultArray[0].isDefault==1
|
||||||
|
}else{
|
||||||
|
isDefault.value=false
|
||||||
|
}
|
||||||
tagNameShow.value = item.props.name == 'plus';
|
tagNameShow.value = item.props.name == 'plus';
|
||||||
if (item.props.name == 'plus') {
|
if (item.props.name == 'plus') {
|
||||||
isEdit.value = false
|
isEdit.value = false
|
||||||
@@ -411,21 +418,25 @@ const getTagsOption = (flag) => {
|
|||||||
{
|
{
|
||||||
tagId: 'd1',
|
tagId: 'd1',
|
||||||
fileTag: '合同(专项任务书)',
|
fileTag: '合同(专项任务书)',
|
||||||
|
isDefault: 1,
|
||||||
isClose: 2
|
isClose: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tagId: 'd2',
|
tagId: 'd2',
|
||||||
fileTag: '周报',
|
fileTag: '周报',
|
||||||
|
isDefault: 1,
|
||||||
isClose: 2
|
isClose: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tagId: 'd3',
|
tagId: 'd3',
|
||||||
fileTag: '阶段性验收',
|
fileTag: '阶段性验收',
|
||||||
|
isDefault: 1,
|
||||||
isClose: 2
|
isClose: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tagId: 'd4',
|
tagId: 'd4',
|
||||||
fileTag: '科研成果',
|
fileTag: '科研成果',
|
||||||
|
isDefault: 1,
|
||||||
isClose: 2
|
isClose: 2
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user