|
@@ -317,12 +317,7 @@
|
|
|
>
|
|
|
<el-button v-if="isAuth('quoted:price:read') && Number(scope.row.writeState) === 2" type="text" size="small" @click="readHandle(scope.row.priceId)">只读</el-button>
|
|
|
<el-button v-if="isAuth('quoted:price:write') && Number(scope.row.writeState) === 1" type="text" size="small" @click="writeHandle(scope.row.priceId)">读写</el-button>
|
|
|
-<!-- <el-button-->
|
|
|
-<!-- type="text"-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- @click="showDetail"-->
|
|
|
-<!-- >导出</el-button-->
|
|
|
-<!-- >-->
|
|
|
+ <el-button type="text" size="small" @click="exportExcel(scope.row.priceId)">导出</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -357,6 +352,8 @@ import QuotedAccredit from './quoted-accredit'
|
|
|
import QuotedResult from './quoted-result'
|
|
|
import QuotedNotify from './quoted-notify'
|
|
|
import AttachDetailDialog from '@/views/modules/common/attach-detail-dialog'
|
|
|
+import Vue from 'vue'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'cus-quoted',
|
|
|
components: { AttachDetailDialog, OrgComponent, QuotedAddOrUpdate, QuotedPrice, QuotedDetail, QuotedAccredit, QuotedResult, QuotedNotify },
|
|
@@ -577,6 +574,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}).catch(() => {})
|
|
|
+ },
|
|
|
+ exportExcel (id) {
|
|
|
+ let url = this.$http.adornUrl(`/biz-service/quoted/exportExcel/${id}`) +
|
|
|
+ '&_token=' + Vue.cookie.get('token')
|
|
|
+ window.open(url, '_blank')
|
|
|
}
|
|
|
}
|
|
|
}
|