| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <div>
- <el-button size="mini" type="text" @click="onShow">编 辑</el-button>
- </div>
- </template>
- <script>
- export default {
- name: "edit",
- props:['data'],
- data(){
- return {
- drawer:false,
- mainAreaData:'',
- mainData:"",
- listqueryid:''
- }
- },
- methods:{
- onShow(){
- this.drawer = true
- this.listqueryid = sessionStorage.getItem('listqueryid')
- let query = {id:this.data.sa_salesforecastbillid,rowindex:this.data.rowindex,listqueryid:this.listqueryid,
- fieldname:'sa_salesforecastbillid'}
- this.$router.push({path:'/projectManageDetail',query:query})
- this.$store.dispatch('changeDetailDrawer',true)
- /*this.queryMainData()*/
- },
- async queryMainData () {
- const res = await this.$api.requested({
- "id": 20230705144704,
- "content": {
- "sa_salesforecastbillid":37
- }
- })
- console.log(res.data,'1111')
- this.mainData = res.data
- this.changeDataStructure()
- },
- changeDataStructure () {
- this.mainAreaData = [
- {
- label:'标题',
- value: this.mainData.title
- },
- ]
- }
- },
- mounted() {
- }
- }
- </script>
- <style scoped>
- </style>
|