style;样式
Showing
10 changed files
with
167 additions
and
153 deletions
| ... | @@ -70,13 +70,13 @@ | ... | @@ -70,13 +70,13 @@ |
| 70 | 70 | ||
| 71 | .box-mountNode { | 71 | .box-mountNode { |
| 72 | flex: 1; | 72 | flex: 1; |
| 73 | height: calc(100% - 500px); | 73 | height: calc(100% - 485px); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | .home-right { | 76 | .home-right { |
| 77 | padding-left: 4px; | 77 | padding-left: 4px; |
| 78 | width: 30%; | 78 | width: 30%; |
| 79 | 79 | ||
| 80 | .list-title { | 80 | .list-title { |
| 81 | overflow: hidden; | 81 | overflow: hidden; |
| 82 | text-overflow: ellipsis; | 82 | text-overflow: ellipsis; |
| ... | @@ -86,7 +86,7 @@ | ... | @@ -86,7 +86,7 @@ |
| 86 | ul { | 86 | ul { |
| 87 | li { | 87 | li { |
| 88 | line-height: 36px; | 88 | line-height: 36px; |
| 89 | 89 | ||
| 90 | p { | 90 | p { |
| 91 | white-space: nowrap; | 91 | white-space: nowrap; |
| 92 | } | 92 | } | ... | ... |
| ... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
| 14 | </el-card> | 14 | </el-card> |
| 15 | </el-col> | 15 | </el-col> |
| 16 | <el-col :span="12"> | 16 | <el-col :span="12"> |
| 17 | <el-card shadow="hover" style="height:245px"> | 17 | <el-card shadow="hover" style="height:243px"> |
| 18 | <div slot="header" class="flexst"> | 18 | <div slot="header" class="flexst"> |
| 19 | <h5 class="title">系统通知</h5> | 19 | <h5 class="title">系统通知</h5> |
| 20 | <i class="el-icon-s-unfold pointer"></i> | 20 | <i class="el-icon-s-unfold pointer"></i> |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | <ul> | 22 | <ul> |
| 23 | <li v-for="(item, index) in noticeList" :key="index" @click="handleNotice" class="flexst pointer"> | 23 | <li v-for="(item, index) in noticeList" :key="index" @click="handleNotice" class="flexst pointer"> |
| 24 | <p class="list-title">{{ item.noticeTitle }}</p> | 24 | <p class="list-title">{{ item.noticeTitle }}</p> |
| 25 | <p class="marginZL15">{{ item.createtime }}</p> | 25 | <p class="marginZL15">{{ item.createtime.substring(0, 10) }}</p> |
| 26 | <p v-if="item.userBrowse == '1'" style="color:red">未读</p> | 26 | <p v-if="item.userBrowse == '1'" style="color:red">未读</p> |
| 27 | <p v-else>已读</p> | 27 | <p v-else>已读</p> |
| 28 | </li> | 28 | </li> |
| ... | @@ -32,29 +32,30 @@ | ... | @@ -32,29 +32,30 @@ |
| 32 | </el-row> | 32 | </el-row> |
| 33 | <el-row :gutter="8" class="marginTop10"> | 33 | <el-row :gutter="8" class="marginTop10"> |
| 34 | <el-col :span="12"> | 34 | <el-col :span="12"> |
| 35 | <el-card shadow="hover" style="height:280px"> | 35 | <el-card shadow="hover"> |
| 36 | <div slot="header" class="flexst"> | 36 | <div slot="header" class="flexst"> |
| 37 | <h5 class="title">待办事项</h5> | 37 | <h5 class="title">待办事项</h5> |
| 38 | <i class="el-icon-s-unfold pointer"></i> | 38 | <i class="el-icon-s-unfold pointer"></i> |
| 39 | </div> | 39 | </div> |
| 40 | <ul> | 40 | <ul> |
| 41 | <li v-for="(item, index) in todoList" :key="index" class="flexst"> | 41 | <li v-for="(item, index) in todoList" :key="index" class="flexst"> |
| 42 | <p class="right15">{{ item.dealTime }}</p> | 42 | <p class="right15">{{ item.dealTime.substring(0, 10) }}</p> |
| 43 | <p class="list-title">{{ item.dealBusiness }} ({{item.dealStep+ '环节'}})</p> | 43 | <p class="list-title">{{ item.dealBusiness }} ({{ item.dealStep + '环节' }})</p> |
| 44 | </li> | 44 | </li> |
| 45 | </ul> | 45 | </ul> |
| 46 | </el-card> | 46 | </el-card> |
| 47 | </el-col> | 47 | </el-col> |
| 48 | <el-col :span="12"> | 48 | <el-col :span="12"> |
| 49 | <el-card shadow="hover" style="height:280px"> | 49 | <el-card shadow="hover" style="height:225px"> |
| 50 | <div slot="header" class="flexst"> | 50 | <div slot="header" class="flexst"> |
| 51 | <h5 class="title">法律法规</h5> | 51 | <h5 class="title">法律法规</h5> |
| 52 | <i class="el-icon-s-unfold pointer"></i> | 52 | <i class="el-icon-s-unfold pointer"></i> |
| 53 | </div> | 53 | </div> |
| 54 | <ul> | 54 | <ul> |
| 55 | <li v-for="(item, index) in policyList" @click="handleView(item.noticeFileUrl)" :key="index" class="flexst pointer"> | 55 | <li v-for="(item, index) in policyList" @click="handleView(item.noticeFileUrl)" :key="index" |
| 56 | class="flexst pointer"> | ||
| 56 | <p class="right15">{{ item.noticeTitle }}</p> | 57 | <p class="right15">{{ item.noticeTitle }}</p> |
| 57 | <p class="list-title">{{ item.createtime }}</p> | 58 | <p class="list-title">{{ item.createtime.substring(0, 10) }}</p> |
| 58 | </li> | 59 | </li> |
| 59 | </ul> | 60 | </ul> |
| 60 | </el-card> | 61 | </el-card> |
| ... | @@ -74,8 +75,8 @@ | ... | @@ -74,8 +75,8 @@ |
| 74 | </div> | 75 | </div> |
| 75 | <ul> | 76 | <ul> |
| 76 | <li v-for="(item, index) in doneList" :key="index" class="flexst"> | 77 | <li v-for="(item, index) in doneList" :key="index" class="flexst"> |
| 77 | <p class="right15">{{ item.dealTime }}</p> | 78 | <p class="right15">{{ item.dealTime.substring(0, 10) }}</p> |
| 78 | <p class="list-title">{{ item.dealBusiness }} ({{item.dealStep+ '环节'}})</p> | 79 | <p class="list-title">{{ item.dealBusiness }} ({{ item.dealStep + '环节' }})</p> |
| 79 | </li> | 80 | </li> |
| 80 | </ul> | 81 | </ul> |
| 81 | </el-card> | 82 | </el-card> |
| ... | @@ -143,9 +144,6 @@ export default { | ... | @@ -143,9 +144,6 @@ export default { |
| 143 | year: '1996', | 144 | year: '1996', |
| 144 | value: 31056 | 145 | value: 31056 |
| 145 | }, { | 146 | }, { |
| 146 | year: '1995', | ||
| 147 | value: 17000 | ||
| 148 | }, { | ||
| 149 | year: '1996', | 147 | year: '1996', |
| 150 | value: 31056 | 148 | value: 31056 |
| 151 | }], | 149 | }], |
| ... | @@ -167,30 +165,42 @@ export default { | ... | @@ -167,30 +165,42 @@ export default { |
| 167 | window.open(href, '_blank'); | 165 | window.open(href, '_blank'); |
| 168 | }, | 166 | }, |
| 169 | //获取待办事项列表 | 167 | //获取待办事项列表 |
| 170 | queryTodoList(){ | 168 | queryTodoList () { |
| 171 | getHomeTodoList().then(res => { | 169 | getHomeTodoList().then(res => { |
| 172 | if(res.result){ | 170 | if (res.result) { |
| 173 | this.todoList = res.result | 171 | this.todoList = res.result.slice(0, 4) |
| 174 | } | 172 | } |
| 175 | }) | 173 | }) |
| 176 | }, | 174 | }, |
| 177 | //获取已办事项列表 | 175 | //获取已办事项列表 |
| 178 | queryDoneList(){ | 176 | queryDoneList () { |
| 179 | getHomeDoneList().then(res => { | 177 | getHomeDoneList().then(res => { |
| 180 | if(res.result){ | 178 | if (res.result) { |
| 181 | this.doneList = res.result | 179 | this.doneList = res.result |
| 182 | } | 180 | } |
| 183 | }) | 181 | }) |
| 184 | }, | 182 | }, |
| 185 | //获取通知列表 | 183 | //获取通知列表 |
| 186 | queryNoticeList(){ | 184 | queryNoticeList () { |
| 187 | getHomeNoticeList().then(res => { | 185 | getHomeNoticeList().then(res => { |
| 188 | if(res.result){ | 186 | if (res.result) { |
| 189 | this.noticeList = res.result.noticeList | 187 | this.noticeList = res.result.noticeList |
| 190 | this.policyList = res.result.policyList | 188 | this.noticeList.forEach(item => { |
| 189 | |||
| 190 | }) | ||
| 191 | this.policyList = res.result.policyList | ||
| 191 | } | 192 | } |
| 192 | }) | 193 | }) |
| 193 | }, | 194 | }, |
| 195 | _timedate (date) { | ||
| 196 | let time_str = ""; | ||
| 197 | if (new Date(date).getDate() === new Date().getDate()) { | ||
| 198 | time_str = "今天"; | ||
| 199 | } else if (new Date(date).getDate() === (new Date().getDate() - 1)) { | ||
| 200 | time_str = "昨天"; | ||
| 201 | } | ||
| 202 | return time_str; | ||
| 203 | }, | ||
| 194 | buildChart () { | 204 | buildChart () { |
| 195 | let height = document.getElementById("mountNodeCon").offsetHeight - 20 | 205 | let height = document.getElementById("mountNodeCon").offsetHeight - 20 |
| 196 | var chart = new G2.Chart({ | 206 | var chart = new G2.Chart({ |
| ... | @@ -231,4 +241,8 @@ export default { | ... | @@ -231,4 +241,8 @@ export default { |
| 231 | <style scoped lang="scss"> | 241 | <style scoped lang="scss"> |
| 232 | @import "~@/styles/mixin.scss"; | 242 | @import "~@/styles/mixin.scss"; |
| 233 | @import "./index.scss"; | 243 | @import "./index.scss"; |
| 244 | |||
| 245 | /deep/.el-card__body { | ||
| 246 | padding: 10px; | ||
| 247 | } | ||
| 234 | </style> | 248 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="新增法律法规" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 2 | <dialogBox title="新增法律法规" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" |
| 3 | @closeDialog="closeDialog" v-model="value"> | 3 | @closeDialog="closeDialog" v-model="value"> |
| 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
| 5 | <el-row> | 5 | <el-row> |
| 6 | <el-col :span="12"> | 6 | <el-col :span="12"> |
| ... | @@ -11,13 +11,13 @@ | ... | @@ -11,13 +11,13 @@ |
| 11 | </el-row> | 11 | </el-row> |
| 12 | <el-row> | 12 | <el-row> |
| 13 | <el-col :span="8"> | 13 | <el-col :span="8"> |
| 14 | <el-form-item label="附件:" prop="noticeFileUrl"> | 14 | <el-form-item label="附件:" prop="noticeFileUrl"> |
| 15 | <el-upload action="" :file-list="fileList" multiple :auto-upload="false" :limit="1" | 15 | <el-upload action="" :file-list="fileList" multiple :auto-upload="false" :limit="1" |
| 16 | :on-change="handleChange" :before-upload="beforeUpload"> | 16 | :on-change="handleChange" :before-upload="beforeUpload"> |
| 17 | <el-button icon="el-icon-upload" type="primary">上传</el-button> | 17 | <el-button icon="el-icon-upload" type="primary">上传</el-button> |
| 18 | <div slot="tip" class="el-upload__tip">支持上传doc、docx、xls、xlsx、pdf文件,大小不超过20MB</div> | 18 | <div slot="tip" class="el-upload__tip">支持上传doc、docx、xls、xlsx、pdf文件,大小不超过20MB</div> |
| 19 | </el-upload> | 19 | </el-upload> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | </el-col> | 21 | </el-col> |
| 22 | </el-row> | 22 | </el-row> |
| 23 | </el-form> | 23 | </el-form> |
| ... | @@ -26,8 +26,8 @@ | ... | @@ -26,8 +26,8 @@ |
| 26 | 26 | ||
| 27 | <script> | 27 | <script> |
| 28 | import '@/styles/package/theme/index.scss' | 28 | import '@/styles/package/theme/index.scss' |
| 29 | import { addSysNotice} from "@/api/notice.js" | 29 | import { addSysNotice } from "@/api/notice.js" |
| 30 | import { upload} from "@/api/system.js" | 30 | import { upload } from "@/api/system.js" |
| 31 | export default { | 31 | export default { |
| 32 | props: { | 32 | props: { |
| 33 | value: { type: Boolean, default: false }, | 33 | value: { type: Boolean, default: false }, |
| ... | @@ -50,32 +50,33 @@ export default { | ... | @@ -50,32 +50,33 @@ export default { |
| 50 | 50 | ||
| 51 | methods: { | 51 | methods: { |
| 52 | submitForm () { | 52 | submitForm () { |
| 53 | let that = this; | 53 | let that = this; |
| 54 | that.$refs.ruleForm.validate(valid => { | 54 | that.$refs.ruleForm.validate(valid => { |
| 55 | if (valid) { | 55 | if (valid) { |
| 56 | addSysNotice(this.ruleForm).then(res => { | 56 | addSysNotice(this.ruleForm).then(res => { |
| 57 | if (res.code == 200) { | 57 | if (res.code == 200) { |
| 58 | this.$message.success('保存成功') | 58 | this.$message.success('保存成功') |
| 59 | this.$emit("input", false); | 59 | this.$emit("input", false); |
| 60 | this.$parent.queryClick(); | 60 | this.$parent.queryClick(); |
| 61 | } else { | ||
| 62 | this.$message.error(res.message) | ||
| 63 | }}) | ||
| 64 | } else { | 61 | } else { |
| 65 | // console.log('error submit!!'); | 62 | this.$message.error(res.message) |
| 66 | return false; | ||
| 67 | } | 63 | } |
| 68 | }); | 64 | }) |
| 65 | } else { | ||
| 66 | // console.log('error submit!!'); | ||
| 67 | return false; | ||
| 68 | } | ||
| 69 | }); | ||
| 69 | }, | 70 | }, |
| 70 | //关闭窗口 | 71 | //关闭窗口 |
| 71 | closeDialog () { | 72 | closeDialog () { |
| 72 | this.$emit("input", false); | 73 | this.$emit("input", false); |
| 73 | this.resetRuleForm(); | 74 | this.resetRuleForm(); |
| 74 | }, | 75 | }, |
| 75 | // | 76 | // |
| 76 | resetRuleForm(){ | 77 | resetRuleForm () { |
| 77 | this.$refs['ruleForm'].resetFields(); | 78 | this.$refs['ruleForm'].resetFields(); |
| 78 | this.ruleForm.noticeType = '2' | 79 | this.ruleForm.noticeType = '2' |
| 79 | }, | 80 | }, |
| 80 | beforeUpload (file) { | 81 | beforeUpload (file) { |
| 81 | return true; | 82 | return true; |
| ... | @@ -84,12 +85,12 @@ export default { | ... | @@ -84,12 +85,12 @@ export default { |
| 84 | var formdata = new FormData(); | 85 | var formdata = new FormData(); |
| 85 | formdata.append("file", file.raw); | 86 | formdata.append("file", file.raw); |
| 86 | upload(formdata).then(res => { | 87 | upload(formdata).then(res => { |
| 87 | this.ruleForm.noticeFileUrl = res.message | 88 | this.ruleForm.noticeFileUrl = res.message |
| 88 | }) | 89 | }) |
| 89 | }, | 90 | }, |
| 90 | } | 91 | } |
| 91 | } | 92 | } |
| 92 | </script> | 93 | </script> |
| 93 | <style scoped lang="scss"> | 94 | <style scoped lang="scss"> |
| 94 | @import "~@/styles/public.scss"; | 95 | |
| 95 | </style> | 96 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -24,18 +24,18 @@ | ... | @@ -24,18 +24,18 @@ |
| 24 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 24 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
| 25 | :data="tableData.data"> | 25 | :data="tableData.data"> |
| 26 | </lb-table> | 26 | </lb-table> |
| 27 | </div> | 27 | </div> |
| 28 | <addDialog ref="addDialog" v-model="isDialog" /> | 28 | <addDialog ref="addDialog" v-model="isDialog" /> |
| 29 | </div> | 29 | </div> |
| 30 | </template> | 30 | </template> |
| 31 | <script> | 31 | <script> |
| 32 | import table from "@/utils/mixin/table"; | 32 | import table from "@/utils/mixin/table"; |
| 33 | import { datas, sendThis } from "./flfgdata"; | 33 | import { datas, sendThis } from "./flfgdata"; |
| 34 | import { getSysPolicyList,deleteSysNotice } from "@/api/notice.js" | 34 | import { getSysPolicyList, deleteSysNotice } from "@/api/notice.js" |
| 35 | import addDialog from "./components/addDialog.vue"; | 35 | import addDialog from "./components/addDialog.vue"; |
| 36 | export default { | 36 | export default { |
| 37 | name: "xttz", | 37 | name: "flfg", |
| 38 | components: { addDialog}, | 38 | components: { addDialog }, |
| 39 | mixins: [table], | 39 | mixins: [table], |
| 40 | mounted () { | 40 | mounted () { |
| 41 | sendThis(this); | 41 | sendThis(this); |
| ... | @@ -46,7 +46,7 @@ export default { | ... | @@ -46,7 +46,7 @@ export default { |
| 46 | isDialog: false, | 46 | isDialog: false, |
| 47 | viewDialog: false, | 47 | viewDialog: false, |
| 48 | ruleForm: { | 48 | ruleForm: { |
| 49 | noticeTitle: '' | 49 | noticeTitle: '' |
| 50 | }, | 50 | }, |
| 51 | tableData: { | 51 | tableData: { |
| 52 | total: 0, | 52 | total: 0, |
| ... | @@ -70,34 +70,34 @@ export default { | ... | @@ -70,34 +70,34 @@ export default { |
| 70 | }) | 70 | }) |
| 71 | }, | 71 | }, |
| 72 | //打开新增弹窗 | 72 | //打开新增弹窗 |
| 73 | openDialog() { | 73 | openDialog () { |
| 74 | this.isDialog = true; | 74 | this.isDialog = true; |
| 75 | }, | 75 | }, |
| 76 | downloadFile(item){ | 76 | downloadFile (item) { |
| 77 | const href = item.noticeFileUrl | 77 | const href = item.noticeFileUrl |
| 78 | window.open(href, '_blank'); | 78 | window.open(href, '_blank'); |
| 79 | }, | 79 | }, |
| 80 | //删除 | 80 | //删除 |
| 81 | delNotice(item){ | 81 | delNotice (item) { |
| 82 | this.$confirm('是否确定删除', '提示', { | 82 | this.$confirm('是否确定删除', '提示', { |
| 83 | confirmButtonText: '确定', | 83 | confirmButtonText: '确定', |
| 84 | cancelButtonText: '取消', | 84 | cancelButtonText: '取消', |
| 85 | type: 'warning' | 85 | type: 'warning' |
| 86 | }).then(() => { | 86 | }).then(() => { |
| 87 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { | 87 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { |
| 88 | if (res.code == 200) { | 88 | if (res.code == 200) { |
| 89 | this.$message.success('删除成功') | 89 | this.$message.success('删除成功') |
| 90 | this.queryClick(); | 90 | this.queryClick(); |
| 91 | } else { | 91 | } else { |
| 92 | this.$message.error(res.message) | 92 | this.$message.error(res.message) |
| 93 | } | 93 | } |
| 94 | }) | 94 | }) |
| 95 | }).catch(() => { | 95 | }).catch(() => { |
| 96 | this.$message({ | 96 | this.$message({ |
| 97 | type: 'info', | 97 | type: 'info', |
| 98 | message: '已取消删除' | 98 | message: '已取消删除' |
| 99 | }); | 99 | }); |
| 100 | }); | 100 | }); |
| 101 | }, | 101 | }, |
| 102 | }, | 102 | }, |
| 103 | }; | 103 | }; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="新增系统通知" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 2 | <dialogBox title="新增系统通知" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" |
| 3 | @closeDialog="closeDialog" v-model="value"> | 3 | @closeDialog="closeDialog" v-model="value"> |
| 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
| 5 | <el-row> | 5 | <el-row> |
| 6 | <el-col :span="12"> | 6 | <el-col :span="12"> |
| ... | @@ -18,13 +18,13 @@ | ... | @@ -18,13 +18,13 @@ |
| 18 | </el-row> | 18 | </el-row> |
| 19 | <el-row> | 19 | <el-row> |
| 20 | <el-col :span="8"> | 20 | <el-col :span="8"> |
| 21 | <el-form-item label="附件:" prop="noticeFileUrl"> | 21 | <el-form-item label="附件:" prop="noticeFileUrl"> |
| 22 | <el-upload action="" :file-list="fileList" multiple :auto-upload="false" :limit="1" | 22 | <el-upload action="" :file-list="fileList" multiple :auto-upload="false" :limit="1" |
| 23 | :on-change="handleChange" :before-upload="beforeUpload"> | 23 | :on-change="handleChange" :before-upload="beforeUpload"> |
| 24 | <el-button icon="el-icon-upload" type="primary">上传</el-button> | 24 | <el-button icon="el-icon-upload" type="primary">上传</el-button> |
| 25 | <div slot="tip" class="el-upload__tip">文件大小不超过20MB</div> | 25 | <div slot="tip" class="el-upload__tip">文件大小不超过20MB</div> |
| 26 | </el-upload> | 26 | </el-upload> |
| 27 | </el-form-item> | 27 | </el-form-item> |
| 28 | </el-col> | 28 | </el-col> |
| 29 | </el-row> | 29 | </el-row> |
| 30 | </el-form> | 30 | </el-form> |
| ... | @@ -32,9 +32,8 @@ | ... | @@ -32,9 +32,8 @@ |
| 32 | </template> | 32 | </template> |
| 33 | 33 | ||
| 34 | <script> | 34 | <script> |
| 35 | import '@/styles/package/theme/index.scss' | 35 | import { addSysNotice } from "@/api/notice.js" |
| 36 | import { addSysNotice} from "@/api/notice.js" | 36 | import { upload } from "@/api/system.js" |
| 37 | import { upload} from "@/api/system.js" | ||
| 38 | export default { | 37 | export default { |
| 39 | props: { | 38 | props: { |
| 40 | value: { type: Boolean, default: false }, | 39 | value: { type: Boolean, default: false }, |
| ... | @@ -60,32 +59,33 @@ export default { | ... | @@ -60,32 +59,33 @@ export default { |
| 60 | 59 | ||
| 61 | methods: { | 60 | methods: { |
| 62 | submitForm () { | 61 | submitForm () { |
| 63 | let that = this; | 62 | let that = this; |
| 64 | that.$refs.ruleForm.validate(valid => { | 63 | that.$refs.ruleForm.validate(valid => { |
| 65 | if (valid) { | 64 | if (valid) { |
| 66 | addSysNotice(this.ruleForm).then(res => { | 65 | addSysNotice(this.ruleForm).then(res => { |
| 67 | if (res.code == 200) { | 66 | if (res.code == 200) { |
| 68 | this.$message.success('保存成功') | 67 | this.$message.success('保存成功') |
| 69 | this.$emit("input", false); | 68 | this.$emit("input", false); |
| 70 | this.$parent.queryClick(); | 69 | this.$parent.queryClick(); |
| 71 | } else { | ||
| 72 | this.$message.error(res.message) | ||
| 73 | }}) | ||
| 74 | } else { | 70 | } else { |
| 75 | // console.log('error submit!!'); | 71 | this.$message.error(res.message) |
| 76 | return false; | ||
| 77 | } | 72 | } |
| 78 | }); | 73 | }) |
| 74 | } else { | ||
| 75 | // console.log('error submit!!'); | ||
| 76 | return false; | ||
| 77 | } | ||
| 78 | }); | ||
| 79 | }, | 79 | }, |
| 80 | //关闭窗口 | 80 | //关闭窗口 |
| 81 | closeDialog () { | 81 | closeDialog () { |
| 82 | this.$emit("input", false); | 82 | this.$emit("input", false); |
| 83 | this.resetRuleForm(); | 83 | this.resetRuleForm(); |
| 84 | }, | 84 | }, |
| 85 | // | 85 | // |
| 86 | resetRuleForm(){ | 86 | resetRuleForm () { |
| 87 | this.$refs['ruleForm'].resetFields(); | 87 | this.$refs['ruleForm'].resetFields(); |
| 88 | this.ruleForm.noticeType = '1' | 88 | this.ruleForm.noticeType = '1' |
| 89 | }, | 89 | }, |
| 90 | beforeUpload (file) { | 90 | beforeUpload (file) { |
| 91 | return true | 91 | return true |
| ... | @@ -94,12 +94,12 @@ export default { | ... | @@ -94,12 +94,12 @@ export default { |
| 94 | var formdata = new FormData(); | 94 | var formdata = new FormData(); |
| 95 | formdata.append("file", file.raw); | 95 | formdata.append("file", file.raw); |
| 96 | upload(formdata).then(res => { | 96 | upload(formdata).then(res => { |
| 97 | this.ruleForm.noticeFileUrl = res.message | 97 | this.ruleForm.noticeFileUrl = res.message |
| 98 | }) | 98 | }) |
| 99 | }, | 99 | }, |
| 100 | } | 100 | } |
| 101 | } | 101 | } |
| 102 | </script> | 102 | </script> |
| 103 | <style scoped lang="scss"> | 103 | <style scoped lang="scss"> |
| 104 | @import "~@/styles/public.scss"; | 104 | |
| 105 | </style> | 105 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <el-row :gutter="8"> | 3 | <el-row :gutter="8"> |
| 4 | <el-col :span="16"> | 4 | <el-col :span="16"> |
| 5 | 通知标题: | 5 | 通知标题: |
| 6 | <el-input v-model="formData.item.noticeTitle"></el-input> | 6 | <el-input v-model="formData.item.noticeTitle"></el-input> |
| 7 | </el-col> | 7 | </el-col> |
| 8 | </el-row> | 8 | </el-row> |
| 9 | <el-row :gutter="8"> | 9 | <el-row :gutter="8"> |
| 10 | <el-col :span="24" class="margin-top-middle"> | 10 | <el-col :span="24" class="margin-top-middle"> |
| 11 | 通知内容: | 11 | 通知内容: |
| 12 | <el-input type="textarea" :rows="20" v-model="formData.item.noticeContent"></el-input> | 12 | <el-input type="textarea" :rows="20" v-model="formData.item.noticeContent"></el-input> |
| 13 | </el-col> | 13 | </el-col> |
| 14 | </el-row> | 14 | </el-row> |
| 15 | <el-row :gutter="8"> | 15 | <el-row :gutter="8"> |
| 16 | <el-col :span="24" class="margin-top-middle"> | 16 | <el-col :span="24" class="margin-top-middle"> |
| 17 | 附件: | 17 | 附件: |
| 18 | <div @click="handleView(formData.item.noticeFileUrl)" class="pointer">{{formData.item.noticeFileName}}</div> | 18 | <div @click="handleView(formData.item.noticeFileUrl)" class="pointer">{{ formData.item.noticeFileName }}</div> |
| 19 | </el-col> | 19 | </el-col> |
| 20 | </el-row> | 20 | </el-row> |
| 21 | </div> | 21 | </div> |
| 22 | </template> | 22 | </template> |
| ... | @@ -26,28 +26,27 @@ export default { | ... | @@ -26,28 +26,27 @@ export default { |
| 26 | return { | 26 | return { |
| 27 | }; | 27 | }; |
| 28 | }, | 28 | }, |
| 29 | components: { }, | 29 | components: {}, |
| 30 | props: { | 30 | props: { |
| 31 | formData: { | 31 | formData: { |
| 32 | type: Object, | 32 | type: Object, |
| 33 | default: () => {} | 33 | default: () => { } |
| 34 | }, | 34 | }, |
| 35 | }, | 35 | }, |
| 36 | created(){ | 36 | created () { |
| 37 | console.log(this.formData); | 37 | console.log(this.formData); |
| 38 | }, | 38 | }, |
| 39 | computed: { | 39 | computed: { |
| 40 | 40 | ||
| 41 | }, | 41 | }, |
| 42 | 42 | ||
| 43 | methods: { | 43 | methods: { |
| 44 | 44 | ||
| 45 | }, | 45 | }, |
| 46 | }; | 46 | }; |
| 47 | </script> | 47 | </script> |
| 48 | <style scoped lang='scss'> | 48 | <style scoped lang='scss'> |
| 49 | @import "~@/styles/public.scss"; | ||
| 50 | .margin-top-middle { | 49 | .margin-top-middle { |
| 51 | margin-top:10px | 50 | margin-top: 10px |
| 52 | } | 51 | } |
| 53 | </style> | 52 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -32,18 +32,18 @@ | ... | @@ -32,18 +32,18 @@ |
| 32 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 32 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
| 33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
| 34 | </lb-table> | 34 | </lb-table> |
| 35 | </div> | 35 | </div> |
| 36 | <addDialog ref="addDialog" v-model="isDialog" /> | 36 | <addDialog ref="addDialog" v-model="isDialog" /> |
| 37 | </div> | 37 | </div> |
| 38 | </template> | 38 | </template> |
| 39 | <script> | 39 | <script> |
| 40 | import table from "@/utils/mixin/table"; | 40 | import table from "@/utils/mixin/table"; |
| 41 | import { datas, sendThis } from "./xttzdata"; | 41 | import { datas, sendThis } from "./xttzdata"; |
| 42 | import { getSysNoticeList,deleteSysNotice,publishNotice,unPublishNotice } from "@/api/notice.js" | 42 | import { getSysNoticeList, deleteSysNotice, publishNotice, unPublishNotice } from "@/api/notice.js" |
| 43 | import addDialog from "./components/addDialog.vue"; | 43 | import addDialog from "./components/addDialog.vue"; |
| 44 | export default { | 44 | export default { |
| 45 | name: "xttz", | 45 | name: "xttz", |
| 46 | components: { addDialog}, | 46 | components: { addDialog }, |
| 47 | mixins: [table], | 47 | mixins: [table], |
| 48 | mounted () { | 48 | mounted () { |
| 49 | sendThis(this); | 49 | sendThis(this); |
| ... | @@ -54,12 +54,12 @@ export default { | ... | @@ -54,12 +54,12 @@ export default { |
| 54 | isDialog: false, | 54 | isDialog: false, |
| 55 | viewDialog: false, | 55 | viewDialog: false, |
| 56 | ruleForm: { | 56 | ruleForm: { |
| 57 | noticeTitle: '', | 57 | noticeTitle: '', |
| 58 | noticeStatus: '' | 58 | noticeStatus: '' |
| 59 | }, | 59 | }, |
| 60 | noticeStatusList: [ | 60 | noticeStatusList: [ |
| 61 | {"label": '未发布','value':'1'}, | 61 | { "label": '未发布', 'value': '1' }, |
| 62 | {'label': '已发布','value':'2'} | 62 | { 'label': '已发布', 'value': '2' } |
| 63 | ], | 63 | ], |
| 64 | tableData: { | 64 | tableData: { |
| 65 | total: 0, | 65 | total: 0, |
| ... | @@ -83,11 +83,11 @@ export default { | ... | @@ -83,11 +83,11 @@ export default { |
| 83 | }) | 83 | }) |
| 84 | }, | 84 | }, |
| 85 | //打开新增弹窗 | 85 | //打开新增弹窗 |
| 86 | openDialog() { | 86 | openDialog () { |
| 87 | this.isDialog = true; | 87 | this.isDialog = true; |
| 88 | }, | 88 | }, |
| 89 | //删除 | 89 | //删除 |
| 90 | delNotice(item){ | 90 | delNotice (item) { |
| 91 | this.$confirm('是否确定删除', '提示', { | 91 | this.$confirm('是否确定删除', '提示', { |
| 92 | confirmButtonText: '确定', | 92 | confirmButtonText: '确定', |
| 93 | cancelButtonText: '取消', | 93 | cancelButtonText: '取消', |
| ... | @@ -95,10 +95,10 @@ export default { | ... | @@ -95,10 +95,10 @@ export default { |
| 95 | }).then(() => { | 95 | }).then(() => { |
| 96 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { | 96 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { |
| 97 | if (res.code == 200) { | 97 | if (res.code == 200) { |
| 98 | this.$message.success('删除成功') | 98 | this.$message.success('删除成功') |
| 99 | this.queryClick(); | 99 | this.queryClick(); |
| 100 | } else { | 100 | } else { |
| 101 | this.$message.error(res.message) | 101 | this.$message.error(res.message) |
| 102 | } | 102 | } |
| 103 | }) | 103 | }) |
| 104 | }).catch(() => { | 104 | }).catch(() => { |
| ... | @@ -109,7 +109,7 @@ export default { | ... | @@ -109,7 +109,7 @@ export default { |
| 109 | }); | 109 | }); |
| 110 | }, | 110 | }, |
| 111 | //发布 | 111 | //发布 |
| 112 | toPublish(item){ | 112 | toPublish (item) { |
| 113 | this.$confirm('是否确定发布', '提示', { | 113 | this.$confirm('是否确定发布', '提示', { |
| 114 | confirmButtonText: '确定', | 114 | confirmButtonText: '确定', |
| 115 | cancelButtonText: '取消', | 115 | cancelButtonText: '取消', |
| ... | @@ -117,10 +117,10 @@ export default { | ... | @@ -117,10 +117,10 @@ export default { |
| 117 | }).then(() => { | 117 | }).then(() => { |
| 118 | publishNotice({ "bsmNotice": item.bsmNotice }).then(res => { | 118 | publishNotice({ "bsmNotice": item.bsmNotice }).then(res => { |
| 119 | if (res.code == 200) { | 119 | if (res.code == 200) { |
| 120 | this.$message.success('发布成功') | 120 | this.$message.success('发布成功') |
| 121 | this.queryClick(); | 121 | this.queryClick(); |
| 122 | } else { | 122 | } else { |
| 123 | this.$message.error(res.message) | 123 | this.$message.error(res.message) |
| 124 | } | 124 | } |
| 125 | }) | 125 | }) |
| 126 | }).catch(() => { | 126 | }).catch(() => { |
| ... | @@ -131,7 +131,7 @@ export default { | ... | @@ -131,7 +131,7 @@ export default { |
| 131 | }); | 131 | }); |
| 132 | }, | 132 | }, |
| 133 | //取消发布 | 133 | //取消发布 |
| 134 | toUnPublish(item){ | 134 | toUnPublish (item) { |
| 135 | this.$confirm('是否确定取消发布', '提示', { | 135 | this.$confirm('是否确定取消发布', '提示', { |
| 136 | confirmButtonText: '确定', | 136 | confirmButtonText: '确定', |
| 137 | cancelButtonText: '取消', | 137 | cancelButtonText: '取消', |
| ... | @@ -139,10 +139,10 @@ export default { | ... | @@ -139,10 +139,10 @@ export default { |
| 139 | }).then(() => { | 139 | }).then(() => { |
| 140 | unPublishNotice({ "bsmNotice": item.bsmNotice }).then(res => { | 140 | unPublishNotice({ "bsmNotice": item.bsmNotice }).then(res => { |
| 141 | if (res.code == 200) { | 141 | if (res.code == 200) { |
| 142 | this.$message.success('删除成功') | 142 | this.$message.success('删除成功') |
| 143 | this.queryClick(); | 143 | this.queryClick(); |
| 144 | } else { | 144 | } else { |
| 145 | this.$message.error(res.message) | 145 | this.$message.error(res.message) |
| 146 | } | 146 | } |
| 147 | }) | 147 | }) |
| 148 | }).catch(() => { | 148 | }).catch(() => { |
| ... | @@ -152,16 +152,16 @@ export default { | ... | @@ -152,16 +152,16 @@ export default { |
| 152 | }); | 152 | }); |
| 153 | }); | 153 | }); |
| 154 | }, | 154 | }, |
| 155 | downloadFile(item){ | 155 | downloadFile (item) { |
| 156 | const href = item.noticeFileUrl | 156 | const href = item.noticeFileUrl |
| 157 | window.open(href, '_blank'); | 157 | window.open(href, '_blank'); |
| 158 | }, | 158 | }, |
| 159 | viewDetail(e){ | 159 | viewDetail (e) { |
| 160 | this.$popup("错误日志", "system/xttz/components/viewDialog", { | 160 | this.$popup("错误日志", "system/xttz/components/viewDialog", { |
| 161 | formData: { | 161 | formData: { |
| 162 | item: e | 162 | item: e |
| 163 | } | 163 | } |
| 164 | }) | 164 | }) |
| 165 | } | 165 | } |
| 166 | }, | 166 | }, |
| 167 | }; | 167 | }; | ... | ... |
| ... | @@ -11,8 +11,9 @@ export default { | ... | @@ -11,8 +11,9 @@ export default { |
| 11 | this.isSearch = true | 11 | this.isSearch = true |
| 12 | }, | 12 | }, |
| 13 | getSearch (val) { | 13 | getSearch (val) { |
| 14 | console.log(val, 222222222222); | 14 | if (!val) return |
| 15 | this.otherForm = val | 15 | this.otherForm = val |
| 16 | this.queryClick() | ||
| 16 | let obj = { ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称', qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间' } | 17 | let obj = { ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称', qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间' } |
| 17 | this.searchList = Object.entries({ ...this.searchForm, ...val }).map((item) => { | 18 | this.searchList = Object.entries({ ...this.searchForm, ...val }).map((item) => { |
| 18 | const [name, value] = item | 19 | const [name, value] = item | ... | ... |
| ... | @@ -70,8 +70,7 @@ export default { | ... | @@ -70,8 +70,7 @@ export default { |
| 70 | this.$refs['ruleForm'].resetFields() | 70 | this.$refs['ruleForm'].resetFields() |
| 71 | }, | 71 | }, |
| 72 | submitForm () { | 72 | submitForm () { |
| 73 | this.$emit('getSearch', this.ruleForm) | 73 | this.$emit('getSearch', _.cloneDeep(this.ruleForm)) |
| 74 | console.log(this.ruleForm); | ||
| 75 | this.$emit('input', false) | 74 | this.$emit('input', false) |
| 76 | this.$refs['ruleForm'].resetFields() | 75 | this.$refs['ruleForm'].resetFields() |
| 77 | } | 76 | } | ... | ... |
| ... | @@ -126,7 +126,7 @@ export default { | ... | @@ -126,7 +126,7 @@ export default { |
| 126 | queryClick () { | 126 | queryClick () { |
| 127 | this.$startLoading() | 127 | this.$startLoading() |
| 128 | this.searchForm.ywh = this.queryForm.ywh | 128 | this.searchForm.ywh = this.queryForm.ywh |
| 129 | this.getSearch() | 129 | console.log(this.otherForm); |
| 130 | searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => { | 130 | searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => { |
| 131 | this.$endLoading() | 131 | this.$endLoading() |
| 132 | if (res.code === 200) { | 132 | if (res.code === 200) { | ... | ... |
-
Please register or sign in to post a comment