Commit 9c0920b5 authored by 张俊's avatar 张俊

Merge branch 'zj' into dev

parents 569c655d 424f3c98
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
this.$emit("delete-action", this.data); this.$emit("delete-action", this.data);
}, },
intoDetail() { intoDetail() {
this.$router.push(`${this.detailsUrl}${this.data.up_userid}`); this.$router.push(`${this.detailsUrl}${this.data.app_id}`);
}, },
}, },
}; };
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
<p class="info_title"> <p class="info_title">
<span>{{ data.name }}</span> <span>{{ data.name }}</span>
<span class="bs" v-if="data.aqdetail" @click="subevent(0)">一键部署</span> <span class="bs" v-if="data.aqdetail" @click="subevent(0)">一键部署</span>
<span class="info_fix" v-if="data.yydetail" @click="subevent(1)">我要编辑</span> <span class="info_fix" v-if="data.fxdetail" @click="subevent(1)">我要编辑</span>
<span class="right gap" v-if="data.yydetail">|</span> <span class="right gap" v-if="data.yydetail||data.xxdetail">|</span>
<span class="right underline" v-if="data.yydetail" @click="subevent(2)" title="申请下线至开发者应用">申请下线</span> <span class="right underline" v-if="data.xxdetail" @click="subevent(2)" title="申请下线至开发者应用">{{data.xxdetail}}</span>
<span class="right undersell" v-if="data.yydetail" @click="subevent(3)">申请下架</span> <span class="right undersell" v-if="data.yydetail" @click="subevent(3)">{{data.yydetail}}</span>
<span class="right undersell undermy" v-if="data.bsdetail" @click="subevent(4)">申请密钥</span> <span class="right undersell undermy" v-if="data.bsdetail" @click="subevent(4)">申请密钥</span>
<span class="info_fix" v-if="data.fixed" @click="goto_page(data.fixedurl)">我要修改</span> <span class="info_fix" v-if="data.fixed" @click="goto_page(data.fixedurl)">我要修改</span>
</p> </p>
...@@ -61,11 +61,11 @@ export default { ...@@ -61,11 +61,11 @@ export default {
}else if(val == 1){ }else if(val == 1){
this.$emit('editapp') this.$emit('editapp')
}else if(val == 2){ }else if(val == 2){
this.$emit('unline',0) this.$emit('unline',this.data)
}else if(val == 3){ }else if(val == 3){
this.$emit('unsell',1) this.$emit('unsell',this.data)
}else if(val == 4){ }else if(val == 4){
this.$emit('applymy',1) this.$emit('applymy')
} }
}, },
goto_page(url){ goto_page(url){
......
...@@ -33,6 +33,10 @@ export default { ...@@ -33,6 +33,10 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
is_app_detail:{
type: Boolean,
default: false,
}
}, },
data: () => ({ data: () => ({
commentsTtotal: 0, commentsTtotal: 0,
...@@ -75,16 +79,31 @@ export default { ...@@ -75,16 +79,31 @@ export default {
this.init(); this.init();
}, },
init() { init() {
this.$http if(this.is_app_detail){
.get(this.url, { var temp = {
params: {
page: this.currentPage,
limit: this.pageSize,
},
}
}else{
var temp = {
params: { params: {
page: this.currentPage, page: this.currentPage,
size: this.pageSize, size: this.pageSize,
}, },
}) }
}
this.$http
.get(this.url, temp)
.then(({ data }) => { .then(({ data }) => {
if(this.is_app_detail){
this.commentsTtotal = data.data.overview.total;
this.commentsList = data.data.list;
}else{
this.commentsTtotal = data.total; this.commentsTtotal = data.total;
this.commentsList = data.data; this.commentsList = data.data;
}
}) })
.catch(function(error) { .catch(function(error) {
console.log(error); console.log(error);
......
...@@ -53,10 +53,12 @@ ...@@ -53,10 +53,12 @@
:border="border" :border="border"
@select="select" @select="select"
@select-all="selectAll" @select-all="selectAll"
v-infinite-scroll="asynload"
:defaultSelections="defaultSelections" :defaultSelections="defaultSelections"
element-loading-text="加载中..." element-loading-text="加载中..."
:empty-text="emptyText" :empty-text="emptyText"
:stripe="stripe" :stripe="stripe"
:style="{height:isLoad,overflow:isLoad?'auto':''}"
row-key="id" row-key="id"
:show-header="showHeader" :show-header="showHeader"
default-expand-all default-expand-all
...@@ -264,6 +266,10 @@ export default { ...@@ -264,6 +266,10 @@ export default {
"v-apaas-table-filter": TableFilter "v-apaas-table-filter": TableFilter
}, },
props: { props: {
//是否控制5行显示
isLoad:'',
//是否滚动加载
asyn_load1:{ type: Boolean, default: false },
// 表格型号:mini,medium,small // 表格型号:mini,medium,small
size: { type: String, default: "medium" }, size: { type: String, default: "medium" },
loading: { type: Boolean, default: false }, loading: { type: Boolean, default: false },
...@@ -429,6 +435,12 @@ export default { ...@@ -429,6 +435,12 @@ export default {
} }
}, },
methods: { methods: {
asynload(){
console.log('111');
if(this.asyn_load1){
this.$emit("load_data");
}
},
//本地删除 //本地删除
deleteLocal(val) { deleteLocal(val) {
this.selectedTabsPage.splice(val.$index, 1); this.selectedTabsPage.splice(val.$index, 1);
......
...@@ -127,6 +127,8 @@ export default { ...@@ -127,6 +127,8 @@ export default {
this.$message.error("上传图片大小不能超过 10MB!"); this.$message.error("上传图片大小不能超过 10MB!");
} }
return isJPG && isLt10M; return isJPG && isLt10M;
} else {
} }
}, },
handleAvatarSuccess(response, file, fileList) { handleAvatarSuccess(response, file, fileList) {
...@@ -147,6 +149,14 @@ export default { ...@@ -147,6 +149,14 @@ export default {
}); });
} }
this.$emit("getNewList", this.fileArray); this.$emit("getNewList", this.fileArray);
} else {
if (response.success == 1) {
this.fileArray.push({
url: response.data,
name: file.name
});
}
this.$emit("getNewList", this.fileArray);
} }
this.hideUpload = fileList.length >= this.max; this.hideUpload = fileList.length >= this.max;
}, },
......
...@@ -4,6 +4,10 @@ import store from "@/store"; ...@@ -4,6 +4,10 @@ import store from "@/store";
import Vue from 'vue' import Vue from 'vue'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)
import VueResource from "vue-resource"; import VueResource from "vue-resource";
Vue.use(VueResource); Vue.use(VueResource);
......
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
desc:data.description, desc:data.description,
person:data.create_user, person:data.create_user,
date:data.create_date, date:data.create_date,
ip:transform_func(data.ip_whitelist), ip:this.transform_func(data.ip_whitelist),
domain:data.domain_name domain:data.domain_name
} }
}) })
......
This diff is collapsed.
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
getNewList(val) { getNewList(val) {
console.log(val); console.log(val);
this.form.fileList = "" this.form.fileList = ""
this.form.fileList = url.map((v,k)=>{ this.form.fileList = val.map((v,k)=>{
return v.url return v.url
}).join(';') }).join(';')
console.log(this.form.fileList) console.log(this.form.fileList)
......
...@@ -564,7 +564,7 @@ export default { ...@@ -564,7 +564,7 @@ export default {
getNewList(val) { getNewList(val) {
console.log(val); console.log(val);
this.form.fileList = ""; this.form.fileList = "";
this.form.fileList = url this.form.fileList = val
.map((v, k) => { .map((v, k) => {
return v.url; return v.url;
}) })
...@@ -574,7 +574,7 @@ export default { ...@@ -574,7 +574,7 @@ export default {
getNewList1(val) { getNewList1(val) {
console.log(val); console.log(val);
this.fileList = ""; this.fileList = "";
this.fileList = url this.fileList = val
.map((v, k) => { .map((v, k) => {
return v.url; return v.url;
}) })
......
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