update
This commit is contained in:
@@ -246,7 +246,7 @@
|
||||
})
|
||||
}
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`currTask/createAutoTask`),
|
||||
url: this.$http.adornUrl(`/currTask/createAutoTask`),
|
||||
method: 'post',
|
||||
data: this.$http.adornData(requestData)
|
||||
}).then(({data}) => {
|
||||
|
||||
@@ -289,10 +289,14 @@
|
||||
},
|
||||
// 弹出提交任务弹窗
|
||||
handleSubmit () {
|
||||
this.submitFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.submitForm.init(this.dataList)
|
||||
})
|
||||
if (this.dataList.length) {
|
||||
this.submitFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.submitForm.init(this.dataList)
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请至少添加一条任务!')
|
||||
}
|
||||
},
|
||||
handleAutoDetail (id) {
|
||||
this.autoDetailVisible = true
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
:visible.sync="visible"
|
||||
>
|
||||
<div class="wareBox" v-for="count in 4" v-bind:key="count" @click="setPoint(count)">
|
||||
<div class="plat">提升平台{{count}}</div>
|
||||
<div class="plat">液压台{{count}}</div>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
setPoint (count) {
|
||||
console.log(count, this.pointType)
|
||||
this.visible = false
|
||||
this.$emit('refreshPoint', count, this.pointType)
|
||||
this.$emit('refreshPoint', 'YYT00' + count, this.pointType)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-left:1%">
|
||||
<el-select v-model="startPosition" size="small" placeholder="任务起点位置" clearable>
|
||||
<el-option :value="1" label="提升平台1" />
|
||||
<el-option :value="2" label="提升平台2" />
|
||||
<el-option :value="3" label="提升平台3" />
|
||||
<el-option :value="4" label="提升平台4" />
|
||||
<el-option value="YYT001" label="液压台1" />
|
||||
<el-option value="YYT002" label="液压台2" />
|
||||
<el-option value="YYT003" label="液压台3" />
|
||||
<el-option value="YYT004" label="液压台4" />
|
||||
</el-select>
|
||||
<!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(0)">{{startPosition}}</el-button> -->
|
||||
</el-form-item>
|
||||
@@ -208,7 +208,7 @@
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`currTask/createProcessTask`),
|
||||
url: this.$http.adornUrl(`/currTask/createProcessTask`),
|
||||
method: 'post',
|
||||
data: this.$http.adornData({
|
||||
craftCode: '',
|
||||
|
||||
Reference in New Issue
Block a user