提交 31f2a170 编写于 作者: chendeli's avatar chendeli

add

上级 bf7c2f78
......@@ -58,7 +58,7 @@ export default {
getToken() {
let href = window.location.href
let offset = href.indexOf("?")
localStorage.setItem('storageToken','70A84A5CC146460EABDE6ED15EEC0C5A')
localStorage.setItem('storageToken','CBC0F7B0C9D34806958B18E23C881A09')
if(offset !== -1) {
let paramStr = href.substring(offset + 1, href.length)
let pars = base64decode(paramStr)
......
......@@ -9,7 +9,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl: 'http://192.168.140.38:12801/v2/api-docs/'|| 'https://dev-sc.yunqueyi.com/',
baseUrl: 'https://dev-sc.yunqueyi.com',
qiniuFileUrl: "http://localhost:10201/contents/admin/qiniu/token1",
qiniuResourceUrl: "https://test1-videos.yunqueyi.com",
qiniuImgUrl: "https://test1-file.yunqueyi.com",
......
......@@ -123,7 +123,7 @@ export default {
remark:'',
deriverName:'积木'
},
maxTopic:40,
maxTopic:60,
id:0,
};
},
......@@ -183,8 +183,7 @@ export default {
this.showError('请选择开发客群');
return;
}
console.log(this.form.topicBtnText)
console.log(this.form.topicBtnText)
if(this.form.topicBtnText == ''){
this.showError('请输入首页按钮文字');
return;
......@@ -214,7 +213,7 @@ export default {
if(this.id){
parm.id = Number(this.id)
this.PUT('/discuss/',parm).then((res) => {
this.PUT('/interaction/discuss/',parm).then((res) => {
// closeLoading(vm)
if( res.code == '000000' ) {
this.$message({
......@@ -227,7 +226,7 @@ export default {
}
})
}else{
this.POST('/discuss/',parm).then((res) => {
this.POST('/interaction/discuss/',parm).then((res) => {
// closeLoading(vm)
if( res.code == '000000' ) {
this.$message({
......@@ -247,7 +246,7 @@ export default {
//获取讨论组件详细
getDissById(id){
this.GET('/discuss/'+id).then((res) => {
this.GET('/interaction/discuss/'+id).then((res) => {
// closeLoading(vm)
if( res.code == '000000' ) {
......
......@@ -54,11 +54,11 @@
<el-table
:data="tableData"
style="width: 100%" v-loading="loading">
<el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column>
<el-table-column prop="id" label="ID编号" min-width="50" align="center"></el-table-column>
<el-table-column prop="subject" label="讨论主题" min-width="100" align="center"></el-table-column>
<el-table-column prop="category" label="分类" min-width="200" align="center"></el-table-column>
<el-table-column prop="category" label="分类" min-width="50" align="center"></el-table-column>
<el-table-column prop="remark" label="备注" min-width="100" align="center"></el-table-column>
<el-table-column prop="createdusername" label="创建人" min-width="200" align="center"></el-table-column>
<el-table-column prop="createdusername" label="创建人" min-width="50" align="center"></el-table-column>
<el-table-column prop="createdName" label="最后修改人" min-width="100" align="center"></el-table-column>
<el-table-column prop="status" label="状态" min-width="80" align="center">
<template slot-scope="scope">
......@@ -168,6 +168,7 @@ export default {
},
created() {
this.getData()
this.sun()
},
// 挂载到Dom完成时
mounted: function() {
......@@ -193,7 +194,7 @@ export default {
}
this.loading = true;
let url = '/discuss/'+subject+'/'+name+'/'+status+'/'+this.searchParam.pageNo+'/'+this.searchParam.pageSize
let url = '/interaction/discuss/'+subject+'/'+name+'/'+status+'/'+this.searchParam.pageNo+'/'+this.searchParam.pageSize
this.GET(url).then((res) => {
this.loading = false
if( res.code == '000000' ) {
......@@ -203,6 +204,8 @@ export default {
})
},
// 重置
reseat() {
this.searchParam = Object.assign({},{
......@@ -234,12 +237,12 @@ export default {
status = 3
}
this.$confirm('确定要'+str+'该组件吗?', '提示', {
this.$confirm('确定要'+str+'该讨论吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.PUT('/discuss/',{id: row.id,status:status}).then((res) => {
this.PUT('/interaction/discuss/',{id: row.id,status:status}).then((res) => {
if(res.code == "000000") {
this.$message({
type: 'success',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册