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

add

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