Commit 77536f56 authored by 张俊's avatar 张俊

应用基本信息修改

parent 993127cb
......@@ -22,13 +22,11 @@
</div>
</div>
<div class="type_box_select">
<mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/>
<info-list
v-if=" now_service !== 0"
:list_arr="servicead_arr
:list_arr="now_service == 0?list_arr:servicead_arr
"
>
<div class="appcode" v-html="appcode" slot="app_code"></div>
<mavon-editor v-model="appcode" slot="app_code" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false"/>
<process-card :data="approval_arr3" slot="approval"></process-card>
</info-list>
</div>
......@@ -208,35 +206,26 @@ export default {
aqdetail: true,
},
now_service: 0,
list_arr: '',
// [
// {
// title: "应用简介:",
// info: "",
// },
// {
// title: "功能简介:",
// info: "",
// },
// {
// title: "应用场景:",
// info: "",
// },
// {
// title: "应用参数:",
// info: "",
// type: "solt",
// solt_name: "app_code",
// },
// {
// title: "联系人:",
// info: "",
// },
// {
// title: "联系电话:",
// info: "",
// },
// ],
list_arr:[
{
title: "应用简介:",
info: "",
},
{
title: "功能简介:",
info: "",
},
{
title: "应用场景:",
info: "",
},
{
title: "应用参数:",
info: "",
type: "solt",
solt_name: "app_code",
}
],
servicead_arr: [
{
title: "申请信息",
......@@ -274,17 +263,29 @@ export default {
created() {
this.getServiceInfo();
this.getreadme();
this.get_app_code();
this.getServiceBaseInfo();
this.getServiceapplyInfo();
},
mounted() {},
methods: {
get_app_code(){
this.$http
.get("/apaas/hubApi/market/values/"+this.$route.params.id)
.then((response) => {
let data = response.data.data;
this.appcode = data
})
.catch(function(response) {});
},
getreadme(){
this.$http
.get("/apaas/hubApi/market/readme/"+this.$route.params.app_id)
.get("/apaas/hubApi/market/app/detail/"+this.$route.params.id)
.then((response) => {
let data = response.data.data;
this.list_arr = data
this.$set(this.list_arr[0], "info", data.yyjj);
this.$set(this.list_arr[1], "info", data.gnjj);
this.$set(this.list_arr[2], "info", data.cjsl);
})
.catch(function(response) {});
},
......
......@@ -17,8 +17,8 @@
>{{item}}</div>
</div>
<div class="type_box_select">
<mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/>
<info-list v-if="now_service!==0" :list_arr="servicead_arr[now_user]">
<!-- <mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/> -->
<info-list :list_arr="now_service==0?list_arr:servicead_arr[now_user]">
<process-card type="approval" :data="approval_arr" slot="sp_card"></process-card>
<div class="info_contain1" slot="sp_result">
<el-form ref="form" :rules="rules" :model="form" label-width="0px">
......@@ -218,7 +218,34 @@ export default {
},
],
],
list_arr: "",
list_arr: [
{
title: "申请单位:",
info: ""
},
{
title: "申请人:",
info: ""
},
{
title: "申请人联系电话:",
info: ""
},
{
title: "场景描述:",
info: ""
},
{
title: "申请文件:",
info: "",
url:"",
type: "down"
},
{
title: "申请时间:",
info: ""
}
]
};
},
watch: {},
......@@ -306,10 +333,17 @@ export default {
},
getapplyinfo(){
this.$http
.get("/apaas/hubApi/market/readme/"+this.$route.params.app_id)
.get("/apaas/hubApi/market/applyDetailInfo/"+this.$route.params.id)
.then((response) => {
let data = response.data.data;
this.list_arr = data
this.$set(this.list_arr[0], "info", data.department_name);
this.$set(this.list_arr[1], "info", data.contact_person);
this.$set(this.list_arr[2], "info", data.contact_number);
this.$set(this.list_arr[3], "info", data.scene);
this.$set(this.list_arr[4], "info", data.apply_file.split('/')[0]);
this.$set(this.list_arr[4], "url", data.apply_file);
this.$set(this.list_arr[5], "info", data.apply_time.replace('Z',' ').replace('T',' '));
})
.catch(function(response) {});
},
......
......@@ -474,7 +474,11 @@ export default {
info: "",
type: "solt",
solt_name: "markdown"
}
},
{
title: "使用说明:",
info: ""
},
],
markdown: "",
fwfw_arr: [
......@@ -829,6 +833,7 @@ export default {
this.introductionArr[0].info = data.yyjj;
this.introductionArr[1].info = data.gnjj;
this.introductionArr[2].info = data.cjsl;
this.introductionArr[4].info = data.sysm;
});
this.$api.workbench
.getAppParams({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment