|
@@ -80,7 +80,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="showNum" v-if="item.number">
|
|
<div class="showNum" v-if="item.number">
|
|
<span style="marginRight:8px;">默认显示个数</span>
|
|
<span style="marginRight:8px;">默认显示个数</span>
|
|
- <el-select v-model="item.number" placeholder="请选择" size="small" :disabled="item.status !== 1 ? true: false">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="item.number"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ size="small"
|
|
|
|
+ :disabled="item.status !== 1 ? true: false"
|
|
|
|
+ >
|
|
<el-option label="1" value="1"></el-option>
|
|
<el-option label="1" value="1"></el-option>
|
|
<el-option label="2" value="2"></el-option>
|
|
<el-option label="2" value="2"></el-option>
|
|
<el-option label="3" value="3"></el-option>
|
|
<el-option label="3" value="3"></el-option>
|
|
@@ -115,7 +120,7 @@
|
|
</ul>
|
|
</ul>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="primary" @click="onSubmit" :disabled="saveDisable">确定添加</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="onSubmit" :disabled="saveDisable">确定</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -319,15 +324,15 @@ export default {
|
|
arrTemp1 = arr
|
|
arrTemp1 = arr
|
|
.filter(x => arrTemp.indexOf(x) == -1)
|
|
.filter(x => arrTemp.indexOf(x) == -1)
|
|
.concat(arrTemp.filter(x => arr.indexOf(x) == -1));
|
|
.concat(arrTemp.filter(x => arr.indexOf(x) == -1));
|
|
- let endArr = [...newPlan]
|
|
|
|
|
|
+ let endArr = [...newPlan];
|
|
for (var j = 0; j < arrTemp1.length; j++) {
|
|
for (var j = 0; j < arrTemp1.length; j++) {
|
|
- let temp = tempArr[arrTemp1[j]]
|
|
|
|
- temp.orderNo = arr.length + j + 1
|
|
|
|
- temp.status = 0
|
|
|
|
- endArr.push(temp)
|
|
|
|
|
|
+ let temp = tempArr[arrTemp1[j]];
|
|
|
|
+ temp.orderNo = arr.length + j + 1;
|
|
|
|
+ temp.status = 0;
|
|
|
|
+ endArr.push(temp);
|
|
}
|
|
}
|
|
// console.log(endArr,'-=-=-=-=-=');
|
|
// console.log(endArr,'-=-=-=-=-=');
|
|
- this.planDefaultList = endArr
|
|
|
|
|
|
+ this.planDefaultList = endArr;
|
|
},
|
|
},
|
|
|
|
|
|
// format处理细项数据
|
|
// format处理细项数据
|
|
@@ -394,10 +399,16 @@ export default {
|
|
if (res.data.code === '0') {
|
|
if (res.data.code === '0') {
|
|
this.$message({
|
|
this.$message({
|
|
showClose: true,
|
|
showClose: true,
|
|
- message: '操作成功',
|
|
|
|
|
|
+ message: this.isEdit ? '编辑成功' : '添加成功',
|
|
type: 'success',
|
|
type: 'success',
|
|
duration: 1000
|
|
duration: 1000
|
|
});
|
|
});
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'Plan',
|
|
|
|
+ params: Object.assign({}, this.$route.params, {
|
|
|
|
+ currentPage: 1
|
|
|
|
+ })
|
|
|
|
+ });
|
|
} else if (res.data.code === '00020007') {
|
|
} else if (res.data.code === '00020007') {
|
|
// 方案名/方案编码已存在
|
|
// 方案名/方案编码已存在
|
|
this.$message({
|
|
this.$message({
|