|
@@ -93,20 +93,23 @@
|
|
<el-form-item label="其他"><el-input v-model="dataChange.others" size="small" style="width:85vw;margin-left:13px;" type="textarea" :rows="5" /></el-form-item>
|
|
<el-form-item label="其他"><el-input v-model="dataChange.others" size="small" style="width:85vw;margin-left:13px;" type="textarea" :rows="5" /></el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
- <div align="center">
|
|
|
|
- <el-button v-show="showButton1" size="small" type="primary" @click="getQueryData(dataChange)">更新, 下一步 </el-button>
|
|
|
|
- </div>
|
|
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
-import { launchTest } from '@/api/testPresentetion'
|
|
|
|
|
|
+// import { launchTest } from '@/api/testPresentetion'
|
|
import E from 'wangeditor'
|
|
import E from 'wangeditor'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'PresentReport',
|
|
name: 'PresentReport',
|
|
|
|
+ props: {
|
|
|
|
+ clienData: {
|
|
|
|
+ type: Object,
|
|
|
|
+ required: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
priorityStrings: [{ name: 'p0', value: 0 }, { name: 'p1', value: 1 }, { name: 'p2', value: 2 }, { name: 'p3', value: 3 }],
|
|
priorityStrings: [{ name: 'p0', value: 0 }, { name: 'p1', value: 1 }, { name: 'p2', value: 2 }, { name: 'p3', value: 3 }],
|
|
@@ -134,7 +137,6 @@ export default {
|
|
showDelay: false,
|
|
showDelay: false,
|
|
showApollo: false,
|
|
showApollo: false,
|
|
showRelyOn: false,
|
|
showRelyOn: false,
|
|
- showButton1: false,
|
|
|
|
userData: '',
|
|
userData: '',
|
|
objData: '',
|
|
objData: '',
|
|
userInformation: localStorage.getItem('username'),
|
|
userInformation: localStorage.getItem('username'),
|
|
@@ -165,45 +167,40 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getRouterData() {
|
|
getRouterData() {
|
|
- if (this.$route.query.data) { // 提测编辑
|
|
|
|
- this.showButton1 = true
|
|
|
|
- launchTest({ id: this.$route.query.id }).then((res) => {
|
|
|
|
- this.dataChange = res.data
|
|
|
|
- this.DetailsOfProposal.txt.html(this.dataChange.joinTest)
|
|
|
|
- if (this.dataChange.lateStatus === 1) {
|
|
|
|
- this.lateStatusBtn1 = 'success'
|
|
|
|
- this.lateStatusBtn = 'info'
|
|
|
|
- this.lateStatus = 1
|
|
|
|
- this.showDelay = false
|
|
|
|
- } else {
|
|
|
|
- this.lateStatusBtn1 = 'info'
|
|
|
|
- this.lateStatusBtn = 'danger'
|
|
|
|
- this.lateStatus = 2
|
|
|
|
- this.showDelay = true
|
|
|
|
- }
|
|
|
|
- if (this.dataChange.configInfo !== '') {
|
|
|
|
- this.configInBtn = 'success'
|
|
|
|
- this.configInBtn1 = 'info'
|
|
|
|
- this.confidgIn = 1
|
|
|
|
- this.showApollo = true
|
|
|
|
- } else {
|
|
|
|
- this.configInBtn = 'info'
|
|
|
|
- this.configInBtn1 = 'danger'
|
|
|
|
- this.configIn = 2
|
|
|
|
- this.showApollo = false
|
|
|
|
- }
|
|
|
|
- if (this.dataChange.dependentComponents !== '') {
|
|
|
|
- this.dependentBtn = 'success'
|
|
|
|
- this.dependentBtn1 = 'info'
|
|
|
|
- this.dependent = 1
|
|
|
|
- this.showRelyOn = true
|
|
|
|
- } else {
|
|
|
|
- this.dependentBtn = 'info'
|
|
|
|
- this.dependentBtn1 = 'danger'
|
|
|
|
- this.dependent = 2
|
|
|
|
- this.showRelyOn = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.dataChange = this.clienData
|
|
|
|
+ this.DetailsOfProposal.txt.html(this.dataChange.joinTest)
|
|
|
|
+ if (this.dataChange.lateStatus === 1) {
|
|
|
|
+ this.lateStatusBtn1 = 'success'
|
|
|
|
+ this.lateStatusBtn = 'info'
|
|
|
|
+ this.lateStatus = 1
|
|
|
|
+ this.showDelay = false
|
|
|
|
+ } else {
|
|
|
|
+ this.lateStatusBtn1 = 'info'
|
|
|
|
+ this.lateStatusBtn = 'danger'
|
|
|
|
+ this.lateStatus = 2
|
|
|
|
+ this.showDelay = true
|
|
|
|
+ }
|
|
|
|
+ if (this.dataChange.configInfo !== '') {
|
|
|
|
+ this.configInBtn = 'success'
|
|
|
|
+ this.configInBtn1 = 'info'
|
|
|
|
+ this.confidgIn = 1
|
|
|
|
+ this.showApollo = true
|
|
|
|
+ } else {
|
|
|
|
+ this.configInBtn = 'info'
|
|
|
|
+ this.configInBtn1 = 'danger'
|
|
|
|
+ this.configIn = 2
|
|
|
|
+ this.showApollo = false
|
|
|
|
+ }
|
|
|
|
+ if (this.dataChange.dependentComponents !== '') {
|
|
|
|
+ this.dependentBtn = 'success'
|
|
|
|
+ this.dependentBtn1 = 'info'
|
|
|
|
+ this.dependent = 1
|
|
|
|
+ this.showRelyOn = true
|
|
|
|
+ } else {
|
|
|
|
+ this.dependentBtn = 'info'
|
|
|
|
+ this.dependentBtn1 = 'danger'
|
|
|
|
+ this.dependent = 2
|
|
|
|
+ this.showRelyOn = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getQueryData(ele) {
|
|
getQueryData(ele) {
|
|
@@ -215,7 +212,7 @@ export default {
|
|
launchTestUpdate(this.objData).then(res => {
|
|
launchTestUpdate(this.objData).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
- this.$router.go(-1)
|
|
|
|
|
|
+ this.$emit('fatherMethod', res.data)
|
|
} else {
|
|
} else {
|
|
this.$message.error('更新失败')
|
|
this.$message.error('更新失败')
|
|
}
|
|
}
|