提交 45a2ec8d 编写于 作者: zhentian.jia's avatar zhentian.jia

上架后可以改变顺序

上级 7d9cec23
...@@ -2568,7 +2568,7 @@ ...@@ -2568,7 +2568,7 @@
}, },
"extract-text-webpack-plugin": { "extract-text-webpack-plugin": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-1.0.1.tgz", "resolved": "http://192.168.110.93:4873/extract-text-webpack-plugin/-/extract-text-webpack-plugin-1.0.1.tgz",
"integrity": "sha1-yVvzy6rEnclvHcbgclSfu2VMzSw=", "integrity": "sha1-yVvzy6rEnclvHcbgclSfu2VMzSw=",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -9121,7 +9121,7 @@ ...@@ -9121,7 +9121,7 @@
}, },
"webpack-sources": { "webpack-sources": {
"version": "0.1.5", "version": "0.1.5",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.1.5.tgz", "resolved": "http://192.168.110.93:4873/webpack-sources/-/webpack-sources-0.1.5.tgz",
"integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=", "integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=",
"dev": true, "dev": true,
"requires": { "requires": {
......
...@@ -54,7 +54,7 @@ service.interceptors.request.use(config => { ...@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
} }
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV); // console.log('环境变量>>>> ', process.env.BUILD_ENV);
config.headers['token'] = '75E66BEF653E4DFB9F54209901EA76AD'; config.headers['token'] = 'D2E29BE9FF794703A482518A04D344E2';
}else{ }else{
config.headers['token'] = localStorage.getItem('storageToken') config.headers['token'] = localStorage.getItem('storageToken')
} }
......
...@@ -1389,6 +1389,7 @@ export default { ...@@ -1389,6 +1389,7 @@ export default {
this.getDepartment(); this.getDepartment();
} else if (active == 2) { } else if (active == 2) {
this.stepData = [false, false, true]; this.stepData = [false, false, true];
this.tagDrop();
} }
}, },
//点击暂存 //点击暂存
...@@ -1491,11 +1492,11 @@ export default { ...@@ -1491,11 +1492,11 @@ export default {
//点击完成 //点击完成
complete() { complete() {
//type 1:暂存 2:完成 //type 1:暂存 2:完成
if (this.status4Flag == 1) { // if (this.status4Flag == 1) {
vm.$message.info("完成"); // vm.$message.info("完成");
vm.$router.push({ path: "item-manager" }); // vm.$router.push({ path: "item-manager" });
return; // return;
} // }
let formName = "formComponent"; let formName = "formComponent";
let completeState = this.submitForm(formName); let completeState = this.submitForm(formName);
let certificateState = this.checkCertificate(); let certificateState = this.checkCertificate();
...@@ -1571,6 +1572,7 @@ export default { ...@@ -1571,6 +1572,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
this.active++; this.active++;
this.stepData = [false, false, true]; this.stepData = [false, false, true];
this.tagDrop();
} }
} }
); );
...@@ -1620,6 +1622,7 @@ export default { ...@@ -1620,6 +1622,7 @@ export default {
if(statusMove === 0) { if(statusMove === 0) {
this.active++; this.active++;
this.stepData = [false, false, true]; this.stepData = [false, false, true];
this.tagDrop();
} else { } else {
console.log('不能改变范围status:'+res.data.status) console.log('不能改变范围status:'+res.data.status)
} }
...@@ -1669,6 +1672,7 @@ export default { ...@@ -1669,6 +1672,7 @@ export default {
if(statusMove === 0) { if(statusMove === 0) {
this.active++; this.active++;
this.stepData = [false, false, true]; this.stepData = [false, false, true];
this.tagDrop();
} else { } else {
console.log('不能改变范围status:'+res.data.status) console.log('不能改变范围status:'+res.data.status)
} }
...@@ -3135,9 +3139,7 @@ export default { ...@@ -3135,9 +3139,7 @@ export default {
} }
} }
//console.log('this.tagsComponent',this.tagsComponent); //console.log('this.tagsComponent',this.tagsComponent);
if(vm.tagsComponent.length > 0) { vm.tagDrop();
vm.tagDrop();
}
}, },
initTags(value) { initTags(value) {
//console.log('value',value,'optionsComponent',this.optionsComponent); //console.log('value',value,'optionsComponent',this.optionsComponent);
...@@ -3154,9 +3156,9 @@ export default { ...@@ -3154,9 +3156,9 @@ export default {
} }
} }
//console.log('this.tagsComponent',this.tagsComponent); //console.log('this.tagsComponent',this.tagsComponent);
if(vm.tagsComponent.length > 0) { // if(vm.tagsComponent.length > 0) {
vm.tagDrop(); // vm.tagDrop();
} // }
}, },
//选择组件数据绑定 //选择组件数据绑定
handleCloseComponent(tag) { handleCloseComponent(tag) {
...@@ -3370,15 +3372,19 @@ export default { ...@@ -3370,15 +3372,19 @@ export default {
vm.visibleName = false; vm.visibleName = false;
}, },
tagDrop() { tagDrop() {
const ele = document.querySelector('.check-component .el-col-20'); this.$nextTick(function() {
// console.log('ele',ele); if(vm.tagsComponent.length > 0) {
// Sortable.create(ele,{}); const ele = document.querySelector('.check-component .el-col-20');
Sortable.create(ele, { // console.log('ele',ele);
onEnd({ newIndex, oldIndex }) { // Sortable.create(ele,{});
const currRow = vm.tagsComponent.splice(oldIndex, 1)[0] Sortable.create(ele, {
vm.tagsComponent.splice(newIndex, 0, currRow) onEnd({ newIndex, oldIndex }) {
} const currRow = vm.tagsComponent.splice(oldIndex, 1)[0]
}) vm.tagsComponent.splice(newIndex, 0, currRow)
}
})
}
});
}, },
} }
}; };
......
...@@ -109,12 +109,22 @@ ...@@ -109,12 +109,22 @@
></el-pagination> ></el-pagination>
</div> </div>
<el-dialog title :visible.sync="dialog.show" width="30%" center> <el-dialog title :visible.sync="dialog.show" width="30%" center>
<p v-if="numL3 > 1" class="dialog-p"> <!-- <p v-if="numL3 > 1" class="dialog-p">
确认将{{ dialog.role }} 确认将{{ dialog.role }}
<span class="user-name">"{{ dialog.name }}"</span> <span class="user-name">"{{ dialog.name }}"</span>
{{ dialog.option }}吗?" {{ dialog.option }}吗?"
</p> </p>
<p v-else >该用户为此机构仅有的次级负责人,确认需要降级吗?</p> <p v-else >该用户为此机构仅有的次级负责人,确认需要降级吗?</p> -->
<p v-if="numL3 <= 1 && scopeRow.projeceRole == 'L3'" class="dialog-p">
该用户为此机构仅有的次级负责人,确认需要降级吗?
</p>
<p v-else>
确认将{{ dialog.role }}
<span class="user-name">"{{ dialog.name }}"</span>
{{ dialog.option }}吗?"
</p>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="default" size="small" @click="dialog.show = false">取消</el-button> <el-button type="default" size="small" @click="dialog.show = false">取消</el-button>
<el-button type="primary" size="small" @click="changeRole()">确定</el-button> <el-button type="primary" size="small" @click="changeRole()">确定</el-button>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册