diff --git a/epmet-oper-web/src/mixins/view-module.js b/epmet-oper-web/src/mixins/view-module.js index cfc165b..9c73fa4 100644 --- a/epmet-oper-web/src/mixins/view-module.js +++ b/epmet-oper-web/src/mixins/view-module.js @@ -1,5 +1,7 @@ import Cookies from 'js-cookie' import qs from 'qs' +import { requestPost } from '@/js/dai/request' + export default { data () { /* eslint-disable */ @@ -139,6 +141,33 @@ export default { }).catch(() => {}) }).catch(() => {}) }, + // 删除 + async deleteHandlePost (id) { + + + + this.$confirm(this.$t('prompt.info', { 'handle': this.$t('delete') }), this.$t('prompt.title'), { + confirmButtonText: this.$t('confirm'), + cancelButtonText: this.$t('cancel'), + type: 'warning' + }).then(() => { + this.$http.post(this.mixinViewModuleOptions.deleteURL, + [id] + ).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.query() + } + }) + }).catch(() => {}) + }).catch(() => {}) + }, // 导出 exportHandle () { var params = qs.stringify({ diff --git a/epmet-oper-web/src/views/modules/sys/dingding/Edit.vue b/epmet-oper-web/src/views/modules/sys/dingding/Edit.vue new file mode 100644 index 0000000..8510b0b --- /dev/null +++ b/epmet-oper-web/src/views/modules/sys/dingding/Edit.vue @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + {{ $t('confirm') }} + + + + + + + diff --git a/epmet-oper-web/src/views/modules/sys/dingding/EditDomainNameList.vue b/epmet-oper-web/src/views/modules/sys/dingding/EditDomainNameList.vue new file mode 100644 index 0000000..e9037f4 --- /dev/null +++ b/epmet-oper-web/src/views/modules/sys/dingding/EditDomainNameList.vue @@ -0,0 +1,412 @@ + + + + + + + + + 2-5个字 + + + + + + + + + + + + + + + + {{dataForm.targetLink}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{domainNameList[index]}} + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + + + + + + + diff --git a/epmet-oper-web/src/views/modules/sys/dingding/digndingList.vue b/epmet-oper-web/src/views/modules/sys/dingding/digndingList.vue new file mode 100644 index 0000000..14e8dda --- /dev/null +++ b/epmet-oper-web/src/views/modules/sys/dingding/digndingList.vue @@ -0,0 +1,142 @@ + + + + + + + + + {{ $t('query') }} + + + {{ $t('add') }} + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('update') }} + {{ $t('delete') }} + + + + + + + + + + + +