diff --git a/src/views/modules/plugins/power/poweraxis-add-or-update.vue b/src/views/modules/plugins/power/poweraxis-add-or-update.vue
index 2188c43d..e53c81e4 100644
--- a/src/views/modules/plugins/power/poweraxis-add-or-update.vue
+++ b/src/views/modules/plugins/power/poweraxis-add-or-update.vue
@@ -141,16 +141,16 @@ export default {
dataRule () {
return {
categoryCode:[
- { required: true, message: "上级部门不能为空", trigger: "blur" }
+ { required: true, message: "类别不能为空", trigger: "blur" }
],
name:[
- { required: true, message: "上级部门不能为空", trigger: "blur" }
+ { required: true, message: "名称不能为空", trigger: "blur" }
],
orgId:[
- { required: true, message: "上级部门不能为空", trigger: "blur" }
+ { required: true, message: "所属组织不能为空", trigger: "blur" }
],
pid:[
- { required: true, message: "上级部门不能为空", trigger: "blur" }
+ { required: true, message: "所属上级不能为空", trigger: "blur" }
],
longitude: [
{ required: true, message: '坐标不能为空', trigger: 'blur' }
@@ -300,20 +300,26 @@ export default {
// 动力主轴选中后的操作
handelChange(val){
this.dataForm.categoryCode = val
- if (val === 'community_party') {
+ let selectedLevel
+ this.structCategoryArr.forEach((item) => {
+ if(item.categoryCode === val){
+ selectedLevel = item.structLevel
+ }
+ })
+ if (selectedLevel === 0) {
this.orgListSwitch = true
this.GridPartyBranchSwitch = false
this.partyCommSwitch = false
- this.dataForm.pid = 0
+ this.dataForm.pid = '0'
}
- if(val === 'grid_party') {
+ if(selectedLevel === 1) {
this.orgListSwitch = false
this.GridPartyBranchSwitch = false
this.partyCommSwitch = true
- this.getPartyCommList()
this.dataForm.pid = ''
+ this.getPartyCommList()
}
- if(val === 'group_party') {
+ if(selectedLevel === 2) {
this.GridPartyBranchSwitch = true
this.partyCommSwitch = false
this.dataForm.pid = ''
diff --git a/src/views/modules/plugins/power/poweraxistag-add-or-update.vue b/src/views/modules/plugins/power/poweraxistag-add-or-update.vue
new file mode 100644
index 00000000..cf029a4e
--- /dev/null
+++ b/src/views/modules/plugins/power/poweraxistag-add-or-update.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+ 动力主轴
+ 负责人
+ 默认参数
+
+
+
+
+
+
+
+
+
+
+ 一级
+ 二级
+ 三级
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
diff --git a/src/views/modules/plugins/power/poweraxistag.vue b/src/views/modules/plugins/power/poweraxistag.vue
new file mode 100644
index 00000000..70f08291
--- /dev/null
+++ b/src/views/modules/plugins/power/poweraxistag.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+ {{ $t('query') }}
+
+
+ {{ $t('add') }}
+
+
+ {{ $t('deleteBatch') }}
+
+
+
+
+
+
+ 动力主轴
+ 负责人
+ 默认参数
+
+
+
+
+
+
+ {{ scope.row.structLevel === 0 ? '一级' : scope.row.structLevel === 1 ? '二级' : '三级' }}
+
+
+
+
+ 正常
+ 禁用
+
+
+
+
+
+ {{ $t('update') }}
+ {{ $t('delete') }}
+
+
+
+
+
+
+
+
+
+
+
+