|
@@ -57,11 +57,25 @@
|
|
|
</b-list-group>
|
|
|
</div>
|
|
|
</b-tab>
|
|
|
+ <!-- 更多 -->
|
|
|
+ <b-tab>
|
|
|
+ <template v-slot:title>
|
|
|
+ <i class="fa fa-flag-o" aria-hidden="true"></i>
|
|
|
+ 更多
|
|
|
+ </template>
|
|
|
+ <div>
|
|
|
+ <b-list-group class="listGroup" v-for="(item,index) in data.others" :key=index>
|
|
|
+ <b-list-group-item href="#" @click.self="selectItem($event,index)">
|
|
|
+ ● {{item.title|ellipsis}}
|
|
|
+ </b-list-group-item>
|
|
|
+ </b-list-group>
|
|
|
+ </div>
|
|
|
+ </b-tab>
|
|
|
</b-tabs>
|
|
|
</b-list-group-item>
|
|
|
<!-- footer -->
|
|
|
<b-list-group-item id="footer" align='center'>
|
|
|
- <b-button-group style="background:rgb(255,255,255)" v-show="tabIndex !== 2 && $store.state.isLogin === true" >
|
|
|
+ <b-button-group style="background:rgb(255,255,255)" v-show="$store.state.isLogin === true" >
|
|
|
<b-button variant="outline-dark" title="添加记录" @click="$bvModal.show('addModal')"><i class="fa fa-plus" aria-hidden="true" ></i></b-button>
|
|
|
|
|
|
<b-button variant="outline-dark" title="删除记录" v-show="toolShow.delete" @click="deleteItem()"><i class="fa fa-minus" aria-hidden="true"></i></b-button>
|
|
@@ -192,22 +206,9 @@
|
|
|
</b-form-group>
|
|
|
|
|
|
<b-form-group id="input-group-8" label="消息附属线:" label-for="input-8">
|
|
|
- <!-- <b-form-select
|
|
|
- id="input-8"
|
|
|
- v-model="form.related"
|
|
|
- :options="['111', '222']"
|
|
|
- >
|
|
|
- <template v-slot:first>
|
|
|
- <option :value="null">自定义</option>
|
|
|
- </template>
|
|
|
- </b-form-select> -->
|
|
|
<b-link @click="drawRelate">添加消息附属线</b-link>
|
|
|
</b-form-group>
|
|
|
|
|
|
- <!-- <b-form-group id="input-group-7" label="图片:" label-for="input-7">
|
|
|
- <b-form-file v-model="form.img" class="mt-3" plain multiple accept=".jpg, .png, .gif, .jpeg, .svg"></b-form-file>
|
|
|
- </b-form-group> -->
|
|
|
-
|
|
|
<b-button type="reset" variant="danger">重置</b-button>
|
|
|
<b-button type="submit" variant="primary">提交</b-button>
|
|
|
</b-form>
|
|
@@ -274,7 +275,7 @@ export default {
|
|
|
// 地点选择输入
|
|
|
places: [],
|
|
|
// 类型选择输入
|
|
|
- types: ['报道', '通知'],
|
|
|
+ types: ['报道', '通知', '文化', '更多'],
|
|
|
// 预删除的消息id号
|
|
|
deleteArr: [],
|
|
|
// 消息发布的表单绑定数据
|
|
@@ -330,10 +331,6 @@ export default {
|
|
|
that.data.notice = response.data
|
|
|
// items备份
|
|
|
that.colonData.notice = JSON.parse(JSON.stringify(that.data.notice))
|
|
|
-
|
|
|
- // 重置控制目标
|
|
|
- // that.selectedID = null
|
|
|
- // that.selected = null
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -349,10 +346,6 @@ export default {
|
|
|
that.data.report = response.data
|
|
|
// items备份
|
|
|
that.colonData.report = JSON.parse(JSON.stringify(that.data.report))
|
|
|
-
|
|
|
- // 重置控制目标
|
|
|
- // that.selectedID = null
|
|
|
- // that.selected = null
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -367,10 +360,20 @@ export default {
|
|
|
that.data.culture = response.data
|
|
|
// items备份
|
|
|
that.colonData.culture = JSON.parse(JSON.stringify(that.data.culture))
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- // 重置控制目标
|
|
|
- // that.selectedID = null
|
|
|
- // that.selected = null
|
|
|
+ /**
|
|
|
+ * @description:获取更多列表数据
|
|
|
+ */
|
|
|
+ getOthersList: function () {
|
|
|
+ var that = this
|
|
|
+ this.$axios
|
|
|
+ .get('/others/list')
|
|
|
+ .then(function (response) {
|
|
|
+ that.data.others = response.data
|
|
|
+ // items备份
|
|
|
+ that.colonData.others = JSON.parse(JSON.stringify(that.data.others))
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -526,7 +529,9 @@ export default {
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
deleteItem: function () {
|
|
|
- var items = this.tabIndex === 0 ? this.data.notice : this.data.report
|
|
|
+ // var items = this.tabIndex === 0 ? this.data.notice : this.data.report
|
|
|
+ var items = this.getSelectedItems()
|
|
|
+
|
|
|
var itemsType = this.getSelectedType()
|
|
|
// var itemsType = this.tabIndex === 0 ? 'notice' : 'report'
|
|
|
|
|
@@ -556,9 +561,10 @@ export default {
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
printMapMarkByID: function () {
|
|
|
+ let that = this
|
|
|
bus.$emit('printMapMark', {
|
|
|
- type: this.getSelectedType(),
|
|
|
- id: this.getSelectedItems()[this.selectedIndex].id
|
|
|
+ type: that.getSelectedType(),
|
|
|
+ id: that.getSelectedItems()[this.selectedIndex].id
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -578,6 +584,10 @@ export default {
|
|
|
break
|
|
|
case 2:
|
|
|
item = data.culture
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ item = data.others
|
|
|
+ break
|
|
|
}
|
|
|
return item
|
|
|
},
|
|
@@ -597,6 +607,9 @@ export default {
|
|
|
case 2:
|
|
|
res = 'culture'
|
|
|
break
|
|
|
+ case 3:
|
|
|
+ res = 'other'
|
|
|
+ break
|
|
|
default:
|
|
|
res = null
|
|
|
}
|
|
@@ -648,52 +661,6 @@ export default {
|
|
|
return isSuccess
|
|
|
},
|
|
|
|
|
|
- // /**
|
|
|
- // * @description: loginModel提交(submit)事件
|
|
|
- // * @returns {void}
|
|
|
- // */
|
|
|
- // submit_loginModal: function (e) {
|
|
|
- // var that = this
|
|
|
- // this.postLoginForm()
|
|
|
- // .then(res => {
|
|
|
- // if (res) {
|
|
|
- // // 登陆成功,设置登陆状态
|
|
|
- // that.$store.commit('userLogin', {
|
|
|
- // name: res.name,
|
|
|
- // uid: res.uid
|
|
|
- // })
|
|
|
-
|
|
|
- // // 设置token到cookie
|
|
|
- // cookie.setCookie(res.token, 0.5, 'token')
|
|
|
-
|
|
|
- // // 隐藏modal
|
|
|
- // that.$bvModal.hide('loginModal')
|
|
|
- // } else {
|
|
|
- // that.login.isRight = false
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
-
|
|
|
- // /**
|
|
|
- // * @description:向后端提交登陆表单
|
|
|
- // * @returns {void}
|
|
|
- // */
|
|
|
- // postLoginForm: async function () {
|
|
|
- // var response
|
|
|
-
|
|
|
- // await this.$axios
|
|
|
- // .post('admin/login', {
|
|
|
- // form: {
|
|
|
- // account: this.login.account,
|
|
|
- // password: this.login.password
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .then(res => {
|
|
|
- // response = res.data
|
|
|
- // })
|
|
|
- // return response
|
|
|
- // },
|
|
|
-
|
|
|
/**
|
|
|
* @description:刷新列表,地图
|
|
|
* @returns {void}
|
|
@@ -701,6 +668,8 @@ export default {
|
|
|
refresh: function () {
|
|
|
this.getNoticeList()
|
|
|
this.getReportList()
|
|
|
+ this.getCultureList()
|
|
|
+ this.getOthersList()
|
|
|
bus.$emit('refreshMap')
|
|
|
},
|
|
|
|
|
@@ -766,6 +735,7 @@ export default {
|
|
|
this.getNoticeList()
|
|
|
this.getReportList()
|
|
|
this.getCultureList()
|
|
|
+ this.getOthersList()
|
|
|
this.getKeyPoint()
|
|
|
this.getSlogan()
|
|
|
},
|
|
@@ -824,13 +794,13 @@ export default {
|
|
|
this.toolShow.delete = false
|
|
|
} else {
|
|
|
this.toolShow.delete = true
|
|
|
- switch (this.tabIndex) {
|
|
|
- case 0:
|
|
|
- bus.$emit('markerShow', {
|
|
|
- type: this.tabIndex,
|
|
|
- id: this.data[this.tabIndex]
|
|
|
- })
|
|
|
- }
|
|
|
+ // switch (this.tabIndex) {
|
|
|
+ // case 0:
|
|
|
+ // bus.$emit('markerShow', {
|
|
|
+ // type: this.tabIndex,
|
|
|
+ // id: this.data[this.tabIndex]
|
|
|
+ // })
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
|