master 1.0.0
yujialong 2 years ago
parent 5178385c4d
commit c44e5dc84d
  1. 1
      src/api/index.js
  2. 2
      src/const/modules.js
  3. 21
      src/pages/column/add/index.vue
  4. 2
      src/setting.js

@ -1,6 +1,5 @@
import Setting from '@/setting'
const host = Setting.apiBaseURL
const host1 = 'http://10.10.11.7:10000/'
export default {
logins: `iasf/sys/user/login`,

@ -4528,7 +4528,7 @@ export default {
},
list: [
{
pic: 'http://10.10.11.7/images/news/1.png',
pic: 'http://10.10.11.7/images/sfel/1.png',
title: '',
link: {
linkName: '无',

@ -626,6 +626,17 @@ export default {
//
preview() {
},
//
updateFile(form, quoteId) {
this.fileId && this.$post(this.api.updateFile, {
id: this.fileId,
isRelease: 1,
quote: form.columnName,
quoteId
}).then(res => {
this.fileId = ''
}).catch(err => {})
},
//
submit(next) {
@ -649,19 +660,12 @@ export default {
}
}
if (form.typeId !== 2 && !form.listStyleId) return Util.errorMsg('请选择列表样式')
//
this.fileId && this.$post(this.api.updateFile, {
id: this.fileId,
isRelease: 1,
quote: this.form.columnName
}).then(res => {
this.fileId = ''
}).catch(err => {})
this.submiting = true
if (this.isEdit) {
delete form.children
form.editorId = this.userId
this.$post(this.api.updateColumn, form).then(res => {
this.updateFile(form, form.id)
//
// if (this.originTypeId !== 3 && form.typeId === 3) this.savePage(form.id)
Util.successMsg("修改成功")
@ -671,6 +675,7 @@ export default {
})
} else {
this.$post(this.api.saveColumn, form).then(({ data }) => {
this.updateFile(form, data)
//
form.typeId === 3 && this.savePage(data)
Util.successMsg("创建成功")

@ -7,7 +7,7 @@ let host = `${location.origin}/`
if (isDev) {
host = 'http://192.168.31.136:10000/' // 测试服
host = 'http://192.168.31.51:10000/' // 榕
// host = 'http://192.168.31.116:10000/' // 赓
// host = 'http://192.168.31.116/' // 赓
}
const Setting = {

Loading…
Cancel
Save