Commit fad1579b authored by zhanglw's avatar zhanglw

资讯

parent 187ca533
...@@ -359,6 +359,36 @@ export const HttpReq = { ...@@ -359,6 +359,36 @@ export const HttpReq = {
return res return res
}) })
}, },
// 内容管理-修改资讯
updateNewsPage: function(data) {
return request({
url: '/api/bsw/newsPage/updateNewsPage',
method: 'put',
data: data
}).then((res) => {
return res
})
},
// 内容管理-新增资讯
addNewsPage: function(data) {
return request({
url: '/api/bsw/newsPage/addNewsPage',
method: 'post',
data: data
}).then((res) => {
return res
})
},
// 内容管理-删除资讯
newsBatchDelete: function(data) {
return request({
url: '/api/bsw/newsPage/batchDelete',
method: 'delete',
data: data
}).then((res) => {
return res
})
},
xxx: null xxx: null
} }
} }
......
...@@ -203,7 +203,6 @@ ...@@ -203,7 +203,6 @@
<label class="el-upload-list__item-status-label"><i class="el-icon-upload-success el-icon-check" /></label> <label class="el-upload-list__item-status-label"><i class="el-icon-upload-success el-icon-check" /></label>
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="dialogImgUrl=item;dialogImgVisible=true"><i class="el-icon-zoom-in" /></span> <span class="el-upload-list__item-preview" @click="dialogImgUrl=item;dialogImgVisible=true"><i class="el-icon-zoom-in" /></span>
<span class="el-upload-list__item-delete" @click="handleRemoveImg(item)"><i class="el-icon-delete" /></span>
</span> </span>
</li> </li>
</ul> </ul>
......
...@@ -47,15 +47,17 @@ ...@@ -47,15 +47,17 @@
<el-pagination :total="total" :current-page="page" :page-size="pageSize" style="margin-top: 8px;" layout="total, prev, pager, next, sizes" @size-change="sizeChange" @current-change="pageChange" /> <el-pagination :total="total" :current-page="page" :page-size="pageSize" style="margin-top: 8px;" layout="total, prev, pager, next, sizes" @size-change="sizeChange" @current-change="pageChange" />
</div> </div>
<add-page ref="addPage" /> <add-page ref="addPage" />
<view-page ref="viewPage" />
</div> </div>
</template> </template>
<script> <script>
import { HttpReq } from '@/api/common' import { HttpReq } from '@/api/common'
import DateRangePicker from '@/components/DateRangePicker' import DateRangePicker from '@/components/DateRangePicker'
import addPage from './add' import addPage from './add'
import viewPage from './view'
export default { export default {
components: { DateRangePicker, addPage }, components: { DateRangePicker, addPage, viewPage },
dicts: ['issue_status', 'information_type'], dicts: ['issue_status', 'information_type'],
data() { data() {
return { return {
...@@ -121,10 +123,10 @@ export default { ...@@ -121,10 +123,10 @@ export default {
this.$refs.addPage.loadData(item.newsPageId) this.$refs.addPage.loadData(item.newsPageId)
}, },
toView(item) { toView(item) {
// this.$refs.viewPage.loadData(item.homePageId) this.$refs.viewPage.loadData(item.newsPageId)
}, },
toDelete(item) { toDelete(item) {
HttpReq.backstageApi.hpBatchDelete({ HttpReq.backstageApi.newsBatchDelete({
ids: [item.newsPageId] ids: [item.newsPageId]
}).then((res) => { }).then((res) => {
this.$notify({ this.$notify({
......
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