-
处理操作 :
+
处理操作
@@ -18,11 +19,11 @@
:rows="4"
v-model="dataForm.failureReason"
type="textarea"
- style="width: 560px"
+ style="width: 95% !important"
placeholder="请写明理由,100字以内"
>
-
+
+ style="width:450px">
@@ -130,9 +130,9 @@
确认发布
+ @click="dataFormSubmitHandle()" :disabled="isAble">确认发布
存草稿箱
+ @click="draftDataFormSubmitHandle()" :disabled="isAble">存草稿箱
@@ -191,7 +191,8 @@ export default {
],
uploadUrl: '',
// 富文本end
- fileList: []
+ fileList: [],
+ isAble: false
}
},
activated () {
@@ -360,8 +361,10 @@ export default {
if (!valid) {
return false
}
+ this.isAble = true
this.$http['post']('/news/news/publish', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
+ this.isAble = false
return this.$message.error(res.msg)
}
this.$message({
@@ -388,6 +391,7 @@ export default {
this.quillEditor.root.innerHTML = ''
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null
this.communityList = this.gridList = []
+ this.isAble = false
}
})
}).catch(() => { })
@@ -402,8 +406,10 @@ export default {
if (!valid) {
return false
}
+ this.isAble = true
this.$http['post']('/news/news/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
+ this.isAble = false
return this.$message.error(res.msg)
}
this.$message({
@@ -430,6 +436,7 @@ export default {
this.quillEditor.root.innerHTML = ''
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null
this.communityList = this.gridList = []
+ this.isAble = false
}
})
}).catch(() => { })
diff --git a/src/views/modules/news/news.vue b/src/views/modules/news/news.vue
index b32a29b6..b5007575 100644
--- a/src/views/modules/news/news.vue
+++ b/src/views/modules/news/news.vue
@@ -151,10 +151,10 @@
min-width="200"
header-align="center"
align="center">
-
-
+
+
10 && row.newsReleaseStartTime.indexOf(' ') >= 0) {
+ newsReleaseStartTime = row.newsReleaseStartTime.substr(0,row.newsReleaseStartTime.indexOf(' '))
+ }
+ if (row.newsReleaseEndTime.length > 10 && row.newsReleaseEndTime.indexOf(' ') >= 0) {
+ newsReleaseEndTime = row.newsReleaseEndTime.substr(0,row.newsReleaseEndTime.indexOf(' '))
+ }
+ return newsReleaseStartTime + ' 到 ' + newsReleaseEndTime
+ },
newsUpDownState: function (row) {
return row.newsUpDownState === '1' ? '下线' : '上线'
},
diff --git a/src/views/modules/sys/dict-add-or-update.vue b/src/views/modules/sys/dict-add-or-update.vue
index 45fb584b..ead1f217 100644
--- a/src/views/modules/sys/dict-add-or-update.vue
+++ b/src/views/modules/sys/dict-add-or-update.vue
@@ -1,6 +1,6 @@
-
+
+ label="街道-社区-网格" align="center" min-width="200" show-overflow-tooltip>