-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
+
{{ $t('deleteBatch') }}
-
-
-
-
-
-
+
+
+
+ {{scope.$index+1}}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
- {{ $t('update') }}
- {{ $t('delete') }}
+ 解除管理员
+ 设置管理员
+ {{ $t('update') }}
+ {{ $t('delete') }}
@@ -65,9 +91,9 @@ export default {
data () {
return {
mixinViewModuleOptions: {
- getDataListURL: '//masteruserrelation/page',
+ getDataListURL: '/cloudAnalysis/masteruserrelation/page',
getDataListIsPage: true,
- deleteURL: '//masteruserrelation',
+ deleteURL: '/cloudAnalysis/masteruserrelation',
deleteIsBatch: true
},
dataForm: {
@@ -77,6 +103,43 @@ export default {
},
components: {
AddOrUpdate
+ },
+ created: function () {
+ this.getDataList()
+ },
+ methods: {
+ addHandle () {
+ this.$parent.selectComponent = 'MasteruserrelationAdd'
+ this.$router.push({ path: '/master-masteruserrelationroute' })
+ },
+ manageFlagFormat (row, column) {
+ if (row.manageFlag === '0') {
+ return '群成员'
+ } else {
+ return '管理员'
+ }
+ },
+ updateManageFlagHandle (id) {
+ this.$confirm(this.$t('prompt.info', { 'handle': '更改成员身份' }), this.$t('prompt.title'), {
+ confirmButtonText: this.$t('confirm'),
+ cancelButtonText: this.$t('cancel'),
+ type: 'warning'
+ }).then(() => {
+ this.$http.get(`/cloudAnalysis/masteruserrelation/updateManageFlag/` + 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.getDataList()
+ }
+ })
+ }).catch(() => { })
+ }).catch(() => { })
+ }
}
}
diff --git a/src/views/modules/master/masteruserrelationroute.vue b/src/views/modules/master/masteruserrelationroute.vue
new file mode 100644
index 00000000..15308f83
--- /dev/null
+++ b/src/views/modules/master/masteruserrelationroute.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+