@@ -2917,6 +2946,7 @@ export default {
// 分享数据
resType: '',
drawerModal: false, // 分享
+ mobileModal: false, // 移动标准
// start 分享相关的
// 消息推送保存对象
personShareEO: {
@@ -3317,6 +3347,69 @@ export default {
this.productModal = false
this.closeDrawer()
},
+ //节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件
+ handleCheckChange(item,checked,self){
+ if(checked){
+ this.editCheckd = item.id
+ this.$refs.menuTree.setCheckedKeys([item.id]);
+ // this.nodeClick(item)
+ }else{
+ if(this.editCheckd === item.id){
+ this.$refs.menuTree.setCheckedKeys([item.id]);
+ }
+
+ }
+ },
+ //移动标准
+ MobileStandard(){
+ let checkedObj = []
+ if(this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '' || this.selectSarMenu.parentId === undefined){
+ this.$message.error('请选择二级及以下目录')
+ }else if (this.selectedList < 1){
+ this.$message.error('请至少选择一条标准')
+ }else {
+ this.mobileModal = true
+ }
+ },
+ // 取消
+ mobileeCancel() {
+ let checkedObj = []
+ this.$nextTick(() => {
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+
+
+ },
+ // 移动标准提交
+ mobileStandardBt(){
+ let checkedObj = []
+ let search = {}
+ // 取最外层目录id
+ search.oldMenuId = this.selectSarMenu.id
+ search.menuId = this.editCheckd
+ search.idlist = []
+ for (let i = 0; i < this.selectedList.length; i++) {
+ search.idlist.push(this.selectedList[i])
+ }
+ if(search.menuId == '' || search.menuId == null || search.menuId == undefined){
+ this.$message.error('请至少选择一个节点')
+ }else{
+ this.$http.putData('lawss/sarStandMenu/moveStandInfo', search, {
+ _this: this
+ }, res => {
+ // this.$Message.success('取消配置成功!')
+ this.$nextTick(() => {
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+ this.getDomesticStandardTable()
+ }, e => {
+ })
+ }
+ },
// 提交新增/修改
saveProduct(name) {
this.$refs[name].validate((valid) => {
diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
index 0141e39a0..7efcf13e7 100644
--- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
+++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
@@ -284,6 +284,9 @@
size="mini" @click="selectBuss()" style="float: right;margin-top: 11px;"
v-btn-permission="'76742566e1cf930f384ef78cecb86f61'">企标复审计划
+ 移动标准
+
@@ -489,6 +492,32 @@
@pageChange="pageChange" @pageSizeChange="pageSizeChange">
数据获取中
+
+
+
+
+
+
+
+
{
+ this.$http.get('sarResource/ts-resource/getListStandLimitData', {
+ sorDivide: 'BUSINESS_STAND',
+ userId: this.$store.getters.userInfo.userId
+ }, {
+ _this: this
+ }, res => {
+ this.treeList1 = res.data
+ })
+ })
+ },
selectMenuList() {
return new Promise((resolve, reject) => {
this.$http.get('sarResource/ts-resource/getListStandLimitData', {
@@ -3192,6 +3236,75 @@ export default {
}
})
},
+ //节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件
+ handleCheckChange(item,checked,self){
+ if(checked){
+ console.log(item)
+ this.editCheckd = item.id
+ this.NewTreeType = item.treeType
+ this.$refs.menuTree.setCheckedKeys([item.id]);
+ // this.nodeClick(item)
+ }else{
+ if(this.editCheckd === item.id){
+ this.$refs.menuTree.setCheckedKeys([item.id]);
+ }
+
+ }
+ },
+ //移动标准
+ MobileStandard(){
+ let checkedObj = []
+ if(this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '' || this.selectSarMenu.parentId === undefined){
+ this.$message.error('请选择二级及以下目录')
+ }else if (this.selectedList < 1){
+ this.$message.error('请至少选择一条标准')
+ }else {
+ this.selectMenuListNew1()
+ this.mobileModal = true
+ }
+ },
+ // 取消
+ mobileeCancel() {
+ let checkedObj = []
+ this.$nextTick(() => {
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+
+
+ },
+ // 移动标准提交
+ mobileStandardBt(){
+ let checkedObj = []
+ let search = {}
+ // 取最外层目录id
+ search.oldMenuId = this.selectSarMenu.id
+ search.menuId = this.editCheckd
+ search.treeType = this.selectSarMenu.treeType
+ // search.oldTreeType = this.selectSarMenu.treeType
+ // search.NewTreeType = this.NewTreeType
+ search.idlist = []
+ for (let i = 0; i < this.selectedList.length; i++) {
+ search.idlist.push(this.selectedList[i])
+ }
+ if(search.menuId == '' || search.menuId == null || search.menuId == undefined){
+ this.$message.error('请至少选择一个节点')
+ }else{
+ this.$http.putData('lawss/sarBussStandMenu/moveStandInfo', search, {
+ _this: this
+ }, res => {
+ // this.$Message.success('取消配置成功!')
+ this.$nextTick(() => {
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+ this.getBussionStandTable()
+ }, e => {
+ })
+ }
+ },
// 树点击
isTreeOk(checkedList) {
this.shareStandardSelect = []
diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
index 4ef729ad8..4d5235c77 100644
--- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
@@ -165,6 +165,9 @@
size="mini" @click="OCRAdd('2')"
v-btn-permission="'e8d690904ee1895dd0d17d9c794fbcd7'">编辑
+ 移动标准
+
+
+
+
+
+
+
+
{
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+
+
+ },
+ // 移动标准提交
+ mobileStandardBt(){
+ let checkedObj = []
+ let search = {}
+ // 取最外层目录id
+ search.oldMenuId = this.selectSarMenu.id
+ search.menuId = this.editCheckd
+ search.idlist = []
+ for (let i = 0; i < this.selectedList.length; i++) {
+ search.idlist.push(this.selectedList[i])
+ }
+ console.log(search.menuId)
+ if(search.menuId == '' || search.menuId == null || search.menuId == undefined){
+ this.$message.error('请至少选择一个节点')
+ }else{
+ this.$http.putData('lawss/sarStandMenu/moveStandInfo', search, {
+ _this: this
+ }, res => {
+ // this.$Message.success('取消配置成功!')
+ this.$nextTick(() => {
+ this.$refs.menuTree.setCheckedKeys(checkedObj);
+ })
+ this.editCheckd = ''
+ this.mobileModal = false
+ this.getDomesticStandardTable()
+ }, e => {
+ })
+ }
+ },
// 表格排序
sortChange(sortObj) {