|
@@ -3,7 +3,7 @@
|
|
|
<crumbs title="独立填写单维护">
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
<el-form-item label="归属:">
|
|
|
- <el-select size="mini" v-model="filter.tagAdscription" @change="getValue" placeholder="归属" clearable>
|
|
|
+ <el-select size="mini" v-model="filter.tagAdscription" placeholder="归属" clearable>
|
|
|
<el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -110,10 +110,13 @@
|
|
|
created() {
|
|
|
this.getDropList();
|
|
|
},
|
|
|
+ beforeRouteEnter(to, from, next){
|
|
|
+ next(vm => {
|
|
|
+ //const pm = to.param;
|
|
|
+ Object.assign(vm,to.params);
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
- getValue(val) {
|
|
|
- console.log('changeVal', val, this.filter.tagAdscription)
|
|
|
- },
|
|
|
getDropList() {
|
|
|
api.getPreTypeList().then((res) =>{
|
|
|
this.getDataList();
|
|
@@ -152,14 +155,17 @@
|
|
|
this.getDataList();
|
|
|
},
|
|
|
addIndeptTag() {
|
|
|
- this.$router.push({path:'LT-YWZSJWH-TJDLTXD'})
|
|
|
+ this.$router.push({name:'AddSimpleQuestion',
|
|
|
+ params:{currentPage:this.currentPage,
|
|
|
+ filter:this.filter}})
|
|
|
},
|
|
|
modifyIndeptTag(row) {
|
|
|
api.questionDetail({id:row.id}).then((res)=>{
|
|
|
const {code,data,msg} = res.data;
|
|
|
if(code=='0'){
|
|
|
const item = Object.assign({},row,data);
|
|
|
- this.$router.push({name:'AddSimpleQuestion',params:{isEdit:true,data:item}});
|
|
|
+ this.$router.push({name:'AddSimpleQuestion',params:{currentPage:this.currentPage,
|
|
|
+ filter:this.filter,isEdit:true,data:item}});
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: msg,
|