运行图代码调整

This commit is contained in:
joylink_cuiweidong 2020-12-18 17:51:54 +08:00
parent 465e6a5d08
commit fa7380f8ad
3 changed files with 17 additions and 8 deletions

View File

@ -250,7 +250,11 @@ export default {
}).then(() => { }).then(() => {
if (this.hasRelease) { if (this.hasRelease) {
publishRunPlan(row.id, {runPlanName: name}).then(resp => { publishRunPlan(row.id, {runPlanName: name}).then(resp => {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); if (resp.data.length <= 0) {
this.$message.success(this.$t('tip.publishRunPlanSuccess'));
} else {
this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`);
}
this.refresh(); this.refresh();
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));

View File

@ -612,7 +612,11 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
publishRunPlan(param.planId, {runPlanName: param.planName}).then(resp => { publishRunPlan(param.planId, {runPlanName: param.planName}).then(resp => {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); if (resp.data.length <= 0) {
this.$message.success(this.$t('tip.publishRunPlanSuccess'));
} else {
this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`);
}
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));
}); });

View File

@ -11,7 +11,7 @@
<el-input v-model="addModel.name" /> <el-input v-model="addModel.name" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.startStationCodeColon')" prop="startStationCode"> <el-form-item :label="$t('map.startStationCodeColon')" prop="startStationCode">
<el-select v-model="addModel.startStationCode" clearable :filterable="true" @change="changeStartStation"> <el-select v-model="addModel.startStationCode" clearable :filterable="true" disabled @change="changeStartStation">
<el-option <el-option
v-for="item in filterStationList" v-for="item in filterStationList"
:key="item.code" :key="item.code"
@ -19,10 +19,10 @@
:value="item.code" :value="item.code"
/> />
</el-select> </el-select>
<el-button <!-- <el-button
:type=" field === 'startStationCode' ? 'danger' : 'primary'" :type=" field === 'startStationCode' ? 'danger' : 'primary'"
@click="hover('startStationCode')" @click="hover('startStationCode')"
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button> -->
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.startSectionColon')" prop="startSectionCode"> <el-form-item :label="$t('map.startSectionColon')" prop="startSectionCode">
<el-select v-model="addModel.startSectionCode" clearable :filterable="true" :disabled="editShow" @change="changeStartSection"> <el-select v-model="addModel.startSectionCode" clearable :filterable="true" :disabled="editShow" @change="changeStartSection">
@ -40,7 +40,8 @@
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button>
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.endStationColon')" prop="endStationCode"> <el-form-item :label="$t('map.endStationColon')" prop="endStationCode">
<el-select v-model="addModel.endStationCode" clearable :filterable="true" :disabled="!isStartSelected" @change="changeEndStation"> <!-- :disabled="!isStartSelected" -->
<el-select v-model="addModel.endStationCode" clearable :filterable="true" disabled @change="changeEndStation">
<el-option <el-option
v-for="item in filterStationList" v-for="item in filterStationList"
:key="item.code" :key="item.code"
@ -48,11 +49,11 @@
:value="item.code" :value="item.code"
/> />
</el-select> </el-select>
<el-button <!-- <el-button
:disabled="!isStartSelected" :disabled="!isStartSelected"
:type=" field === 'endStationCode' ? 'danger' : 'primary'" :type=" field === 'endStationCode' ? 'danger' : 'primary'"
@click="hover('endStationCode')" @click="hover('endStationCode')"
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button> -->
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.endSectionColon')" prop="endSectionCode"> <el-form-item :label="$t('map.endSectionColon')" prop="endSectionCode">
<el-select v-model="addModel.endSectionCode" clearable :filterable="true" :disabled="editShow || !isStartSelected" @change="changeEndSection"> <el-select v-model="addModel.endSectionCode" clearable :filterable="true" :disabled="editShow || !isStartSelected" @change="changeEndSection">