|
|
@@ -60,6 +60,10 @@
|
|
|
<el-select v-model="ruleForm.application">
|
|
|
<el-option label="网页端" value="web"></el-option>
|
|
|
<el-option label="移动端" value="app"></el-option>
|
|
|
+ <el-option
|
|
|
+ label="网页端 + 移动端"
|
|
|
+ value="webAndApp"
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="应用技术:">
|
|
|
@@ -141,6 +145,14 @@
|
|
|
placeholder="URL网址链接"
|
|
|
style="width: 500px"
|
|
|
></el-input>
|
|
|
+ <el-input
|
|
|
+ maxlength="32"
|
|
|
+ show-word-limit
|
|
|
+ v-model="tab2Arr[index].remark"
|
|
|
+ placeholder="场景标签"
|
|
|
+ style="width: 200px; margin-left: 20px"
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
<i
|
|
|
class="el-icon-circle-close"
|
|
|
@click="tab2Del(index)"
|
|
|
@@ -248,6 +260,15 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="文物标签:">
|
|
|
+ <el-input
|
|
|
+ maxlength="50"
|
|
|
+ show-word-limit
|
|
|
+ style="width: 500px"
|
|
|
+ v-model="addForm.remark"
|
|
|
+ placeholder="请输入文物标签"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="文物图片:" class="myImgBox">
|
|
|
<div class="upImgBox">
|
|
|
<div
|
|
|
@@ -276,19 +297,19 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-upload
|
|
|
- drag
|
|
|
- class="avatar-uploader"
|
|
|
- :action="baseURL + '/cms/goods/upload'"
|
|
|
- :headers="{ token }"
|
|
|
- :show-file-list="false"
|
|
|
- :before-upload="beforethumbUpload"
|
|
|
- :on-success="upload_thumb_success"
|
|
|
- >
|
|
|
- <div class="upImg">
|
|
|
- <i slot="default" class="el-icon-plus"></i>
|
|
|
- </div>
|
|
|
- </el-upload>
|
|
|
+ <el-upload
|
|
|
+ drag
|
|
|
+ class="avatar-uploader"
|
|
|
+ :action="baseURL + '/cms/goods/upload'"
|
|
|
+ :headers="{ token }"
|
|
|
+ :show-file-list="false"
|
|
|
+ :before-upload="beforethumbUpload"
|
|
|
+ :on-success="upload_thumb_success"
|
|
|
+ >
|
|
|
+ <div class="upImg">
|
|
|
+ <i slot="default" class="el-icon-plus"></i>
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<span style="margin-left: 100px"
|
|
|
@@ -338,7 +359,8 @@ export default {
|
|
|
url: '', // 链接
|
|
|
goodsTypeId: null, // 文物类型id
|
|
|
// projectId: '', // 项目id
|
|
|
- thumb: '' // 封面
|
|
|
+ thumb: '', // 封面
|
|
|
+ remark: ''// 文物标签
|
|
|
},
|
|
|
addRules: {
|
|
|
name: [
|
|
|
@@ -358,7 +380,7 @@ export default {
|
|
|
// 项目网址数据
|
|
|
tab1Arr: [{ name: '', href: '' }],
|
|
|
// 三维场景数据
|
|
|
- tab2Arr: [{ name: '', href: '' }],
|
|
|
+ tab2Arr: [{ name: '', href: '', remark: '' }],
|
|
|
topTabInd: 0,
|
|
|
topTab: [
|
|
|
{ name: '项目详情', id: '#tab0' },
|
|
|
@@ -416,9 +438,15 @@ export default {
|
|
|
} else if (index === 2 && this.topTabInd !== index) {
|
|
|
tabAll.scrollTop = tab0.offsetHeight + tab1.offsetHeight + 20
|
|
|
} else if (index === 3 && this.topTabInd !== index) {
|
|
|
- tabAll.scrollTop = tab0.offsetHeight + tab1.offsetHeight + tab2.offsetHeight + 30
|
|
|
+ tabAll.scrollTop =
|
|
|
+ tab0.offsetHeight + tab1.offsetHeight + tab2.offsetHeight + 30
|
|
|
} else if (index === 4 && this.topTabInd !== index) {
|
|
|
- tabAll.scrollTop = tab0.offsetHeight + tab1.offsetHeight + tab2.offsetHeight + tab3.offsetHeight + 40
|
|
|
+ tabAll.scrollTop =
|
|
|
+ tab0.offsetHeight +
|
|
|
+ tab1.offsetHeight +
|
|
|
+ tab2.offsetHeight +
|
|
|
+ tab3.offsetHeight +
|
|
|
+ 40
|
|
|
}
|
|
|
this.topTabInd = index
|
|
|
},
|
|
|
@@ -454,7 +482,7 @@ export default {
|
|
|
) {
|
|
|
return this.$message.warning('场景名称或链接不能为空')
|
|
|
}
|
|
|
- this.tab2Arr.push({ name: '', href: '' })
|
|
|
+ this.tab2Arr.push({ name: '', href: '', remark: '' })
|
|
|
},
|
|
|
tab2Del (index) {
|
|
|
this.$confirm('确定删除吗?', '提示', {
|
|
|
@@ -518,11 +546,11 @@ export default {
|
|
|
temp1.push(v.id)
|
|
|
})
|
|
|
// 处理项目网址数据
|
|
|
- const websites = {}
|
|
|
+ const websites = []
|
|
|
let tempBoo = false
|
|
|
let tempBoo1 = false
|
|
|
this.tab1Arr.forEach((v, i) => {
|
|
|
- websites[v.name] = v.href
|
|
|
+ websites.push({ name: v.name, url: v.href })
|
|
|
if (i !== this.tab1Arr.length - 1) {
|
|
|
if (v.name.trim() === '' || v.href.trim() === '') tempBoo = true
|
|
|
}
|
|
|
@@ -532,11 +560,13 @@ export default {
|
|
|
if (tempBoo) return this.$message.warning('项目网址名称和链接不能为空')
|
|
|
if (tempBoo1) return this.$message.warning('项目网址名称或链接不能为空')
|
|
|
// 处理三维场景数据
|
|
|
- const scenes = {}
|
|
|
+ const scenes = []
|
|
|
let tempBoo2 = false
|
|
|
let tempBoo3 = false
|
|
|
this.tab2Arr.forEach((v, i) => {
|
|
|
- if (v.href !== '' && v.name !== '') scenes[v.name] = v.href
|
|
|
+ if (v.href !== '' && v.name !== '') {
|
|
|
+ scenes.push({ name: v.name, remark: v.remark, url: v.href })
|
|
|
+ }
|
|
|
if (i !== this.tab2Arr.length - 1) {
|
|
|
if (v.name.trim() === '' || v.href.trim() === '') tempBoo2 = true
|
|
|
}
|
|
|
@@ -576,7 +606,9 @@ export default {
|
|
|
if (file.code === 0) {
|
|
|
this.fuJianArr.push({ name: file.data.name, id: file.data.id })
|
|
|
this.$message.success('上传成功')
|
|
|
- } else if (file.code === -1) { this.$message.warning('上传失败,不支持的文件格式') }
|
|
|
+ } else if (file.code === -1) {
|
|
|
+ this.$message.warning('上传失败,不支持的文件格式')
|
|
|
+ }
|
|
|
},
|
|
|
// 删除附件
|
|
|
delFJ (index) {
|
|
|
@@ -894,7 +926,7 @@ export default {
|
|
|
.txt {
|
|
|
font-weight: 700;
|
|
|
height: 40px;
|
|
|
- border-bottom: 1px solid #A3A2A9;
|
|
|
+ border-bottom: 1px solid #a3a2a9;
|
|
|
}
|
|
|
.search {
|
|
|
position: relative;
|