Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform-ui
Commits
f2ea4917
Commit
f2ea4917
authored
Jan 11, 2021
by
rencs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_ren' into 'dev'
1.11 源文件 See merge request
!41
parents
de1f99ea
e7aff3e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
edit.vue
src/views/webSiteManagement/imageLibrary/edit.vue
+11
-1
index.vue
...nt/industryApplication/applicationList/addUpApp/index.vue
+11
-9
No files found.
src/views/webSiteManagement/imageLibrary/edit.vue
View file @
f2ea4917
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
@
input=
"(val, info) => getSrc('coverImg', val)"
@
input=
"(val, info) => getSrc('coverImg', val)"
></my-upload>
></my-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传源文件"
>
<el-form-item
label=
"上传源文件"
prop=
"imageInfoRelationList"
required
>
<!-- :prop="'imageInfoRelationList.url' && 'imageInfoRelationList.price'" -->
<!-- :prop="'imageInfoRelationList.url' && 'imageInfoRelationList.price'" -->
<!-- 上传 -->
<!-- 上传 -->
...
@@ -282,6 +282,13 @@ export default {
...
@@ -282,6 +282,13 @@ export default {
}
}
}
}
};
};
let
validateListLength
=
function
(
rule
,
value
,
callback
)
{
if
(
value
.
length
<
1
)
{
callback
(
new
Error
(
"请上传源文件"
));
}
else
{
callback
();
}
};
return
{
return
{
BASE_API
:
process
.
env
.
BASE_API
,
BASE_API
:
process
.
env
.
BASE_API
,
//1--影像美图 2--专题图 3--遥感成果图
//1--影像美图 2--专题图 3--遥感成果图
...
@@ -316,6 +323,9 @@ export default {
...
@@ -316,6 +323,9 @@ export default {
type
:
[
type
:
[
{
required
:
true
,
message
:
"请选择影像类型"
,
trigger
:
"change"
},
{
required
:
true
,
message
:
"请选择影像类型"
,
trigger
:
"change"
},
],
],
imageInfoRelationList
:
[
{
validator
:
validateListLength
,
trigger
:
"blur"
},
],
"paramJson.productType"
:
[
"paramJson.productType"
:
[
{
required
:
true
,
message
:
"请输入产品类型"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请输入产品类型"
,
trigger
:
"blur"
},
],
],
...
...
src/views/webSiteManagement/industryApplication/applicationList/addUpApp/index.vue
View file @
f2ea4917
...
@@ -134,12 +134,12 @@
...
@@ -134,12 +134,12 @@
<el-radio-button
label=
"否"
></el-radio-button>
<el-radio-button
label=
"否"
></el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否提供定制"
prop=
"isCustomized"
>
<
!--
<
el-form-item
label=
"是否提供定制"
prop=
"isCustomized"
>
<el-radio-group
v-model=
"form.isCustomized"
>
<el-radio-group
v-model=
"form.isCustomized"
>
<el-radio-button
label=
"是"
></el-radio-button>
<el-radio-button
label=
"是"
></el-radio-button>
<el-radio-button
label=
"否"
></el-radio-button>
<el-radio-button
label=
"否"
></el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"上传样例"
prop=
"fileList"
>
<el-form-item
label=
"上传样例"
prop=
"fileList"
>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
...
@@ -268,9 +268,9 @@ export default {
...
@@ -268,9 +268,9 @@ export default {
isSample
:
[
isSample
:
[
{
required
:
true
,
message
:
"是否提供样例"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"是否提供样例"
,
trigger
:
"blur"
},
],
],
isCustomized
:
[
//
isCustomized: [
{
required
:
true
,
message
:
"是否提供定制"
,
trigger
:
"blur"
},
//
{ required: true, message: "是否提供定制", trigger: "blur" },
],
//
],
fileList
:
[{
required
:
true
,
message
:
"请上传样例"
,
trigger
:
"blur"
}],
fileList
:
[{
required
:
true
,
message
:
"请上传样例"
,
trigger
:
"blur"
}],
sourceFile
:
[
sourceFile
:
[
{
required
:
true
,
message
:
"请上传源文件"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请上传源文件"
,
trigger
:
"blur"
},
...
@@ -291,7 +291,7 @@ export default {
...
@@ -291,7 +291,7 @@ export default {
achievement
:
""
,
// 成果形式
achievement
:
""
,
// 成果形式
resolvpower
:
""
,
// 分辨率
resolvpower
:
""
,
// 分辨率
isSample
:
"是"
,
// 是否提供样例
isSample
:
"是"
,
// 是否提供样例
isCustomized
:
"是"
,
// 是否定制
//
isCustomized: "是", // 是否定制
fileList
:
[],
// 样例图片路径集合
fileList
:
[],
// 样例图片路径集合
introduction
:
""
,
// 简介
introduction
:
""
,
// 简介
sourceFile
:
""
,
//源文件路径
sourceFile
:
""
,
//源文件路径
...
@@ -342,7 +342,7 @@ export default {
...
@@ -342,7 +342,7 @@ export default {
this
.
form
.
fileList
=
this
.
form
.
fileList
=
info
.
examples
!=
0
?
eval
(
"("
+
info
.
examplesJson
+
")"
)
:
[];
info
.
examples
!=
0
?
eval
(
"("
+
info
.
examplesJson
+
")"
)
:
[];
this
.
form
.
introduction
=
info
.
introduction
;
this
.
form
.
introduction
=
info
.
introduction
;
this
.
form
.
isCustomized
=
info
.
customized
==
1
?
"是"
:
"否"
;
//
this.form.isCustomized = info.customized == 1 ? "是" : "否";
// this.form = {
// this.form = {
// title: info.title,// 应用名称
// title: info.title,// 应用名称
// coverImg: info.coverImg,// 封面图
// coverImg: info.coverImg,// 封面图
...
@@ -498,6 +498,8 @@ export default {
...
@@ -498,6 +498,8 @@ export default {
this
.
$message
.
error
(
"请输入分辨率!!!"
);
this
.
$message
.
error
(
"请输入分辨率!!!"
);
}
else
if
(
this
.
form
.
isSample
==
"是"
&&
this
.
form
.
fileList
.
length
==
0
)
{
}
else
if
(
this
.
form
.
isSample
==
"是"
&&
this
.
form
.
fileList
.
length
==
0
)
{
this
.
$message
.
error
(
"请上传样例!!!"
);
this
.
$message
.
error
(
"请上传样例!!!"
);
}
else
if
(
this
.
form
.
sourceFile
==
""
)
{
this
.
$message
.
error
(
"请上传源文件!!!"
);
}
else
{
}
else
{
let
data
,
message
;
let
data
,
message
;
if
(
this
.
$parent
.
info
)
{
if
(
this
.
$parent
.
info
)
{
...
@@ -528,7 +530,7 @@ export default {
...
@@ -528,7 +530,7 @@ export default {
secondTitle
:
this
.
$parent
.
info
.
secondTitle
,
secondTitle
:
this
.
$parent
.
info
.
secondTitle
,
indexShow
:
this
.
$parent
.
info
.
indexShow
,
indexShow
:
this
.
$parent
.
info
.
indexShow
,
isDel
:
this
.
$parent
.
info
.
isDel
,
isDel
:
this
.
$parent
.
info
.
isDel
,
customized
:
this
.
form
.
isCustomized
==
"是"
?
1
:
2
,
//
customized: this.form.isCustomized == "是" ? 1 : 2,
};
};
message
=
"修改成功!!!"
;
message
=
"修改成功!!!"
;
}
else
{
}
else
{
...
@@ -566,7 +568,7 @@ export default {
...
@@ -566,7 +568,7 @@ export default {
).
label
,
).
label
,
secondTypeId
:
this
.
currentSecondType
,
secondTypeId
:
this
.
currentSecondType
,
secondTitle
:
secondtitle
,
secondTitle
:
secondtitle
,
customized
:
this
.
form
.
isCustomized
==
"是"
?
1
:
2
,
//
customized: this.form.isCustomized == "是" ? 1 : 2,
};
};
message
=
"添加成功!!!"
;
message
=
"添加成功!!!"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment