whx 11 tháng trước cách đây
mục cha
commit
9b9112a094
30 tập tin đã thay đổi với 177 bổ sung165 xóa
  1. 5 3
      virgo.wzfrontend/console/src/components/common/tag.vue
  2. 11 0
      virgo.wzfrontend/console/src/httpApi/space.js
  3. 1 2
      virgo.wzfrontend/console/src/layout/components/userUpdate.vue
  4. 1 1
      virgo.wzfrontend/console/src/uitls/permission.js
  5. 148 148
      virgo.wzfrontend/console/src/views/work/space/project.vue
  6. 1 1
      virgo.wzfrontend/src/main/resources/static/index.html
  7. 0 0
      virgo.wzfrontend/src/main/resources/static/static/css/8020.225bc5ff.css
  8. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/1620.5b4862ac.js
  9. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/1620.94a4421e.js
  10. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/3525-legacy.0def4671.js
  11. 0 0
      virgo.wzfrontend/src/main/resources/static/static/js/3782.9dc1b823.js
  12. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/3897.06758dd4.js
  13. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/4198-legacy.0f69ce8e.js
  14. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/4198-legacy.135fd77a.js
  15. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/4889.28c9be2f.js
  16. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/4889.a644c69e.js
  17. 0 0
      virgo.wzfrontend/src/main/resources/static/static/js/4976-legacy.befbc509.js
  18. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/5412.91405034.js
  19. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/5412.b8c962eb.js
  20. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/5629-legacy.2ce952de.js
  21. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/5629-legacy.c4e9b16c.js
  22. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/5656-legacy.331c32a9.js
  23. 0 0
      virgo.wzfrontend/src/main/resources/static/static/js/6001-legacy.95e02d89.js
  24. 0 0
      virgo.wzfrontend/src/main/resources/static/static/js/6001.f10f5781.js
  25. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/7719-legacy.7171afde.js
  26. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/7719-legacy.f01a6a5a.js
  27. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/9064.c650d96f.js
  28. 0 1
      virgo.wzfrontend/src/main/resources/static/static/js/app-legacy.30f7145a.js
  29. 1 0
      virgo.wzfrontend/src/main/resources/static/static/js/app-legacy.362ef297.js
  30. 1 1
      virgo.wzfrontend/src/main/resources/static/static/js/app.be4ab912.js

+ 5 - 3
virgo.wzfrontend/console/src/components/common/tag.vue

@@ -18,7 +18,8 @@
 		getTagList,
 		insertTag,
 		updateTag,
-		deleteTag
+		deleteTag,
+		getTagListByOrganizationId
 	} from '@/httpApi/space'
 	export default {
 		name: 'tag',
@@ -50,7 +51,7 @@
 		},
 		methods: {
 			init() {
-				getTagList(this.tagType).then(res => {
+				getTagListByOrganizationId(this.$store.getters.organization.id, this.tagType).then(res => {
 					if (res.state) {
 						this.dataBox = res.data;
 						this.initTagList();
@@ -79,7 +80,8 @@
 				}) => {
 					insertTag({
 						type: this.tagType,
-						name: value
+						name: value,
+						organizationId: this.$store.getters.organization.id
 					}).then(res => {
 						if (res.state) {
 							this.init();

+ 11 - 0
virgo.wzfrontend/console/src/httpApi/space.js

@@ -171,6 +171,17 @@ export function getTagList(type) {
 		method: 'post'
 	})
 }
+/* 
+ * 获取组织标签列表
+ * 
+ * 
+ */
+export function getTagListByOrganizationId(organizationId, type) {
+	return request({
+		url: `/api/tag/${organizationId}/${type}`,
+		method: 'get'
+	})
+}
 /* 
  * 新增标签
  * 

+ 1 - 2
virgo.wzfrontend/console/src/layout/components/userUpdate.vue

@@ -57,8 +57,7 @@
 		methods: {
 			submit() {
 				this.userForm['id'] = this.userForm.userId;
-				this.userForm['portrait'] = this.$refs.image.fileList.length === 0 ?
-					'https://file-node.oss-cn-shanghai.aliyuncs.com/youji/3156449b8a1a4874981b2a76d5947721' : this.$refs
+				if (this.$refs.image.fileList.length > 0) this.userForm['portrait'] = this.$refs
 					.image.fileList[0].url;
 				updateUserDetails(this.userForm).then(res => {
 					if (res.state) {

+ 1 - 1
virgo.wzfrontend/console/src/uitls/permission.js

@@ -14,7 +14,7 @@ import Vue from 'vue'
 NProgress.configure({
 	showSpinner: false
 })
-const baseUrl = ['/', '/401', '/404', '/loginRegister/login', '/message'];
+const baseUrl = ['/', '/401', '/404', '/loginRegister/login', '/message', '/space/project'];
 
 const testBaseUrl = (path) => { //判断公共路由
 	let nowBaseUrl = ['/loginRegister/login'].filter((item) => {

+ 148 - 148
virgo.wzfrontend/console/src/views/work/space/project.vue

@@ -1,149 +1,149 @@
-<template>
-	<div class="hui-flex hui-content">
-		<div class="hui-content-title">
-			<div class="hui-title-item active">项目列表</div>
-		</div>
-		<div class="hui-flex-box hui-flex hui-table">
-			<div class="hui-content-insert">
-				<el-button type="primary" size="medium" @click="insertProject">新增项目</el-button>
-			</div>
-			<div class="hui-flex-box">
-				<el-table :data="tableData" row-key="id" border height="100%">
-					<el-table-column label="序号" width="50">
-						<template slot-scope="scope">
-							<div style="text-align: center;">{{scope.$index + 1}}</div>
-						</template>
-					</el-table-column>
-					<el-table-column label="项目名称" prop="name"></el-table-column>
-					<el-table-column label="项目描述" prop="comment"></el-table-column>
-					<el-table-column label="操作" width="150">
-						<template slot-scope="scope">
-							<div class="hui-table-operation">
-								<span class="table-operation" @click="lookProject(scope.row)">详情</span>
-								<span class="table-operation" @click="updateProject(scope.row)">编辑</span>
-								<span class="table-operation" @click="deleteProject(scope.row)">删除</span>
-							</div>
-						</template>
-					</el-table-column>
-					<template slot="empty">
-						<empty description="暂无数据"></empty>
-					</template>
-				</el-table>
-			</div>
-			<div class="hui-content-pagination">
-				<el-pagination :page-size="pageSize" :pager-count="9" layout="prev, pager, next" :total="totalCount"
-					@current-change="currentChange">
-				</el-pagination>
-			</div>
-		</div>
-		<el-dialog :title="isUpdate?'编辑':'新增'" :visible.sync="visible" width="900px" :append-to-body="true">
-			<edit v-if="visible" @callback="callback" :isUpdate="isUpdate" :detailId="detailId"></edit>
-		</el-dialog>
-		<el-drawer title="项目详情" :visible.sync="drawer" :size="400" :append-to-body="true">
-			<detail v-if="drawer" :detailId="detailId"></detail>
-		</el-drawer>
-	</div>
-</template>
-
-<script>
-	import {
-		getProjectListByPage,
-		deleteProjectById
-	} from '@/httpApi/space'
-	import edit from '@/components/work/space/project/edit'
-	import detail from '@/components/work/space/project/detail'
-	import {
-		selectProject
-	} from '@/httpApi/loginRegister'
-	import {
-		setComment
-	} from '@/uitls/auth';
-	export default {
-		data() {
-			return {
-				tableData: [],
-				currPage: 1,
-				pageSize: 10,
-				totalCount: 0,
-				visible: false,
-				detailId: '',
-				isUpdate: false,
-				drawer: false
-			}
-		},
-		created() {
-			this.init();
-		},
-		methods: {
-			init() {
-				getProjectListByPage({
-					currPage: this.currPage,
-					pageSize: this.pageSize,
-					organizationId: this.$store.getters.organization.id
-				}).then(res => {
-					if (res.state) {
-						this.tableData = res.data.dataList;
-						this.totalCount = res.data.totalCount;
-						if (this.$store.getters.project.id) return;
-						this.changeProject(this.tableData[0]);
-					}
-				})
-			},
-			changeProject(data) {
-				if (!data) return;
-				data.projectItemList = data.projectItemList || [];
-				data.projectItemList.sort((a, b) => {
-					return a.id - b.id;
-				});
-				selectProject(data.id).then(res => {
-					if (res.state) {
-						let user = res.data;
-						localStorage.setItem('projectId', data.id);
-						this.$store.dispatch('app/changeUser', user);
-						this.$store.dispatch('app/changeMenuData', user.resource ? JSON.parse(user.resource) : []);
-						setComment(user.menu ? user.menu : JSON.stringify([]));
-						this.$store.dispatch('projectBase/changeProject', data);
-					}
-				});
-			},
-			currentChange(currPage) {
-				this.currPage = currPage;
-				this.init();
-			},
-			insertProject() {
-				this.isUpdate = false;
-				this.visible = true;
-			},
-			updateProject(val) {
-				this.detailId = val.id;
-				this.isUpdate = true;
-				this.visible = true;
-			},
-			lookProject(val) {
-				this.detailId = val.id;
-				this.drawer = true;
-			},
-			deleteProject(val) {
-				if (this.$store.getters.project.id === val.id) return this.$message.warning('不能删除当前项目,请切换项目后删除');
-				this.$confirm('确定要删除该项目?', () => {
-					deleteProjectById(val.id).then(res => {
-						if (res.state) {
-							this.init();
-							this.$message.success('操作成功');
-						}
-					})
-				});
-			},
-			callback(type) {
-				if (type === 'init') this.init();
-				this.visible = false;
-			}
-		},
-		components: {
-			edit,
-			detail
-		},
-	}
-</script>
-
+<template>
+	<div class="hui-flex hui-content">
+		<div class="hui-content-title">
+			<div class="hui-title-item active">项目列表</div>
+		</div>
+		<div class="hui-flex-box hui-flex hui-table">
+			<div class="hui-content-insert">
+				<el-button type="primary" size="medium" @click="insertProject">新增项目</el-button>
+			</div>
+			<div class="hui-flex-box">
+				<el-table :data="tableData" row-key="id" border height="100%">
+					<el-table-column label="序号" width="50">
+						<template slot-scope="scope">
+							<div style="text-align: center;">{{scope.$index + 1}}</div>
+						</template>
+					</el-table-column>
+					<el-table-column label="项目名称" prop="name"></el-table-column>
+					<el-table-column label="项目描述" prop="comment"></el-table-column>
+					<el-table-column label="操作" width="150">
+						<template slot-scope="scope">
+							<div class="hui-table-operation">
+								<span class="table-operation" @click="lookProject(scope.row)">详情</span>
+								<span class="table-operation" @click="updateProject(scope.row)">编辑</span>
+								<span class="table-operation" @click="deleteProject(scope.row)">删除</span>
+							</div>
+						</template>
+					</el-table-column>
+					<template slot="empty">
+						<empty description="暂无数据"></empty>
+					</template>
+				</el-table>
+			</div>
+			<div class="hui-content-pagination">
+				<el-pagination :page-size="pageSize" :pager-count="9" layout="prev, pager, next" :total="totalCount"
+					@current-change="currentChange">
+				</el-pagination>
+			</div>
+		</div>
+		<el-dialog :title="isUpdate?'编辑':'新增'" :visible.sync="visible" width="900px" :append-to-body="true">
+			<edit v-if="visible" @callback="callback" :isUpdate="isUpdate" :detailId="detailId"></edit>
+		</el-dialog>
+		<el-drawer title="项目详情" :visible.sync="drawer" :size="400" :append-to-body="true">
+			<detail v-if="drawer" :detailId="detailId"></detail>
+		</el-drawer>
+	</div>
+</template>
+
+<script>
+	import {
+		getProjectListByPage,
+		deleteProjectById
+	} from '@/httpApi/space'
+	import edit from '@/components/work/space/project/edit'
+	import detail from '@/components/work/space/project/detail'
+	import {
+		selectProject
+	} from '@/httpApi/loginRegister'
+	import {
+		setComment
+	} from '@/uitls/auth';
+	export default {
+		data() {
+			return {
+				tableData: [],
+				currPage: 1,
+				pageSize: 10,
+				totalCount: 0,
+				visible: false,
+				detailId: '',
+				isUpdate: false,
+				drawer: false
+			}
+		},
+		created() {
+			this.init();
+		},
+		methods: {
+			init() {
+				getProjectListByPage({
+					currPage: this.currPage,
+					pageSize: this.pageSize,
+					organizationId: this.$store.getters.organization.id
+				}).then(res => {
+					if (res.state) {
+						this.tableData = res.data.dataList;
+						this.totalCount = res.data.totalCount;
+						if (this.$store.getters.project.id) return;
+						if (this.tableData.length > 0) this.changeProject(this.tableData[0]);
+					}
+				})
+			},
+			changeProject(data) {
+				if (!data) return;
+				data.projectItemList = data.projectItemList || [];
+				data.projectItemList.sort((a, b) => {
+					return a.id - b.id;
+				});
+				selectProject(data.id).then(res => {
+					if (res.state) {
+						let user = res.data;
+						localStorage.setItem('projectId', data.id);
+						this.$store.dispatch('app/changeUser', user);
+						this.$store.dispatch('app/changeMenuData', user.resource ? JSON.parse(user.resource) : []);
+						setComment(user.menu ? user.menu : JSON.stringify([]));
+						this.$store.dispatch('projectBase/changeProject', data);
+					}
+				});
+			},
+			currentChange(currPage) {
+				this.currPage = currPage;
+				this.init();
+			},
+			insertProject() {
+				this.isUpdate = false;
+				this.visible = true;
+			},
+			updateProject(val) {
+				this.detailId = val.id;
+				this.isUpdate = true;
+				this.visible = true;
+			},
+			lookProject(val) {
+				this.detailId = val.id;
+				this.drawer = true;
+			},
+			deleteProject(val) {
+				if (this.$store.getters.project.id === val.id) return this.$message.warning('不能删除当前项目,请切换项目后删除');
+				this.$confirm('确定要删除该项目?', () => {
+					deleteProjectById(val.id).then(res => {
+						if (res.state) {
+							this.init();
+							this.$message.success('操作成功');
+						}
+					})
+				});
+			},
+			callback(type) {
+				if (type === 'init') this.init();
+				this.visible = false;
+			}
+		},
+		components: {
+			edit,
+			detail
+		},
+	}
+</script>
+
 <style lang="scss"></style>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/index.html


virgo.wzfrontend/src/main/resources/static/static/css/3788.225bc5ff.css → virgo.wzfrontend/src/main/resources/static/static/css/8020.225bc5ff.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/1620.5b4862ac.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/1620.94a4421e.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/3525-legacy.0def4671.js


virgo.wzfrontend/src/main/resources/static/static/js/3782.2a3b33cc.js → virgo.wzfrontend/src/main/resources/static/static/js/3782.9dc1b823.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/3897.06758dd4.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/4198-legacy.0f69ce8e.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/4198-legacy.135fd77a.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/4889.28c9be2f.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/4889.a644c69e.js


virgo.wzfrontend/src/main/resources/static/static/js/4976-legacy.90d2bf5b.js → virgo.wzfrontend/src/main/resources/static/static/js/4976-legacy.befbc509.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/5412.91405034.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/5412.b8c962eb.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/5629-legacy.2ce952de.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/5629-legacy.c4e9b16c.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/5656-legacy.331c32a9.js


virgo.wzfrontend/src/main/resources/static/static/js/6001-legacy.c0b55eeb.js → virgo.wzfrontend/src/main/resources/static/static/js/6001-legacy.95e02d89.js


virgo.wzfrontend/src/main/resources/static/static/js/6001.9b33ae3a.js → virgo.wzfrontend/src/main/resources/static/static/js/6001.f10f5781.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/7719-legacy.7171afde.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/7719-legacy.f01a6a5a.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/9064.c650d96f.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/static/js/app-legacy.30f7145a.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/static/js/app-legacy.362ef297.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/static/js/app.be4ab912.js